Learning Graph Neural Networks with Approximate Gradient Descent

Qunwei Li, Shaofeng Zou, Wenliang Zhong

Introduction

While Graph Neural Networks (GNNs) have achieved remarkable empirical success, their theoretical foundations have remained elusive. Training GNNs involves optimizing highly non-convex objective functions, a task that is generally NP-hard. Unlike Convolutional Neural Networks (CNNs), GNNs present unique challenges: overlapping receptive fields due to shared neighbors, unordered data, and varying graph geometries. This paper introduces the first provably efficient algorithm for training one-hidden-layer GNNs, demonstrating that they can achieve a linear convergence rate to their true underlying parameters across a wide range of activation functions.

The Approximate Gradient Descent (AGD) Framework

The authors propose an Approximate Gradient Descent (AGD) algorithm to overcome the computational and mathematical hurdles of standard gradient descent. In standard approaches, calculating the derivative of the activation function ($\sigma'$) at every step for every data point is prohibitively expensive and difficult to bound theoretically.

AGD utilizes an "inexact" gradient by pre-calculating auxiliary matrices ($\Xi_N$ for node-level and $\Xi_G$ for graph-level tasks) based on the expected distribution of the data. The framework operates within a Teacher-Student model, assuming training data is generated by a "teacher" GNN. The goal is for the "student" GNN to recover the teacher's weights ($W^*$ and $v^*$). To navigate the non-convex landscape, the authors employ a "4-sign" initialization strategy to ensure the algorithm begins in a region conducive to convergence.

Theoretical Insights and Convergence

The core contribution of this work is the proof of linear convergence. Despite the non-convexity of the objective function, the error between the student and teacher weights drops exponentially over time until reaching a statistical precision floor.

Crucially, this framework is activation agnostic. While previous proofs often relied on the specific properties of ReLU, this theory holds for any monotonic and Lipschitz continuous activation function, including Sigmoid, Tanh, and Swish. The authors successfully extended CNN theory to the graph domain by developing techniques to handle the dependencies inherent in overlapping node neighborhoods, proving that gradients remain well-behaved even in complex graph structures.

Numerical Validation

To validate the theoretical findings, the authors conducted experiments on synthetic datasets for both node-level (NGNN) and graph-level (GGNN) tasks. The results consistently show a steady decline in L2 error for both hidden weights ($W$) and output weights ($v$).

Convergence of L2 error for weights $W$ and $V$ during training across initial activation functions.

The experiments confirm that the linear convergence rate is robust across different activation functions. For instance, the dynamics for Tanh and Swish activations mirror the theoretical predictions, showing consistent error reduction over training epochs.

Linear convergence observed for Tanh and Swish activation functions, validating the activation-agnostic nature of the AGD framework.

Interestingly, the experiments revealed distinct weight dynamics: in node-level tasks, the hidden weights ($W$) typically converge slower than the output weights ($v$), whereas in graph-level tasks, the hidden weights often converge more rapidly.

Conclusion and Future Directions

This research provides a significant theoretical breakthrough by establishing the first convergence guarantees for GNNs. It proves that GNNs are not just empirically powerful but also theoretically sound and efficiently trainable under certain conditions.

However, limitations remain. The current proof is restricted to single-hidden-layer architectures and assumes a teacher-student data generation process. Future work will need to address deeper GNNs, more complex real-world data distributions, and the specific impact of diverse graph topologies on convergence rates.

Summary updated

BibTeX
@inproceedings{li2021learning,
  author = {Qunwei Li and Shaofeng Zou and Wenliang Zhong},
  title = {{Learning Graph Neural Networks with Approximate Gradient Descent}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i10.17025},
}
Figure