Introduction
Graph Neural Networks (GNNs) have become pivotal architectures for analyzing graph-structured data. As their application expands into high-stakes and sensitive domains like drug discovery and fraud detection, understanding why these models make certain predictions is critical. This necessitates a robust framework for GNN explainability. Typically, an "explainer" identifies a small, critical subgraph—or motif—that acts as a "sufficient statistic" driving the model's decision. However, evaluating the performance of these explanation functions presents a foundational challenge.
The Flaw in Traditional Fidelity: Distribution Shift
To evaluate GNN explainers, researchers traditionally rely on Fidelity metrics. The intuition behind these metrics is straightforward:
- Fidelity+ ($Fid_+$): If the "important" subgraph is removed, the model's prediction should change significantly.
- Fidelity- ($Fid_-$): If the model is only shown the "important" subgraph in isolation, its prediction should remain unchanged.
While conceptually sound, this paper highlights a fatal flaw in prevailing metrics like $Fid_+$, $Fid_-$, and $Fid_\Delta$: Distribution Shift. When a graph is stripped down to a tiny fragment or has a hole punched in its structure, the resulting object becomes "Out-of-Distribution" (OOD). Because the GNN was trained on complete, coherent graphs, it essentially "panics" when fed these broken structures, producing unreliable outputs. Consequently, traditional fidelity scores often measure the model's confusion rather than the actual accuracy of the explainer. A high fidelity score might simply indicate that the graph has been broken so severely that the GNN can no longer recognize anything.
Proposed Solution: Robust Fidelity via Stochastic Sampling
To address the OOD problem, the authors first establish a formal, information-theoretic definition of explainability. They distinguish between the explainability of the underlying task (whether any model can explain the data) and the classifier (whether a specific model's logic can be extracted), proving that for accurate models, these two notions converge.
Building on this theoretical foundation, they propose a Robust Class of Surrogate Fidelity Measures. Instead of using binary "keep or drop" masking, which creates severe distribution shifts, the authors introduce stochasticity:
- Stochastic Graph Sampling ($E_\alpha$): A function is defined to erase edges with a specific probability $\alpha$.
- Robust Metrics ($Fid_{\alpha1, \alpha2, \Delta}$): Rather than comparing the original graph to a completely stripped version, the new metrics compare it to versions where edges are sampled or "blurred" stochastically.
By utilizing these "soft" removals and additions, the resulting subgraphs remain much closer to the typical realizations the GNN encountered during training. The authors provide theoretical proofs demonstrating that these robust metrics align better with the true information-theoretic goals of explainability by smoothing the transition between the full graph and the subgraph.
Experimental Setup and Datasets
The study validates these robust metrics across four benchmark datasets where the "ground truth" (the actual motif causing the label) is known, allowing for a "Gold Standard" comparison:
- Node Classification: Tree-Cycles (binary trees with cycle motifs) and Tree-Grid (binary trees with grid motifs).
- Graph Classification: BA-2motifs (synthetic graphs with "house" or "cycle" motifs) and MUTAG (a real-world dataset of mutagenic molecules where specific chemical groups like $NO_2$ serve as the ground truth).
Key Results: Alignment and Resilience
The authors compared their robust metrics against traditional ones by calculating the Spearman correlation coefficient relative to the Gold Standard (the edit distance to the actual ground-truth motifs). The results strongly favor the proposed approach:
- Superior Alignment: The robust metrics ($Fid_{\alpha1,+}$ and $Fid_{\alpha2,-}$) consistently achieved correlation scores near -1.0 or 1.0 across all datasets. In stark contrast, traditional metrics like $Fid_+$ were highly inconsistent, occasionally showing positive correlations where they should have been negative.
- Adversarial Resilience: In specific case studies, traditional metrics frequently ranked "adversarial" (fake) explanations higher than the ground truth. The robust metrics successfully resisted this, correctly identifying the ground truth as the superior explanation.
- Model Agnosticism: The robust metrics maintained their performance across different GNN architectures, including Graph Convolutional Networks (GCN) and Graph Isomorphism Networks (GIN).
Limitations and Future Directions
While the robust fidelity metrics offer a significant improvement over traditional methods, the authors note a few limitations:
- Computational Overhead: Computing robust fidelity requires sampling the graph $M$ times (the authors used $M=50$ in their experiments). This makes the evaluation process significantly slower than traditional single-pass metrics.
- Hyperparameter Selection: The metrics depend on the selection of erasure probabilities $\alpha_1$ and $\alpha_2$. Although the authors suggest that $\alpha_1=0.1$ and $\alpha_2=0.9$ work well generally, optimal values may vary depending on the specific graph density of new datasets.
- Broader Applications: While this study focuses on GNNs, the underlying logic regarding OOD issues in fidelity evaluation could potentially be applied to other domains, such as image or text Explainable AI (XAI), presenting an exciting avenue for future research.
Summary updated