Abstract: Gaussian processes are a versatile framework for learning unknown functions in a manner that permits one to utilize prior information about their properties. Although many different Gaussian process models are readily available when the input space is Euclidean, the choice is much more limited for Gaussian processes whose input space is an undirected graph. In this work, we leverage the stochastic partial differential equation characterization of Matérn Gaussian processes—a widely-used model class in the Euclidean setting—to study their analog for undirected graphs. We show that the resulting Gaussian processes inherit various attractive properties of their Euclidean and Riemannian analogs and provide techniques that allow them to be trained using standard methods, such as inducing points. This enables graph Matérn Gaussian processes to be employed in mini-batch and non-conjugate settings, thereby making them more accessible to practitioners and easier to deploy within larger learning frameworks.
Introduction
Gaussian processes (GPs) are a cornerstone of Bayesian machine learning, providing a robust framework for regression and classification with principled uncertainty quantification. While GPs are well-understood in Euclidean spaces, extending them to non-Euclidean domains like undirected graphs remains a challenge. Standard kernels, such as the Matérn or Squared Exponential, rely on Euclidean distances which fail to capture the intrinsic connectivity of graph-structured data (e.g., social networks, road systems, or molecular structures). Simply replacing Euclidean distance with graph distance often leads to non-positive semi-definite covariance matrices, rendering the model invalid. This work introduces a mathematically rigorous definition of Matérn GPs on graphs by utilizing their stochastic partial differential equation (SPDE) representation.
Methodology: The SPDE Bridge
In Euclidean space, a Matérn GP $f$ can be viewed as the solution to a specific SPDE involving the Laplacian operator. The authors generalize this to graphs by replacing the continuous Laplacian with the discrete graph Laplacian $\mathbf{L} = \mathbf{D} - \mathbf{A}$.
By applying functional calculus to the graph Laplacian, the kernel can be expressed through the spectral decomposition of $\mathbf{L}$. This formulation ensures the resulting covariance matrix is always positive semi-definite and allows practitioners to control the "smoothness" of the modeled functions, a key advantage of the Matérn family.
Properties and Insights
A key finding is that graph Matérn GPs exhibit non-stationary behavior dictated by the graph's topology. Unlike Euclidean GPs where prior variance is constant, the variance in graph GPs depends on node connectivity and centrality.
Additionally, the authors prove that these kernels are consistent with continuous geometry. When a graph is constructed as a mesh approximation of a Riemannian manifold (such as a sphere), the graph Matérn kernel converges to the true Riemannian Matérn kernel as the mesh density increases.
Scalable Training
To handle large-scale graphs, the authors propose two main strategies:
- Sparse Precision Matrices: For specific integer smoothness parameters, the precision matrix (inverse covariance) is sparse, allowing for efficient computation using Gaussian Markov Random Field (GMRF) techniques.
- Graph Fourier Features: For general cases, the kernel is approximated using a truncated eigenvalue expansion. This allows the use of variational inference with inducing points, enabling training on large graphs via mini-batches and application to non-conjugate likelihoods like multi-class classification.
Empirical Results
The model was evaluated on two distinct tasks:
- Traffic Interpolation: On a San Jose road network, the graph Matérn GP successfully modeled traffic speeds, respecting the graph topology (e.g., distinguishing between opposite lanes of a highway) where Euclidean models would fail. It achieved a Mean Squared Error (MSE) of 1.37.
- Node Classification: On the Cora citation network, the model achieved approximately 79% accuracy in predicting paper topics using only the graph structure, matching or beating alternative graph kernels.
Conclusion
By leveraging the SPDE characterization, this work provides a flexible and scalable framework for Matérn GPs on graphs. The approach bridges the gap between discrete graph kernels and continuous manifold kernels, offering practitioners a powerful tool for modeling uncertainty on complex, non-Euclidean data structures.
Summary updated