GRAND
++
: G RAPH N EURAL D IFFUSION WITH
A
S OURCE T ERM
Anonymous authors
Paper under double-blind review
A BSTRACT
We propose GRAph Neural Diffusion with a source term (GRAND++) for graph deep learning with a limited number of labeled nodes, i.e., low-labeling rate.
GRAND++ is a class of continuous-depth graph deep learning architectures whose theoretical underpinning is the diffusion process on graphs with a source term.
The source term guarantees two interesting theoretical properties of GRAND++: (i) the representation of graph nodes, under the dynamics of GRAND++, will not converge to a constant vector over all nodes even as the time goes to inﬁnity, which mitigates the over-smoothing issue of graph neural networks and enables graph learning in very deep architectures.
(ii) GRAND++ can provide accurate classiﬁcation even when the model is trained with a very limited number of labeled training data.
We experimentally verify the above two advantages on various graph deep learning benchmark tasks, showing a signiﬁcant improvement over many existing graph neural networks.
I NTRODUCTION
Graph neural networks (GNNs) are the backbone for deep learning on graphs.
Recent GNN architectures include graph convolutional networks (GCNs) [30], ChebyNet [16], GraphSAGE [29], neural graph ﬁngerprints [20], message passing neural networks [28], and graph attention networks (GATs) [54].
These graph deep networks have achieved success in many applications, including computational physics and computational chemistry [20, 28, 3], recommender systems [41, 60], and social networks [61, 47].
Hyperbolic GNNs have also been proposed to enable certain kinds of data embedding with much smaller distortion [11, 37].
See [6] for some recent advances of GNN algorithm development and applications.
A well-known problem of GNNs is that increasing the depth of GNNs often results in a signiﬁcant drop in performance on various graph learning tasks.
This performance degradation has been widely interpreted as the over-smoothing issue of GNNs [35, 44, 12].
Intuitively, GNN layers update the node representation by taking a weighted average of its neighbors’ features, making representations for neighboring nodes to be similar.
As the GNN architecture gets deeper, all nodes’ representation will become indistinguishable resulting in over-smoothing.
In Sec. 2, we brieﬂy show that certain GNNs have a diffusive nature which makes over-smoothing inevitable.
Another interesting interpretation of the GNN performance degradation is via a bottleneck [1], since a GNN tends to represent exponentially growing information from neighbors with ﬁxed-size vectors.
Several algorithms have been proposed to mitigate the over-smoothing of GNNs, including skip connection and dilated convolution [33], Jumping Knowledge [58], DropEdge [49], PairNorm [62], graph neural diffusion (GRAND) [10], and wave equation motivated GNNs [21].
Nevertheless, developing deep
GNN architectures is still in its infancy compared to the development of other deep networks.
Besides suffering from over-smoothing, we notice that the accuracy of existing GNNs drops severely when they are trained with a limited labeled data.
As illustrated in Fig.
1, the test accuracy of several celebrated GNN architectures, including GCN, GAT, and GraphSage, drops rapidly when they are trained with fewer labeled data.
Moreover, the variance of classiﬁcation accuracy grows signiﬁcantly as number of labeled nodes drops.
Indeed, semi-supervised graph learning with very low-labeling rates has been studied in the Laplace learning and graph deep learning settings, see, e.g., [36, 9, 23]; one question is can we develop new GNN architectures to improve the performance of graph deep learning in low-labeling rate regimes?
[Figure]
1. O UR CONTRIBUTION
With the above GNN problems in mind [Figure] we focus on developing new continuous-depth GNNs to overcome over-smoothing and boost the accuracy of GNNs with a limited number of labeled data.
We ﬁrst present a random walk interpretation of the GRAND model [10], revealing a potentially inevitable over-smoothing phenomenon when GRAND is implicitly very deep.
Based on the random walk viewpoint of GRAND, we then propose graph neural diffusion with a source term (GRAND++) that corrects the bias arising from the diffusion process, see Sec.
5 for details.
GRAND++ theoretically guarantees that: (i) under GRAND++ dynamics, the graph node features do not converge to a constant vector over all nodes even as the time goes to inﬁnity [Figure] and (ii) GRAND++ can provide accurate prediction even when it is trained with a limited number of labeled nodes.
Moreover, these theoretical results resonate with the practical advantages of GRAND++.
We summarize the major practical advantages of GRAND++ below.
• GRAND++ can effectively overcome the over-smoothing issue; it is remarkably more accurate than existing GNNs when the architecture is very deep.
• GRAND++ is suitable for graph deep learning when only a few nodes are labeled as training data.
Moreover, in the low-labeling rates, GRAND++ can be more accurate when the network is deeper.
• GRAND++ inherits the continuous-depth merit from GRAND, which deﬁnes the network depth implicitly and enables memory-efﬁcient training by using the adjoint method.
1. R ELATED WORK
Diffusion on graphs and continuous-depth graph neural networks.
Diffusion has been deﬁned on graphs, see, e.g., [25, 24], and used in various applications, including data clustering and dimension reduction [15, 4], image processing [27, 22, 17, 38], and semi-supervised graph nodes classiﬁcation [65, 63].
From the numerical viewpoint, fast algorithms have been proposed for using diffusion on graphs to solve penalized graph cut problems [26].
The connection between GNNs and diffusion on graphs has been studied substantially.
For instance, GNN has been interpreted as a diffusion process on graphs, which performs low-pass ﬁltering on the input features [43].
Moreover, insights from the diffusion process on graphs have been used to improve the performance of GNNs, see, e.g., [2, 36, 31, 56].
Leveraging neural ordinary differential equations (ODEs) [13], continuous-depth GNNs have been proposed, see, e.g., [45, 57, 66].
One recent work is GRAND [10], which parameterizes the diffusion equation on graphs with a neural network.
See Sec.
3 for a brief review of GRAND.
Neural ODEs.
Neural ODEs [13] are a class of continuous-depth neural networks whose depth is deﬁned implicitly.
Training neural ODEs using the adjoint method [46] is more memory efﬁcient than training other neural networks using backpropagation.
We provide a brief review of neural
ODEs and the adjoint method in Appendix C. GRANDs [10] are a class of neural partial differential equations (PDEs) on graphs that can also be considered as a coupled system of neural ODEs.
Furthermore, GRANDs are also trained by using the adjoint method.
Laplace learning and Poisson learning.
Laplace learning has been used for semi-supervised data classiﬁcation [65, 63, 55], image processing [7, 27], etc.
Direct application of Laplace learning with Gaussian weights [5] or locally linear embedding weights [50] for the above tasks may cause inference inconsistency when only a limited number of graph nodes are labeled, resulting in poor performance.
Several algorithms address the inference inconsistency at low labeling rate.
They include up-weighting the weights of the labeled data [52] and the p -Laplacian [8, 48, 64].
In [9], the authors have proposed Poisson learning for improving Laplace learning at extremely low-labeling rate regimes.
Poisson learning augments Laplace learning with a Green’s function at each labeled data, enabling accurate node classiﬁcation when only a few labeled data are available.
Compared to
Laplace learning, Poisson learning adds Green’s function to the label of each labeled node and then performs label propagation to predict the label for unlabeled graph nodes.
GRAND and GRAND++ both learn graph node representations and perform prediction by activating the node representations, which are fundamentally different from Laplace and Poisson learning.
1. N OTATION
We denote scalars by lower- or upper-case letters and vectors and matrices by lower- and upper-case boldface letters, respectively.
For a matrix A , we denote its transpose as A (cid:62) and its Hadamard product with another matrix B as A (cid:12) B , i.e., the entrywise multiplication of A and B .
We write the set { 1 , 2 , · · · , n } as [ n ] .
We denote the probability and expectation of a given random variable x as P ( x ) and E [ x ] , respectively.
The meaning of other notations can be inferred from the context.
1. O RGANIZATION
The paper is organized as follows:
In Sec. 2, we review diffusion equation on graphs and its connection to GNNs. In Secs.
3 and 4, we brieﬂy review GRAND and present a random walk interpretation of GRAND, respectively.
Leveraging the random walk viewpoint of GRAND, we propose GRAND++ for deep graph learning with theoretical guarantees in Sec. 5.
We verify the efﬁcacy of GRAND++ in Sec. 6.
Technical proofs and more validations are provided in the appendix.
B ACKGROUND
Diffusion equation on graphs.
Let G =
( X , W ) represent an undirected graph with n nodes, where X = (cid:0)
[ x (1) ] (cid:62) , · · · , [ x ( n ) ] (cid:62) (cid:1) (cid:62) ∈ R n × d with each row x ( i ) ∈
R d a feature vector and
W := (cid:0) W ij (cid:1) a n × n matrix with W ij representing the similarity (edge weight) between the i th and j th feature vectors, and we assume W ij =
W ji .
Consider the following diffusion process that evolves the feature matrix X on the graph (see Appendix A for a brief review of calculus on graphs):
[Equation]
where X ( t ) =
(cid:0)
[ x (1) ( t )] (cid:62) , · · · , [ x ( n ) ( t )] (cid:62) (cid:1) (cid:62) ∈ R n × d with x ( i ) (0)
=
x ( i ) , ∇ and div are the gradient and divergence operators, respectively.
The matrix G ( X ( t ) , t ) is chosen such that W (cid:12) G is right-stochastic, i.e., each row of W (cid:12) G summing to 1 .
In the machine learning setting, we can parameterize G with learnable parameters θ which we denote by G ( X ( t ) , t, θ ) .
The initial features are evolved under the diffusion dynamics (1) from t = 0 to T to learn the ﬁnal representation X ( T ) for further machine learning tasks.
In the simplest case when G ( X ( t ) , t ) is only dependent on the initial node features X , i.e., G is time-independent, right-stochasticity implies (cid:80) j W ij G ij = 1 for all i , and so we {+focus on the particular case when G ij = 
+}
/d i with d i = (cid:80) nj =1 W ij .
In this case the right-hand side of (1) reduces to the negative of the random-walk Laplacian applied to X ( t ) and (1) becomes
[Equation]
where L = I − D − 1 W := I − A ( A :=
A ( X ) ) is the random walk Laplacian and D is diagonal with D ii =
d i .
See [14, 25, 24] for more about random walk Laplacian and diffusion on graphs.
Graph neural networks.
Applying forward Euler discretization, with step size δ t < 1 , of (2) gives
X [Equation]
, for k = 1 , 2 , · [Equation] K
[Equation]
T =
Kδ t , and X (0) =
X .
Note that the matrix ˜ L is the discretization of the diffusion operator, which is a special low-pass ﬁlter.
Equation (3) is a prototype for motivating GNNs: by introducing weights
W ( k ) ∈ R d × d and a nonlinearity σ , e.g., ReLU, into (3), we have
[Equation]
The model in (4) is similar to the well-established GCN architecture proposed in [30].
The diffusive nature of the GNN architecture in (4) further explains the over-smoothing issue of training deep
GNNs; the deeper the network architecture is, the more the node features diffuse.
Eventually, all nodes share similar features and become indistinguishable.
See Sec.
5 for a detailed analysis.
A B RIEF R EVIEW OF GRAND
GRAND is a new continuous-depth GNN proposed in [10].
It integrates a learnable encoder function φ and a learnable decoder function ψ with the neural network parameterized graph diffusion process, resulting in the prediction Y = ψ ( X ( T )) , where X ( T ) is computed as
[Equation]
where ∂ X ( t ) /∂t is given by the graph diffusion equation (2).
From the neural ODE perspective, we can perform forward propagation of GRAND, i.e., we solve (5), using numerical ODE solvers.
In the simplest case, when G is only dependent on the initial node features, we can rewrite (1) as
[Equation]
GRAND
[Table] attention function include the ones proposed in [53, 54].
More precisely, in GRAND
A ( X ) = 1 h (cid:80) {+hl =
+}
A l ( X ) with h being the number of heads and the attention matrix
A l ( X ) =
( a l ( x i , x j )) , for l = 1 , · · · , h , is computed as follows:
[Equation]
where W l and a l are learned, (cid:107) is the concatenation operator, and N i is the index set of the nodes that are connected to the i th node in the graph.
GRAND with the attention in (7) is called GRAND-l, that is, GRAND-l is a special case of GRAND when the diffusivity is dependent only on the initial graph node features.
Time-dependent attention and graph rewiring can be integrated into GRAND, resulting in GRAND-nl and GRAND-nl-rw, respectively [10].
From the ODE viewpoint, GRAND and its variants are a class of coupled neural ODEs deﬁned on an unweighted graph.
Their merits include continuous-depth and memory-efﬁcient training using the adjoint method [46, 13].
R ANDOM WALK VIEWPOINT OF GRAND
In this section, we present a random walk interpretation of GRAND.
The connection between graph random walks and the diffusion equation has been extensively studied, but we recap the key idea here to motivate the new GRAND with a source term architecture.
Let { B ( i ) ( k ) } k ∈
N
be the random walk on { x ( j ) (0) } nj =1 deﬁned by, for δ t ∈ [0 , 1] ,
[Equation]
where d j = (cid:80) n(cid:96)
=1 W j(cid:96) (assume W (cid:96)(cid:96)
=
for all (cid:96) ).
Proposition 1 below is well-known, see [65].
We provide the proof of Proposition 1 and all the subsequent theoretical results in Appendix B.
Proposition 1 Let X solve (3) and B ( i ) be the random walk determined by (8) where δ t ∈ [0 , 1] .
Then
[Equation]
Proposition 2 below gives the stationary distribution of the random walk { B ( i ) ( k ) } k ∈ N .
Proposition 2 Assume the graph G =
( X , W ) is connected.
Then, the stationary distribution of { B ( i ) ( k ) } k ∈ N is
[Equation]
which is independent of the starting position x ( i ) .
Furthermore, we have the following theoretical result on the asymptotic behavior of graph node features under the GRAND dynamics given by (3).
Proposition 3 Assume the graph G =
( X , W ) is connected.
Then for all i = 1 , · · · , n , we have
[Equation]
Hence, for the case of (3), i.e., GRAND-l, we expect the output to be approximately independent of the input, due to over-smoothing.
Of course, once we reintroduce the X ( t ) dependence back into G in (1) and (2) or into the operator A in (6) then the above arguments no longer hold.
Nevertheless, the GRAND architectures are built on a principle that is ill-suited to deep networks.
In the next section we introduce a source term and perform a similar random walk analysis that illustrates how the new architecture can be better suited for deep GNN architectures.
GRAND++: G RAPH N EURAL D IFFUSION WITH A S OURCE T ERM 5. A LGORITHM AND FORMULATION
At the core of GRAND++ is the introduction of a source term into GRAND, leveraging the random walk viewpoint of the diffusion process.
We take a small subset of feature vectors, indexed by
I ⊆
[ n ] , believed to be “trustworthy” for use as a source term.
In particular, we use the features of labeled data.
The GRAND++ dynamics are deﬁned by a diffusion equation with a source term (we use the variable z for GRAND++-related dynamics and x for GRAND dynamics)
[Equation]
where C j is the source at feature vector of node j .
Below we motivate a particular choice of C j .
The key idea is to ﬁrst characterise the bias that arises from the diffusion and use that to propose a correction via the choice of source terms C j .
Following the simpliﬁcations in (2), our diffusion equation (without the source term) follows the approximate dynamics when t (cid:29)
[Equation]
For i ∈ I , it transpires that choosing C i =
[-z ( i ) ( t ) ∂t ≈ 
 so that our trustworthy feature vectors are approximately ﬁxed. This implies that we choose C i =-] x ( i ) − ˆ x (where ˆ x is deﬁned below) gives rise to a random walk interpretation that allows us to prove that the oversmoothing seen in the GRAND model is avoided.
