Convergence of gradient based training for linear Graph Neural Networks

Dhiraj Patel1 • Anton Savostianov1 • Michael T. Schaub1

1Computational Network Science, RWTH Aachen University, Aachen, Germany {patel, savostianov, schaub}@cs.rwth-aachen.de

Abstract Graph Neural Networks (GNNs) are powerful tools for addressing learning problems on graph structures, with a wide range of applications in molecular biology and social networks. However, the theoretical foundations underlying their empirical performance are not well understood. In this article, we examine the convergence of gradient dynamics in the training of linear GNNs. Specifically, we prove that the gradient flow training of a linear GNN with mean squared loss converges to the global minimum at an exponential rate. The convergence rate depends explicitly on the initial weights and the graph shift operator, which we validate on synthetic datasets from well-known graph models and real-world datasets. Furthermore, we discuss the gradient flow that minimizes the total weights at the global minimum. In addition to the gradient flow, we study the convergence of linear GNNs under gradient descent training, an iterative scheme viewed as a discretization of gradient flow.

Acknowledgements: The authors acknowledge funding by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – Project number 442047500 through the Collaborative Research Center “Sparsity and Singular Structures” (SFB 1481).

1 Introduction

Deep learning methods have been extensively applied in many applications of the machine learning field, such as computer vision [1], speech recognition [2], and natural language processing [3]. It helps identify patterns from large and complex datasets. Gradient descent is a learning paradigm of deep neural networks, used to train the networks to optimize the prediction error and significantly enhance their accuracy. While deep neural networks have shown exceptional performance in many fields, the mathematical principles underlying their success are not well understood. In this paper, we study the mathematical properties of the optimization method for deep learning performance.

The mathematical study of learning deep networks focuses on the convergence of the gradient descent algorithm, which optimizes the prediction error of the network. Non-linear deep neural networks express complex and non-linear relationships within datasets; however, the optimization problem is challenging due to their non-convex architecture. On the contrary, linear neural networks are not ideal for modeling complex data in many machine learning applications due to their simple structure. However, the non-convex loss in linear deep neural networks makes the optimization problem non-trivial. In recent years, articles [4], [5], [6], [7], [8], [9] have explored important properties of gradient dynamics for linear deep neural networks and studied the optimization problem in that setting.

In order to train deep networks, data are usually collected from Euclidean domains in many applications [10], such as text mining, image classification, speech recognition, and stock price prediction. However, data structures generally have complex relationships and dependencies that can be embedded in non-Euclidean domains such as graphs. Deep learning on graphs can be used to detect communities [11], predict user preferences [12], and identify the properties of molecules [13]. Graph neural networks have been gaining attention for their applications in geometric deep learning.

Graph neural networks are primarily concerned with two types of learning tasks: graph classification tasks [14], [15] and node regression or classification tasks [16], [17]. In the applications, these tasks demonstrate exceptional results. For example, the graph classification task is applied to classify various chemical compounds [18], and the node regression task is used to perform traffic forecasting [19]. However, the mathematical aspects of GNNs to comprehend their accuracy and limitations are not well studied, even less so than those of classical deep learning methods. This raises the following questions: Under what conditions does the gradient descent training of GNNs converge to the global minimum? How do we control the speed of convergence in training? How do we minimize the total weight at the global minimum? In this article, we study the convergence analysis of the gradient descent training of linear GNN, particularly for the node regression problem.

Background and related works. The convergence of the gradient descent method for a convex objective function is well understood [20], [21]. In fact, all local minima of a convex objective function are global minima. However, a sub-optimal local minimum may exist for a non-convex objective function. As a consequence, finding the global minimum of a general non-convex function by gradient descent is NP-complete [22]. In order to ensure the convergence of gradient descent to the global optimum, it is necessary to assume some additional conditions on the network. Recent theoretical studies have proven the global optimal solution for gradient-based training of the neural networks with linear activation [4], [5], [6], [17], ReLU activation [23], [24], smooth activation [25], and Gaussian inputs [26], [27].

Several researchers have concentrated their study on the critical points of objective functions to investigate the optimal training loss [28], [29]. Lee et al. [29] show that gradient descent with a random initialization converges to the local minimum if the objective function satisfies the strict saddle point property. While a shallow network always satisfies the strict saddle point property, a deep network with more than two hidden layers probably fails to satisfy such a condition [8]. On the other hand, articles [4], [6], [7], [25], [30] focus on the initialization and the training data for the convergence of the gradient descent method in deep neural networks. In the linear deep neural network, Bartlett et al. [31] prove that the gradient descent algorithm with the square loss converges to the global minimum if the initial loss is sufficiently close to the global minimum. Later, Chatterjee [25] generalizes the result for non-linear deep neural networks. The articles [4], [6] study the convergence analysis of gradient flow under the balanced conditions of the initial weight matrix.

The convergence analysis in the context of graph neural networks has not been explored much. Xu et al. [17] consider a linear graph neural network model and show that the positive singular margin of the initial weights is sufficient to ensure the square loss converges to the global minimum. Indeed, the loss surface is devoid of any sub-optimal local minima [32]. Awasthi et al. [23] generalize this result for shallow GNNs with ReLU activation and examine the convergence of gradient descent training in a probabilistic framework. In particular, with Gaussian initialization, the gradient descent algorithm recovers the realizable data of the GNN architecture with high probability.

Contributions. We present a comprehensive study on the convergence of gradient descent training for linear graph neural networks. The key features of the article are as follows.

  • In a semi-supervised setting, we show that the mean square loss exponentially converges to its global minimum in a gradient flow training of linear GNNs. The convergence rate is proportional to the singular value of the initial weight matrices and the feature data embedded on graphs. Moreover, we discuss the gradient descent algorithm for linear GNN training.

  • The gradient flow training of linear GNN with respect to square loss converges to the global minimum, provided the initial weight parameters have a positive singular margin [17]. In practice, verifying such a condition for any given weight matrix is challenging. We study the convergence analysis of gradient dynamics in linear GNNs without such assumptions and provide an initialization that is free from the restriction on saddle points, imposed by singular margin assumption, and ensures convergence to the global minimum.

  • The convergence analysis of the gradient dynamics is discussed for deep neural networks, assuming the given data matrix is full rank [4], [6], [25], and in the context of GNN, the given feature matrix associated with the graph shift matrix is full rank [17], [23]. To the best of our knowledge, the convergence analysis of gradient-based training in deep neural networks associated with low-rank data has not been studied in the literature. In this article, we show that the convergence of the mean square loss to the global minimum depends on the smallest non-zero singular value of the product of the feature data and graph shift matrix.

  • Under the “nice" initialization, the gradient-based training converges to the global minimum of the loss surface. However, based on the GNN architecture, the loss surface might have infinitely many global minima. Minimizing the weights at the global minima reduces the computational complexity of the model and compresses the memory storage while the model remains consistent in terms of its accuracy and performance. In this context, we explore the properties of initialization, which leads the training process towards minimizing the loss and optimizing the weights.

Outline. The paper is organized as follows. Linear GNNs are defined in Section 2, which discusses the preliminary results of matrix theory and the mean square loss associated with linear GNN. Section 3 explores the convergence analysis of gradient flow training for linear GNN, while the optimization of the weights at the global minima of the loss surface is discussed in Section 4. The analogous results for the convergence of gradient flow in discrete time are addressed in Section 5. Finally, in Section 6, we validate the gradient dynamics on synthetic graph datasets and a real-world graph dataset, and we discuss the limitations of our result.

2 Preliminaries and problem setup

In this section, we recall the notion of graphs and set up the graph neural network model. We then recap some preliminary results from matrix theory that are used later in the paper.

2.1 Graphs and Graph Neural Networks

Graphs and data supported on graphs. A graph is defined as an ordered pair 𝐺=(𝑉,𝐸), which consists of a set of nodes 𝑉 and a set of edges 𝐸⊆{{𝑢,𝑣}∣𝑢,𝑣∈𝑉} describing pairwise relations between the nodes. For simplicity, we identify the node set with the integers from 1 up to 𝑛 as follows, i.e., 𝑉={1,…,𝑛}, where 𝑛 is the number of nodes in the graph. This enables us to encode the structure of the graph into an adjacency matrix 𝐴∈{0,1}𝑛×𝑛 with entries 𝐴𝑖𝑗=1 if the edge {𝑖,𝑗} exists in the edge set of the graph, and 𝐴𝑖𝑗=0, otherwise. We say a matrix 𝑆∈ℝ𝑛×𝑛 is a graph shift operator if it has the same sparsity pattern as 𝐴 in the off-diagonal terms, i.e., we have 𝑆𝑖𝑗≠0⇔𝐴𝑖𝑗≠0 for all 𝑖≠𝑗.

In the context of machine learning on graphs, we are interested in semi-supervised learning, where each node in the graph has feature data associated with it, and the graph contains both labeled and unlabeled nodes. We are concerned with predicting the labels of the nodes based on the graph structure and node features. We assume that each node 𝑖 is endowed with a feature vector 𝑥𝑖∈ℝ𝑑𝑥 (describing, e.g., certain attributes of the node), and 𝑋∈ℝ𝑑𝑥×𝑛 denotes the feature data matrix with the 𝑖-th columns corresponding to feature data 𝑥𝑖. The set ℐ︀⊂𝑉 is the collection of labeled nodes and 𝑦𝑗∈ℝ𝑑𝑦 (describing quantities we may want to estimate or predict) is the label vector for node 𝑗∈ℐ︀. The labeled node matrix is denoted by 𝑌=[𝑦𝑖]𝑖∈ℐ︀∈ℝ𝑑𝑦×𝑛¯, where 𝑛¯ is the number of labeled nodes.

Graph Neural Networks. Graph neural network is a mapping from node feature data to label data, and it operates by transmitting and aggregating messages between graph nodes. Our problem of interest is to train GNN to improve its accuracy in the prediction of label data.

The architecture of deep GNN is composed of several hidden layers, each containing node data derived from the aggregation of the node data from the previous layer. Mathematically, if 𝑋ℓ denotes the collection of node data on the ℓ-th layer, then data representation on (ℓ+1)-th layer is given by

𝑍ℓ=𝐹(𝑋ℓ)𝑋ℓ+1=𝜑ℓ(𝑍ℓ),

where 𝐹 denotes the linear filter equipped with trainable weights, and 𝜑ℓ:ℝ→ℝ is an activation function that acts componentwise. In particular, graph convolution filter is defined by

𝐹(𝑋)=∑𝑘=1𝐾𝑊𝑘𝑋𝑆𝑘,

where 𝑆 is the graph aggregate matrix, and 𝑊𝑘’s are trainable weights. GNNs with convolution filters 𝐾≤1 are referred to as message passing networks, since the node representation depends exclusively on its immediate neighbors. In semi-supervised learning, Kipf and Willing [16] discussed the effectiveness of a message passing network with the ReLU activation function. In this article, we explore the mathematical properties of message passing network optimization using linear activation functions.

Def 2.1 [Linear GNN]

Let 𝐺=(𝑉,𝐸) be a graph and 𝑆∈ℝ𝑛×𝑛 denote the corresponding graph shift matrix. The linear GNN with 𝐻 layers is a map 𝑓:ℝ𝑑𝑥×𝑛→ℝ𝑑𝑦×𝑛 such that

𝑓(𝑋)=𝑊𝐻+1𝑋𝐻,and 𝑋ℓ=𝑊ℓ𝑋ℓ−1𝑆,for 1≤ℓ≤𝐻,

(1)

where 𝑊1,…,𝑊𝐻+1 represent the weight matrices of the corresponding order during propagation, and 𝑋0 denotes the feature matrix 𝑋.

The output of the linear GNN depends on the collection of weight matrices 𝑾=(𝑊1,𝑊2,…,𝑊𝐻+1), and our aim is to improve the accuracy of the output by appropriately choosing the weight matrices. For simplicity, we denote the map for linear GNN by 𝑓(⋅,𝑾), where the trainable weights 𝑊ℓ∈ℝ𝑑ℓ×𝑑ℓ−1 for 1≤ℓ≤𝐻+1, 𝑑0=𝑑𝑥, and 𝑑𝐻+1=𝑑𝑦.

