An Information-Theoretic Analysis of Temporal GNNs

1st Amirmohammad Farzaneh Department of Engineering Science
University of Oxford
Oxford, UK
[email protected]
Abstract

Temporal Graph Neural Networks, a new and trending area of machine learning, suffers from a lack of formal analysis. In this paper, information theory is used as the primary tool to provide a framework for the analysis of temporal GNNs. For this reason, the concept of information bottleneck is used and adjusted to be suitable for a temporal analysis of such networks. To this end, a new definition for Mutual Information Rate is provided, and the potential use of this new metric in the analysis of temporal GNNs is studied.

Index Terms:
GNN, Mutual Information Rate, Information Bottleneck, Entropy Rate

I Introduction

The study of Graph Neural Networks (GNNs) is a rapidly growing area of machine learning and artificial intelligence. First introduced by [1] back in 2009, it has now become one of the trendiest areas in machine learning research. The importance of this field becomes more evident by observing the amount of graphical data structures around us. Social networks, communication networks, and biological networks are only a few examples of such graphs. Graphs can be used to represent the relationship present between data in many different fields of science, and therefore GNNs have been used to solve problems in areas such as modern recommender systems, computer vision, natural language processing (NLP), software mining, bioinformatics, and urban intelligence [2].

Additionally, most of these graphs are dynamic by nature. This means that we expect them to change and evolve over time. For instance, new nodes and links are always being formed or deleted in social media networks. Because of this reason, Temporal GNNs have recently attracted a lot of attention from the machine learning community. Temporal GNNs are used to study and learn from graphical data and their evolution through time, whereas standard GNNs learn from single graphs. A survey on existing methods on this topic has been recently published [3], and even newer methods have been introduced since then [4].

Generally speaking, there is a lack of theoretical formulations to assess the performance of GNNs. Consequently, the temporal version of GNNs also suffers from the same lack of theoretical assessment in a more serious manner. Because of this, we propose an information-theoretic approach to analysing the performance of temporal graph learning algorithms. The information bottleneck principle is used as the core idea, while the temporal graph evolutions are modeled using stochastic processes. Mutual Information Rate (MIR) is then used as the main metric for analysing the performance of algorithms that work on temporal graphs. Additionally, a new and more robust metric to replace MIR is introduced, and it is discussed how NECs can be used for analysing temporal GNNs.

II The information bottleneck problem for temporal GNNs

The information-bottleneck problem [5] is often used as the information-theoretic formulation of Machine Learning. This method models the machine learning algorithm using an encoder-decoder pair, and formulates the problem as a trade-off between the compression ratio of the input and the accuracy of the output. We show the input to the algorithm with X𝑋Xitalic_X, the desired output with Y𝑌Yitalic_Y, and the actual output of the algorithm with Y^^𝑌\hat{Y}over^ start_ARG italic_Y end_ARG. Additionally, we use Z𝑍Zitalic_Z to show the output of the encoder. This will be the output of the last layer if we are working with a neural network [6]. Fig. 1 shows these notations in the context of a learning algorithm.

Refer to caption
Figure 1: Model of an ML algorithm

Using the model of Fig. 1, the information bottleneck problem can be used to model the ML problem as below.

infI(X;Z)subject toI(Y;Z)α,inf𝐼𝑋𝑍subject to𝐼𝑌𝑍𝛼\begin{split}\textrm{inf}&\quad I(X;Z)\\ \textrm{subject to}&\quad I(Y;Z)\geq\alpha,\end{split}start_ROW start_CELL inf end_CELL start_CELL italic_I ( italic_X ; italic_Z ) end_CELL end_ROW start_ROW start_CELL subject to end_CELL start_CELL italic_I ( italic_Y ; italic_Z ) ≥ italic_α , end_CELL end_ROW (1)

where I𝐼Iitalic_I is used to show mutual information as per Shannon’s definition [7, Ch. 2], and α𝛼\alphaitalic_α is the parameter that sets the accuracy of the algorithm.

However, Eq. 1 can not be used in the context of dynamic graphs. This is because when dealing with temporal graphs, we should look at sequences of the input and output, rather than single ones. In this case, rather than assuming the variables in Eq. 1 to be single graphs, we will consider them to be stochastic processes. In other words we have

Y={Y1,Y2,,Yn},X={X1,X2,,Xn},Z={Z1,Z2,,Zn},Y^={Y^1,Y^2,,Y^n},formulae-sequence𝑌subscript𝑌1subscript𝑌2subscript𝑌𝑛formulae-sequence𝑋subscript𝑋1subscript𝑋2subscript𝑋𝑛formulae-sequence𝑍subscript𝑍1subscript𝑍2subscript𝑍𝑛^𝑌subscript^𝑌1subscript^𝑌2subscript^𝑌𝑛\begin{split}Y&=\{Y_{1},Y_{2},\ldots,Y_{n}\},\\ X&=\{X_{1},X_{2},\ldots,X_{n}\},\\ Z&=\{Z_{1},Z_{2},\ldots,Z_{n}\},\\ \hat{Y}&=\{\hat{Y}_{1},\hat{Y}_{2},\ldots,\hat{Y}_{n}\},\\ \end{split}start_ROW start_CELL italic_Y end_CELL start_CELL = { italic_Y start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , … , italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT } , end_CELL end_ROW start_ROW start_CELL italic_X end_CELL start_CELL = { italic_X start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_X start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , … , italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT } , end_CELL end_ROW start_ROW start_CELL italic_Z end_CELL start_CELL = { italic_Z start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_Z start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , … , italic_Z start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT } , end_CELL end_ROW start_ROW start_CELL over^ start_ARG italic_Y end_ARG end_CELL start_CELL = { over^ start_ARG italic_Y end_ARG start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , over^ start_ARG italic_Y end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , … , over^ start_ARG italic_Y end_ARG start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT } , end_CELL end_ROW (2)

