Abstract
Gaussian processes (GPs) provide a principled and direct approach for inference and learning on graphs. However, the lack of justified graph kernels for spatio-temporal modelling has held back their use in graph problems. We leverage an explicit link between stochastic partial differential equations (SPDEs) and GPs on graphs, introduce a framework for deriving graph kernels via SPDEs, and derive non-separable spatio-temporal graph kernels that capture interaction across space and time. We formulate the graph kernels for the stochastic heat equation and wave equation. We show that by providing novel tools for spatio-temporal GP modelling on graphs, we outperform pre-existing graph kernels in real-world applications that feature diffusion, oscillation, and other complicated interactions.
Introduction
Gaussian Processes (GPs) are fundamental to machine learning due to their ability to provide principled uncertainty estimates and incorporate prior knowledge through the covariance function, or kernel. However, modeling data that resides on graphs and evolves over time—spatio-temporal graph data—presents significant challenges.
Traditional approaches often rely on "separable" kernels, which are constructed by multiplying a spatial kernel with a temporal one. This formulation assumes that spatial and temporal dependencies are independent. Such an assumption is physically unrealistic for processes like heat diffusion, wave propagation, or disease spread, where the signal's evolution in space is intrinsically linked to time. This work addresses this gap by deriving non-separable kernels directly from the physical intuition of Stochastic Partial Differential Equations (SPDEs).
Methodology: The SPDE-to-Graph Framework
The core contribution of this work is a four-step framework designed to derive graph kernels that respect both the graph's topology and physical dynamics:
- SPDE Definition: Select an SPDE based on physical priors (e.g., heat or wave equations).
- Graph Discretization: Replace the continuous Laplace operator ($\Delta$) with the negative graph Laplacian ($-L$).
- System Solution: Solve the resulting system of matrix differential equations.
- GP Covariance Derivation: Formulate the GP kernel from the solution, ensuring it captures the intertwined spatio-temporal dynamics.
Non-separable Kernels: SHEK and SWEK
Using this framework, two novel kernels are introduced:
- Stochastic Heat Equation Kernel (SHEK): Designed for diffusion-like processes where information spreads to neighboring nodes over time.
- Stochastic Wave Equation Kernel (SWEK): Designed for oscillatory or propagating signals, enabling the GP to model periodic wave-like behavior across the graph.
The "aha!" moment lies in the non-separability of these kernels. The correlation between two points depends on their distance in space and time simultaneously, providing a powerful inductive bias for physical processes.
Experimental Evaluation
The kernels were evaluated across several benchmarks, including synthetic heat transfer, COVID-19 forecasting in the US, and Hungarian chickenpox case counts.
Key Results
- Heat Transfer Extrapolation: SHEK achieved a Mean Absolute Error (MAE) of 1.29, significantly outperforming the product of Matérn and RBF kernels (MAE 2.81).
- COVID-19 Forecasting: In 4-week and 6-week extrapolation tasks, SHEK variants demonstrated lower error and significantly reduced variance across validation rounds compared to standard separable kernels.
- Abstract Topologies: The framework proved effective even on non-geographic graphs, such as flight path networks, demonstrating its versatility beyond physical space.
Conclusion
By linking SPDEs to graph-based GPs, this work provides a mathematically rigorous way to model complex spatio-temporal interactions. While computational complexity remains a challenge for very large graphs, the ability of these kernels to excel at extrapolation by adhering to underlying "physics" marks a significant advancement over standard separable models and many black-box neural architectures. Future work will explore more complex equations, such as those for fluid dynamics or social influence.
Summary updated