The linear GNN of layer 𝐻 can be viewed as an iterative model that gathers node information from 𝑋^ℓ−1=𝑋ℓ−1𝑆 from its neighbors and encodes it into a node representation 𝑋ℓ=𝑊ℓ𝑋^ℓ−1. More specifically, the node representation of a given node extracts contextual information from its 𝐻-hop neighborhood. The architecture of GNNs relies on the way data is collected from neighboring nodes, namely through different forms of an aggregation matrix. The adjacency matrix of the graph is one of the most popular choices for an aggregation operator. However, the adjacency matrix aggregates the node features of all neighboring nodes, which can lead to optimization difficulty and numerical instability for graphs with large variations in the degrees of nodes. One approach to address this issue is to consider 𝑆=𝐷^−1(𝐼𝑛+𝐴) [33], where 𝐷^ is the degree matrix of the self-loop adjacency matrix 𝐼𝑛+𝐴 of the graph 𝐺. Such aggregator matrix reduces computation costs by sampling a fixed number of neighbors for aggregation at random. The aggregation operator 𝑆=(𝐼𝑛+𝐴)𝐷^−1 is considered in the PageRank algorithm [34], [35], which revises the ranking of a page by computing the weighted sum of the rankings of its linked pages. In a citation graph, information from the most cited papers may be insufficient for categorizing the paper, as multiple articles reference these papers across a wide range of subfields. Kipf and Welling [16] consider the aggregation matrix 𝑆=𝐷^−12(𝐼𝑛+𝐴)𝐷^−12 for smoothing the “graph signal". We refer the reader to [36], [37] for a more detailed discussion on the choice of the aggregation matrix.

In order to improve the prediction of the output label data, the linear GNN is trained to minimize a loss function. Various loss functions are considered in GNN training based on different network applications. For instance, cross-entropy loss is considered for the node classification problem [38], [39], Quasi-Wasserstein loss is used for the optimal transportation problem [40], [41], [42], and mean squared loss is applied for the regression task [23], [43].

In the semi-supervised node regression problem, a GNN is not only trained to appropriately predict the accessible label data on some subset of the node set but also to efficiently predict for unlabeled nodes. In this article, we study the semi-supervised node regression problem for a linear GNN. In particular, we discuss the following minimization problem. For a given input data matrix 𝑋∈ℝ𝑑𝑥×𝑛 and output label matrix 𝑌∈ℝ𝑑𝑦×𝑛¯,

ℒ︀~𝐻=inf𝑾ℒ︀(𝑾)≔inf𝑾1𝑚‖𝑓(𝑋,𝑾)∗ℐ︀−𝑌‖𝐹2.

(2)

We assume that the label data is known on some nodes ℐ︀⊂𝑉 with cardinality 𝑛¯. Moreover, 𝑓(𝑋,𝑾)∗ℐ︀ denotes the predicted label data matrix on labeled nodes, and 𝑚=𝑛¯𝑑𝑦.

For any 𝐻∈ℕ, the optimization problem defined in (2) is non-convex. However, the network 𝑓(𝑋,𝑾)∗ℐ︀=𝑊[1:𝐻+1](𝑋𝑆𝐻)∗ℐ︀ with the factorization

𝑊[1:𝐻+1]=𝑊𝐻+1⋅𝑊𝐻⋯𝑊1

can be viewed as an overparameterization of the matrix 𝑊[1:𝐻+1]. The factorization imposes an addition constraint that the rank of 𝑊[1:𝐻+1] is at most 𝑘=min{𝑑𝑥,𝑑1,𝑑2,…,𝑑𝐻,𝑑𝑦}. This implies,

inf𝑾ℒ︀(𝑾)≥inf𝑊∈ℝ𝑑𝑦×𝑑𝑥1𝑚‖𝑊(𝑋𝑆𝐻)∗ℐ︀−𝑌‖𝐹2.

Assumption. We consider the linear GNN model with the hidden feature dimensions are in non-increasing order, i.e., 𝑑1≥𝑑2≥⋯≥𝑑𝐻+1.

For a given linear operator 𝑅:ℝ𝑑′→ℝ𝑑, the map 𝒫︀𝑅:ℝ𝑑→ℝ𝑑 denotes an orthogonal projection onto the column space of 𝑅 and defined by 𝒫︀𝑅≔𝑅⋅𝑅†, where 𝑅† denotes the Moore–Penrose inverse of 𝑅. The projection map is used to estimate the least square solution, which subsequently helps to calculate the lower bound for (2).

Ex 2.2

For 𝑊∈ℝ𝑑𝑦×𝑑𝑥, the loss ℒ︀1(𝑊)=‖𝑊(𝑋𝑆𝐻)∗ℐ︀−𝑌‖𝐹2 is a convex function, and the least square solution to the square loss ℒ︀1 can be explicitly determined. In particular, we have

inf𝑊∈ℝ𝑑𝑦×𝑑𝑥‖𝑊(𝑋𝑆𝐻)∗ℐ︀−𝑌‖𝐹2=inf𝑊∈ℝ𝑑𝑦×𝑑𝑥‖[(𝑋𝑆𝐻)∗ℐ︀⊤⊗𝐼𝑑𝑦]vec(𝑊)−vec(𝑌)‖22=‖𝒫︀[(𝑋𝑆𝐻)∗ℐ︀⊤⊗𝐼𝑑𝑦]vec(𝑌)−vec(𝑌)‖22.

The first equality follows from a well-known result in matrix theory [44], which states that for any 𝑃∈ℝ𝑑𝑃×𝑑𝑃′, 𝑄∈ℝ𝑑𝑄×𝑑𝑄′ and 𝑋∈ℝ𝑑𝑃′×𝑑𝑄,

vec(𝑃𝑋𝑄)=(𝑄⊤⊗𝑃)vec(𝑋),

(3)

where ⊗ denotes the Kronecker product of matrices.

2.2 Preliminaries on matrix theory

Graph Neural Networks (GNNs) are trained to minimize the prediction loss ℒ︀(𝑾). The primary goal of this paper is to investigate the convergence of gradient-based training for linear GNNs to estimate 𝑾~, the parameter that optimizes the loss ℒ︀. To delve deeper into the training of linear GNNs, we first recall some preliminary results from matrix theory.

The following lemmas outline basic properties of full rank matrices, which are used in the main result on gradient flow convergence. While these results are straightforward to derive, we provide complete proofs to ensure our exposition is self-contained.

Lem 2.3

Let 𝑃∈ℝ𝑑×𝑑′ be a full rank matrix. Then, for any matrix 𝑃~∈ℝ𝑑×𝑑′ with Frobenius norm ‖𝑃~‖𝐹<𝜎min(𝑃), the matrix (𝑃+𝑃~) is also full rank. Moreover, the smallest singular value of the sum of the matrices (𝑃+𝑃~) is bounded below by (𝜎min(𝑃)−‖𝑃~‖𝐹).

Here, 𝜎min(𝑀) denotes the smallest singular value of the matrix 𝑀.

The lemma precisely states that every matrix in an open neighborhood of a full rank matrix is also a full rank. In particular, the set of all full rank matrices of the same order is an open set with respect to the Frobenius norm.

Proof. The proof of the lemma easily follows from the Weyl’s inequality for the singular value of matrices [45]. For any 𝑃,𝑃~∈ℝ𝑑×𝑑′, we have

𝜎𝑖(𝑃+𝑃~)≥𝜎𝑖(𝑃)−‖𝑃~‖,and‖𝑃~‖≤‖𝑃~‖𝐹,

(4)

where 𝜎𝑖(𝑃) and ‖𝑃~‖ denote the 𝑖-th singular value of 𝑃 and the spectral norm of 𝑃~ respectively.

A full rank matrix preserves the structural information of the input data and avoids the loss of dimensionality redundancy. In a linear deep neural network, data are processed with linear transformation at each layer. A low rank transformation at certain layer might lose critical information about the data. The following lemma emphasizes the critical role of full rank matrices in maintaining structural integrity and minimizing information loss during successive linear transformations.

Lem 2.4

Suppose 𝑃∈ℝ𝑑×𝑑′ and 𝑄∈ℝ𝑑′×𝑑″ are full rank matrices, with 𝑑≥𝑑′≥𝑑″. Then, the product 𝑃𝑄 is a full rank matrix and

𝜎min(𝑃𝑄)≥𝜎min(𝑃)𝜎min(𝑄).

Proof. The fact that 𝑃 and 𝑄 are full rank matrices implies that rank(𝑃)=𝑑′, and rank(𝑄)=𝑑″. Using Sylvester’s rank inequality, we get 𝑃𝑄 is full rank as

𝑑″≥rank(𝑃𝑄)≥rank(𝑃)+rank(𝑄)−𝑑′=𝑑″.

Let 𝑥∈ℝ𝑑″ be arbitrary non-zero column matrix. Then 𝑥 is in row space of 𝑄, and 𝑄𝑥 is in row space of 𝑃. Hence,

‖𝑃𝑄𝑥‖2≥𝜎min(𝑃)‖𝑄𝑥‖2≥𝜎min(𝑃)𝜎min(𝑄)‖𝑥‖2.

This implies, 𝜎min(𝑃𝑄)≥𝜎min(𝑃)𝜎min(𝑄.).

Lem 2.5

Let 𝑅∈ℝ𝑑×𝑑′ be a real matrix. For every 𝑥∈ℝ𝑑′, we have

‖𝑅𝑥‖2≥𝜎small(𝑅)‖𝒫︀𝑅⊤𝑥‖2,

where 𝜎small(𝑅) denotes the smallest non-zero singular value of 𝑅.

Proof. Let 𝑅=𝑈Σ𝑉⊤ be the singular value decomposition of 𝑅, where 𝑈∈ℝ𝑑×𝑑 and 𝑉∈ℝ𝑑′×𝑑′ are the orthonormal matrices, and Σ∈ℝ𝑑×𝑑′ is the rectangular diagonal matrix with singular values of 𝑅 as the diagonal entries.

Let 𝑥∈ℝ𝑑′ be arbitrary. Then we have

‖𝑅𝑥‖22=‖Σ𝑉⊤𝑥‖22=𝑥⊤𝑉Σ⊤Σ𝑉⊤𝑥≥𝜎𝑘2(𝑅)𝑥⊤𝑉Σ⊤(Σ†)⊤𝑉⊤𝑥=𝜎𝑘2(𝑅)⟨𝒫︀𝑅⊤𝑥,𝑥⟩=𝜎𝑘2(𝑅)‖𝒫︀𝑅⊤𝑥‖22.

This completes the proof.

3 Convergence analysis of gradient flow training

In this section, we discuss the gradient flow training of linear GNNs and show that the gradient flow (gradient descent with infinitesimal steps) of means square loss ℒ︀ converges to the global minimum. The gradient flow training of linear GNNs evolves the weight matrices at time 𝑡 as follows

𝑑𝑊ℓ(𝑡)𝑑𝑡=−𝜕ℒ︀(𝑾(𝑡))𝜕𝑊ℓ,1≤ℓ≤𝐻+1,

(5)

where 𝑊ℓ(𝑡) represents the trainable parameters at time 𝑡 with initialization 𝑊ℓ(0) and 𝑾(𝑡)=(𝑊1(𝑡),𝑊2(𝑡),…,𝑊𝐻+1(𝑡)).

The optimization of gradient flow training for the classical neural network has been studied in [4], [6], [7], [25] and has been generalized to GNNs [17], [23]. The main result of the paper regarding gradient flow training of linear GNNs is stated as follows.

Thm 3.1

Let 𝐺=(𝑉,𝐸) be a graph embedded with a feature matrix 𝑋∈ℝ𝑑𝑥×𝑛, and a labeled matrix 𝑌∈ℝ𝑑𝑦×𝑛¯. Let us consider a linear GNN with 𝐻 layers and non-increasing hidden feature dimensions. The gradient flow training (5) of the linear GNN with the loss function ℒ︀ defined in (2) converges to the global minimum under an appropriately chosen initialization.

In particular, suppose the initial weight 𝑊1(0) is the zero matrix and 𝑊ℓ(0) is full rank for 2≤ℓ≤𝐻+1. Then, with the initialization 𝑾(0):

