Abstract
Most Graph Neural Network (GNN) explanation methods fail because they force models to evaluate "weighted" graphs (with soft edge masks) that differ significantly from the binary, unweighted graphs used during training. This paper introduces STORE (Graph Explanation with STOchastic RE-weighting), an iterative framework that retrains the GNN on stochastically re-weighted graphs. By teaching the model to handle continuous edge weights, STORE produces significantly more robust and faithful explanations.
Introduction: The "Soft Mask" Fallacy
GNNs are powerful but notoriously "black-box." To explain a prediction, researchers typically try to find a small subgraph responsible for the model's output. The standard approach involves optimizing a "soft mask"—a set of continuous weights between 0 and 1—over the graph's edges.
However, a fundamental gap exists: GNNs are almost always trained on binary graphs. When an explainer asks a GNN to process a graph with intermediate weights (e.g., 0.3 or 0.7), the model enters an "out-of-distribution" (OOD) state. In this state, gradients become unreliable and predictions fluctuate wildly. Even slight deviations from binary weights can cause accuracy to plummet, leading to "unfaithful" explanations that do not reflect the model's true internal logic.
The STORE Framework
To bridge this gap, we propose STORE, which utilizes an iterative, two-phase process designed to align the model's training distribution with the explainer's weighted inputs:
- Subgraph Identification: The framework utilizes an existing explainer (e.g., GNNExplainer or PGExplainer) to identify a relatively large, "reliable" explanation subgraph.
- Model Adaptation (Retraining): Instead of accepting the mask directly, STORE constructs new weighted training graphs. Using a Stochastic Re-Weighting strategy, edges identified as "important" are assigned weights sampled from a high-mean Gaussian distribution, while "unimportant" edges receive weights from a low-mean distribution. The GNN is then retrained on these weighted graphs.
This process repeats for $L$ iterations. In each round, the explanation subgraph is pruned to be smaller and more precise. By retraining the model at each step, STORE creates a "ladder" of distributions, gradually teaching the GNN to maintain predictive consistency even as graphs become sparser and edge weights more varied.
Experimental Evaluation
STORE was evaluated on five benchmark datasets, including synthetic (BA-2motifs) and real-world biochemical datasets (MUTAG, Benzene, Alkane-Carbonyl, and Fluoride-Carbonyl).
Key Results
- Performance Boost: Across all datasets and explainers, STORE consistently improved the AUC-ROC of explanations. For instance, using PGExplainer on the BA-2motifs dataset, STORE improved explanation quality from 0.672 to 0.758—a ~12.8% relative gain.
- Robust Fidelity: STORE consistently outperformed vanilla explainers in "Robust Fidelity" scores, which measure how much the model's prediction actually depends on the identified subgraph.
- Visual Clarity: Qualitative analysis shows that STORE produces "cleaner" subgraphs that align closely with ground-truth motifs, whereas vanilla explainers often include noisy, irrelevant edges.
Conclusion and Future Work
STORE demonstrates that the common assumption—that GNNs trained on binary graphs behave rationally on weighted graphs—is often false. By iteratively retraining the model to handle continuous weights, STORE provides a stable optimization trajectory for explainers.
While STORE significantly improves explanation quality, it introduces an iterative retraining cost. Future research may explore more efficient fine-tuning techniques or inherently robust GNN architectures to achieve similar distributional alignment without full retraining.
Summary updated