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

Graph Structure Learning with Interpretable Bayesian Neural Networks

Max Wasserman, Gonzalo Mateos

Abstract

Graphs serve as generic tools to encode the underlying relational structure of data. Often this graph is not given, and so the task of inferring it from nodal observations becomes important. Traditional approaches formulate a convex inverse problem with a smoothness promoting objective and rely on iterative methods to obtain a solution. In supervised settings where graph labels are available, one can unroll and truncate these iterations into a deep network that is trained end-to-end. Such a network is parameter efficient and inherits inductive bias from the optimization formulation, an appealing aspect for data constrained settings in, e.g., medicine, finance, and the natural sciences. But typically such settings care equally about \textit{uncertainty} over edge predictions, not just point estimates. Here we introduce novel iterations with \textit{independently interpretable parameters}, i.e., parameters whose values - independent of other parameters' settings - proportionally influence characteristics of the estimated graph, such as edge sparsity. After unrolling these iterations, prior knowledge over such graph characteristics shape \textit{prior distributions} over these independently interpretable network parameters to yield a Bayesian neural network (BNN) capable of graph structure learning (GSL) from smooth signal observations. Fast execution and parameter efficiency allow for high-fidelity posterior approximation via Markov Chain Monte Carlo (MCMC) and thus uncertainty quantification on edge predictions. Informative priors unlock modeling tools from Bayesian statistics like prior predictive checks. Synthetic and real data experiments corroborate this model's ability to provide well-calibrated estimates of uncertainty, in test cases that include unveiling economic sector modular structure from S$\&$P$500$ data and recovering pairwise digit similarities from MNIST images. Overall, this framework enables GSL in modest-scale applications where uncertainty on the data structure is paramount.

Introduction

In many fields—from finance to biology—we have data for "nodes" (like stock prices or gene expressions) but don't know the underlying "graph" (the relationships between them). Learning this graph is called Graph Structure Learning (GSL). Traditional methods are slow, iterative optimization solvers. Recent deep learning approaches "unroll" these iterations into neural network layers, making them much faster. However, these deep learning models typically provide only a point estimate—a single "best guess" for the graph. In high-stakes fields, a point estimate isn't enough; we need to know the uncertainty. If a model predicts a connection between two genes, is it 99% sure or only 51% sure?

Existing Bayesian Neural Networks (BNNs) could theoretically provide this uncertainty, but they are usually "black boxes" with thousands of non-interpretable parameters, making it nearly impossible to incorporate prior knowledge or perform reliable inference.

Methodology: Unrolling Interpretable Iterations

The authors bridge the gap between optimization and deep learning using three key steps:

  1. A New Algorithm (DPG): They develop a Dual Proximal Gradient (DPG) algorithm specifically for GSL. Crucially, it is step-size free (removing a "nuisance" parameter that often breaks training) and uses a parameterization where one variable ($\theta$) independently controls the sparsity of the resulting graph.
  2. Strict Unrolling: They turn the DPG iterations into a "true" neural network. Unlike previous unrolled models that use complex, non-linear parameter interactions, this model's layers are simple affine transformations. This keeps the total parameter count extremely low (often just 3 parameters: $\theta, \delta, b$).
  3. Bayesian Inference via HMC: Because the parameter space is so small, the authors can use Hamiltonian Monte Carlo (HMC)—a gold-standard sampling method—to calculate the full posterior distribution of the graph. This allows them to produce "heatmaps" of edge probabilities and standard deviations (uncertainty).
Algorithm 1 and the architecture of the unrolled DPG network.

Experimental Evaluation

The model was evaluated on both synthetic and real-world data:

  • Synthetic Ensembles: Random Geometric (RG), Erdős-Rényi (ER), and Barabási-Albert (BA) graphs.
  • S&P 500 Financial Data: Learning the modular structure of economic sectors from stock price time series.
  • MNIST Digits: Recovering pairwise similarities between images of handwritten "1"s and "2"s.
  • Scaling Benchmarks: A transfer learning experiment showed how parameters learned on small graphs ($N=20$) can be extrapolated to much larger ones ($N=1000$).

Key Results

  • Well-Calibrated Uncertainty: Reliability diagrams show that when the model is 80% confident in an edge, that edge is actually present roughly 80% of the time.
  • Efficiency: The DPG-based BNN is approximately 3x faster than previous unrolled GSL methods while maintaining better stability.
  • Real-World Utility: On S&P 500 data, the model successfully recovered the block-diagonal structure of economic sectors and correctly assigned higher uncertainty to "noisy" edges.
  • Robustness to Shift: When tested on data different from its training set, the model's uncertainty naturally increased, providing a built-in warning system.

Discussion and Insights

  • Interpretability as a Bridge: Because the parameter $\theta$ has a clear physical meaning (sparsity), researchers can set "Informative Priors." If a biological network is known to be sparse, this can be encoded directly into the BNN.
  • Uncertainty as a Proxy for Error: A high correlation (up to 0.91) exists between the model's predictive uncertainty and its actual error, meaning the model "knows what it doesn't know."
  • The Power of Low-D: By keeping the network "shallow and narrow," the authors avoid the "curse of dimensionality" that plagues standard BNNs, allowing for stable and accurate Bayesian sampling.

Conclusion

While the authors showed a path toward scaling via transfer learning, core HMC inference remains memory-intensive. Currently, the method is best suited for modest-scale applications where uncertainty is paramount. Future work includes exploring Variational Inference (VI) to handle larger datasets and integrating this GSL module into larger Graph Neural Network (GNN) pipelines where uncertainty can be propagated through the entire system.

Summary updated

BibTeX
@article{wasserman2024graph,
  author = {Max Wasserman and Gonzalo Mateos},
  title = {{Graph Structure Learning with Interpretable Bayesian Neural Networks}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=2noXK5KBbx},
}
Figure