Quantifying uncertainty in graph neural network explanations

Junji Jiang, Chen Ling, Hongyi Li, Guangji Bai, Xujiang Zhao, Liang ZhaoFrontiers Big Data 2024

Abstract

Graph Neural Networks (GNNs) are increasingly deployed in high-stakes domains such as drug discovery and social network analysis. However, existing GNN explanation methods are often deterministic and overconfident, failing to account for the inherent uncertainties in data and model parameters. This paper introduces EU-GNN, a novel framework designed to quantify both aleatoric (data-driven) and epistemic (model-driven) uncertainty in GNN explanations. By leveraging a variational mechanism and a model-agnostic approach, EU-GNN provides a reliable measure of trust for post-hoc explanations, effectively serving as a signal for potential misclassifications.

Introduction

While GNNs excel at modeling complex relational data, their "black-box" nature necessitates robust explanation methods. Current explainers typically highlight specific nodes or edges as influential for a prediction, but they ignore the fact that these explanations might be based on noisy data or an under-trained model. Without quantifying this uncertainty, users may blindly trust misleading explanations. The challenge lies in the post-hoc nature of most explainers, which makes it difficult to assess how sensitive an explanation is to variations in input data or model parameters.

The EU-GNN Framework

EU-GNN addresses this gap by decomposing explanation uncertainty into two primary components:

  1. Aleatoric Uncertainty (Data-driven): This stems from noise in the input graph. The framework employs a reversible transformation operator to simulate measurement noise in node features and utilizes random walks to simulate structural uncertainty, such as missing or extraneous edges. By observing the variance in explanations across these perturbations, the model quantifies sensitivity to the data itself.
  2. Epistemic Uncertainty (Model-driven): This arises from the model's parameters. Rather than assuming a standard Gaussian distribution, EU-GNN utilizes a variational inference-based decoder to learn the actual distribution of GNN parameters directly from the data.
The EU-GNN framework architecture, illustrating the quantification of aleatoric (A) and epistemic (B) uncertainty through data perturbation and variational parameter sampling.

Crucially, EU-GNN is model-agnostic. It can be integrated with existing post-hoc explanation methods like Grad-CAM or GNNExplainer to provide an "uncertainty score" alongside standard saliency maps.

Experimental Evaluation

The framework was evaluated on three real-world molecular binary classification datasets from MoleculeNet: BBBP (Blood-Brain Barrier Penetration), BACE, and TOX21. To test the model's ability to generalize to novel molecular structures, the authors employed a scaffold split, grouping similar chemical structures together during training and testing.

Key Results and Insights

Uncertainty as a Misclassification Detector

A significant finding is that high explanation uncertainty serves as a strong indicator of model error. If the framework cannot produce a stable explanation for a prediction, it suggests the model lacks sufficient knowledge to make a reliable classification. EU-GNN showed substantial improvements in detecting misclassifications—improving AUC by 11.9% on BBBP, 8.5% on BACE, and 19.7% on TOX21 compared to existing uncertainty quantification methods.

Performance and Robustness

EU-GNN consistently outperformed baselines (including GCN, GAT, and GIN) across all datasets. For instance, on the BACE dataset with 5% noise, EU-GNN achieved an AUC of 0.623, surpassing the next best baseline. Furthermore, the framework demonstrated superior robustness, maintaining high classification accuracy even as data noise increased to 10%.

Qualitative Validation

Visual analysis revealed that when human experts disagreed with a GNN's explanation, EU-GNN correctly flagged those specific nodes or edges with high uncertainty scores. This effectively allows the model to communicate: "I am highlighting this feature, but I am not certain about its importance."

Conclusion and Future Work

EU-GNN sets a new standard for reliability in graph classification by providing a principled way to quantify "what the model doesn't know." While currently focused on graph-level classification, future work aims to extend this framework to node-level tasks and link prediction, as well as testing its scalability on much larger datasets. The ultimate goal is to develop explanatory models that inherently minimize uncertainty while maintaining high interpretability.

Summary updated

BibTeX
@article{jiang2024quantifying,
  author = {Junji Jiang and Chen Ling and Hongyi Li and Guangji Bai and Xujiang Zhao and Liang Zhao},
  title = {{Quantifying uncertainty in graph neural network explanations}},
  journal = {Frontiers Big Data},
  year = {2024},
  doi = {10.3389/fdata.2024.1392662},
}
Figure