One can in fact choose (cid:101) x with a certain degree of freedom.
If we initialise X (0)
=
X then we obtain (cid:101) x
= (cid:80) n j =1 x ( j ) π j (as is usual in the GRAND model).
However, as the similarities are encoded in the graph weights, and the diffusion dynamics will drive it towards a non-trivial state, we can choose a different initialization than X (0) =
X .
Through connections with random walks we, in the next subsection, motivate an alternative initialisation
[Equation]
i ∈I
[Equation]
d i , where ˆ x = 1 |I| (cid:88)
j ∈I x ( j
[Equation]
with the dynamics
[Equation]
For example, we could choose
[Equation]
where c = 1 n (cid:16) (cid:80)
[Equation]
=1 x ( i ) − (cid:80) j ∈I x ( j ) − ˆ x [Equation]
j (cid:17) is chosen such that (11) holds.
We do not believe that the constant c (that shifts by a constant) is particularly important but it is included to provide a random walk interpretation which helps to understand the deep architecture (when T is big) behaviour of the model GRAND++.
The justiﬁcation for this choice will be made in Sec.
To summarize, the
GRAND++ model in (12), with initial condition satisfying (11), simply adds a source term to the original GRAND model and uses a different initial condition.
Therefore, the nonlinear diffusivity and graph rewiring tricks used by GRAND can be easily integrated into GRAND++.
In terms of implementation, since GRAND++ merely changes the right-hand side of GRAND, which again can be regarded as a system of coupled ﬁrst-order neural ODEs; we can leverage neural ODE training, testing, and inference for GRAND++ similar to GRAND.
In the next subsection we explore the random walk connection of the above model, suggesting that building a graph neural network based on the diffusion with source model does not suffer from the same degeneracy as we observed in Sec. 4 and is therefore better suited to build deep GNNs.
In particular, we can write the diffusion with source model as the short time expected behaviour of a random walk and therefore we do not have the issue of reaching the stationary state (in other words passing the mixing time).
Our experiments in Sec.
6 suggest the formal motivation holds and we are able to design deep GNNs.
5. T HE RANDOM WALK PERSPECTIVE OF GRAND++
Let us continue to consider the simpliﬁed model in the previous subsection, i.e., assume the dynamics are governed by
[Equation]
) where the initial condition satisﬁes (11).
Using the forward Euler discretisation of the above dynamics we have
[Equation]
for k = 1 , 2 , . . .
, K where again T =
Kδ t .
We use the same random walk as that introduced in Sec. 4, i.e. the random walk deﬁned by (8), but we will now only consider random walks that are initialised on the nodes indexed by I .
Proposition 4 Let Z solve (14) with the initial condition satisfying (11) , and let B ( i ) be the random walk determined by (8) .
Then,
[Equation]
Remark
In the limit k → ∞ the term
[Equation]
is formally a function of the random walk at all times.
Whilst if k is very large (i [Equation] e. in comparison to the mixing time) we still have that
[Equation]
and on the other hand
[Equation]
From the deﬁnition of ˆ x we see that (15) and (16) are approximately equal.
And therefore we can understand E [ 1 d i (cid:80) j ∈I ˆ x 1 B ( j ) ( k )=
x ( i ) ] as the long time behaviour of E [ 1 d i (cid:80) j ∈I x ( j ) 1 B ( j ) ( k )=
x ( i ) ]
Very formally we can see that subtracting the long-time behaviour from the all-time behaviour leaves us with the short time behaviour.
This provides one explanation as to why we do not expect the deep layers to be determined by the stationary state of the random walk (at which point there is little dependence on the initial layers, causing the deep layers to be approximately constant).
Remark
The random walk interpretation
[Equation]
(17) can be considered to be dual to the random walk interpretation in Sec. 4: in Sec.
4 we released the random walker from the node of interest, whilst now we release the random walkers from nodes indexed by I and see how many of them hit the node of interest.
We note also that we do not require a lower bound on the size of the set I .
Indeed, if |I| is ﬁxed whilst one takes the number of feature vectors n → ∞ we still expect many properties of GRAND++, in particular Proposition 5 below, to hold.
This is due to the asymptotic well-posedness of the dual random walk in low labeling rates [9].
Proposition 3 reveals that in the simple setting of (2), GRAND converges to a constant when its depth goes to inﬁnity.
However, this is not true for GRAND++ since the graph node features will not converge to a constant vector driven by the GRAND++, as shown in Proposition 5 below.
Proposition 5 Assume the graph G =
( X , W ) is connected.
Then z ( i ) ( kδ t ) that was deﬁned in (14) does not converge to a constant vector as a function of i as k → ∞ .
That is, the node features will not become the same across graph nodes under the GRAND++ dynamics.
Remark 3 Proposition 5 guarantees GRAND++ is less likely to suffer from over-smoothing than
GRAND, and in particular it shows that we have a non-constant deep layer limit, i.e., as t → ∞ .
Analysing the limit is beyond the scope of the paper but we have seen one characterisation in
Proposition 4.
By construction we have ∂ z ( i ) ( t ) /∂t
≈ 0 for i ∈
I so one should expect that the deep layer limit is (close to) a smooth interpolation of the feature vectors labeled by I .
The continuous time model (10) is, in the special case of (13), the mean ﬁeld limit of the probabilistic formulation (17).
Our proposed algorithm is formulated from the mean-ﬁeld limit.
E XPERIMENTS
In this section, we compare the performance of GRAND++ with GRAND and several other popular GNNs on various graph node classiﬁcation tasks.
We aim to show the practical advantages of
GRAND++ in learning with limited labeled data and using deep architectures.
Without mentioning clearly, we use the same hyperparameters that that used for GRAND in [10] for GRAND++.
We provide detailed descriptions of experimental settings and datasets that are omitted in the main text in Appendix D.1.
For all experiments, we run 100 splits for each dataset with 20 random seeds for each split, which are conducted on a server with four NVIDIA RTX 3090 graphics cards.
We compare the performance of GRAND++ and its nonlinear and graph rewiring variants with several popular GNNs on various graph node classiﬁcation benchmarks.
Except for the integration time, which measures the implicit depth of GRAND and GRAND++, we adopt the experimental settings of GRAND in [10] for GRAND++ include numerical differential equation solvers.
Following [10], we study seven graph node classiﬁcation datasets, namely CORA, CiteSeer, PubMed, CoauthorCS,
Computer, Photo, and ogbn-arxiv; we describe these datasets in Appendix D.1.
6. GRAND++ IS MORE RESILIENT TO DEEP ARCHITECTURES
We ﬁrst show that our introduced source term in (12) can improve the accuracy of GRAND-l when the architecture is deep, i.e., the integration time T in (5) is big.
We denote GRAND-l with the source term as GRAND++-l.
For each node classiﬁcation task, we train all models using the same number of labeled nodes as in [10].
Figure 2 contrasts the performance of GRAND-l and GRAND++-l with different depths, or T , on CORA, CiteSeer, Computer, and Photo datasets.
We provide the detailed results on PubMed and CoauthorCS, together with more comparisons of GRAND++-l with
GRAND-l and several other celebrated GNNs include GCN, GAT, and GraphSage in Table 5 in Appendix D.2.
The results in Fig.
2 and Appendix D.2 conﬁrm that GRAND-l suffers less from over-smoothing compared to GCN, GAT, and GraphSage.
Moreover, GRAND++-l performs on par with GRAND-l when the depth ( T ) of the network is small, but GRAND++-l signiﬁcantly outperforms GRAND-l when T is large.
As T increases, the margin becomes wider, indicating that GRAND++-l can overcome over-smoothing much more effectively than GRAND-l. Note that we did not use uniform depth for GRAND-l and GRAND++-l on all datasets because the adaptive step-size ODE solver fails when T is large for some tasks.
[Figure]
Next [Figure] we compare GRAND-l and GRAND++-l on the ogbn-arxiv node classiﬁcation task, which is a large-scale benchmark.
We train two models using labeling rates of 3.0% and 5.0%, respectively; the corresponding test accuracy for GRAND-l/GRAND++-l are 65.26%/66.64% and 67.42%/67.77%, respectively.
GRAND++-l outperforms GRAND-l in both labeling rates.
We further compare GRAND and GRAND++ with different depth on the ogbn-arxiv task in Appendix D.
[Figure]
6. GRAND++ IS MORE ACCURATE WITH LIMITED LABELED TRAINING DATA
[Figure]
Besides helping to overcome over-smoothing, our theory shows that the source term can boost the accuracy of GRAND-l with lowlabeling rates.
Table 1 compares the accuracy of GRAND++-l with GRAND-l, GCN, GAT, GraphSage [Figure] and MoNet, trained with different numbers of labeled data.
Here, we slightly tune T for GRAND++ based on the optimal value for GRAND, see Table 4 in the Appendix for their values. We see that with few labeled data, in most tasks GRAND++-l is signiﬁcantly more accurate than the other GNNs include GRANDl, conﬁrming our theoretical insight.
For CoauthorCS task, both GRAND-l and GRAND++-l are worse than GCN and GraphSage.
Moreover, increasing the depth of GRAND++-l can improve the classiﬁcation accuracy with limited training data, but this is not the case for GRAND-l, see Fig. We perform the t-test in Appendix D.5 to conﬁrm the statistical signiﬁcance of the accuracy gain of GRAND++ over GRAND in Table 1.
6. T IME - DEPENDENT ATTENTION AND GRAPH REWIRING
The previous experimental results show that GRAND++-l enhances the accuracy of GRAND-l in the cases when the labeled training data is limited and when the network is deep.
Here, we explore the same strategy for GRAND-nl and GRAND-nl-rw; we name the corresponding models with the new source term GRAND++-nl and GRAND++-nl-rw, respectively.
Table 2 compares GRAND-nl and
[Table]
GRAND-nl-rw with the corresponding model with a source term.
We see that overall GRAND++-nl (GRAND++-nl-rw) outperforms GRAND-nl (GRAND-nl-rw) when the network is deep, i [Table] e., T is big.
We further study the low-labeling rate regimes in Appendix D.
[Table]
C ONCLUDING R EMARKS
We propose GRAND++, which augments graph neural diffusion with a source term.
We present some theory that connects the model to a random walk formulation on graphs.
GRAND++ outperforms many existing GNNs for graph deep learning with very deep architectures and when the number of labeled data is limited.
GRAND++ can be regarded as coupled ODE system in which each ODE has an external force term.
As such, it is natural to consider if advanced techniques in accelerating training, test, and inference of neural ODEs can be leveraged to improve the efﬁciency and accuracy of GRAND++, in particular high-order neural ODEs [19, 59, 42].
It is interesting to note that the second-order neural ODE can be connected to the wave equation in the graph setting, which can automatically bypass over-smoothing.
We leave studying the second-order neural ODE on graphs as future work.
A B ACKGROUND ON G RAPH D IFFERENTIAL O PERATORS
Let ( X , W ) represent a graph where X =
([ x (1) ] (cid:62) , . .
, [ x ( n ) ] (cid:62) ) (cid:62) ∈ R n × d is the matrix where each row x ( i ) ∈
R d is a feature vector and W =
( W ij ) ni,j =1 is a n × n matrix with W ij representing the similarity (edge weight) between the i th and j th feature vector.
We assume that we are dealing with an undirected graph, i.e., W ij = W ji .
A R k 1 -valued function on the nodes of the graph can be represented as a matrix U ∈ R n × k 1 by U =
([ u (1) ] (cid:62) , . . .
, [ u ( n ) ] (cid:62) ) (cid:62) and we deﬁne the inner product (cid:104) U , V (cid:105) = n (cid:88) i = u ( i ) · v ( i ) .
Similarly, a R k 2 -valued function on the edges can be represented as a third-order tensor U ∈ R n × n × k 2 which we write as
U =  
 U (1 , 1) · · ·
