Is Solving Graph Neural Tangent Kernel Equivalent to Training Graph Neural Network?

Lianke Qin, Zhao Song, Baocheng SunarXiv 2023 · DOI

Abstract

This paper establishes a rigorous theoretical foundation for Graph Neural Networks (GNNs) by bridging them with kernel methods. We formally prove that training an infinitely wide GNN using gradient descent is mathematically equivalent to solving a Graph Neural Tangent Kernel (GNTK) regression. This equivalence is extended to node-level regression for the first time, providing necessary mathematical formulations and convergence proofs to unify GNN training with classical kernel theory.

Introduction

Deep learning often operates as a "black box." To understand its internal dynamics, researchers utilize the Neural Tangent Kernel (NTK), which demonstrates that as a neural network's width approaches infinity, its training dynamics simplify into a linear model governed by a fixed kernel. While this equivalence is well-established for standard fully connected networks, GNNs introduce unique challenges due to graph structures involving aggregation and combination of neighbor information. Previous work proposed a "Graph NTK" (GNTK) with empirical success, but a formal proof of equivalence—showing that a GNN trained with gradient descent actually converges to the GNTK solution—was missing. Furthermore, the theory for node-level tasks was previously undeveloped.

Methods

The authors employ a "bridge" strategy to prove equivalence between GNN training and kernel methods. The approach involves defining a kernel that tracks the inner product of GNN gradients during training and proving that this kernel remains nearly constant in the infinite-width limit.

Overview of the GNN training process and its relationship to the Graph Neural Tangent Kernel (GNTK) and Dynamic Kernel.

The methodology includes:

  1. Iterative GNTK Regression: An iterative version of the kernel method using gradient descent is introduced to facilitate direct comparison with GNN training.
  2. Graph Dynamic Kernel: A kernel is defined to track the inner product of GNN gradients during training.
  3. The "Almost Invariant" Property: A key technical hurdle was proving that the Graph Dynamic Kernel stays nearly constant throughout training in the infinite-width limit, despite the complex "Aggregate" and "Combine" operations unique to graphs.
  4. Shifted ReLU: To ensure the resulting kernel matrices are well-behaved, a "shifted" ReLU activation function is utilized, providing a spectral gap that guarantees convergence.

Key Insights and Ideas

  • The Node-Level Breakthrough: This paper provides the first formal GNTK formulation for node-level regression. Unlike graph-level tasks, node-level tasks require accounting for the dependencies between nodes within the same graph during the processing phases.
  • Complexity vs. Stability: The authors show that even though GNNs have complex structural dependencies, the "averaging" effect of infinite width makes the training trajectory highly predictable.
  • Scaling Laws: The proofs reveal how the required network width ($m$) and training iterations ($T$) scale with the number of nodes ($N$). For graph-level tasks, the width depends on $N^2$, while for node-level tasks, it depends on $N^{10}$, highlighting the theoretical difficulty of node-level equivalence.

Key Results

  • Formal Equivalence: The paper proves that for any accuracy $\epsilon$, there exists a width $m$ and time $T$ such that the difference between the GNN's prediction and the GNTK's prediction is less than $\epsilon$.
  • Convergence Rates: They establish that both GNNs and iterative GNTK regression exhibit linear convergence, meaning the error drops exponentially fast during training.
  • Spectral Gap Guarantee: Theorem 4.2 provides a lower bound on the smallest eigenvalue of the GNTK matrix, ensuring that the kernel regression problem is always solvable and stable.

Limitations and Future Work

The theory relies on the "over-parameterized" regime of infinitely wide layers, whereas real-world GNNs are finite. While the paper lays groundwork for multi-layer analysis, the primary theorems focus on single-layer GNNs. Additionally, solving GNTK regression involves $O(n^2)$ or $O(n^3)$ matrix operations, which can be more computationally expensive than training a standard GNN for large datasets. Future work may explore "sketching" techniques to improve computational efficiency.

Summary updated

BibTeX
@misc{qin2023is,
  author = {Lianke Qin and Zhao Song and Baocheng Sun},
  title = {{Is Solving Graph Neural Tangent Kernel Equivalent to Training Graph Neural Network?}},
  year = {2023},
  eprint = {2309.07452},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.07452},
}
Figure