Neural Tangent Kernels Motivate Graph Neural Networks with Cross-Covariance Graphs

Shervin Khalafi, Saurabh Sihag, Alejandro Ribeiro · Submission to ICLR 2024 · Rejected

TL;DR

When applying Graph Neural Networks (GNNs) to data without a predefined graph, practitioners typically construct graphs using input feature correlations ($C_{XX}$). Using Neural Tangent Kernel (NTK) theory, this paper proves that the optimal graph shift operator (GSO) for multivariate regression is instead governed by the cross-covariance ($C_{XY}$) between input and target data. Choosing a $C_{XY}$-based graph maximizes data-model alignment, provably accelerating gradient descent convergence and improving generalization.

What Problem Does This Paper Address?

In many spatial-temporal domains—such as neuroimaging (fMRI) or traffic forecasting—we want to use GNNs, but there is no explicit graph topology available. A common heuristic is to infer graph edges purely from input features, for instance via the input covariance matrix ($C_{XX}$) or pairwise Euclidean distances.

However, this ignores the target labels $Y$ during graph construction. The authors ask: Can learning theory rigorously guide how we should construct the graph structure for supervised regression? Specifically, they examine how the choice of Graph Shift Operator (GSO) interacts with the network's optimization dynamics and generalization capability under gradient descent.

Methods

The authors analyze the training dynamics through the lens of Neural Tangent Kernels (NTKs) in the infinite-width regime:

  • Alignment Metric: The rate of gradient descent convergence is bounded by the alignment metric $\mathcal{A} = \tilde{\mathbf{y}}^T \tilde{\Theta} \tilde{\mathbf{y}}$, which measures how well the target vector $\tilde{\mathbf{y}}$ aligns with the dominant eigenspaces of the NTK matrix $\tilde{\Theta}$. Maximizing $\mathcal{A}$ accelerates training loss reduction.
  • Graph Filter NTK Optimization: For a linear graph filter with $K$ filter taps, the authors express alignment explicitly in terms of the GSO $S$, input data $X$, and output data $Y$. They formulate an optimization problem to find the GSO $S^*$ that maximizes a lower bound on $\mathcal{A}$ under a bounded Frobenius norm constraint, showing that the optimal shift operator must satisfy: $$\sum_{k=0}^{K-1} (S^*)^k = \mu \, C_{XY}, \quad \text{where } C_{XY} = \frac{1}{2}(XY^T + YX^T)$$ For $K=2$, this yields $S^* = \mu C_{XY} - I$, directly pointing to normalized cross-covariance as the ideal graph.

  • Extension to Non-Linear Two-Layer GNNs: Using Hermite polynomial expansions for odd non-linearities (specifically $\tanh$), the authors prove that the NTK alignment of a two-layer GNN is bounded below by a scaled version of the linear GNN alignment ($\mathcal{A} \ge (c - d/\xi)\mathcal{A}_{\text{lin}}$), demonstrating that optimizing for $C_{XY}$ remains beneficial even with non-linear activation functions.

  • Generalization Bounds: Using Rademacher complexity, the paper extends NTK generalization theory to graph filters, showing that larger alignment $\mathcal{A}$ translates into tighter generalization error bounds.

Datasets

The authors evaluated their findings on three real-world multivariate time-series benchmarks where each feature channel represents a graph node:

  1. HCP-YA (Human Connectome Project - Young Adult): Resting-state fMRI data from 1003 healthy adults, comprising 100 brain region time series across 4,500 time points.
  2. PEMS07: California highway traffic flow dataset with 228 sensors and 12,671 time steps.
  3. ECG5000: Electrocardiogram dataset from the UCR archive with 140 features across 5,000 time steps.

No new datasets were introduced.

Key Insights and Ideas

  • Graphs are Parameters of the NTK: In standard neural networks, the NTK depends solely on data and layer weights. In GNNs, the GSO $S$ directly dictates the NTK's eigenspectrum. Thus, graph selection is equivalent to NTK engineering.
  • Input-Only Graphs Miss the Goal: Standard input covariance ($C_{XX}$) only captures relationships within $X$. But regression seeks a mapping from $X$ to $Y$; maximizing gradient alignment inherently requires aligning the operator with the cross-covariance $C_{XY}$.
  • Hermite Expansion bridges Linear and Non-Linear NTKs: By decomposing $\tanh$ activations into orthogonal Hermite polynomials, the non-linear GNN's alignment decomposes into a dominant linear term and smaller higher-order terms, showing that linear GSO optimality carries over to non-linear architectures.

Key Results

  • Faster Convergence and Lower Error: On HCP-YA rfMRI time-series forecasting, models using normalized $C_{XY}$ as the GSO consistently converged faster and achieved significantly lower training and test MSE compared to models using $C_{XX}$ across multiple forecast horizons ($\Delta t \in \{1, 2, 3, 4, 5\}$).
  • Robust Across Architectures: The advantage of $C_{XY}$ held across varying filter taps ($K \in \{2, 4, 6, 8\}$), deeper networks (3- and 4-layer GNNs), multi-step history inputs ($D = 2$), and alternative activations (Sigmoid, Leaky ReLU).
  • Outperforming Alternative Graph Heuristics: On HCP-YA, $C_{XY}$-based GNNs outperformed graphs constructed via Gaussian Euclidean distance kernels and Pearson correlation. A fully connected neural network (FCNN) achieved comparable test error to the $C_{XY}$ GNN, but required nearly $100\times$ more trainable parameters.
  • Cross-Domain Verification: On traffic (PEMS07, $\Delta t = 20$) and ECG (ECG5000, $\Delta t = 1000$), $C_{XY}$ again demonstrated faster convergence and lower test MSE compared to $C_{XX}$.

Limitations and Future Work

  • Equal Dimensions Required: The theory and experiments strictly assume inputs and targets have the same dimensionality ($x_i, y_i \in \mathbb{R}^n$), which limits direct application to tasks where output sizes differ from input sizes.
  • Bound Tightness: The authors note that the analytical tightness of the derived lower bounds on alignment was not deeply quantified.
  • Eigenvalue Ratio Variability: The generalization bound relies on the ratio $\lambda_{\max}(\tilde{\Theta})/\lambda_{\min}(\tilde{\Theta})$ being relatively stable across models; determining how much this spectral ratio fluctuates between different graph choices remains an open question.
  • Theoretical Scope: Theoretical proofs focus on two-layer GNNs with $\tanh$ activations, leaving rigorous proofs for arbitrary depths and activations (e.g., ReLU) to future work.

Summary updated

BibTeX
@misc{khalafi2023neural,
  author = {Shervin Khalafi and Saurabh Sihag and Alejandro Ribeiro},
  title = {{Neural Tangent Kernels Motivate Graph Neural Networks with Cross-Covariance Graphs}},
  year = {2023},
  eprint = {2310.10791},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.10791},
}
Figure