where the following Markov chain governs each i𝑖iitalic_i, which is a time snapshot of the network.

YiXiZiY^isubscript𝑌𝑖subscript𝑋𝑖subscript𝑍𝑖subscript^𝑌𝑖Y_{i}\rightarrow X_{i}\rightarrow Z_{i}\rightarrow\hat{Y}_{i}italic_Y start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT → italic_X start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT → italic_Z start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT → over^ start_ARG italic_Y end_ARG start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT (3)

Eq. 1 tells us that in order to assess an ML algorithm we can look at the mutual information between X𝑋Xitalic_X and Z𝑍Zitalic_Z, and Y𝑌Yitalic_Y and Z𝑍Zitalic_Z, respectively. However, in a dynamic graph setup, we have n𝑛nitalic_n time snapshots of these random variables. The natural question that arises in these scenario is the value of i𝑖iitalic_i to look at. In this case, we will use the concept of MIR [8].

When working with stochastic processes, we can look at the mutual information between pairs of corresponding variables, or I(X1,,Xn;Y1,,Yn)𝐼subscript𝑋1subscript𝑋𝑛subscript𝑌1subscript𝑌𝑛I(X_{1},\ldots,X_{n};Y_{1},\ldots,Y_{n})italic_I ( italic_X start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , … , italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_Y start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , … , italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ). However, the value of this can theoretically be unlimited as the process grows large. Therefore, we rely on the definition of MIR, which measures average mutual information per unit of time defined as below.

Definition 1 (Mutual Information Rate (MIR)).

The mutual information rate between two stochastic processes X𝑋Xitalic_X and Y𝑌Yitalic_Y is defined as below.

MIR=limn1nI(X1,X2,,Xn;Y1,Y2,,Yn)MIRsubscript𝑛1𝑛𝐼subscript𝑋1subscript𝑋2subscript𝑋𝑛subscript𝑌1subscript𝑌2subscript𝑌𝑛\textrm{MIR}=\lim_{n\to\infty}\frac{1}{n}I\left(X_{1},X_{2},\ldots,X_{n};Y_{1}% ,Y_{2},\ldots,Y_{n}\right)MIR = roman_lim start_POSTSUBSCRIPT italic_n → ∞ end_POSTSUBSCRIPT divide start_ARG 1 end_ARG start_ARG italic_n end_ARG italic_I ( italic_X start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_X start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , … , italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_Y start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , … , italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT )

Having defined the variables in Fig. 1 and using the notions from the information bottleneck principle, we propose the following metrics to be used for the assessment of temporal graph learning algorithms.

  • Accuracy: MIR(Y;Z)MIR𝑌𝑍\textrm{MIR}(Y;Z)MIR ( italic_Y ; italic_Z )

  • Compression: MIR(X;Z)MIR𝑋𝑍\textrm{MIR}(X;Z)MIR ( italic_X ; italic_Z )

  • Overall score: MIR(Y;Z)/MIR(X;Z)MIR𝑌𝑍MIR𝑋𝑍\textrm{MIR}(Y;Z)/\textrm{MIR}(X;Z)MIR ( italic_Y ; italic_Z ) / MIR ( italic_X ; italic_Z )

Note that there exist numerous methods for estimating the MIR of a pair of stochastic processes. For instance, the mutual information estimation setup proposed in [5][p. 17] can be used. However, because of the existence of 2n2𝑛2n2 italic_n random variables in the definition of MIR, especially as n𝑛nitalic_n grows large, we propose an alternative metric for measuring the rate of mutual information.

In the remainder of this section, we will use the following notation for better readability when referring to subsets of a stochastic process.

Xi:j{Xi,Xi+1,,Xj}subscript𝑋:𝑖𝑗subscript𝑋𝑖subscript𝑋𝑖1subscript𝑋𝑗X_{i:j}\equiv\{X_{i},X_{i+1},\ldots,X_{j}\}italic_X start_POSTSUBSCRIPT italic_i : italic_j end_POSTSUBSCRIPT ≡ { italic_X start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT , italic_X start_POSTSUBSCRIPT italic_i + 1 end_POSTSUBSCRIPT , … , italic_X start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT } (4)

III Alternative Mutual Information Rate (AMIR)

The current definition for MIR makes its applications to stochastic processes very limited, as it involves the mutual information of the entire process as it grows large. This notion of MIR might not be feasible to study for real-world processes, as estimating the mutual information of such big stochastic processes might not be accurate. Because of this, we propose the definition of a novel relative metric for the mutual information rate between processes. This new metric is called alternative mutual information rate, or AMIR for short. Even though a similar metric exists for entropy rate of stochastic processes, the absence of this metric for analysing mutual information can be felt. This novel metric analyses the mutual information of single random variables, given the history of the sequence. We believe that this novel metric can be estimated more accurately, especially if the given stochastic processes are Markov chains.

Firstly, note that the definition of MIR as stated in Definition 1 is very similar to that of entropy rate [7, Ch. 4]. Additionally, there exists a relative version of entropy rate, which is shown to be equal to entropy rate for stationary processes [7, Thm. 4.2.1]. This new relative version of the entropy rate had the benefit of being easier to work with and use in our estimations and proofs. Based on the similarities between the concepts of entropy rate and MIR, we search for a relative format for MIR as well. This conditional concept of MIR can help us in many applications that involve the correlation of two stochastic processes, where we want to study the limit of the behaviour of single random variables in a conditional manner. Based on this, we provide the following definition for this alternative version of MIR.

Definition 2 (Alternative Mutual Information Rate (AMIR)).

The Alternative Mutual Information Rate (AMIR) between two stochastic processes X𝑋Xitalic_X and Y𝑌Yitalic_Y is defined as