ℒ︀(𝑾(𝑇))−ℒ︀~𝐻≤𝑒−1𝑚𝛽𝜎small2((𝑋𝑆𝐻)∗ℐ︀)𝑇(ℒ︀(𝑾(0))−ℒ︀~𝐻),

provided 𝜎min(𝑊ℓ(0)) is sufficiently large for some 2≤ℓ≤𝐻+1. Here 𝜎small((𝑋𝑆𝐻)∗ℐ︀) denotes the smallest non-zero singular value of the matrix (𝑋𝑆𝐻)∗ℐ︀, 𝛽=14𝐻−1∏ℓ=2𝐻+1𝜎min2(𝑊ℓ(0)) and 𝑚=𝑛¯𝑑𝑦.

The proof of Theorem 3.1 is based on the following local optimization result.

Thm 3.2 [Chatterjee [25]]

Let 𝑝 be a positive integer, and 𝐹:ℝ𝑝→[0,∞) be a non-negative 𝐶2 function. For any 𝑥0∈ℝ𝑝, if there exists 𝑟>0 such that

4𝐹(𝑥0)<𝑟2inf𝑥∈𝐵(𝑥0,𝑟),𝐹(𝑥)≠0|∇𝐹(𝑥)|2𝐹(𝑥),

(6)

then the gradient flow equation 𝑑𝑑𝑡𝜙(𝑡)=−∇𝐹(𝜙(𝑡)) has a unique solution 𝜙:[0,∞)→ℝ𝑝 with the initialization 𝜙(0)=𝑥0. Here, 𝐵(𝑥0,𝑟) is the closed Euclidean ball of radius 𝑟 centered at 𝑥0.

Moreover, the solution 𝜙 stays in 𝐵(𝑥0,𝑟) for all 𝑡>0, and converges to some 𝑥~∈𝐵(𝑥0,𝑟) where 𝐹(𝑥~)=0. In particular, for 𝛼≔inf𝑥∈𝐵(𝑥0,𝑟),𝐹(𝑥)≠0|∇𝐹(𝑥)|2/𝐹(𝑥), and 𝑡≥0, we have

‖𝜙(𝑡)−𝑥~‖2≤𝑟𝑒−𝛼𝑡/2,and𝐹(𝜙(𝑡))≤𝑒−𝛼𝑡𝐹(𝑥0).

The above theorem characterize the convergence of gradient flow for the twice differentiable non-negative functions. The inequality (6) ensure the absence of saddle points in the neighborhood of the initialization and the gradient flow always stays in that neighborhood. Moreover, the initial points is appropriately chosen close to the global minimum. In the following, utilizing the idea of the Theorem 3.2, we prove the convergence result for the linear GNNs.

Proof of Theorem 3.1. The idea of the convergence result is as follows.

  • First consider the initial weights such that there does not exist any critical points other than the points of global minimum in the neighborhood of initial weights. In other words, if 𝑾(0) denotes the collection of initial weights then

    inf{|∇𝐿(𝑾)|2𝐿(𝑾):∑ℓ=1𝐻+1‖𝑊ℓ−𝑊ℓ(0)‖𝐹2≤𝑟2}>0,

    where |∇𝐿(𝑾)|2=∑ℓ=1𝐻+1‖∇𝑊ℓ𝐿(𝑾)‖𝐹2, and the loss function 𝐿 is defined by

    𝐿(𝑾)=ℒ︀(𝑾)−ℒ︀~𝐻.

    (7)

  • Second steps of the prove is to ensure that the gradient flow always stay in that neighborhood of the initial weights. In particular, the analogous condition of (6) for the linear GNNs, i.e.,

    4𝐿(𝑾(0))<𝑟2inf{|∇𝐿(𝑾)|2𝐿(𝑾):∑ℓ=1𝐻+1‖𝑊ℓ−𝑊ℓ(0)‖𝐹2≤𝑟2}.

Let 𝑾(0) be the collection of the initial weights such that 𝑊1(0)∈ℝ𝑑1×𝑑𝑥 is a zero matrix, and 𝑊ℓ(0)∈ℝ𝑑ℓ×𝑑ℓ−1 is full rank for 2≤ℓ≤𝐻+1.

The lower bound of ‖∇vec(𝑊1)𝐿(𝑾)‖22𝐿(𝑾) in the neighborhood of the initial weights is a lower bound of |∇𝐿(𝑾)|2𝐿(𝑾) as well. Hence, for any collection of weights 𝑾, ∇vec(𝑊1)𝐿(𝑾) is estimated by

∇vec(𝑊1)𝐿(𝑾)=(𝜕𝐿𝜕vec(𝑌^)𝜕vec(𝑌^)𝜕vec((𝑋𝐻)∗ℐ︀)𝜕vec((𝑋𝐻)∗ℐ︀)𝜕vec(𝑋𝐻−1)𝜕vec(𝑋𝐻−1)𝜕vec(𝑋𝐻−2)⋯𝜕vec(𝑋1)𝜕vec(𝑊1))⊤

where

𝑌^=𝑓(𝑋,𝑾)∗ℐ︀=𝑊𝐻+1(𝑋𝐻)∗ℐ︀∈ℝ𝑑𝑦×𝑛¯,(𝑋𝐻)∗ℐ︀=𝑊ℓ𝑋𝐻−1(𝑆)∗ℐ︀∈ℝ𝑑𝐻×𝑛¯,𝑋ℓ=𝑊ℓ𝑋ℓ−1𝑆∈ℝ𝑑ℓ×𝑛,for 1≤ℓ≤𝐻−1.

The partial derivative can be calculated by the relation (3), and we get

∇vec(𝑊1)𝐿(𝑾)=(𝜕𝐿𝜕vec(𝑌^)[𝐼𝑛¯⊗𝑊𝐻+1][(𝑆)∗ℐ︀⊤⊗𝑊𝐻][𝑆⊤⊗𝑊𝐻−1]⋯[𝑆⊤⊗𝑊2][(𝑋𝑆)⊤⊗𝐼𝑑1])⊤=2𝑚[(𝑋𝑆𝐻)∗ℐ︀⊗𝑊2⊤𝑊3⊤⋯𝑊𝐻+1⊤]vec(𝑌^−𝑌)∇vec(𝑊1)𝐿(𝑾)=2𝑚[𝐼𝑑𝑥⊗𝑊2⊤𝑊3⊤⋯𝑊𝐻+1⊤]vec((𝑌^−𝑌)(𝑋𝑆𝐻)∗ℐ︀⊤).

(8)

The product 𝑊2⊤𝑊3⊤⋯𝑊𝐻+1⊤∈ℝ𝑑1×𝑑𝑦 and 𝑑1≥𝑑𝑦 implies

‖∇vec(𝑊1)𝐿(𝑾)‖22≥4𝑚2𝜎min2(𝑊2⊤𝑊3⊤⋯𝑊𝐻+1⊤)‖vec((𝑌^−𝑌)(𝑋𝑆𝐻)∗ℐ︀⊤)‖22≥4𝑚2𝜎min2(𝑊2⊤𝑊3⊤⋯𝑊𝐻+1⊤)‖[(𝑋𝑆𝐻)∗ℐ︀⊗𝐼𝑑𝑦]vec(𝑌^−𝑌)‖22.

(9)

Since 𝑊ℓ(0)∈ℝ𝑑ℓ×𝑑ℓ−1 is a full rank with 𝑑ℓ≤𝑑ℓ−1 for 2≤ℓ≤𝐻+1, then Lemma 2.3 implies for each 𝑊ℓ∈ℝ𝑑ℓ×𝑑ℓ−1 with

‖𝑊ℓ−𝑊ℓ(0)‖𝐹≤𝑟ℓ≔𝜎min(𝑊ℓ(0))2,2≤ℓ≤𝐻+1,

𝑊ℓ is full rank with 𝜎min(𝑊ℓ)≥𝜎min(𝑊ℓ(0))/2.

Moreover, Lemma 2.4 implies (𝑊2⊤𝑊3⊤⋯𝑊𝐻+1⊤) is full rank with

𝜎min2(𝑊2⊤𝑊3⊤⋯𝑊𝐻+1⊤)≥∏ℓ=2𝐻+1𝜎min2(𝑊ℓ)≥14𝐻∏ℓ=2𝐻+1𝜎min2(𝑊ℓ(0)).

(10)

Now, the Lemma 2.5 implies

‖[(𝑋𝑆𝐻)∗ℐ︀⊗𝐼𝑑𝑦]vec(𝑌^−𝑌)‖22≥𝜎small2([(𝑋𝑆𝐻)∗ℐ︀⊗𝐼𝑑𝑦])‖𝒫︀[(𝑋𝑆𝐻)∗ℐ︀⊤⊗𝐼𝑑𝑦]vec(𝑌^−𝑌)‖22=𝜎small2((𝑋𝑆𝐻)∗ℐ︀)‖vec(𝑌^)−𝒫︀[(𝑋𝑆𝐻)∗ℐ︀⊤⊗𝐼𝑑𝑦]vec(𝑌)‖22≥𝜎small2((𝑋𝑆𝐻)∗ℐ︀)(‖vec(𝑌^−𝑌)‖22−‖vec(𝑌)−𝒫︀[(𝑋𝑆𝐻)∗ℐ︀⊤⊗𝐼𝑑𝑦]vec(𝑌)‖22)≥𝑚𝜎small2((𝑋𝑆𝐻)∗ℐ︀)(ℒ︀(𝑾)−ℒ︀~𝐻).

Here 𝒫︀[(𝑋𝑆𝐻)∗ℐ︀⊤⊗𝐼𝑑𝑦] denote the orthogonal projection onto column space of [(𝑋𝑆𝐻)∗ℐ︀⊤⊗𝐼𝑑𝑦].

Let vec(𝑾)∈ℝ𝑝 denotes the collection 𝑾 in vector form and 𝐵(vec(𝑾(0)),𝑟) be the closed ball of radius 𝑟 centered at vec(𝑾(0)) in ℝ𝑝, where 𝑝=∑ℓ=1𝐻+1𝑑ℓ𝑑ℓ−1 and 𝑟=min{𝑟ℓ:2≤ℓ≤𝐻+1}. For each vec(𝑾)∈𝐵(vec(𝑾(0)),𝑟),

‖𝑊ℓ−𝑊ℓ(0)‖𝐹≤𝑟,for 1≤ℓ≤𝐻+1.

Hence, for any vec(𝑾)∈𝐵(vec(𝑾(0)),𝑟), the inequalities (9) and (10) implies

‖∇vec(𝑊1)𝐿(𝑾)‖22𝐿(𝑾)≥1𝑚𝛽𝜎small2((𝑋𝑆𝐻)∗ℐ︀)

(11)

where 𝛽=14𝐻−1∏ℓ=2𝐻+1𝜎min2(𝑊ℓ(0)).

Without loss of generality, assume that 𝜎min(𝑊𝐻+1(0)) is sufficiently large such that

4𝑟2𝐿(𝑾(0))≤1𝑚𝛽𝜎small2((𝑋𝑆𝐻)∗ℐ︀).

This implies

4𝐿(𝑾(0))≤𝑟2inf{|∇𝐿(𝑾)|2𝐿(𝑾):vec(𝑾)∈𝐵(vec(𝑾(0)),𝑟)}.

(12)

Consequently, Theorem 3.2 signifies the gradient flow started at 𝑾(0) converges to some 𝑾~ such that 𝐿(𝑾~)=0. Moreover, at time 𝑇>0,

∑ℓ=1𝐻+1‖𝑊ℓ(𝑇)−𝑊~ℓ‖𝐹2≤𝑟2exp(−1𝑚𝛽𝜎small2((𝑋𝑆𝐻)∗ℐ︀)𝑇),

and

ℒ︀(𝑾(𝑇))−ℒ︀~𝐻≤𝑒−1𝑚𝛽𝜎small2((𝑋𝑆𝐻)∗ℐ︀)𝑇(ℒ︀(𝑾(0))−ℒ︀~𝐻).

This completes the proof.

Rem 3.3

The convergence rate of the gradient flow training of linear GNNs explicitly depends on the singular value of weight parameters. Let 𝑾(0) be the collection of initial weight matrices such that