U (1 ,n ) .. . U ( n, 1) · · ·
U ( n,n ) 
  and U ( i,j
) ∈ R
k 2 .
On edge functions we use the inner product (cid:104)U , V(cid:105)
= 1n (cid:88) i,j =
W ij U ( i,j ) · V ( i,j ) .
Multiplication between a matrix and an edge function is usually deﬁned pointwise and we use the notation [ A (cid:12) U ] ( i,j ) =
A ij U ( i,j
) ∈ R
k 2 , for a matrix A ∈ R n × n and an edge function U ∈
R n × n × k 2 , to make this clear.
Similarly, pointwise multiplication between two matrices A , B ∈ R n × n is deﬁned by [ A (cid:12) B ] ij =
A ij B ij ∈ R .
When a matrix is acting as a linear operator on a node function we use the usual matrix-vector notation and write [ AU ] ( i ) = (cid:80) nj =
A ij u ( j ) ∈ R kfor a matrix
A ∈ R n × n and node function U =
([ u (1) ] (cid:62) , . . .
, [ u ( n ) ] (cid:62) ) (cid:62) ∈ R n × k 1 .
In the sequel we will have k 1 = k 2 = d .
The gradient of a node-function U =
([ u (1) ] (cid:62) , . . .
, [ u ( n ) ] (cid:62) ) (cid:62) ∈ R n × d is deﬁned as the edgefunction ∇ U ∈ R n × n × d with [ ∇ U ] ( i,j )
=
u ( j ) − u
( i ) ∈ R d .
The divergence div V =
([[div V ] (1) ] (cid:62) , . . .
, [[div V ] ( n ) ] (cid:62) ) (cid:62) ∈ R n × d of an edge-function V ∈ R n × n × d is deﬁned as [div V ] ( i ) =
n (cid:88) j =
W ij V ( i,j ) for all i
= 1 , . .
. , n .
For anti-symmetric edge functions, i.e. V ( i,j ) =
−V ( j,i ) for all i, j , we have that the divergence is the negative adjoint to the gradient,
i.e.
(cid:104) div V , U (cid:105)
= −(cid:104)V , ∇ U (cid:105) .
B T ECHNICAL P ROOFS
Proof: [Proof of Proposition 1] For notational convenience let us assume that x ( i ) (0) =
x ( i ) . Clearly E
[Equation]
for all i = 1 , . . . , n .
Assume that
[Equation]
for all i = 1 , . . .
, n .
Then,
[Equation]
as required.
[Equation]
Proof: [Proof of Proposition 2] Let P = (cid:0) P ij (cid:1) ∈
R n × n be the probability transition kernel, so
[Equation]
We have n
[Equation]
as required.
[Equation]
Proof: [Proof of Proposition 3]
The proof follows from a simple application of Propositionsand 2.
Namely, for any i ∈ { 1 , . . . , n }
[Equation]
as k → ∞ .
[Equation]
Proof: [Proof of Proposition 4] Let
[Equation]
Notice that
E
[Equation]
=
[Equation]
=
[Equation] [Equation]
[Equation]
(cid:124) (cid:123)(cid:122)
[Equation]
+
[Equation]
(cid:88) s =
P
[Equation] [Equation]
[Equation]
( i ) (cid:17) =
δ ij + k (cid:88) s = n (cid:88) (cid:96) =
P (cid:16)
[Equation]
( j ) ( s ) =
x ( i )
[Equation]
( j ) ( s
[Equation]
[Equation]
x ( (cid:96) ) (cid:17) P (cid:16) B ( j ) ( s
[Equation]
=
x ( (cid:96) ) (cid:17)
=
δ ij +
[Equation]
(cid:88) s =
[Equation]
(cid:88) (cid:96) =
(cid:18) (
[Equation]
t )
[Equation]
(cid:96)i
[Equation]
(cid:96)i
[Equation]
(cid:96) (cid:19)
[Equation]
(cid:16)
[Equation]
( j ) ( s
[Equation]
[Equation]
x ( (cid:96) ) (cid:17)
=
δ ij
[Equation] [Equation]
t )
[Equation]
(cid:88) s =
P
[Equation]
( j ) (
[Equation] [Equation]
x ( i ) (cid:17) +
[Equation]
t n (cid:88) (cid:96) =
[Equation]
(cid:96)i
[Equation]
(cid:96)
[Equation]
(cid:88) s =
P (cid:16)
[Equation]
( j ) ( s − 1) =
x ( (cid:96) ) (cid:17)
=
δ ij + (1 − δ t ) k
[Equation]
P [Equation] = δ ij
[Equation]
From the deﬁnition of Y and the above recursive relationship we have y [Equation] +
[Equation]
W
[Equation]
d
[Equation]
j ∈I
[Equation]
Now we let
[Equation]
so that W satisﬁes
[Equation]
Hence, W ( k ) =
P k W (0) .
Since the stationary distribution of the random walk with transition kernel is π , we have lim k →∞ P k = 1 π (cid:62) .
Hence, as k → ∞ , w ( i ) ( k ) → (cid:80) nj =
π j w ( j ) (0)
=since w ( j ) (0)
=
by the choice in the initialisation of Z .
(cid:3)
Proof: [Proof of Proposition 5]
We prove the result by contradiction.
Assume that there exists z such that z ( i ) ( kδ t ) →
z for all i = 1 , . .
. , n as k → ∞ .
Then LZ ( kδ t ) → 0 .
Since we can write
[Equation]
then taking the limit k → ∞ implies
[Equation]
for all i, j which is clearly not true.
[Equation]
C N EURAL ODE S AND T RAINING N EURAL ODE S WITH A DJOINT M ETHOD
Neural ODEs [13] are a class of continuous-depth (-time) neural networks that are particularly suitable for learning complex dynamics from irregularly sampled sequential data, see, e.g., [13, 51, 19, 39, 42].
Mathematically, a neural ODE is the ﬁrst-order ODE:
[Equation]
(18) where f ( h ( t ) , t, θ
) ∈ R d is speciﬁed by a neural network parameterised by θ , e.g., a two-layer feedforward neural network.
Starting from the input h (0) , neural ODEs learn the representation and perform prediction by solving (18) from t = 0 to T using a numerical integrator with a given error tolerance, often with an adaptive step size solver (or adaptive solver for short) [18].
Solving (18) from t = 0 to T in a single pass with an adaptive solver requires evaluating f ( h ( t ) , t, θ ) at various timesteps, with computational complexity counted by the number of forward function evaluations (forward NFEs) [13].
The adjoint sensitivity method (or adjoint method) [46], is a memory-efﬁcient method for training neural ODEs.
We regard the output h ( T ) as the prediction and denote the loss between h ( T ) and the ground truth as L .
Let a ( t ) :
=
∂ L /∂ h ( t ) be the adjoint state, then we have (see [13, 46] for details)
[Equation]
(19) with a ( t ) satisfying the following adjoint ODE
[Equation]
(20) which is solved numerically from t =
T to 0 and also requires the evaluation of the right-hand side of (20) at various timestamps, and the backward NFEs measure the computational complexity.
D E XPERIMENTAL D ETAILS AND M ORE E XPERIMENTAL R ESULTS D. D ATASETS AND EXPERIMENTAL SETTINGS
Graph node classiﬁcation dataset.
Following [10], we consider the largest connected component of seven graph node classiﬁcation datasets, including CORA, CiteSeer, PubMed, coauthor graph
CoauthorCS, and Amazon co-purchasing graphs Computer and Photo, and a large scale ogbn-arxiv dataset.
For completeness, we list the number of classes, the number of features, and the number of nodes and edges of each dataset in Table 3.
More detailed information can be found in [10].
Depth of GRAND and GRAND++ for the results in Table 1.
Table 4 lists the ﬁne-tuned T for the results in Table 1.
Due to the limited time, we only search around the value of optimal T for
GRAND with grid spacing 0 .
[Table]
[Table]
D. C LASSIFICATION ACCURACY OF GNN S WITH DIFFERENT DEPTHS
In this subsection, we provide detailed numbers that correspond to Fig.
We further compare
GRAND++-l with several other GNN architectures, including GCN, GAT [Table] and GraphSage, with different depths on a few benchmark datasets.
Table 5 lists the classiﬁcation accuracy of GRAND++,
GRAND
[Table]
and three benchmark GNNs with different depths on six graph node classiﬁcation tasks.
Again
[Table]
we see that GRAND++ is better than the other GNN models when the networks are deep
[Table]
D. M ORE RESULTS ON TIME - DEPENDENT ATTENTION AND GRAPH REWIRING
We further explore the effects of the source term for GRAND-nl and GRAND-nl-rw in the lowlabeling rate regimes.
Table 6 compares GRAND-nl and GRAND-nl-rw with the corresponding model with a source term.
We see that GRAND-nl and GRAND-nl-rw are almost always worse than the vanilla GRAND-l, consistent with the results reported in [10].
GRAND++-nl and GRAND++- nl-rw cannot help learning at low labeling rates anymore.
However, when the labeling rates are not low, GRAND++-nl or GRAND++-nl-rw can outperform GRAND-nl and GRAND-nl-rw, even outperform GRAND++. [Table]
D. C LASSIFICATION ACCURACY OF GNN S WITH FEWER NUMBER OF TRAINING DATA
Besides the results shown in Fig.
[Table] we further test the classiﬁcation accuracy of more benchmark
GNN architectures trained with fewer numbers of labeled data per class.
Tables 7-9 list the classiﬁcation accuracy, on the test set, of different benchmark GNN models when they are trained with different numbers of labeled nodes per class [Table] [Table]
[Table]
D. T - TEST OF THE ACCURACY IMPROVEMENT OF GRAND++ OVER GRAND
To conﬁrm the statistical signiﬁcance of the accuracy improvement of GRAND++ over GRAND in
Table 1, in this subsection
[Table]
we conduct t-test experiments at 0.95 conﬁdence to compare GRAND and
GRAND++ on six different benchmark graph node classiﬁcation tasks.
We ﬁrst perform unpaired t-tests to show the improvement of GRAND++ over GRAND on low labeled datasets using the following t-score
[Equation]
[Table]
[Table]
where µ and σ 2 are the mean and variance of the performances of each model
[Table]
and n is the number of runs for each model.
The t-test score are shown in Table 10.
[Table]
For some entries in Table 10 that are not signiﬁcant enough we further conduct paired t-test between
GRAND++ and GRAND on these speciﬁc datasets as shown in Table 11.
Since a large portion of variance comes from splitting of the datasets we pair up tests of GRAND and GRAND++ with the same splitting in this experiment.
In this case
[Table]
a sample of difference of size n is computed and t-test score can be computed using the equation
[Equation]
[Table]
enough.
D. T ASKS FOR FURTHER EVALUATING DEEP GRAND AND GRAND++
Open graph benchmark with paper citation network (ogbn-arxiv).
Ogbn-arxiv consists of 169, 343 nodes and 1, 166, 243 directed edges.
Each node is an arxiv paper represented by a 128dimensional features and each directed edge indicates the citation direction.
This dataset is used for node property prediction and has been a popular benchmark to test the advantage of deep graph neural networks over shallow graph neural networks [34, 32].
Compared to the GRAND model used in [10], we reduce the hidden dimension from 162 to 81 to ﬁt the model into the GPU in our lab.
[Table]