AMIR(X;Y)=limnI(Xn;Yn|X1:n1,Y1:n1),AMIR𝑋𝑌subscript𝑛𝐼subscript𝑋𝑛conditionalsubscript𝑌𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛1\text{AMIR}(X;Y)=\lim_{n\to\infty}I(X_{n};Y_{n}|X_{1:n-1},Y_{1:n-1}),AMIR ( italic_X ; italic_Y ) = roman_lim start_POSTSUBSCRIPT italic_n → ∞ end_POSTSUBSCRIPT italic_I ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) , (5)

when it exists.

In the remainder of this section, we will look at the properties of AMIR, its existence, and its relationship with MIR. We first start with the following theorem.

Theorem 3.

For two stationary processes X𝑋Xitalic_X and Y𝑌Yitalic_Y, AMIR exists.

Proof.

It is well known that for two stationary processes X𝑋Xitalic_X and Y𝑌Yitalic_Y, MIR(X;Y)MIR𝑋𝑌\text{MIR}(X;Y)MIR ( italic_X ; italic_Y ) exists [8]. For AMIR, we can write

AMIR(X;Y)=limnI(Xn;Yn|X1:n1,Y1:n1)=limnH(Xn|X1:n1,Y1:n1)+H(Yn|X1:n1,Y1:n1)H(Xn,Yn|X1:n1,Y1:n1).AMIR𝑋𝑌subscript𝑛𝐼subscript𝑋𝑛conditionalsubscript𝑌𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛1subscript𝑛𝐻conditionalsubscript𝑋𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛1𝐻conditionalsubscript𝑌𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛1𝐻subscript𝑋𝑛conditionalsubscript𝑌𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛1\begin{split}\text{AMIR}(X;Y)&=\lim_{n\to\infty}I(X_{n};Y_{n}|X_{1:n-1},Y_{1:n% -1})\\ &=\lim_{n\to\infty}H(X_{n}|X_{1:n-1},Y_{1:n-1})\\ &+H(Y_{n}|X_{1:n-1},Y_{1:n-1})\\ &-H(X_{n},Y_{n}|X_{1:n-1},Y_{1:n-1}).\\ \end{split}start_ROW start_CELL AMIR ( italic_X ; italic_Y ) end_CELL start_CELL = roman_lim start_POSTSUBSCRIPT italic_n → ∞ end_POSTSUBSCRIPT italic_I ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL = roman_lim start_POSTSUBSCRIPT italic_n → ∞ end_POSTSUBSCRIPT italic_H ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL + italic_H ( italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL - italic_H ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) . end_CELL end_ROW (6)

Firstly, note that based on the stationarity of X𝑋Xitalic_X, Y𝑌Yitalic_Y, and (X,Y)𝑋𝑌(X,Y)( italic_X , italic_Y ), we have the following equation [7, Ch. 4].

limnH(Xn,Yn|X1:n1,Y1:n1)=limn1nH(X1:n,Y1:n)subscript𝑛𝐻subscript𝑋𝑛conditionalsubscript𝑌𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛1subscript𝑛1𝑛𝐻subscript𝑋:1𝑛subscript𝑌:1𝑛\lim_{n\to\infty}H(X_{n},Y_{n}|X_{1:n-1},Y_{1:n-1})=\lim_{n\to\infty}\frac{1}{% n}H(X_{1:n},Y_{1:n})roman_lim start_POSTSUBSCRIPT italic_n → ∞ end_POSTSUBSCRIPT italic_H ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) = roman_lim start_POSTSUBSCRIPT italic_n → ∞ end_POSTSUBSCRIPT divide start_ARG 1 end_ARG start_ARG italic_n end_ARG italic_H ( italic_X start_POSTSUBSCRIPT 1 : italic_n end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n end_POSTSUBSCRIPT ) (7)

Eq. 7 shows that H(Xn,Yn|X1:n1,Y1:n1)𝐻subscript𝑋𝑛conditionalsubscript𝑌𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛1H(X_{n},Y_{n}|X_{1:n-1},Y_{1:n-1})italic_H ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) tends towards the entropy rate of (X,Y)𝑋𝑌(X,Y)( italic_X , italic_Y ), and has a limit. Therefore, in order to show that the limit for AMIR exists, we only need to show that the other two limits in Eq. 6 exist. For H(Xn|X1:n1,Y1:n1)𝐻conditionalsubscript𝑋𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛1H(X_{n}|X_{1:n-1},Y_{1:n-1})italic_H ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) we have

H(Xn|X1:n1,Y1:n1)H(Xn|X2:n1,Y2:n1)=H(Xn1|X1:n2,Y1:n2),𝐻conditionalsubscript𝑋𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛1𝐻conditionalsubscript𝑋𝑛subscript𝑋:2𝑛1subscript𝑌:2𝑛1𝐻conditionalsubscript𝑋𝑛1subscript𝑋:1𝑛2subscript𝑌:1𝑛2\begin{split}H(X_{n}|X_{1:n-1},Y_{1:n-1})&\leq H(X_{n}|X_{2:n-1},Y_{2:n-1})\\ &=H(X_{n-1}|X_{1:n-2},Y_{1:n-2}),\end{split}start_ROW start_CELL italic_H ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) end_CELL start_CELL ≤ italic_H ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 2 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 2 : italic_n - 1 end_POSTSUBSCRIPT ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL = italic_H ( italic_X start_POSTSUBSCRIPT italic_n - 1 end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 2 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 2 end_POSTSUBSCRIPT ) , end_CELL end_ROW (8)

where the first line comes from the fact that conditioning reduces entropy, and the second line can be concluded from the stationarity of both processes. Therefore, H(Xn|X1:n1,Y1:n1)𝐻conditionalsubscript𝑋𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛1H(X_{n}|X_{1:n-1},Y_{1:n-1})italic_H ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) forms a non-increasing sequence of positive numbers, which has a limit. A similar approach can be used to prove that H(Yn|X1:n1,Y1:n1)𝐻conditionalsubscript𝑌𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛1H(Y_{n}|X_{1:n-1},Y_{1:n-1})italic_H ( italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) also converges. Therefore, AMIR also has a limit and is well-defined for stationary processes. ∎