𝑊1(0): zero matrix,𝑊ℓ(0): diagonal matrix with entries are 1, for 2≤ℓ≤𝐻,𝑊𝐻+1(0): diagonal matrix with entries are 𝑎,

then 𝛽=𝑎24𝐻−1. Moreover, with the initialization, the gradient flow converges to the global minimum if

𝑎2≥max{1,4𝐻+1𝑚(‖𝑌‖𝐹2−ℒ︀~𝐻)𝜎small2((𝑋𝑆𝐻)∗ℐ︀)}.
Rem 3.4

The convergence rate of the gradient flow explicitly depends on the feature matrix 𝑋, graph shift matrix 𝑆 and the initial weight matrices. The notation 𝜎small2((𝑋𝑆𝐻)∗ℐ︀) denotes the smallest non-zero singular value of (𝑋𝑆𝐻)∗ℐ︀, which implies that the training loss for the semi-supervised learning of graph neural network converges to the global minimum with respect to aggregate matrix 𝑆 even if (𝑋𝑆𝐻)∗ℐ︀ has the rank deficiency.

4 Energy optimization in linear GNNs

In this section, we discuss the solution to the global minimum of the mean square loss of the linear GNN that minimizes the total energy of the weight matrices.

Let 𝐺=(𝑉,𝐸) be a graph embedded with a feature matrix 𝑋∈ℝ𝑑𝑥×𝑛, and a labeled matrix 𝑌∈ℝ𝑑𝑦×𝑛¯. The linear GNN with 𝐻 layers and weight matrices 𝑾 is defined by (1). In general, the global minimum of the mean square loss ℒ︀(𝑾) of the linear GNN satisfy

min𝑾ℒ︀(𝑾)≥min𝑊∈ℝ𝑑𝑦×𝑑𝑥1𝑛¯𝑑𝑦‖𝑊(𝑋𝑆𝐻)∗ℐ︀−𝑌‖𝐹2.

The equality holds if for each 1≤ℓ≤𝐻, the hidden feature dimension 𝑑ℓ≥min{𝑑𝑥,𝑑𝑦}.

Let 𝑊∈ℝ𝑑𝑦×𝑑𝑥 be arbitrary, and let the rank of (𝑋𝑆𝐻)∗ℐ︀∈ℝ𝑑𝑥×𝑛¯ be 𝑘. Then, from the singular value decomposition of (𝑋𝑆𝐻)∗ℐ︀ we have

‖𝑊(𝑋𝑆𝐻)∗ℐ︀−𝑌‖𝐹2=‖𝑊𝑈Σ𝑉⊤−𝑌‖𝐹2=‖𝑊𝑈Σ−𝑌𝑉‖𝐹2=∑𝑖=1𝑑𝑦∑𝑗=1𝑘(𝜎𝑗((𝑋𝑆𝐻)∗ℐ︀)[𝑊𝑈]𝑖𝑗−[𝑌𝑉]𝑖𝑗)2+∑𝑖=1𝑑𝑦∑𝑗=𝑘+1𝑛¯[𝑌𝑉]𝑖𝑗2,

where [𝑃]𝑖𝑗 denotes the 𝑖,𝑗-th entry of the matrix 𝑃. Hence, the global minimum of least square equation ‖𝑊(𝑋𝑆𝐻)∗ℐ︀−𝑌‖𝐹2 is attained for all 𝑊∈ℝ𝑑𝑦×𝑑𝑥 such that

[𝑊𝑈]𝑖𝑗=1𝜎𝑗((𝑋𝑆𝐻)∗ℐ︀)[𝑌𝑉]𝑖𝑗,for all 1≤𝑖≤𝑑𝑦,1≤𝑗≤𝑘.

In particular, the global minimum solution 𝑊 also minimizes the total energy ‖𝑊‖𝐹 if and only if [𝑊𝑈]𝑖𝑗=0 for 1≤𝑖≤𝑑𝑦, 𝑘+1≤𝑗≤𝑛¯. Hence, 𝑊~ is the unique solution to the global minimum of ℒ︀ with minimum energy and 𝑊~ is given by

𝑊~=𝑌(𝑋𝑆𝐻)∗ℐ︀†.

The problem of identifying the solution to the minimization of square loss with minimum energy of the weights for general linear GNN is non-trivial. Let the collection 𝑾~=(𝑊~1,𝑊~2,…,𝑊~𝐻+1) be the solution to the global minimum of the square loss. Then 𝑾~ minimizes the energy of the product 𝑊~𝐻+1𝑊~𝐻⋯𝑊~1 if and only if

𝑊~𝐻+1𝑊~𝐻⋯𝑊~1=𝑌(𝑋𝑆𝐻)∗ℐ︀†.

(13)

However, for 𝐻≥1, the collection 𝑾~ might not minimize the energy of the individual weights matrices.

In the following theorem, we address the optimization problem for the linear GNNs with 𝐻 layers defined as follows.

min𝑊~∑ℓ=1𝐻+1‖𝑊~ℓ‖𝐹2subject to 𝑊~𝐻+1𝑊~𝐻⋯𝑊~1=𝑌(𝑋𝑆𝐻)∗ℐ︀†.

(14)

Before answering the above optimization problem, first we define the balanced condition on the collections of weight matrices.

Def 4.1

The collection 𝑾=(𝑊1,𝑊2,…,𝑊𝐻) is said to be balanced if for every 1≤ℓ≤𝐻,

𝑊ℓ𝑊ℓ⊤=𝑊ℓ+1⊤𝑊ℓ+1.
Thm 4.2

Let 𝐺=(𝑉,𝐸) be a graph embedded with a feature matrix 𝑋∈ℝ𝑑𝑥×𝑛, and a labeled matrix 𝑌∈ℝ𝑑𝑦×𝑛¯. Let us consider a linear GNN with 𝐻 layers and 𝑆 be a graph shift matrix. If the collection 𝑾 is balanced and satisfy the equation (13), then 𝑾 is the solution to the optimization problem (14).

Proof. Let 𝑾 be the collection of weight matrices of the linear GNN with 𝐻 layers. In order to solve the optimization problem, we use the method of Lagrange multiplier and the Lagrangian function is defined by

ℱ︀(𝑾)=∑ℓ=1𝐻+1‖𝑊ℓ‖𝐹2+trace(Λ⊤(𝑊𝐻+1𝑊𝐻⋯𝑊1−𝑌(𝑋𝑆𝐻)∗ℐ︀†)),

where Λ∈ℝ𝑑𝑦×𝑑𝑥 is the Lagrange multiplier. All the critical points of ℱ︀ is given by

𝜕ℱ︀𝜕Λ=0,and𝜕ℱ︀𝜕𝑊ℓ=0,for 1≤ℓ≤𝐻+1.

(15)

The fact 𝜕𝜕𝑄trace(𝑃𝑄𝑅)=𝑃⊤𝑅⊤ for any 𝑃∈ℝ𝑑×𝑑′, 𝑄∈ℝ𝑑′×𝑑″ and 𝑅∈ℝ𝑑″×𝑑‴, and the equation (15) implies that the critical points of ℱ︀ is balanced and satisfy (13).

Let 𝑾 be a critical points of ℱ︀. From the balanced condition of 𝑾 and (13), one can easily verify that

(𝑌(𝑋𝑆𝐻)∗ℐ︀†)⊤(𝑌(𝑋𝑆𝐻)∗ℐ︀†)=(𝑊1⊤𝑊1)𝐻+1,(𝑌(𝑋𝑆𝐻)∗ℐ︀†)(𝑌(𝑋𝑆𝐻)∗ℐ︀†)⊤=(𝑊𝐻+1𝑊𝐻+1⊤)𝐻+1.

Hence, the eigenspace of 𝑊1⊤𝑊1 and (𝑌(𝑋𝑆𝐻)∗ℐ︀†)⊤(𝑌(𝑋𝑆𝐻)∗ℐ︀†) are identical. In particular, if 𝜆 is the eigenvalue of (𝑌(𝑋𝑆𝐻)∗ℐ︀†)⊤(𝑌(𝑋𝑆𝐻)∗ℐ︀†) then 𝜆1𝐻+1 is the eigenvalue of 𝑊1⊤𝑊1. Hence, the minimum value of the total energy of weight matrices for the optimization problem (14) is given by

∑ℓ=1𝐻+1‖𝑊ℓ‖𝐹2=(𝐻+1)‖𝑊1‖𝐹2=(𝐻+1)∑𝑖=1min{𝑑𝑥,𝑑𝑦}𝜎𝑖2𝐻+1(𝑌(𝑋𝑆𝐻)∗ℐ︀†).

This completes the proof.

Rem 4.3

The balancedness condition of the collection 𝑾 provide algebraic relation between weight matrices. For example, suppose 𝜎 is a non-zero singular value of 𝑊1, then the relation 𝑊1𝑊1⊤=𝑊2⊤𝑊2 implies 𝜎 is also a singular value of 𝑊2. In particular, 𝜎 is the non-zero singular value of 𝑊ℓ for each 1≤ℓ≤𝐻+1. Hence, all weight matrices 𝑊ℓ share the same set of non-zero singular values.

The global minimum of (2) with balanced condition, minimizes the total energy of the weights. This initiates another non-trivial challenge, whether the initialization leads the gradient flow to the solution of (14). The articles [4], [6], [7] studied closely into this direction for linear deep neural networks with approximately balanced initialization. However, they did not discuss on the optimization problem (14) and studied the convergence of the gradient dynamics with full rank assumption on the input data. Even though the convergence analysis discussed in Section 3 provides a sufficient initialization for the convergent of the square loss to the global minimum, but it might not optimize the total energy of the weight matrices. In the following theorem, we answered this question with some weaker assumption on the hidden dimension.

Thm 4.4

Let 𝐺=(𝑉,𝐸) be a graph embedded with a feature matrix 𝑋∈ℝ𝑑𝑥×𝑛, and a labeled matrix 𝑌∈ℝ𝑑𝑦×𝑛¯ with rank(𝑌(𝑋𝑆𝐻)∗ℐ︀⊤)=𝑘‾. Let us consider a linear GNN with 𝐻 layers such that 𝑑𝑦≤min{𝑑1,𝑑2,…,𝑑𝐻} and 𝑆 as aggregation matrix. The gradient flow started at 𝑾(0) converges to the solution of the optimization problem (14) if the following holds.

  1. 𝑾(0) is balanced.

  2. If rank((𝑋𝑆𝐻)∗ℐ︀)=𝑘 and the orthonormal matrix 𝑈∈ℝ𝑑𝑥×𝑑𝑥 is the collection of left singular vector of (𝑋𝑆𝐻)∗ℐ︀, then for all 1≤𝑖≤𝑑1,𝑘<𝑗≤𝑑𝑥, [𝑊1(0)𝑈]𝑖𝑗=0,

  3. Rank of 𝑊1(0) is 𝑘‾ with 𝑘‾-th singular value satisfy

    𝐿(𝑾(0))≤14𝐻+1𝑚𝜎𝑘‾2𝐻(𝑊1(0))𝜎small2((𝑋𝑆𝐻)∗ℐ︀)

    (16)

    where 𝑘‾=min{𝑑𝑦,𝑘}, 𝑚=𝑛¯𝑑𝑥, and 𝐿 is the loss function defined by (7).

Proof. In linear deep neural network with squared loss, the balanced relation is preserved by the gradient flow equation, see [4], [6], [7]. In the case of linear graph neural networks, it is easy to check that for 1≤ℓ≤𝐻+1

𝑑𝑊ℓ𝑑𝑡=−2𝑛¯𝑑𝑦(𝑊𝐻+1𝑊𝐻⋯𝑊ℓ+1)⊤(𝑌^−𝑌)(𝑋𝑆𝐻)∗ℐ︀⊤(𝑊ℓ−1𝑊ℓ−2⋯𝑊1)⊤.

Hence, we have

𝑑𝑑𝑡(𝑊ℓ𝑊ℓ⊤)=𝑑𝑑𝑡(𝑊ℓ+1⊤𝑊ℓ+1),∀1≤ℓ≤𝐻.

If the weight parameters are initially balanced then 𝑾(𝑡) is balanced for each 𝑡≥0.

