NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Graph Random Features for Scalable Gaussian Processes

Matthew Zhang, Jihao Andreas Lin, Krzysztof Marcin Choromanski, Adrian Weller, Richard E. Turner, Isaac Reid

Gaussian Processes (GPs) are the "gold standard" for uncertainty-aware machine learning, but they have a notorious Achilles' heel: they don't scale well. If you have $N$ data points, standard GP inference requires $\mathcal{O}(N^3)$ time. On a graph with a million nodes, that computational cost is a death sentence.

A new paper, Graph Random Features for Scalable Gaussian Processes, presents a breakthrough. By leveraging Graph Random Features (GRFs)—a method to "sketch" a graph using random walks—the authors reduce the complexity of Bayesian inference to $\mathcal{O}(N^{3/2})$. This allows them to run complex Bayesian Optimization on graphs with over a million nodes using a single consumer-grade GPU.

The Challenge of Graphs

In many real-world scenarios, data doesn't live in a flat Euclidean space; it lives on a graph. Think of traffic sensors on a highway network or users in a social network. While two points might be physically close, they might be "far" in terms of connectivity.

GPs on graphs use "graph node kernels" to capture this connectivity. However, calculating these kernels usually involves matrix exponentials or inversions of the graph adjacency matrix, which costs $\mathcal{O}(N^3)$. This limits GPs to small graphs of just a few thousand nodes. Existing approximations often sacrifice "high-frequency" details or force the user into rigid, non-learnable kernel shapes.

Methods: Graph Random Features

The core innovation of this work is the application of Graph Random Features (GRFs) to approximate these dense kernels with sparse, learnable alternatives.

Overview of the Graph Random Features pipeline
  1. Random Walk Sketching: Instead of computing a dense $N \times N$ kernel matrix, the algorithm simulates short random walks starting from every node. These walks are used to build a sparse feature vector $\phi(i)$ for each node.
  2. Sparse Kernel Approximation: The kernel (similarity) between two nodes is estimated by the dot product of these vectors. Because the vectors are sparse, the resulting approximate Gram matrix $\hat{K}$ is also highly sparse.
  3. Iterative Solvers: Because $\hat{K}$ is sparse and has a well-behaved "condition number" (determining how easy a system is to solve), the authors use Conjugate Gradients (CG). They prove that this combination leads to a total inference time of $\mathcal{O}(N^{3/2})$.
  4. Learnable Kernels: Unlike previous methods that fixed the kernel shape (like a simple diffusion kernel), the authors use a "modulation function" that can be trained via gradient descent to learn the specific "flavor" of connectivity in a dataset.

Key Insights and Ideas

  • Sparsity as an Inductive Bias: Surprisingly, the sparse GRF kernels sometimes outperform exact dense kernels. The authors suggest that dense kernels can suffer from "oversmoothing," where they capture noisy, spurious long-range correlations. GRFs naturally focus on local neighborhoods while still sampling long-range dependencies with lower probability.
  • The $N^{3/2}$ Sweet Spot: By proving the condition number of the sparse matrix scales linearly with $N$, the authors provide a theoretical guarantee that their iterative solver will remain efficient even as the graph grows.
  • Deconvolution for Flexibility: The use of a "modulation function" allows the GP to learn whether the data requires "short-range" or "long-range" attention, making it far more flexible than standard graph kernels.

Key Results

The authors tested their method across a diverse range of benchmarks, including synthetic graphs, the San Jose freeway sensor network, ERA5 global wind velocity datasets, and large-scale social networks (YouTube, Facebook, Twitch).

Scaling performance of sparse GRFs vs. dense exact methods
  • Massive Speedups: On a graph with ~8,000 nodes, the sparse GRF implementation was 50x faster than the dense version. The scaling plots clearly show the sparse method (blue) maintaining efficiency long after the dense method (orange) runs out of memory or time.
  • Unprecedented Scale: The authors successfully performed Thompson Sampling (a Bayesian Optimization strategy) on the YouTube social network with 1.1 million nodes on a single NVIDIA RTX 2080 Ti GPU.
  • Superior Accuracy: In wind interpolation and traffic prediction tasks, the "fully learnable" GRF kernel consistently achieved lower error (RMSE) and better uncertainty quantification (NLPD) than standard diffusion kernels.

Limitations and Future Work

While the results are impressive, some limitations remain. The current theory assumes the graph structure is fixed; adapting this to dynamic graphs (where edges appear and disappear) is an open challenge. Additionally, the authors acknowledge a small $\mathcal{O}(1/n)$ bias in the diagonal entries of the kernel estimate, though they note this is negligible for large numbers of random walkers. Finally, while they touched on classification using Variational Inference, a deeper theoretical study of complexity for non-Gaussian likelihoods is left for future work.

Ultimately, this paper marks a significant step toward making Gaussian Processes a viable, scalable tool for the massive, interconnected datasets that define modern machine learning.

Summary updated

BibTeX
@inproceedings{zhang2026graph,
  author = {Matthew Zhang and Jihao Andreas Lin and Krzysztof Marcin Choromanski and Adrian Weller and Richard E. Turner and Isaac Reid},
  title = {{Graph Random Features for Scalable Gaussian Processes}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=89SQfLguNn},
}
Figure