Additionally, we can state the following corollary for Theorem 3.

Corollary 4.

For stationary processes X𝑋Xitalic_X and Y𝑌Yitalic_Y we always have

AMIR(X;Y)MIR(X;Y).AMIR𝑋𝑌MIR𝑋𝑌\text{AMIR}(X;Y)\leq\text{MIR}(X;Y).AMIR ( italic_X ; italic_Y ) ≤ MIR ( italic_X ; italic_Y ) . (9)
Proof.

We can use Eq. 6 and write the following chain of equations.

AMIR(X;Y)=limnH(Xn|X1:n1,Y1:n1)+H(Yn|X1:n1,Y1:n1)H(Xn,Yn|X1:n1,Y1:n1)AMIR𝑋𝑌subscript𝑛𝐻conditionalsubscript𝑋𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛1𝐻conditionalsubscript𝑌𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛1𝐻subscript𝑋𝑛conditionalsubscript𝑌𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛1\displaystyle\begin{split}\text{AMIR}(X;Y)&=\lim_{n\to\infty}H(X_{n}|X_{1:n-1}% ,Y_{1:n-1})\\ &+H(Y_{n}|X_{1:n-1},Y_{1:n-1})\\ &-H(X_{n},Y_{n}|X_{1:n-1},Y_{1:n-1})\end{split}start_ROW start_CELL AMIR ( italic_X ; italic_Y ) end_CELL start_CELL = roman_lim start_POSTSUBSCRIPT italic_n → ∞ end_POSTSUBSCRIPT italic_H ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL + italic_H ( italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL - italic_H ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) end_CELL end_ROW (10)
=limnH(Xn|X1:n1)I(Xn;Y1:n1)+H(Yn|Y1:n1;X1:n1)I(Yn;X1:n1)H(Xn,Yn|X1:n1,Y1:n1)absentsubscript𝑛𝐻conditionalsubscript𝑋𝑛subscript𝑋:1𝑛1𝐼subscript𝑋𝑛subscript𝑌:1𝑛1𝐻conditionalsubscript𝑌𝑛subscript𝑌:1𝑛1subscript𝑋:1𝑛1𝐼subscript𝑌𝑛subscript𝑋:1𝑛1𝐻subscript𝑋𝑛conditionalsubscript𝑌𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛1\displaystyle\begin{split}&=\lim_{n\to\infty}H(X_{n}|X_{1:n-1})\\ &-I(X_{n};Y_{1:n-1})\\ &+H(Y_{n}|Y_{1:n-1};X_{1:n-1})\\ &-I(Y_{n};X_{1:n-1})\\ &-H(X_{n},Y_{n}|X_{1:n-1},Y_{1:n-1})\end{split}start_ROW start_CELL end_CELL start_CELL = roman_lim start_POSTSUBSCRIPT italic_n → ∞ end_POSTSUBSCRIPT italic_H ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL - italic_I ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL + italic_H ( italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ; italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL - italic_I ( italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL - italic_H ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) end_CELL end_ROW (11)
=H(X)+H(Y)H(X,Y)I(Xn;Y1:n1)I(Yn;X1:n1)absent𝐻𝑋𝐻𝑌𝐻𝑋𝑌𝐼subscript𝑋𝑛subscript𝑌:1𝑛1𝐼subscript𝑌𝑛subscript𝑋:1𝑛1\displaystyle\begin{split}&=H(X)+H(Y)-H(X,Y)\\ &-I(X_{n};Y_{1:n-1})-I(Y_{n};X_{1:n-1})\end{split}start_ROW start_CELL end_CELL start_CELL = italic_H ( italic_X ) + italic_H ( italic_Y ) - italic_H ( italic_X , italic_Y ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL - italic_I ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) - italic_I ( italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) end_CELL end_ROW (12)
=MIR(X;Y)I(Xn;Y1:n1)I(Yn;X1:n1)absentMIR𝑋𝑌𝐼subscript𝑋𝑛subscript𝑌:1𝑛1𝐼subscript𝑌𝑛subscript𝑋:1𝑛1\displaystyle\begin{split}&=\text{MIR}(X;Y)\\ &-I(X_{n};Y_{1:n-1})-I(Y_{n};X_{1:n-1})\end{split}start_ROW start_CELL end_CELL start_CELL = MIR ( italic_X ; italic_Y ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL - italic_I ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) - italic_I ( italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) end_CELL end_ROW (13)

Based on the fact that mutual information is non-negative, we can easily conclude the claim of the corollary based on Eq. 13. ∎

Additionally, the conditions under which MIR and AMIR are equal are stated in the following corollary.

Corollary 5.

For stationary processes X𝑋Xitalic_X and Y𝑌Yitalic_Y, MIR and AMIR are equal if and only if the following conditions are met.

  1. 1.

    Given X1:n1subscript𝑋:1𝑛1X_{1:n-1}italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT, Xnsubscript𝑋𝑛X_{n}italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT and Y1:n1subscript𝑌:1𝑛1Y_{1:n-1}italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT are independent.

  2. 2.

    Given Y1:n1subscript𝑌:1𝑛1Y_{1:n-1}italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT, Ynsubscript𝑌𝑛Y_{n}italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT and X1:n1subscript𝑋:1𝑛1X_{1:n-1}italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT are independent.

Proof.

As I(Xn;Y1:n1|X1:n1)𝐼subscript𝑋𝑛conditionalsubscript𝑌:1𝑛1subscript𝑋:1𝑛1I(X_{n};Y_{1:n-1}|X_{1:n-1})italic_I ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) and I(Yn;X1:n1|Y1:n1)𝐼subscript𝑌𝑛conditionalsubscript𝑋:1𝑛1subscript𝑌:1𝑛1I(Y_{n};X_{1:n-1}|Y_{1:n-1})italic_I ( italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT | italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) are non-negative, the only way that the values of MIR and AMIR can be equal according to Eq. 13 is if these two values are zero. For I(Xn;Y1:n1|X1:n1)𝐼subscript𝑋𝑛conditionalsubscript𝑌:1𝑛1subscript𝑋:1𝑛1I(X_{n};Y_{1:n-1}|X_{1:n-1})italic_I ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) we can write