Let us assume that the gradient flow converges to the global minimum at 𝑾~. The global minimizer 𝑾~ satisfy (13) if and only if

[𝑊~𝐻+1𝑊~𝐻⋯𝑊~1𝑈]𝑖𝑗=0for all 1≤𝑖≤𝑑𝑦,𝑘<𝑗≤𝑑𝑥.

Hence it is enough to prove that at any time 𝑡≥0, 𝑾(𝑡) satisfy

[𝑊𝐻+1𝑊𝐻⋯𝑊1𝑈]𝑖𝑗(𝑡)=0for all 1≤𝑖≤𝑑𝑦,𝑘<𝑗≤𝑑𝑥.

First, we observe that for ℓ=1 the gradient flow equation implies

𝑑(𝑊1𝑈)𝑑𝑡=−∇𝑊1ℒ︀(𝑾)𝑈=−2𝑚(𝑊𝐻+1𝑊𝐻⋯𝑊2)⊤(𝑊𝐻+1𝑊𝐻⋯𝑊1(𝑋𝑆𝐻)∗ℐ︀−𝑌)𝑉Σ⊤.

This implies, [𝑑(𝑊1𝑈)𝑑𝑡]𝑖𝑗=0 for 1≤𝑖≤𝑑1 and 𝑘<𝑗≤𝑑𝑥, and therefore

[𝑊1𝑈]𝑖𝑗(𝑡)=[𝑊1𝑈]𝑖𝑗(0)=0,∀𝑡≥0.

Suppose there exists ℓ≥1 such that for 1≤𝑖≤𝑑ℓ, and 𝑘<𝑗≤𝑑𝑥, we have

[𝑊ℓ𝑊ℓ−1⋯𝑊1𝑈]𝑖𝑗(𝑡)=0,for 𝑡≥0.

The chain rule for differentiation implies

𝑑𝑑𝑡(𝑊ℓ+1𝑊ℓ⋯𝑊1𝑈)=𝑑𝑊ℓ+1𝑑𝑡𝑊ℓ⋯𝑊1𝑈+𝑊ℓ+1𝑑𝑑𝑡(𝑊ℓ⋯𝑊1𝑈).

Hence, for all 𝑡≥0, 1≤𝑖≤𝑑ℓ+1 and 𝑘<𝑗≤𝑑𝑥

[𝑑𝑑𝑡(𝑊ℓ+1𝑊ℓ⋯𝑊1𝑈)]𝑖𝑗=0,[𝑊ℓ+1𝑊ℓ⋯𝑊1𝑈]𝑖𝑗(𝑡)=0.

Therefore, from mathematical induction we have

[𝑊𝐻+1𝑊𝐻⋯𝑊1𝑈]𝑖𝑗(𝑡)=0,∀𝑡≥0,1≤𝑖≤𝑑𝑦,𝑘<𝑗≤𝑑𝑥.

Finally, we now ensure convergence of the gradient flow training of linear GNN with balanced initialization and some minor assumption on 𝑊1(0). In order to study the convergence result, we consider the following two cases.

First assume that 𝑑𝑦≤rank((𝑋𝑆𝐻)∗ℐ︀). The equation (8) implies

‖∇vec(𝑊1)𝐿(𝑾)‖22≥4𝑚2𝜎𝑑𝑦2(𝑊2⊤𝑊3⊤⋯𝑊𝐻+1⊤)‖(𝑌^−𝑌)(𝑋𝑆𝐻)∗ℐ︀⊤‖𝐹2=4𝑚2𝜎𝑑𝑦2𝐻(𝑊𝐻+1)‖(𝑌^−𝑌)(𝑋𝑆𝐻)∗ℐ︀⊤‖𝐹2.

The last equality follows from the balancedness of 𝑾(𝑡) for each 𝑡≥0.

Secondly, assume that 𝑘≔rank((𝑋𝑆𝐻)∗ℐ︀)≤𝑑𝑦 and (𝑋𝑆𝐻)∗ℐ︀=𝑈Σ𝑉⊤ is the singular value decomposition of (𝑋𝑆𝐻)∗ℐ︀. Then the gradient of 𝐿 with respect to vec(𝑊𝐻+1) implies

‖∇vec(𝑊𝐻+1)𝐿(𝑾)‖22=4𝑚2‖(𝑌^−𝑌)𝑉Σ⊤𝑈⊤𝑊1⊤𝑊2⊤⋯𝑊𝐻⊤‖𝐹2=4𝑚2‖𝑊𝐻𝑊𝐻−1⋯𝑊1𝑈Σ𝑉⊤(𝑌^−𝑌)⊤‖𝐹2.

The entries of 𝑗-th column with 𝑗>𝑘 in the matrix 𝑊𝐻𝑊𝐻−1⋯𝑊1𝑈∈ℝ𝑑𝐻×𝑑𝑥 are zero. Simultaneously, the entries of 𝑖-th row with 𝑖>𝑘 in the matrix Σ𝑉⊤(𝑌^−𝑌)⊤ are zero. Hence, we get

‖∇vec(𝑊𝐻+1)𝐿(𝑾)‖22=4𝑚2‖𝑊𝑌¯‖𝐹2≥4𝑚2𝜎min2(𝑊)‖𝑌¯‖𝐹2=4𝑚2𝜎𝑘2(𝑊𝐻𝑊𝐻−1⋯𝑊1𝑈)‖(𝑌^−𝑌)𝑉Σ⊤‖𝐹2=4𝑚2𝜎𝑘2𝐻(𝑊1)‖(𝑌^−𝑌)(𝑋𝑆𝐻)∗ℐ︀⊤‖𝐹2.

In the first equality 𝑊∈ℝ𝑑𝐻×𝑘 and 𝑌¯∈ℝ𝑘×𝑑𝑦 are the matrix with first 𝑘 columns of 𝑊𝐻𝑊𝐻−1⋯𝑊1𝑈 and first 𝑘 rows of Σ𝑉⊤(𝑌^−𝑌)⊤ respectively.

If the 𝑾(0) is balanced with rank(𝑊ℓ(0))=𝑘‾ and 𝑗-th column of 𝑊1(0)𝑈 is a zero vector for each 𝑗>rank((𝑋𝑆𝐻)∗ℐ︀), then each 𝑾ℓ(𝑡) in the collection 𝑾(𝑡) shares the set of non-zero singular values for 𝑡≥0. Therefore, following the similar arguments as in Theorem 3.1, the gradient flow converges to the global minimum provided the 𝑘‾-th singular value of 𝑊ℓ(0) satisfy

𝐿(𝑾(0))≤14𝐻+1𝑚𝜎𝑘‾2𝐻(𝑊ℓ(0))𝜎small2((𝑋𝑆𝐻)∗ℐ︀).

This completes the proof.

The assumption (16) on the initial weights is equivalent to the inequality (12) for balanced initialization. The 𝑘‾-th singular value of the weights at time 𝑡≥0 in the gradient flow training always greater than 𝜎𝑘‾(𝑊ℓ(0))/2 and the weights converges to the solution of optimization problem (14). Therefore, the balanced initialization satisfy

𝜎𝑘‾(𝑊ℓ(0))≤2𝜎𝑘‾1𝐻+1(𝑌(𝑋𝑆𝐻)∗ℐ︀).

The balanced condition imposes such restriction on the initialization which causes the inequality (16) infeasible.

5 Convergence analysis of gradient descent training

In this section, we study the gradient descent training of linear GNNs and discuss its convergence. The gradient descent training is an analogue of gradient flow training of GNNs. The weight parameters are updated in the direction of the negative gradient with infinitesimally small steps in a gradient flow training, however, stepsize is fixed in the gradient descent training. Therefore, with an inappropriate stepsize the weight parameter diverges to infinity in gradient descent method.

The following theorem is the analogue of Theorem 3.1 for gradient descent. The idea of the proof is to find an appropriate stepsize such that the weights in each iterations are lies in the neighborhood of the initial weights. The loss ℒ︀ corresponds to the weight sequences is a decreasing sequence bounded below by global minimum.

Thm 5.1

Let 𝐺=(𝑉,𝐸) be a graph embedded with a feature matrix 𝑋∈ℝ𝑑𝑥×𝑛, and a labeled matrix 𝑌∈ℝ𝑑𝑦×𝑛¯. Let us consider a linear GNN with 𝐻 layers and 𝑆 be the graph shift matrix, and consider the mean square loss ℒ︀ define by (2). With a sufficiently small stepsize 𝜂>0 and the initial weights considered in Theorem 3.1, the gradient descent

𝑊ℓ(𝑘+1)=𝑊ℓ(𝑘)−𝜂∇𝑊ℓℒ︀(𝑾(𝑘)),for 1≤ℓ≤𝐻+1,

(17)

converges to global minimum of ℒ︀ as 𝑘→∞. Here 𝑾(0)=𝑾(0).

Moreover, for 𝑘≥0,

ℒ︀(𝑾(𝑘))−ℒ︀~𝐻≤(1−𝛽𝜎small2((𝑋𝑆𝐻)∗ℐ︀)𝜂2𝑚)𝑘(ℒ︀(𝑾(0))−ℒ︀~𝐻).

Proof. For 1≤ℓ≤𝐻+1, the gradient descent algorithm (17) can be written as follows:

vec(𝑾(𝑘+1))=vec(𝑾(𝑘))−𝜂∇ℒ︀(vec(𝑾(𝑘))),

(18)

where vec(𝑾(𝑘)) is a vector form of the collection (𝑊1(𝑘),𝑊2(𝑘),…,𝑊𝐻+1(𝑘)).

The loss function ℒ︀ is defined by (2), is twice continuously differentiable. Hence, there exists a positive constant 𝑀 such that for each vec(𝑾) in a closed bounded ball 𝐵2𝑟(vec(𝑾(0)))⊂ℝ𝑝, absolute values of the entries in the gradient and the Hessian matrix of ℒ︀ is bounded by 𝑀, i.e.,

|𝜕ℒ︀(vec(𝑾))𝜕vec(𝑾)𝑗|≤𝑀and|𝜕2ℒ︀(vec(𝑾))𝜕vec(𝑾)𝑖𝜕vec(𝑾)𝑗|≤𝑀

where 𝑟 and 𝑝 are the same as define in Theorem 3.1.

Let 𝑘≥1 be such that vec(𝑾(𝑗))∈𝐵𝑟(vec(𝑾(0))) for each 1≤𝑗≤𝑘. Claim that for sufficiently small 𝜂, vec(𝑾(𝑘+1))∈𝐵𝑟(vec(𝑾(0))).

For 𝜂<𝑟𝑀𝑝 and (18) implies

‖vec(𝑾(𝑗+1))−vec(𝑾(𝑗))‖2=𝜂‖∇ℒ︀(vec(𝑾(𝑗)))‖2≤𝜂𝑀𝑝<𝑟.

Hence, vec(𝑾(𝑗+1))∈𝐵2𝑟(vec(𝑾(0))), and the line segment joining 𝑊ℓ(𝑗+1) and 𝑊ℓ(𝑗) is in 𝐵2𝑟(vec(𝑾(0))).

Let 𝑅𝑗≔ℒ︀(vec(𝑾(𝑗+1)))−ℒ︀(vec(𝑾(𝑗)))+𝜂‖∇ℒ︀(vec(𝑾(𝑗)))‖22. The second order expansion of ℒ︀ implies

𝑅𝑗=12𝜂2∇ℒ︀(vec(𝑾(𝑗)))⋅∇2ℒ︀(vec(𝑾∗))∇ℒ︀(vec(𝑾(𝑗)))≤12𝜂2𝑀𝑝‖∇ℒ︀(vec(𝑾(𝑗)))‖22≤12𝜂‖∇ℒ︀(vec(𝑾(𝑗)))‖22

where vec(𝑾∗) is some point in the line segment joining vec(𝑾(𝑗+1)) and vec(𝑾(𝑗)), and 𝜂<min{1𝑀𝑝,𝑟𝑀𝑝}.

Hence, the training loss ℒ︀ decreases at each iterations as

12𝜂‖∇ℒ︀(vec(𝑾(𝑗)))‖22≤ℒ︀(vec(𝑾(𝑗)))−ℒ︀(vec(𝑾(𝑗+1))).

