Uncertainty Estimation on Graphs with Structure Informed Stochastic Partial Differential Equations

Fred Xu, Thomas Markovich

Introduction

Graph Neural Networks (GNNs) have demonstrated remarkable success in modeling relational data across various domains. However, a significant barrier to their deployment in safety-critical applications—such as healthcare diagnostics or financial risk assessment—is their tendency toward overconfidence. Traditional GNNs often provide high-certainty predictions even when faced with out-of-distribution (OOD) data. This paper introduces SISPDE (Structure Informed Stochastic Partial Differential Equations), a framework designed to provide robust uncertainty estimation by grounding message passing in the principles of continuous physics.

The Challenge: Beyond Homophily

Most existing uncertainty estimation techniques for graphs rely on the assumption of homophily, where neighboring nodes are expected to share similar labels and features. In such scenarios, uncertainty is assumed to vary smoothly across the graph. However, real-world graphs are frequently heterophilic (possessing low label informativeness), where a node's neighbors may belong to different classes.

In heterophilic environments, traditional smoothing-based uncertainty models fail because they cannot account for the "roughness" or complex spatial correlations inherent in the data. SISPDE addresses this by treating the graph as a physical system where noise and uncertainty propagate according to tunable stochastic processes.

The SISPDE Framework

The core innovation of SISPDE is the mathematical analogy between GNN message passing and the evolution of a Stochastic Partial Differential Equation (SPDE). This approach allows the model to inject structured noise that respects the underlying graph topology.

1. The Matérn Gaussian Process

To define the noise structure, the authors utilize a Matérn Gaussian Process. Unlike standard white noise, the Matérn kernel includes a smoothness parameter ($\nu$). This parameter is the "secret sauce" of the framework:

  • High $\nu$ (Smooth): Ideal for homophilic graphs (e.g., citation networks like Cora), where uncertainty is expected to be spatially consistent.
  • Low $\nu$ (Rough): Essential for heterophilic graphs (e.g., Minesweeper), where uncertainty may have long-range correlations without being locally smooth.

2. $\Phi$-Wiener Process and Random Forcing

Instead of static noise, SISPDE employs a $\Phi$-Wiener process to inject spatially correlated noise. The model is implemented as a Neural ODE with random forcing, where noise is integrated at each layer (or "time step") of the network. This ensures that the uncertainty estimation is intrinsically linked to the feature transformation process.

3. Scalability via Chebyshev Approximation

Calculating the exact Matérn kernel is computationally prohibitive ($O(N^3)$). To make SISPDE viable for large-scale applications, the authors utilize Chebyshev polynomials to approximate the kernel. This optimization reduces the complexity to $O(m|E|)$, where $|E|$ is the number of edges, allowing the model to scale linearly with the graph size.

Experimental Evaluation

The framework was evaluated across eight diverse datasets, categorized by their Label Informativeness (LI):

  • High LI (Homophilic): Cora, Citeseer, and Pubmed.
  • Low LI (Heterophilic): Roman Empire, Amazon Ratings, Minesweeper, Tolokers, and Questions.

The researchers tested SISPDE’s ability to detect OOD samples under three distinct conditions: label shifts (unseen classes), structural perturbations, and feature noise.

Key Results

SISPDE demonstrated dominant performance in OOD detection tasks:

  • Ranking: Across 72 experimental configurations, SISPDE achieved the top or runner-up result in 98.6% of cases (71 out of 72).
  • State-of-the-Art Comparison: The model consistently outperformed GNSD, the previous benchmark for stochastic GNNs, across metrics including AUC, Detection Accuracy, and FPR95.
  • Heterophilic Performance: The most significant gains were observed in low-LI datasets, confirming that modeling the spatial correlation of uncertainty is critical for non-trivial graph structures.

Discussion and Insights

Two primary insights emerge from this work. First, smoothness is a choice: the ability to tune the Matérn parameter allows SISPDE to adapt to the specific "roughness" of a graph's information density. Second, the framework performs a form of implicit dynamic rewiring. By modeling correlations between distant but structurally similar nodes, the Matérn covariance structure allows the model to "see" beyond immediate neighbors, effectively creating a more informative graph representation.

Conclusion and Future Work

SISPDE bridges the gap between continuous physics and graph deep learning, providing a principled method for uncertainty estimation. While the Chebyshev approximation significantly improves scalability, future research may focus on even more efficient sparse matrix techniques for million-node graphs. Additionally, extending the framework from node-level uncertainty to graph substructures (motifs) and exploring non-linear uncertainty dependencies remain promising avenues for further development.

Summary updated

BibTeX
@inproceedings{xu2025uncertainty,
  author = {Fred Xu and Thomas Markovich},
  title = {{Uncertainty Estimation on Graphs with Structure Informed Stochastic Partial Differential Equations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=skx3QgGKEF},
}
Figure