I(Xn;Y1:n1|X1:n1)=0H(Xn|X1:n1)H(Xn|X1:n1,Y1:n1)=0H(Xn|X1:n1)=H(Xn|X1:n1,Y1:n1),𝐼subscript𝑋𝑛conditionalsubscript𝑌:1𝑛1subscript𝑋:1𝑛10𝐻conditionalsubscript𝑋𝑛subscript𝑋:1𝑛1𝐻conditionalsubscript𝑋𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛10𝐻conditionalsubscript𝑋𝑛subscript𝑋:1𝑛1𝐻conditionalsubscript𝑋𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛1\begin{split}&I(X_{n};Y_{1:n-1}|X_{1:n-1})=0\\ &\Rightarrow H(X_{n}|X_{1:n-1})-H(X_{n}|X_{1:n-1},Y_{1:n-1})=0\\ &\Rightarrow H(X_{n}|X_{1:n-1})=H(X_{n}|X_{1:n-1},Y_{1:n-1}),\end{split}start_ROW start_CELL end_CELL start_CELL italic_I ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) = 0 end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL ⇒ italic_H ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) - italic_H ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) = 0 end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL ⇒ italic_H ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) = italic_H ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) , end_CELL end_ROW (14)

which translates into Xnsubscript𝑋𝑛X_{n}italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT and Y1:n1subscript𝑌:1𝑛1Y_{1:n-1}italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT being independent given X1:n1subscript𝑋:1𝑛1X_{1:n-1}italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT. The other condition can be obtained by setting I(Yn;Xn1|Yn1)𝐼subscript𝑌𝑛conditionalsubscript𝑋𝑛1subscript𝑌𝑛1I(Y_{n};X_{n-1}|Y_{n-1})italic_I ( italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_X start_POSTSUBSCRIPT italic_n - 1 end_POSTSUBSCRIPT | italic_Y start_POSTSUBSCRIPT italic_n - 1 end_POSTSUBSCRIPT ) to zero. ∎

It can be seen that in addition to the processes being stationary, the conditions in Corollary 5 need to be met in order for MIR and AMIR to be equal. This is unlike the equality of entropy rate and relative entropy rate, where the only condition was the stationarity of the process. However, it can also be seen that the conditions for the equality of these two metrics are not very strict, and can be assumed for many real-life pairs of stochastic processes.

IV Benefits of AMIR

In this section, we will briefly mention and discuss two advantages of AMIR over MIR.

IV-A Rate of convergence

Existing methods for estimating mutual information of random variables rely on samples from the distribution of those random variables [9, 10]. Therefore, as the space of possible data points grows, more sample are needed to accurately estimate this metric. Looking at the definition of MIR and AMIR, it can be seen that the space of both metrics includes (|X||Y|)nsuperscript𝑋𝑌𝑛(|X||Y|)^{n}( | italic_X | | italic_Y | ) start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT possibilities. However, there are usually assumptions in place about the memory of the system, which dictates how many samples in the future will be affected by the current sample. Based on this, there usually exists a constant C for which we can assume

I(Xn;Yn|X1:n1,Y1:n1)=I(Xn;Yn|XnC:n1,YnC:n1).𝐼subscript𝑋𝑛conditionalsubscript𝑌𝑛subscript𝑋:1𝑛1subscript𝑌:1𝑛1𝐼subscript𝑋𝑛conditionalsubscript𝑌𝑛subscript𝑋:𝑛𝐶𝑛1subscript𝑌:𝑛𝐶𝑛1I(X_{n};Y_{n}|X_{1:n-1},Y_{1:n-1})\\ =I(X_{n};Y_{n}|X_{n-C:n-1},Y_{n-C:n-1}).start_ROW start_CELL italic_I ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n - 1 end_POSTSUBSCRIPT ) end_CELL end_ROW start_ROW start_CELL = italic_I ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT italic_n - italic_C : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT italic_n - italic_C : italic_n - 1 end_POSTSUBSCRIPT ) . end_CELL end_ROW (15)

This assumption will reduce the size of the sample space to (|X||Y|)C+1superscript𝑋𝑌𝐶1(|X||Y|)^{C+1}( | italic_X | | italic_Y | ) start_POSTSUPERSCRIPT italic_C + 1 end_POSTSUPERSCRIPT, which lowers the number of samples needed to estimate AMIR and increase the convergence rate.

IV-B Number of sample sequences needed

It must be noted that in order to estimate MIR, we need samples of (Xn,Yn)subscript𝑋𝑛subscript𝑌𝑛(X_{n},Y_{n})( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ), which means samples of both sequences. Additionally, the number of required samples for accurate estimation will increase exponentially with n𝑛nitalic_n. However, with AMIR, one sequence for (X,Y)𝑋𝑌(X,Y)( italic_X , italic_Y ) will suffice if the memory of the system is assumed to be limited. In other words, with every new sample for the sequence, we will have a new sample for estimating I(Xn,Yn|XnC:n1,YnC:n1)𝐼subscript𝑋𝑛conditionalsubscript𝑌𝑛subscript𝑋:𝑛𝐶𝑛1subscript𝑌:𝑛𝐶𝑛1I(X_{n},Y_{n}|X_{n-C:n-1},Y_{n-C:n-1})italic_I ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT italic_n - italic_C : italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT italic_n - italic_C : italic_n - 1 end_POSTSUBSCRIPT ), which removes the need for having numerous sequences.