(19)

Moreover, for 1≤𝑗≤𝑘, we have

ℒ︀(vec(𝑾(𝑗+1)))=ℒ︀(vec(𝑾(𝑗)))−𝜂‖∇ℒ︀(vec(𝑾(𝑗)))‖22+𝑅𝑗≤ℒ︀(vec(𝑾(𝑗)))−12𝜂‖∇ℒ︀(vec(𝑾(𝑗)))‖22(ℒ︀(vec(𝑾(𝑗+1)))−ℒ︀~𝐻)≤(1−𝜂𝛼2)(ℒ︀(vec(𝑾(𝑗)))−ℒ︀~𝐻)(ℒ︀(vec(𝑾(𝑗+1)))−ℒ︀~𝐻)≤(1−𝜂𝛼2)𝑗+1(ℒ︀(vec(𝑾(0)))−ℒ︀~𝐻)

(20)

where 𝛼≔inf{|∇ℒ︀(𝑾)|2ℒ︀(𝑾)−ℒ︀~𝐻:vec(𝑾)∈𝐵𝑟(vec(𝑾(0)))}.

For 1≤𝑗≤𝑘, and the gradient descent algorithm (18) implies

‖vec(𝑾(𝑘+1))−vec(𝑾(𝑗))‖2≤∑𝑖=𝑗𝑘𝜂‖∇ℒ︀(vec(𝑾(𝑖)))‖2.

(21)

Let 𝐿 be the relative loss of ℒ︀ with respect to global minimum, i.e.,

𝐿(vec(𝑾))≔ℒ︀(vec(𝑊))−ℒ︀~𝐻.

The upper bound of the sum of the gradient is estimated by (19) and (20).

∑𝑖=𝑗𝑘𝜂‖∇ℒ︀(vec(𝑾(𝑖)))‖2≤∑𝑖=𝑗𝑘2𝜂(𝐿(vec(𝑾(𝑖)))−𝐿(vec(𝑾(𝑖+1))))=2𝜂∑𝑖=𝑗𝑘(𝐿(vec(𝑾(𝑖)))+𝐿(vec(𝑾(𝑖+1))))12×(𝐿(vec(𝑾(𝑖)))−𝐿(vec(𝑾(𝑖+1))))12≤4𝜂(𝐿(vec(𝑾(𝑗))))14(∑𝑖=𝑗𝑘𝐿(vec(𝑾(𝑖))))12≤(4𝜂𝐿(vec(𝑾(0))))12((1−𝜂𝛼2)𝑗2∑𝑖=𝑗𝑘(1−𝜂𝛼2)𝑖2)12≤(4𝜂𝐿(𝑾(0)))12((1−𝜂𝛼2)𝑗∑𝑖=0𝑘−𝑗(1−𝜂𝛼2)𝑖2)12≤(1−𝜂𝛼2)𝑗2(4𝜂𝐿(𝑾(0)))12(∑𝑖=0𝑘−𝑗(1−𝜂𝛼4)𝑖)12≤(1−𝜂𝛼2)𝑗2(16𝐿(𝑾(0))𝛼)12

The inequality (11) implies 𝛼 is bounded below by 1𝑚𝛽𝜎small((𝑋𝑆𝐻)∗ℐ︀).
Let 𝜂<min{𝑟𝑀𝑝(𝐻+1),1𝑀𝑝,2𝑚𝛽𝜎small2((𝑋𝑆𝐻)∗ℐ︀)}, then the inequality (21) implies

‖vec(𝑾(𝑘+1))−vec(𝑾(𝑗))‖2≤(1−𝛽𝜎small((𝑋𝑆𝐻)∗ℐ︀)𝜂2𝑚)𝑗2(16𝑚𝐿(𝑾(0))𝛽𝜎small((𝑋𝑆𝐻)∗ℐ︀))12.

Moreover, if the initial choice of 𝑾(0) with 𝜎min(𝑊𝐻+1(0)) is sufficiently large such that

16𝐿(𝑾(0))𝑟2<1𝑚𝛽𝜎small2((𝑋𝑆𝐻)∗ℐ︀),

then vec(𝑾(𝑘))∈𝐵𝑟(vec(𝑾(0))). Hence, by mathematical induction

vec(𝑾(𝑘))∈𝐵𝑟(vec(𝑾(0)))∀𝑘≥0.

The sequence of weights {vec(𝑾(𝑘))}𝑘≥0 is a bounded contraction sequence, hence, a Cauchy sequence. In particular, for 𝜀>0 there exists 𝑀>0 such that

‖vec(𝑾(𝑘))−vec(𝑾(𝑗))‖2<𝜀,𝑘,𝑗>𝑀,

where 𝑀=2log(𝑟𝜀𝐻+1)/log(2𝑚2𝑚−𝛽𝜎small2((𝑋𝑆𝐻)∗ℐ︀)𝜂). This implies, weights converges to some vec(𝑾~)∈𝐵𝑟(vec(𝑾(0))).

Moreover, the inequality (20) implies

ℒ︀(𝑾(𝑘))−ℒ︀~𝐻≤(1−𝛽𝜎small2((𝑋𝑆𝐻)∗ℐ︀)𝜂2𝑚)𝑘(ℒ︀(𝑾(0))−ℒ︀~𝐻).

This completes the proof.

Rem 5.2

Let 𝜀 be any arbitrary small positive real. Theorem 5.1 shows that loss ℒ︀ converges to the global minimum ℒ︀~𝐻 exponentially as the iteration progresses. In particular, ℒ︀ is close to ℒ︀~𝐻 with 𝜀 perturbation, i.e., ℒ︀(𝑾(𝑘))−ℒ︀~𝐻<𝜀, if

𝑘>(logℒ︀(𝑾(0))−ℒ︀~𝐻𝜀)/(log2𝑚2𝑚−𝛽𝜎small2((𝑋𝑆𝐻)∗ℐ︀)𝜂).

6 Numerical experiments

In this section, we illustrate aspects of the gradient flow dynamics such as the dependence of the convergence rate on the graph topology and the choice of the shift operator 𝑆 in terms of the principle singular value 𝜎small((𝑋𝑆𝐻)∗ℐ︀). We provide a set of numerical experiments on the synthetic data following well-established undirected graph models (Erdős–Rényi, 𝑘-nearest neighbors, SBM, Barabási-Albert) and the real-world dataset of CDC climate data in US counties [46].

6.1 Synthetic data

Let us briefly describe synthetic graph models we use to illustrate the convergence of the linear GNN (see corresponding examples in Figure 1):

  1. Erdős–Rényi graph, 𝐺(𝑛,𝑝): A random graph on 𝑛 nodes where the edge {𝑖,𝑗} enters the graph with probability 𝑝 independently on all the other edges. The probability 𝑝 naturally defines the connectivity of the generated graph; we assume 𝑝>(1+𝜀)ln𝑛/𝑛 such that the generated graph is almost surely connected, [47].

  2. 𝑘-nearest neighbors graph, 𝐾𝑘(𝑛): A regular, highly-symmetric deterministic graph on 𝑛 nodes. Assume all 𝑛 nodes to be uniformly and equidistantly placed onto a unit circle; then each nodes is set to be connected by an edge to its 𝑘 nearest neighbors (in Eucledean distance). For simplicity, we assume 𝑘 to be even.

  3. Stochastic Block Model (SBM): A structured generalization of 𝐺(𝑛,𝑝) model where 𝑛 nodes are divided into 𝑟 classes (blocks) with the probability matrix 𝑃∈ℝ𝑟×𝑟 containing inter- and intra-classes edge probabilities, [48]. In the scope of the current work we assume two block setup {𝑛1,𝑛2} (such that 𝑛=𝑛1+𝑛2) with 𝑃=(𝑝𝑞𝑞𝑝) and 𝑝≫𝑞; we refer to such models as SBM(𝑛1,𝑛2,𝑝,𝑞).

  4. Barabási-Albert model, BA(𝑛,𝑚): A scale-free random graph model on 𝑛 nodes where the node degree distribution follows the power law 𝑘𝛾 with 2<𝛾<3, [49]. Parameter 𝑚 correspond to the degree of the nodes added to the core graph during generation and typically regulates the minimal node degree.

The feature data 𝑋∈ℝ𝑑𝑥×𝑛 is assumed to standard normal i.i.d., 𝑥𝑖𝑗∼𝒩︀(0,1), for the sake of simplicity. The output label data 𝑌 is set to be one-dimensional, 𝑑𝑦=1, with 𝑦𝑖=𝑓(𝑥𝑖)+𝜖∑𝑗:{𝑖,𝑗}∈𝐸𝑔(𝑥𝑗) where 𝑓,𝑔:ℝ𝑑𝑥↦ℝ𝑑𝑦 and the value of 𝜖 controls the impact of the graph structure on the output label. We set 𝑓(𝑥𝑖)=𝑔(𝑥𝑖)=∑𝑥𝑖𝑗 and 𝜖=0.1 for experiments below and assume that the gradient flow is trained with respect to the mean square error (MSE).

Figure 1: Examples of graphs generated by 𝐺(𝑛,𝑝), 𝐾𝑘(𝑛), SBM(𝑛1,𝑛2,𝑝,𝑞), and BA(𝑛,𝑚) respectively. Sparsity patterns of shift operators (adjacency matrices) are provided in the bottom row.

6.1.1 Singular value 𝜎small(𝑋𝑆𝐻)∗ℐ︀

Given the estimate of Theorem 3.2, the convergence rate is determined by the initialization 𝛽 (i.e. defined in Remark 3.3) and the singular value 𝜎small((𝑋𝑆𝐻)∗ℐ︀) which encodes the graph structure, the initial feature data, and the labeled set.

In Figure 2, we demonstrate the dependence of the singular value 𝜎small((𝑋𝑆𝐻)∗ℐ︀) on the size of the labeled data set 𝑛¯=|ℐ︀| for the following choices of the shift operator 𝑆:

For each fixed 𝑛¯, we uniformly sample a number of labeled sets ℐ︀ in order to account for possible specific labeled configurations in the graph topology. Note that all the models mainly maintain the same ordering of the singular values in terms of the shift operator, i.e. graph Laplacian generates the highest 𝜎small((𝑋𝑆𝐻)∗ℐ︀), normalized self-loop adjacency operator corresponds to the lower singular value, and so on. Additionally, the estimations for adjacency and self-loop adjacency matrices remain numerically close, whilst the position of the corresponding normalized Laplacian curve depends on the model (except BA model which distinguishes between all shift operators): in contrast to 𝐺(𝑛,𝑝) and SBM, 𝑘-nearest neighbors graphs tend to not set apart the former three shift operators in terms of 𝜎small((𝑋𝑆𝐻)∗ℐ︀).

Figure 2: Principle singular value 𝜎small((𝑋𝑆𝐻)∗ℐ︀) vs the size of labeled data 𝑛¯ for various shift operators 𝑆 in models 𝐺(𝑛,𝑝), 𝐾𝑘(𝑛), SBM(𝑛1,𝑛2,𝑝,𝑞), and BA(𝑛,𝑚), respectively. Input feature dimension 𝑑𝑥=30, network depth 𝐻=2. Solid lines and semi-transparent areas correspond to the average value and spread of 𝜎small((𝑋𝑆𝐻)∗ℐ︀) for uniformly sampled sets ℐ︀.

At the same time, the singular value 𝜎small((𝑋𝑆𝐻)∗ℐ︀) for all models and all shift operators exhibits the same universal pattern of behaviour in terms of 𝑛¯: the monotonicity switch around 𝑛¯=𝑑𝑥, for which one can justify with the following probabilistic argument. Let Πℐ︀ be a binary diagonal matrix such that [Πℐ︀]𝑗𝑗=1 if and only if 𝑗∈ℐ︀ and 0 otherwise; then,

𝜎small((𝑋𝑆𝐻)∗ℐ︀)=𝜎small(𝑋𝑆𝐻Πℐ︀)=𝜎small(Πℐ︀𝑆𝐻𝑋⊤)=min‖𝑧‖=1𝑧⟂ker(Πℐ︀𝑆𝐻𝑋⊤)‖Πℐ︀𝑆𝐻𝑋⊤𝑧‖.

