Random-Set Graph Neural Networks

Tommy Woodley, Shireen Kudukkil Manchingal, Matteo Tolloso, Davide Bacciu, Fabio Cuzzolin

TL;DR

Random-Set Graph Neural Networks (RS-GNN) introduce a novel framework that replaces the traditional softmax layer in GNNs with a belief-function head based on random-set theory. By predicting probability masses over sets of classes rather than singletons, RS-GNN can explicitly model and quantify node-level epistemic uncertainty ("what the model doesn't know"). This approach significantly enhances out-of-distribution (OOD) detection and model calibration, making GNNs safer for deployment in critical applications like autonomous driving.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) excel at processing data with complex relational dependencies, such as social networks, citation webs, and spatial road scenes. However, when deployed in safety-critical domains like autonomous driving, GNNs must not only be accurate but also aware of their own limitations.

Standard GNN architectures typically use a softmax layer to output a precise probability distribution over classes. The fundamental flaw here is that softmax forces the model to distribute its probability mass entirely among individual classes, even when encountering completely novel, out-of-distribution (OOD) data. This leads to highly confident but completely erroneous predictions.

Uncertainty comes in two flavors: aleatoric (inherent randomness or noise in the data) and epistemic (lack of knowledge about the system, which could be reduced with more data). While existing methods like Bayesian GNNs or deep ensembles attempt to capture epistemic uncertainty, they suffer from massive computational overhead, require complex prior distributions, or scale poorly. The authors address this gap by proposing a mathematically rigorous yet computationally efficient framework to quantify node-level epistemic uncertainty.

Figure 1: Standard GNN pipeline for node classifica- tion, where message passing produces node embed- dings followed by a softmax probability vector.

Methods

The core innovation of RS-GNN is the replacement of the standard softmax output head with a belief-function head rooted in Dempster-Shafer theory (or finite random set formalism).

Instead of mapping a node embedding directly to a vector of single-class probabilities, RS-GNN predicts belief values over a budgeted collection of focal sets $\mathcal{F}$ (which includes all individual classes plus selected multi-class subsets).

Here is how the pipeline works:

  1. Backbone Embedding: A standard GNN backbone (like GATv2) generates node representations.
  2. Belief Prediction: The belief head outputs a belief value for each focal set in the budget.
  3. Möbius Inversion: These beliefs are transformed into mass values ($m(A)$) using the Möbius inverse formula, representing the probability mass assigned exactly to a set of classes $A$.
  4. Pignistic Transformation: To make a final point prediction, the mass function is projected into a standard probability distribution (the pignistic probability, $BetP$), which geometrically represents the center of mass of the induced credal set (a convex set of consistent probability distributions).
  5. Uncertainty Quantification:
  6. Predictive Uncertainty is captured via the Shannon entropy of the pignistic probability.
  7. Epistemic Uncertainty is directly measured by the credal set width—the difference between the upper bound (plausibility) and lower bound (belief) of the predicted class interval.
Figure 2: Overview of the Random-Set Graph Neural Network (RS-GNN). RS-GNN replaces the softmax layer with a belief head that outputs a mass function mv over a budgeted collection of focal sets F (singletons plus selected subsets). From the predicted mass function we derive (i) a pignistic probability vector BetPv for point prediction and (ii) singleton lower and upper probabilities defining the induced credal set. On the right is its geometric interpretation in the 3-class probability simplex. The red polygon represents the credal set induced by mv; its center corresponds to the pignistic probability (red cross), whose entropy defines the pignistic entropy. The vertical span of the credal set along the predicted class axis corresponds to the credal set width used as an epistemic uncertainty score.

To ensure scalability in large class spaces, the authors implement a budgeted focal-set selection strategy using warm-up confusion statistics rather than computing the full exponential power set ($2^C$).

Datasets

The authors evaluated RS-GNN across a diverse suite of 9 standard graph benchmarks and 2 complex, real-world autonomous driving datasets:

  • Standard Benchmarks: Coauthors, Chameleon, Squirrel, Reddit2, ArXiv, Roman Empire, Amazon-Ratings, Cora, and Patents. These cover various graph topologies, homophilic, and heterophilic settings.
  • Autonomous Driving Benchmarks:
  • ROAD (Road Event Awareness Dataset): Contains dense temporal annotations of urban/suburban driving scenes, featuring rare interaction patterns and occlusions.
  • nuScenes: A large-scale multimodal dataset with 1,000 driving scenes used to construct complex spatio-temporal scene graphs.

Key Insights and Ideas

  • Embracing Ambiguity: Traditional models force a choice between individual classes (e.g., deciding blindly between "car" or "truck" under heavy occlusion). RS-GNN allows the model to assign mass to the set {"car", "truck"}, naturally preserving the ambiguity until more evidence is available.
  • Accuracy vs. Uncertainty Trade-off: The ablation studies revealed that optimizing purely for classification accuracy does not guarantee reliable uncertainty estimation. In fact, configurations with the highest OOD detection capability (AUROC) were sometimes distinct from those with the highest in-distribution (ID) accuracy, highlighting the necessity of joint evaluation metrics.
  • Robustness to Domain Shift: Under extreme cross-dataset shifts (e.g., training on ROAD and testing OOD on nuScenes), standard softmax models experience an "overconfidence collapse," assigning high certainty to completely foreign data. RS-GNN successfully avoids this collapse by spreading mass to non-singleton sets, maintaining a strong uncertainty signal.

Key Results

RS-GNN demonstrated superior OOD detection and calibration performance compared to a wide array of competitive baselines, including Energy-based models, Mahalanobis distance, and Classical Ensembles.

  • OOD Detection Performance: As shown in the paper's comprehensive evaluation tables, RS-GNN consistently achieved top-tier or second-best AUROC scores across the standard benchmarks, frequently outperforming post-hoc calibration methods like CaGCN and GEBM.
Table 1: OOD detection performance across all datasets (AUROC ↑) for baseline methods. Best results are highlighted in bold, second-best are underlined, and third-best are shown with a light gray background.
Table 2: OOD detection performance across all datasets (AUROC ↑) for credal-based methods and RS-GNN. Best results are highlighted in bold, second-best are underlined, and third-best are shown with a light gray background.
  • Autonomous Driving Performance: On the highly imbalanced nuScenes dataset, RS-GNN dramatically improved ID classification accuracy from 0.418 (Vanilla GNN) to 0.593, while simultaneously slashing the Negative Log-Likelihood (NLL) from 7.047 down to 2.079.
  • Calibration: On the ROAD dataset, RS-GNN significantly improved Expected Calibration Error (ECE) to 0.132 (compared to 0.178 for the vanilla model), proving that its probability estimates are far more reliable.

Limitations and Future Work

While RS-GNN marks a major step forward, the authors note a few key limitations:

  1. Hyperparameter Sensitivity: The quality of the uncertainty quantification can be highly sensitive to the chosen focal-set configuration and dataset properties.
  2. Cross-Dataset Generalization: Although RS-GNN prevents total overconfidence collapse under extreme cross-dataset domain shifts, achieving high absolute OOD detection performance in these scenarios remains an open challenge.

Future Direction: The current framework applies the random-set formalism strictly at the output prediction head. The authors state that the natural next step is to fully integrate belief function representations directly into the message-passing core of the GNN, allowing uncertainty to propagate dynamically across graph layers.

Summary updated

BibTeX
@inproceedings{woodley2026random,
  author = {Tommy Woodley and Shireen Kudukkil Manchingal and Matteo Tolloso and Davide Bacciu and Fabio Cuzzolin},
  title = {{Random-Set Graph Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=z55e3q7BpN},
}

Loading related content...

Figure