V AMIR of Markov chains

In this section, we will consider the Mutual Information Rate of stationary Markov chains. As a special case of stochastic processes, Markov chains have applications in many different areas.

Consider X𝑋Xitalic_X and Y𝑌Yitalic_Y to be stationary Markov chains. Let μXsubscript𝜇𝑋\mu_{X}italic_μ start_POSTSUBSCRIPT italic_X end_POSTSUBSCRIPT, μYsubscript𝜇𝑌\mu_{Y}italic_μ start_POSTSUBSCRIPT italic_Y end_POSTSUBSCRIPT, and μXYsubscript𝜇𝑋𝑌\mu_{XY}italic_μ start_POSTSUBSCRIPT italic_X italic_Y end_POSTSUBSCRIPT be the stationary distributions of X𝑋Xitalic_X, Y𝑌Yitalic_Y, and (X,Y)𝑋𝑌(X,Y)( italic_X , italic_Y ), respectively. Additionally, let P𝑃Pitalic_P, Q𝑄Qitalic_Q, and R𝑅Ritalic_R be the transition probability matrices for X𝑋Xitalic_X, Y𝑌Yitalic_Y, and (X,Y)𝑋𝑌(X,Y)( italic_X , italic_Y ), respectively. To calculate the MIR of X𝑋Xitalic_X and Y𝑌Yitalic_Y, we can write

MIR(X;Y)=H(X)+H(Y)H(X,Y)=ijμX,iPijlogPijijμY,iQijlogQij+ijμXY,iRijlogRij.MIR𝑋𝑌𝐻𝑋𝐻𝑌𝐻𝑋𝑌subscript𝑖𝑗subscript𝜇𝑋𝑖subscript𝑃𝑖𝑗subscript𝑃𝑖𝑗subscript𝑖𝑗subscript𝜇𝑌𝑖subscript𝑄𝑖𝑗subscript𝑄𝑖𝑗subscript𝑖𝑗subscript𝜇𝑋𝑌𝑖subscript𝑅𝑖𝑗subscript𝑅𝑖𝑗\begin{split}\text{MIR}(X;Y)&=H(X)+H(Y)-H(X,Y)\\ &=-\sum_{ij}\mu_{X,i}P_{ij}\log P_{ij}\\ &-\sum_{ij}\mu_{Y,i}Q_{ij}\log Q_{ij}\\ &+\sum_{ij}\mu_{XY,i}R_{ij}\log R_{ij}.\end{split}start_ROW start_CELL MIR ( italic_X ; italic_Y ) end_CELL start_CELL = italic_H ( italic_X ) + italic_H ( italic_Y ) - italic_H ( italic_X , italic_Y ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL = - ∑ start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT italic_μ start_POSTSUBSCRIPT italic_X , italic_i end_POSTSUBSCRIPT italic_P start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT roman_log italic_P start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL - ∑ start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT italic_μ start_POSTSUBSCRIPT italic_Y , italic_i end_POSTSUBSCRIPT italic_Q start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT roman_log italic_Q start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL + ∑ start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT italic_μ start_POSTSUBSCRIPT italic_X italic_Y , italic_i end_POSTSUBSCRIPT italic_R start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT roman_log italic_R start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT . end_CELL end_ROW (16)

Note that the entropy rate of stationary Markov chains can be found using [7, Thm. 4.2.4].

Additionally, it can be seen that the condition of causality holds for most of the processes that are simulated using Markov chains. For instance, Markov chains have recently been used for temporal alignment of medical signals in dementia [11]. In this study, it is safe to assume that future signals will not affect the past, and therefore the assumption of causality holds. Consequently, it is safe to state that for most of the Markov chains we work with, MIR and AMIR will be equal, but it is always necessary to check the condition of Corollary 5.

Even though both MIR and AMIR can be calculated using Eq. 16, we do not necessarily always have all the parameters of the Markov chain, and therefore can not use Eq. 16 directly. Therefore, we need to rely on estimation. We believe that in estimation, AMIR can prove to be a more robust and reliable estimator compared to MIR, as much less parameters are involved. Observe that for MIR, we need to estimate I(X1,,Xn;Y1,,Yn)𝐼subscript𝑋1subscript𝑋𝑛subscript𝑌1subscript𝑌𝑛I(X_{1},\ldots,X_{n};Y_{1},\ldots,Y_{n})italic_I ( italic_X start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , … , italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_Y start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , … , italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ), whereas the value to estimate for AMIR in Markov chains is simply I(Xn;Yn|Xn1,Yn1)𝐼subscript𝑋𝑛conditionalsubscript𝑌𝑛subscript𝑋𝑛1subscript𝑌𝑛1I(X_{n};Y_{n}|X_{n-1},Y_{n-1})italic_I ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT italic_n - 1 end_POSTSUBSCRIPT ).

VI Simulation results

In this section, we will perform simulations on a number of stochastic processes to compare the performance of MIR and AMIR as metrics of mutual information to study stochastic processes.

VI-A Gaussian processes

In this section, we simulate MIR and AMIR for two correlated Gaussian processes. For this purpose, we chose the following processes.

  • Xi𝒩(0, 1)similar-tosubscript𝑋𝑖𝒩01X_{i}\sim\mathcal{N}(0,\,1)italic_X start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ∼ caligraphic_N ( 0 , 1 )

  • Yi0.8Xi+0.6𝒩(0, 1)similar-tosubscript𝑌𝑖0.8subscript𝑋𝑖0.6𝒩01Y_{i}\sim 0.8X_{i}+0.6\mathcal{N}(0,\,1)italic_Y start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ∼ 0.8 italic_X start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT + 0.6 caligraphic_N ( 0 , 1 )