Assume the feature matrix 𝑋 has a full-row rank, rank(𝑋)=𝑑𝑥<𝑛, and each 𝑥𝑖⟂ker𝑆 (which is reasonable since any element in the null-space of 𝑆 is suppressed in the linear GNN (1)), then the operator 𝑆𝐻𝑋⊤ has a full-column rank, rank(𝑆𝐻𝑋⊤)=𝑑𝑥, and a trivial kernel, so ker(Πℐ︀𝑆𝐻𝑋⊤)=kerΠℐ︀∩im(𝑆𝐻𝑋⊤). Note that dimkerΠℐ︀=𝑛−𝑛¯ and dimim(𝑆𝐻𝑋⊤)=𝑑𝑥, so these two subspaces intersect trivially in general position if 𝑑𝑥≤𝑛¯. Hence,

𝔼𝜎small((𝑋𝑆𝐻)∗ℐ︀)=𝔼min‖𝑧‖=1‖Πℐ︀𝑆𝐻𝑋⊤𝑧‖=𝑛¯𝑛𝜎small(𝑋𝑆𝐻)

where the expectation is taken for uniformly sampled labeled sets ℐ︀ of a fixed cardinality 𝑛¯ and 𝔼Πℐ︀=𝑛¯𝑛𝐼. Noticeably, each (𝑑𝑥≤𝑛¯)-part of the curves on Figure 2 closely follows the average estimation 𝑛¯𝑛𝜎small(𝑋𝑆𝐻). At the same time, left parts 𝑑𝑥>𝑛¯ correspond to necessarily rank-deficient matrices (𝑋𝑆𝐻)∗ℐ︀; since the permutation of matrix’s columns conserves singular values 𝜎𝑖 and each (𝑋𝑆𝐻)∗ℐ︀ is a minor of the full matrix 𝑋𝑆𝐻 with permuted columns, smaller values of 𝑛¯ correspond to higher values of 𝜎small((𝑋𝑆𝐻)∗ℐ︀) due to the Cauchy’s interlace theorem.

Finally, note that in the previous set of assumptions, rank(𝑆𝐻𝑋⊤)=rank(𝑆𝑋⊤)=𝑑𝑥, and im(𝑆𝑋⊤) is spanned (in probabilistic terms, i.e. randomized matrix sketching) by first 𝑑𝑥 dominant singular vectors. Then 𝜎small(𝑋𝑆𝐻)=𝜎small(𝑆𝐻𝑋⊤)=𝜎small(𝑆𝐻−1(𝑆𝑋⊤))=min‖𝑧‖=1‖𝑆𝐻−1(𝑆𝑋⊤𝑧)‖≈𝜆𝑑𝑥𝐻−1𝜎small(𝑋𝑆) where 𝜆𝑑𝑥 denotes the 𝑑𝑥-th largest eigenvalues of the shift operator 𝑆. As a result, the value of 𝜆𝑑𝑥 for different shift operators exponentially governs the convergence rate of the training in terms the networks depth 𝐻 and affects the initialization, Remark 3.3, and the gradient descent step, Theorem 5.1.

6.1.2 Convergence of gradient flow training on the synthetic data

Finally, we provide an illustration of the convergence of the gradient flow training (Theorem 3.1) for all the aforementioned graph models with varying parameters. For each model, graphs on 𝑛=200 are considered with 3 most common choices of shift operators: adjacency matrix, Laplacian and normalized Laplacian; input feature data 𝑋 is sampled normally, 𝑑𝑥=50. We consider a linear GNN architecture with 𝐻=2 and hidden dimensions 𝑑1=𝑑2=32 (so 𝑊1∈ℝ32×50, 𝑊2∈ℝ32×32, and 𝑊3∈ℝ1×32 ); initialization follows Remark 3.3 with 𝑎=2. The labeled data set ℐ︀ is composed of 𝑛¯=0.75𝑛 and drawn uniformly; qualitative results below hold for all choices of ℐ︀. We provide the relative loss ℒ︀(𝑾(𝑇))−ℒ︀~𝐻ℒ︀(𝑾(0))−ℒ︀~𝐻 trajectory along the gradient flow and the singular value 𝜎small((𝑋𝑆𝐻)∗ℐ︀) for each considered setup; recalling Theorem 3.1, the relative loss is expected to converge exponentially in time.

Along with the exponential convergence of the linear GNN, we demonstrate the following:

  • the sparsity of the graph 𝐺 typically affects the convergence rate with unnormalized shift operators such that sparser systems exhibit slower convergence;

  • GNNs using normalized Laplacians tend to be the least affected by the changes in the network structure with BA(𝑛,𝑚) model showing close-to-none dependency on the injected varying graph structure.

Erdős–Rényi graph, 𝐺(𝑛,𝑝). In the classical 𝐺(𝑛,𝑝) model, the edge probability 𝑝 regulates the sparsity pattern (as well as the connectivity and the information spread) of the system; we consider the range of 𝑝 starting from a sparse but connected graph up to moderate values corresponding to the fast mixing, Figure 3.

Figure 3: Convergence rate of the relative loss ℒ︀(𝑾(𝑇))−ℒ︀~𝐻ℒ︀(𝑾(0))−ℒ︀~𝐻 in the gradient flow training for 𝐺(𝑛,𝑝) model, 𝑛=200 and varying 𝑝. Panes demonstrate loss flows for the different choices of the shift operator 𝑆 (left to right: adjacency matrix, graph Laplacian, normalized Laplacian) and the singular values 𝜎small((𝑋𝑆𝐻)∗ℐ︀); for 4 different values of 𝑝.

Note that in terms of the choice of shift operator, the convergence rate in Figure 3 generally supports the ordering established in Figure 2: gradient flows with unnormalized Laplacian tend to converge overall faster than ones using adjacency matrix, whilst the case of normalized Laplacian remains remarkably stagnant. For both unnormalized operators, convergence rate tends to suffer from sparser graph structures with the effects noticeably worse for the graph Laplacian; on the contrary, in the case of the normalized Laplacian operator, denser graphs may result into the slower convergence rate supported by the smaller values of 𝜎small((𝑋𝑆𝐻)∗ℐ︀).

Rem 6.1 [Normalized gradient flow for larger and denser graphs]

Linear GNN training in Figure 3 is facilitated through the discrete integration of the gradient flow (5). Since such integration is done in the direction of the anti-gradient, one aims to preserve the non-decreasing nature of the loss ℒ︀(𝑾(𝑇)) along the trajectory by appropriately choosing the integration step which may be forced to be unfeasibly small. Consequently, the explosive growth of the singular value 𝜎small((𝑋𝑆𝐻)∗ℐ︀) yields the faster convergence in time 𝑇 (Theorem 3.1), but, at the same time, it poorly affects the efficiency of the numerical integration due to the blow-up of gradient norms resulting into the smaller stepsizes, especially for larger and denser graphs with unnormalized shift operators.

One possible way to avoid the diminishing stepsizes is to consider instead the normalized gradient flow, 𝑑𝑊ℓ(𝑡)𝑑𝑡=−∇𝑊ℓℒ︀(𝑾(𝑡))∥∇𝑊ℓℒ︀(𝑾(𝑡))∥𝐹, allowing for a higher number of nodes and edges in graph 𝐺; we provide example for 𝐺(𝑛,𝑝) model in the case of 𝑛=500 in Figure 4. Note that whilst the normalized flow is expected to converge to the same global optimum, one loses the guarantee of exponential convergence. Besides that, we posit that qualitative results and aspects of convergence remain the same for both normalized and unnormalized gradient flows, and further provide results only for the unnormalized integration to maintain the theoretical framework of Theorem 3.1.

Figure 4: Convergence rate of the relative loss ℒ︀(𝑾(𝑇))−ℒ︀~𝐻ℒ︀(𝑾(0))−ℒ︀~𝐻 in the normalized gradient flow training for 𝐺(𝑛,𝑝) model, 𝑛=500 and varying 𝑝. Panes demonstrate loss flows for the different choices of the shift operator 𝑆 (left to right: adjacency matrix, graph Laplacian, normalized Laplacian) and the singular values 𝜎small((𝑋𝑆𝐻)∗ℐ︀); for 4 different values of 𝑝.

𝑘-nearest neighbors graph, 𝐾𝑘(𝑛). In the 𝑘-regular structure of 𝐾𝑘(𝑛), the convergence rate for the adjacency matrix is much closer to the case of the normalized graph Laplacian operator, Figure 5. Moreover, the moderate values of the common degree 𝑘 result into virtually the same loss trajectory during training, whilst the sparsest case is noticeably slower for unnormalized operators and faster for the normalized Laplacian.

Figure 5: Convergence rate of the relative loss ℒ︀(𝑾(𝑇))−ℒ︀~𝐻ℒ︀(𝑾(0))−ℒ︀~𝐻 in the gradient flow training for 𝐾𝑘(𝑛) model, 𝑛=500 and varying common degree 𝑘. Panes demonstrate loss flows for the different choices of the shift operator 𝑆(left to right: adjacency matrix, graph Laplacian, normalized Laplacian) and the singular values 𝜎small((𝑋𝑆𝐻)∗ℐ︀); for 4 different values of 𝑘.

Stochastic Block Model, SBM(𝑛1,𝑛2,𝑝,𝑞). In comparison with the simple Erdős–Rényi graph, we consider SBM model with 𝑛1:𝑛2=1:2 blocks, a fixed edge sparsity 𝑝 inside each block and the varying probability 𝑞 corresponding to the inter-cluster edges (starting from the barely connected clusters up to an almost joined structure resembling 𝐺(𝑛,𝑝)), Figure 6. Noticeably, the singular value 𝜎small((𝑋𝑆𝐻)∗ℐ︀) is sufficiently less affected by the changes in 𝑞 then by the changes in 𝑝 in the case of 𝐺(𝑛,𝑝), Figure 3, with the adjacency matrix showing the largest distinction. As a result, the convergence rate for the SBM model is influenced by the inter-block connections during training only for larger 𝑞 when the graph is well mixed for both adjacency matrix and unnormalized Laplacian.

Figure 6: Convergence rate of the relative loss ℒ︀(𝑾(𝑇))−ℒ︀~𝐻ℒ︀(𝑾(0))−ℒ︀~𝐻 in the gradient flow training for SBM(𝑛1,𝑛2,𝑝,𝑞) model, 𝑛1=66, 𝑛2=134, 𝑝=0.15 and varying 𝑞. Panes demonstrate loss flows for the different choices of the shift operator 𝑆(left to right: adjacency matrix, graph Laplacian, normalized Laplacian) and the singular values 𝜎small((𝑋𝑆𝐻)∗ℐ︀); for 4 different values of 𝑞.

Barabási-Albert model, BA(𝑛,𝑚). Finally, scale-free model BA(𝑛,𝑚) noticeably breaks established pattern: in the case of small minimal degree values 𝑚 (e.g. in the situations with many hanging nodes), the adjacency matrix exhibits the principle singular value 𝜎small((𝑋𝑆𝐻)∗ℐ︀) on par with the smallest one amongst chosen shift operators. Moreover, the overall convergence of the loss maintains the previously established pattern of dependency on the network’s density for adajcency matrix and Laplacian operator, whilst the convergence for the normalized Laplacian is virtually independent on the changing network structure.

Figure 7: Convergence rate of the relative loss ℒ︀(𝑾(𝑇))−ℒ︀~𝐻ℒ︀(𝑾(0))−ℒ︀~𝐻 in the gradient flow training for BA(𝑛,𝑚) model, 𝑛=200 and varying minimal degree 𝑚. Panes demonstrate loss flows for the different choices of the shift operator 𝑆(left to right: adjacency matrix, graph Laplacian, normalized Laplacian) and the singular values 𝜎small((𝑋𝑆𝐻)∗ℐ︀); for 4 different values of 𝑚.

6.2 Convergence of gradient flow training on real-world graphs

In this subsection, we illustrate the gradient dynamics using a real-world graph dataset. We consider the graph structure with 3107 nodes, corresponding to counties of the United States, and edges representing counties that share borders. The features data 𝑋, comprise land surface temperature, precipitation, sunlight, and fine particulate matter, and label data 𝑌, represent air temperature, collected from CDC climate data for each month, averaged over 2008 [46]. The datasets are normalized to have zero mean and unit standard deviation.

