Graph Neural Network-Inspired Kernels for Gaussian Processes in Semi-Supervised Learning

Zehao Niu, Mihai Anitescu, Jie Chen

TL;DR

This paper bridges the gap between Graph Neural Networks (GNNs) and Gaussian Processes (GPs) by proving that infinitely wide GNNs converge to GPs. By deriving "programmable" kernels that incorporate graph structure and introducing a recursive low-rank approximation, the authors create a model that matches GNN accuracy while being significantly faster and providing the inherent benefits of Bayesian uncertainty.

What Problem Does This Paper Address?

In the world of semi-supervised learning on graphs (like predicting the topic of a research paper based on its citations), Graph Neural Networks (GNNs) are the reigning champions. Their success comes from their "graph inductive bias"—the way they aggregate information from neighbors. However, GNNs can be finicky to train, often require extensive hyperparameter tuning, and don't naturally provide uncertainty estimates.

Gaussian Processes (GPs) are a mathematically elegant alternative. They offer closed-form solutions and principled uncertainty quantification. The catch? GPs traditionally struggle with two things:

  1. Graph Structure: Standard GP kernels (like RBF) don't "see" the connections between nodes.
  2. Scalability: GP inference usually scales cubically ($O(N^3)$) with the number of data points, making them nearly impossible to use on large graphs with millions of nodes.

Methods

The authors tackle these issues through three main contributions:

  1. The GNN-GP Equivalence: Building on prior work showing that fully connected neural networks converge to GPs as they become infinitely wide, the authors prove a similar result for Graph Convolutional Networks (GCNs). They derive a recursive formula to compute the covariance kernel of a GCN-inspired GP.
  2. Programmable Kernels: They provide a "dictionary" that maps standard GNN building blocks—like graph convolutions, ReLU activations, and skip connections—directly to kernel operations. This allows researchers to "program" a GP kernel that mirrors almost any GNN architecture (e.g., GCNII, GIN, GraphSAGE).
Dictionary mapping GNN building blocks to GP kernel operations
  1. Scalable Low-Rank Approximation: To solve the $O(N^3)$ bottleneck, they propose a recursive Nyström-like approximation. Instead of computing the full $N \times N$ covariance matrix, they maintain a low-rank factor ($Q$) throughout the layers. This reduces the complexity significantly, allowing the model to run on massive datasets like Reddit.

Datasets

The authors evaluated their approach on a diverse set of benchmarks:

  • Classification: Cora, Citeseer, PubMed (citation networks), ArXiv (Open Graph Benchmark), and Reddit (social media posts).
  • Regression: Chameleon, Squirrel, and Crocodile (Wikipedia page traffic networks).

Key Insights and Ideas

  • Inductive Bias is Key: The "magic" of GNNs isn't necessarily the gradient descent training; it's the architecture itself. By baking the graph structure into the GP kernel, you get the performance of a GNN without the training headaches.
  • Stability in Depth: GNNs famously suffer from "over-smoothing" as they get deeper, where all node representations become identical. The authors found that their GP counterparts (GCNGPs) are remarkably more stable at greater depths than traditional GNNs.
  • Speed vs. Accuracy Trade-off: Using "landmark nodes" for the low-rank approximation allows for a very favorable trade-off. Using just 1/800th of the training set as landmarks can yield accuracy that surpasses a standard GCN while running in a fraction of the time.

Key Results

  • Accuracy: GCNGP and its low-rank variant (GCNGP-X) performed comparably to, and often better than, standard GCNs. On regression tasks, the GCNGP significantly outperformed GCN.
Performance comparison of GCN and GP variants across multiple datasets
  • Efficiency: The GP models were consistently faster. On some datasets, the speedup was one to two orders of magnitude (10x to 100x faster) compared to training a GNN.
  • Scalability: The low-rank approximation allowed the GP to handle the Reddit dataset (~233k nodes, 11M edges), which is typically far beyond the reach of exact GP methods.

Limitations and Future Work

  • Graph Changes: One downside of this approach is that the covariance matrix depends on the graph structure. If the graph changes (e.g., new edges are added), the kernel must be recomputed from scratch, whereas a trained GNN might generalize more easily to new nodes.
  • Hyperparameter Tuning: While GPs avoid the "training" phase of NNs, they still require tuning the "nugget" (noise parameter) and weight/bias variances, usually via grid search.
  • Theoretical Gaps: The authors noted that the limiting behavior of the kernel in the "medium-variance" regime remains challenging to analyze mathematically, though it appears stable in practice.

Overall, this work provides a powerful new tool for graph machine learning, offering a "best of both worlds" approach that combines the structural awareness of GNNs with the speed and reliability of Gaussian Processes.

Summary updated

BibTeX
@inproceedings{niu2023graph,
  author = {Zehao Niu and Mihai Anitescu and Jie Chen},
  title = {{Graph Neural Network-Inspired Kernels for Gaussian Processes in Semi-Supervised Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=flap0Bo6TK_},
}
Figure