It can be checked that as the variables in these processes are i.i.d, they satisfy the conditions of Corollary 5, and MIR and AMIR are equal for these two processes. Additionally, both MIR and AMIR are simply equal to the mutual information of a pair of these random variables, which can be calculated as below.

I(Xi,Yi)=H(Yi)H(Yi|Xi)=H(𝒩(0, 1))H(𝒩(0, 0.36))=0.5log10.36𝐼subscript𝑋𝑖subscript𝑌𝑖𝐻subscript𝑌𝑖𝐻conditionalsubscript𝑌𝑖subscript𝑋𝑖𝐻𝒩01𝐻𝒩00.360.510.36\begin{split}I(X_{i},Y_{i})&=H(Y_{i})-H(Y_{i}|X_{i})\\ &=H(\mathcal{N}(0,\,1))-H(\mathcal{N}(0,\,0.36))\\ &=0.5\log\frac{1}{0.36}\end{split}start_ROW start_CELL italic_I ( italic_X start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) end_CELL start_CELL = italic_H ( italic_Y start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) - italic_H ( italic_Y start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL = italic_H ( caligraphic_N ( 0 , 1 ) ) - italic_H ( caligraphic_N ( 0 , 0.36 ) ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL = 0.5 roman_log divide start_ARG 1 end_ARG start_ARG 0.36 end_ARG end_CELL end_ROW (17)

Fig. 2 shows the result of this simulation for estimating MIR and AMIR. Fig. 2(a) shows the estimate for MIR and AMIR as the sequence grows large, alongside the actual calculated value for the mutual information. Fig. 2(b) shows the error in the estimate as the difference between the estimated values for MIR and AMIR with the actual value. It can be seen that even though AMIR shows more fluctuations, it is faster in converging to the theoretical limit. This is in accordance with our predictions about the behaviour of AMIR.

Refer to caption
(a) The estimations for MIR and AMIR
Refer to caption
(b) Error in the convergence of MIR and AMIR
Figure 2: Estimating MIR and AMIR

VI-B Hidden Markov Model

In this section, we created and simulated a two state Hidden Markov Model (HMM) (X,Y)𝑋𝑌(X,Y)( italic_X , italic_Y ) with the following properties.

{𝐙X=[0.80.20.40.6]p(Yi|Xi)=[0.70.30.30.7]casessubscript𝐙𝑋matrix0.80.20.40.6otherwise𝑝conditionalsubscript𝑌𝑖subscript𝑋𝑖matrix0.70.30.30.7otherwise\begin{cases}\mathbf{Z}_{X}=\begin{bmatrix}0.8&0.2\\ 0.4&0.6\end{bmatrix}\\ p(Y_{i}|X_{i})=\begin{bmatrix}0.7&0.3\\ 0.3&0.7\end{bmatrix}\end{cases}{ start_ROW start_CELL bold_Z start_POSTSUBSCRIPT italic_X end_POSTSUBSCRIPT = [ start_ARG start_ROW start_CELL 0.8 end_CELL start_CELL 0.2 end_CELL end_ROW start_ROW start_CELL 0.4 end_CELL start_CELL 0.6 end_CELL end_ROW end_ARG ] end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL italic_p ( italic_Y start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) = [ start_ARG start_ROW start_CELL 0.7 end_CELL start_CELL 0.3 end_CELL end_ROW start_ROW start_CELL 0.3 end_CELL start_CELL 0.7 end_CELL end_ROW end_ARG ] end_CELL start_CELL end_CELL end_ROW (18)

Firstly, it must be noted that this pair of stationary processes does not satisfy the conditions of Corollary 5. This is because it can be checked that Yisubscript𝑌𝑖Y_{i}italic_Y start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT is not independent from Xi1subscript𝑋𝑖1X_{i-1}italic_X start_POSTSUBSCRIPT italic_i - 1 end_POSTSUBSCRIPT. Therefore, we expect MIR and AMIR to be different for this pair of processes. Based on the parameters given in Eq. 18, the values for MIR and AMIR can be calculated, and have the following values.

{MIR(X;Y)=0.1035 bitsAMIR(X;Y)=0.0892 bitscasesMIR𝑋𝑌0.1035 bitsotherwiseAMIR𝑋𝑌0.0892 bitsotherwise\begin{cases}\text{MIR}(X;Y)=0.1035\text{ bits}\\ \text{AMIR}(X;Y)=0.0892\text{ bits}\\ \end{cases}{ start_ROW start_CELL MIR ( italic_X ; italic_Y ) = 0.1035 bits end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL AMIR ( italic_X ; italic_Y ) = 0.0892 bits end_CELL start_CELL end_CELL end_ROW (19)

We then ran the simulation for one random instance of the HMM with a length of 4000, in order to estimate the value for AMIR using its definition. The results of this simulation are illustrated in Fig. 3. The first thing that can be observed is the fact that the estimated AMIR is clearly tending towards its theoretical limit, as proven in Theorem 3. Secondly, it can be seen that as stated in Corollary 4, the value for AMIR is less than MIR. Ultimately, this result is showcasing one of the main advantages of AMIR, which is that it can be estimated from having a single sequence from both processes. However, to estimate MIR from observed data, we are in need of numerous instances of both sequences.

Refer to caption
Figure 3: Estimating AMIR of an HMM

VII Application of Network Evolution Chains to temporal GNNs

It can be seen that due to the similarities between the concepts of MIR and entropy rate, Network Evolution Chains [12] can be used to simulate the sequence of input graphs, and the information-theoretic analysis done in [12] can be employed to study temporal GNNs. Using Network Evolution Chains to model the input sequence of graphs will impose a Markov chain assumption on the input, which will result in the following simplification for MIR.

MIR=limnI(Xn;Yn|Xn1,Yn1)MIRsubscript𝑛𝐼subscript𝑋𝑛conditionalsubscript𝑌𝑛subscript𝑋𝑛1subscript𝑌𝑛1\textrm{MIR}=\lim_{n\to\infty}I\left(X_{n};Y_{n}|X_{n-1},Y_{n-1}\right)MIR = roman_lim start_POSTSUBSCRIPT italic_n → ∞ end_POSTSUBSCRIPT italic_I ( italic_X start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT ; italic_Y start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT | italic_X start_POSTSUBSCRIPT italic_n - 1 end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT italic_n - 1 end_POSTSUBSCRIPT ) (20)

Additionally, there are parallels to all the concepts discussed in [12] in terms of MIR. For instance, an equivalent of the AEP can be stated for MIR in the following format.

1nlogp(X1:n,Y1:n)p(X1:n)p(Y1:n)MIR(X;Y)with probability 11𝑛𝑝subscript𝑋:1𝑛subscript𝑌:1𝑛𝑝subscript𝑋:1𝑛𝑝subscript𝑌:1𝑛MIR𝑋𝑌with probability 1\frac{1}{n}\log\frac{p(X_{1:n},Y_{1:n})}{p(X_{1:n})p(Y_{1:n})}\rightarrow\text% {MIR}(X;Y)\quad\text{with probability 1}divide start_ARG 1 end_ARG start_ARG italic_n end_ARG roman_log divide start_ARG italic_p ( italic_X start_POSTSUBSCRIPT 1 : italic_n end_POSTSUBSCRIPT , italic_Y start_POSTSUBSCRIPT 1 : italic_n end_POSTSUBSCRIPT ) end_ARG start_ARG italic_p ( italic_X start_POSTSUBSCRIPT 1 : italic_n end_POSTSUBSCRIPT ) italic_p ( italic_Y start_POSTSUBSCRIPT 1 : italic_n end_POSTSUBSCRIPT ) end_ARG → MIR ( italic_X ; italic_Y ) with probability 1 (21)

The proof for Eq. 21 can be done in a similar way to the original AEP, which can be found in [7, Thm. 16.8.1].

If the input graphs to a temporal GNN are modeled using an NEC, then it satisfies the conditions for the AEP for MIR. Additionally, as the relative version of MIR, AMIR can be used to calculate the MIR of the process, just like the approach done in [12]. This then gives rise to the extension of all the concepts discussed in [12] in the context of temporal GNNs and MIR. This goes beyond the scope of this paper, and is left as a future work on this subject.

VIII Conclusion

In this paper, we provided the information-theoretic fundamentals of the analysis of temporal GNNs. After emphasizing on the importance and relevance of GNNs, we argued why there has recently been a lot of research on the temporal analysis of such networks. Because of the lack of a theoretical framework for analysing temporal GNNs, we introduced an information-theoretic methodology to assess the performance of temporal GNNs. Finally, we argued why simulating the temporal evolution of graphs using NECs can further improve the benefits of the introduced model, and expand its applications.

Acknowledgment

For the purpose of open access, the author has applied a creative commons attribution (CC BY) licence (where permitted by UKRI, ‘open government licence’ or ‘creative commons attribution no-derivatives (CC BY-ND) licence’ may be stated instead) to any author accepted manuscript version arising.

I would like to thank Professor Justin Coon and Dr. Mihai-Alin Badiu for their invaluable help and support with this project.

References

  • [1] F. Scarselli, M. Gori, A. C. Tsoi, M. Hagenbuchner, and G. Monfardini, “The graph neural network model,” IEEE transactions on neural networks, vol. 20, no. 1, pp. 61–80, 2008.
  • [2] L. Wu, P. Cui, J. Pei, and L. Zhao, Graph Neural Networks: Foundations, Frontiers, and Applications. Singapore: Springer Singapore, 2022.
  • [3] S. M. Kazemi, R. Goel, K. Jain, I. Kobyzev, A. Sethi, P. Forsyth, and P. Poupart, “Representation learning for dynamic graphs: A survey,” The Journal of Machine Learning Research, vol. 21, no. 1, pp. 2648–2720, 2020.
  • [4] E. Rossi, B. Chamberlain, F. Frasca, D. Eynard, F. Monti, and M. Bronstein, “Temporal graph networks for deep learning on dynamic graphs,” arXiv preprint arXiv:2006.10637, 2020.
  • [5] Z. Goldfeld and Y. Polyanskiy, “The information bottleneck problem and its applications in machine learning,” IEEE Journal on Selected Areas in Information Theory, vol. 1, no. 1, pp. 19–38, 2020.
  • [6] R. Shwartz-Ziv and N. Tishby, “Opening the black box of deep neural networks via information,” arXiv preprint arXiv:1703.00810, 2017.
  • [7] T. M. Cover and J. A. Thomas, Elements of Information Theory (Wiley Series in Telecommunications and Signal Processing). USA: Wiley-Interscience, 2006.
  • [8] R. Gray and J. Kieffer, “Mutual information rate, distortion, and quantization in metric spaces,” IEEE Transactions on Information Theory, vol. 26, no. 4, pp. 412–422, 1980.
  • [9] A. Kraskov, H. Stögbauer, and P. Grassberger, “Estimating mutual information,” Physical review E, vol. 69, no. 6, p. 066138, 2004.
  • [10] N. Carrara and J. Ernst, “On the estimation of mutual information,” in Proceedings, vol. 33, p. 31, MDPI AG, 2020.
  • [11] L. M. Costa, J. Colaço, A. M. Carvalho, S. Vinga, and A. S. Teixeira, “Using Markov chains and temporal alignment to identify clinical patterns in Dementia,” Journal of Biomedical Informatics, vol. 140, p. 104328, 2023.
  • [12] A. Farzaneh and J. P. Coon, “An information theory approach to network evolution models,” Journal of Complex Networks, vol. 10, no. 3, p. cnac020, 2022.