GNNX-BENCH: Unravelling the Utility of Perturbation-based GNN Explainers through In-depth Benchmarking

Mert Kosan, Samidha Verma, Burouj Armgaan, Khushbu Pahwa, Ambuj Singh, Sourav Medya, Sayan Ranu

Graph Neural Networks (GNNs) have become the go-to architecture for everything from drug discovery to social network analysis. But like most deep learning models, they are essentially "black boxes." To fix this, researchers have developed various "explainers"—algorithms designed to tell us which parts of a graph (nodes or edges) were most important for a specific prediction.

However, a new paper presented at ICLR 2024, GNNX-BENCH, argues that we’ve been grading these explainers on a curve. While most explainer papers show promising results on a few metrics, they often ignore how these explanations hold up under real-world pressure.

TL;DR

GNNX-BENCH is the first comprehensive benchmarking study to systematically evaluate perturbation-based GNN explainers across both factual and counterfactual reasoning. The study reveals that while some methods are better than others (notably RCExplainer), the entire field struggles with stability to noise and the generation of domain-feasible explanations.

What Problem Does This Paper Address?

In the world of GNN explainability, there are two main ways to answer "Why?":

  1. Factual Reasoning: "What is the smallest part of this graph that is sufficient to maintain the model's prediction?"
  2. Counterfactual Reasoning: "What is the smallest change I could make to this graph to flip the model's prediction?"
Taxonomy of GNN explainability methods, highlighting perturbation-based factual and counterfactual approaches.

The problem is that existing evaluations are narrow. They usually focus on "sufficiency" (does the explanation work?) but ignore stability (does the explanation change if I add a tiny bit of noise?) and feasibility (is the explanation actually a valid graph in the real world?). If a GNN explains a molecule's toxicity by suggesting a counterfactual that violates the laws of chemistry, that explanation is practically useless to a scientist.

Methods

The authors evaluated 7 factual explainers (including GNNExplainer, PGExplainer, and SubgraphX) and 4 counterfactual explainers (including RCExplainer and CF-GNNExplainer).

To go beyond simple accuracy, they introduced a rigorous suite of metrics:

  • Sufficiency & Necessity: Measuring how much of the "signal" the explanation actually captures.
  • Stability: Using Jaccard similarity to see if explanations stay consistent across different GNN architectures, different random seeds, or when minor topological noise (random edges) is added.
  • Reproducibility: Testing if a GNN retrained only on the explanations can still perform well.
  • Feasibility: Specifically for molecular data, checking if the suggested changes result in valid, connected chemical structures.

Datasets

The benchmark utilizes a massive array of 13 datasets, split by task:

  • Graph Classification: 10 datasets including MUTAG, Mutagenicity, AIDS, Proteins, and ogbg-molhiv. These represent real-world chemical and biological structures.
  • Node Classification: 3 synthetic datasets (Tree-Cycles, Tree-Grid, BA-Shapes) where "ground truth" motifs are known, allowing for precise accuracy measurements.

Key Insights and Ideas

  • Inductive vs. Transductive: The study found that inductive explainers (which learn a mapping across a whole dataset) are significantly more stable than transductive explainers (which optimize an explanation for a single instance from scratch). Transductive methods like GNNExplainer are prone to "overfitting" to a specific instance, making them fragile to noise.
  • The Stability Crisis: Almost all explainers are highly sensitive to topological noise. Adding just a few random edges can completely shift what the explainer considers "important," which raises serious concerns for using these tools in noisy, real-world data environments.
Impact of topological noise on explanation stability (measured by Jaccard Similarity) across different datasets.
  • The Feasibility Gap: Current counterfactual explainers are "domain-blind." In molecular datasets, they frequently suggest "recourses" that result in disconnected fragments or chemically impossible structures.
  • The "Residual" Surprise: In a "Necessity" test, the authors found that if you remove the explanation and retrain the GNN on the rest of the graph, the model can often still make the correct prediction. This suggests that GNNs are learning redundant signals, and our current explainers only capture a small slice of the model's logic.

Key Results

  • RCExplainer emerged as the most robust and versatile method, particularly for graph classification. It showed superior stability and efficacy compared to older baselines.
  • CF-GNNExplainer was identified as the top performer for node classification tasks.
  • Quantitative Stability: In tests against topological noise, Jaccard similarity (a measure of explanation overlap) dropped significantly for most methods, though RCExplainer and PGExplainer maintained higher consistency than others.
  • Pareto Optimality: The authors identified a "Pareto frontier" of explainers, helping researchers choose the best tool depending on whether they value explanation size, sufficiency, or speed.

Limitations and Future Work

The authors are refreshingly honest about the state of the field:

  1. Post-hoc Limitations: Most current explainers are "post-hoc" (run after the model is trained). The authors suggest moving toward ante-hoc models, where the GNN and the explainer are trained jointly to ensure the model's logic is inherently interpretable.
  2. Baking in Domain Knowledge: Future explainers need to incorporate hard constraints (like valency in chemistry or connectivity in infrastructure) directly into their optimization functions to ensure feasibility.
  3. Search for Global Patterns: While this paper focused on instance-level (local) explanations, there is a massive need for better model-level (global) benchmarking to understand the overall behavior of GNNs.

GNNX-BENCH provides the community with a much-needed "reality check" and a standardized codebase to ensure that the next generation of GNN explainers is not just accurate, but reliable and useful for domain experts.

Summary updated

BibTeX
@inproceedings{kosan2024gnnx,
  author = {Mert Kosan and Samidha Verma and Burouj Armgaan and Khushbu Pahwa and Ambuj Singh and Sourav Medya and Sayan Ranu},
  title = {{GNNX-BENCH: Unravelling the Utility of Perturbation-based GNN Explainers through In-depth Benchmarking}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=VJvbOSXRUq},
}
Figure