We now apply the gradient flow training on the graph neural network associated with the CDC climate data, and endorse Theorem 3.1. In our numerical simulation, we assume that 75% of the node label data are known and ℐ︀ be the index set of such nodes. We consider a linear graph neural network defined in (1) with 𝐻=2 and the initial weight matrices: 𝑊1∈ℝ32×48 is a zero matrix, 𝑊2∈ℝ32×32 is the identity matrix, and 𝑊3∈ℝ12×32 has diagonal entries 1.5 and all other 0. Figure 8 shows that the rate of convergence, i.e., the ratio of the relative MSE at time 𝑇 and the initial relative MSE, is accelerated by the smallest non-zero singular value of (𝑋𝑆𝐻)∗ℐ︀. In the experiment, we consider different aggregate matrix 𝑆 of the graph as given in the Subsection 6.1.1.

The initial choice of weight matrices proportionate the rate of convergence of MSE to the global minimum. In particular, we consider a 2-layer linear GNN with aggregation matrix 𝑆 as adjacency matrix of the graph, initial weight matrices 𝑊1∈ℝ32×48 is a zero matrix and 𝑊2 is the identity matrix of order 32. Consequently, Figure 8c illustrates that as the initial choice of diagonal entries of 𝑊3 increases, so does the convergence rate. Although the convergence rate in gradient flow training is proportional to 𝜎small((𝑋𝑆𝐻)∗ℐ︀) and smallest singular value of initial weight matrices, graph neural networks are usually trained iteratively in practice. The iteration step must be sufficiently small depending on significant values of 𝜎small((𝑋𝑆𝐻)∗ℐ︀) and 𝜎min(𝑊𝑖(0)).

Figure 8: Comparison of convergence rate in GNNs training for different aggregation matrices. Left: Chart of smallest non-zero singular value of (𝑋𝑆𝐻)∗ℐ︀ for different 𝑆. Middle: In gradient flow training of GNNs with fixed initial weight matrices, convergence rate is proportional to 𝜎small((𝑋𝑆𝐻)∗ℐ︀). Right: Convergence rate of a fixed aggregation matrix depends on initial weight matrices.

7 Conclusion

We study the convergence of gradient dynamics in linear graph neural networks. In order to avoid the existence of any sub-local minimum, we focus our study on GNNs without bottleneck layer. We demonstrate that, with appropriate initialization, the square loss converges to the global minimum at an exponential rate during gradient flow training of linear GNNs. Furthermore, a balanced initialization minimizes the total energy of the weight parameters at the global minimum. The convergence rate depends on the aggregation matrix and the initial weights, as confirmed through numerical experiments on synthetic and real-world datasets.

Bibliography

  • [1] K. He, X. Zhang, S. Ren, and J. Sun, “Deep residual learning for image recognition,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2016, pp. 770–778.
  • [2] G. E. Dahl, D. Yu, L. Deng, and A. Acero, “Context-dependent pre-trained deep neural networks for large-vocabulary speech recognition,” IEEE Transactions on Audio, Speech, and Language Processing, vol. 20, no. 1, pp. 30–42, 2011.
  • [3] C. Raffel et al., “Exploring the limits of transfer learning with a unified text-to-text transformer,” Journal of Machine Learning Research, vol. 21, no. 140, pp. 1–67, 2020.
  • [4] S. Arora, N. Cohen, N. Golowich, and W. Hu, “A convergence analysis of gradient descent for deep linear neural networks,” in International Conference on Learning Representations, 2019.
  • [5] S. Arora, N. Cohen, and E. Hazan, “On the optimization of deep networks: Implicit acceleration by overparameterization,” in International Conference on Machine Learning, 2018, pp. 244–253.
  • [6] B. Bah, H. Rauhut, U. Terstiege, and M. Westdickenberg, “Learning deep linear neural networks: Riemannian gradient flows and convergence to global minimizers,” Information and Inference: A Journal of the IMA, vol. 11, no. 1, pp. 307–353, 2022.
  • [7] Y. Chitour, Z. Liao, and R. Couillet, “A geometric approach of gradient descent algorithms in linear neural networks,” Mathematical Control and Related Fields, vol. 13, no. 3, pp. 918–945, 2023, doi: 10.3934/mcrf.2022021.
  • [8] K. Kawaguchi, “Deep learning without poor local minima,” Advances in Neural Information Processing Systems, vol. 29, 2016.
  • [9] M. Trager, K. Kohn, and J. Bruna, “PURE AND SPURIOUS CRITICAL POINTS: A GEOMETRIC STUDY OF LINEAR NETWORKS,” in 8th International Conference on Learning Representations, ICLR, 2020.
  • [10] C. C. Aggarwal, Neural networks and deep learning, vol. 10, no. 978. Springer, 2018.
  • [11] M. T. Schaub, J.-C. Delvenne, M. Rosvall, and R. Lambiotte, “The many facets of community detection in complex networks,” Applied Network Science, vol. 2, pp. 1–13, 2017.
  • [12] S. Wu, F. Sun, W. Zhang, X. Xie, and B. Cui, “Graph neural networks in recommender systems: A survey,” ACM Computing Surveys, vol. 55, no. 5, pp. 1–37, 2022.
  • [13] O. Wieder et al., “A compact review of molecular property prediction with graph neural networks,” Drug Discovery Today: Technologies, vol. 37, pp. 1–12, 2020.
  • [14] M. Defferrard, X. Bresson, and P. Vandergheynst, “Convolutional neural networks on graphs with fast localized spectral filtering,” Advances in Neural Information Processing Systems, vol. 29, 2016.
  • [15] S. Kearnes, K. McCloskey, M. Berndl, V. Pande, and P. Riley, “Molecular graph convolutions: Moving beyond fingerprints,” Journal of Computer-Aided Molecular Design, vol. 30, pp. 595–608, 2016.
  • [16] T. N. Kipf and M. Welling, “Semi-Supervised Classification with Graph Convolutional Networks,” in 5th International Conference on Learning Representations, 2017.
  • [17] K. Xu, M. Zhang, S. Jegelka, and K. Kawaguchi, “Optimization of graph neural networks: Implicit acceleration by skip connections and more depth,” in International Conference on Machine Learning, 2021, pp. 11592–11602.
  • [18] A. Srinivasan, S. Muggleton, R. D. King, and M. J. Sternberg, “Mutagenesis: ILP experiments in a non-determinate biological domain,” in Proceedings of the 4th International Workshop on Inductive Logic Programming, 1994, pp. 217–232.
  • [19] Z. Cui, K. Henrickson, R. Ke, and Y. Wang, “Traffic graph convolutional recurrent neural network: A deep learning framework for network-scale traffic learning and forecasting,” IEEE Transactions on Intelligent Transportation Systems, vol. 21, no. 11, pp. 4883–4894, 2019.
  • [20] S. P. Boyd and L. Vandenberghe, Convex optimization. Cambridge University Press, 2004.
  • [21] Y. Nesterov, Introductory lectures on convex optimization: A basic course, vol. 87. Springer Science & Business Media, 2013.
  • [22] K. G. Murty and S. N. Kabadi, “Some NP-complete problems in quadratic and nonlinear programming,” technical report 2, 1987.
  • [23] P. Awasthi, A. Das, and S. Gollapudi, “A convergence analysis of gradient descent on graph neural networks,” Advances in Neural Information Processing Systems, vol. 34, pp. 20385–20397, 2021.
  • [24] Y. Li and Y. Yuan, “Convergence analysis of two-layer neural networks with ReLU activation,” Advances in Neural Information Processing Systems, vol. 30, 2017.
  • [25] S. Chatterjee, “Convergence of gradient descent for deep neural networks,” arXiv preprint, arXiv:2203.16462, 2022.
  • [26] A. Brutzkus and A. Globerson, “Globally optimal gradient descent for a ConvNet with Gaussian inputs,” in International Conference on Machine Learning, 2017, pp. 605–614.
  • [27] R. Ge, J. D. Lee, and T. Ma, “Learning one-hidden-layer neural networks with landscape design,” in 6th International Conference on Learning Representations, 2018.
  • [28] R. Ge, F. Huang, C. Jin, and Y. Yuan, “Escaping from saddle points—online stochastic gradient for tensor decomposition,” in Conference on Learning Theory, 2015, pp. 797–842.
  • [29] J. D. Lee, M. Simchowitz, M. I. Jordan, and B. Recht, “Gradient descent only converges to minimizers,” in Conference on Learning Theory, 2016, pp. 1246–1257.
  • [30] A. Saxe, J. McClelland, and S. Ganguli, “Exact solutions to the nonlinear dynamics of learning in deep linear neural networks,” in Proceedings of the International Conference on Learning Represenatations, 2014.
  • [31] P. Bartlett, D. Helmbold, and P. Long, “Gradient descent with identity initialization efficiently learns positive definite linear transformations by deep residual networks,” in International Conference on Machine Learning, 2018, pp. 521–530.
  • [32] T. Laurent and J. Brecht, “Deep linear networks with arbitrary loss: All local minima are global,” in International Conference on Machine Learning, 2018, pp. 2902–2907.
  • [33] W. Hamilton, Z. Ying, and J. Leskovec, “Inductive representation learning on large graphs,” Advances in Neural Information Processing Systems, vol. 30, 2017.
  • [34] S. Brin, “The PageRank citation ranking: Bringing order to the web,” Proceedings of ASIS, vol. 98, pp. 161–172, 1998.
  • [35] J. Gasteiger, A. Bojchevski, and S. Günnemann, “Predict then propagate: Graph neural networks meet personalized PageRank,” in International Conference on Learning Representations, 2019.
  • [36] W. Dong, J. Wu, X. Zhang, Z. Bai, P. Wang, and M. Woźniak, “Improving performance and efficiency of Graph Neural Networks by injective aggregation,” Knowledge-Based Systems, vol. 254, p. 109616, 2022.
  • [37] W. L. Hamilton, Graph representation learning. Morgan & Claypool Publishers, 2020.
  • [38] J. Lee, Y. Oh, Y. In, N. Lee, D. Hyun, and C. Park, “GraFN: Semi-supervised node classification on graph with few labels via non-parametric distribution assignment,” in Proceedings of the 45th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2022, pp. 2243–2248.
  • [39] K. Zhou, X. Huang, Y. Li, D. Zha, R. Chen, and X. Hu, “Towards deeper graph neural networks with differentiable group normalization,” Advances in Neural Information Processing Systems, vol. 33, pp. 4917–4928, 2020.
  • [40] M. Cheng and H. Xu, “A Quasi-Wasserstein Loss for Learning Graph Neural Networks,” arXiv preprint, arXiv:2310.11762, 2023.
  • [41] M. Essid and J. Solomon, “Quadratically regularized optimal transport on graphs,” SIAM Journal on Scientific Computing, vol. 40, no. 4, pp. A1961–A1986, 2018.
  • [42] E. Facca and M. Benzi, “Fast iterative solution of the optimal transport problem on graphs,” SIAM Journal on Scientific Computing, vol. 43, no. 3, pp. A2295–A2319, 2021.
  • [43] T. Pham and X. Li, “Neural network-based power flow model,” in 2022 IEEE Green Technologies Conference (GreenTech), 2022, pp. 105–109.
  • [44] X. Zhan, Matrix theory, vol. 147. American Mathematical Society, 2013.
  • [45] C. R. Johnson and R. A. Horn, Matrix analysis. Cambridge University Press, 1985.
  • [46] “North America Land Data Assimilation System (NLDAS).” 2013.
  • [47] P. Erdos, A. Rényi, and others, “On the evolution of random graphs,” Publications of the Mathematical Institute of the Hungarian Academy of Sciences, vol. 5, no. 1, pp. 17–60, 1960.
  • [48] P. W. Holland, K. B. Laskey, and S. Leinhardt, “Stochastic blockmodels: First steps,” Social Networks, vol. 5, no. 2, pp. 109–137, 1983.
  • [49] A.-L. Barabási and R. Albert, “Emergence of scaling in random networks,” Science, vol. 286, no. 5439, pp. 509–512, 1999.