Robust Surrogate Modeling for Explainable Graph Neural Networks

Zhuomin Chen, Jingchao Ni, Hojat Allah Salehi, Xu Zheng, Dongsheng LuoNeurIPS 2026

TL;DR

When we ask a Graph Neural Network (GNN) why it made a decision, standard explanation tools feed it "soft-masked" graphs with fractional edge weights—something a model trained strictly on binary (0 or 1) connections has never seen before. This out-of-distribution shock scrambles the model's gradients and produces unreliable explanations. The authors fix this by iteratively training a "bilingual" surrogate GNN that understands both discrete and continuously weighted graphs, serving as a faithful, stable proxy for explaining the original model.

What Problem Does This Paper Address?

Imagine training someone to read crisp, black-and-white text, and then suddenly asking them to highlight the most important words on a page where 90% of the ink is smudged into faint shades of gray. That is essentially what we do to Graph Neural Networks (GNNs) during post-hoc explanation.

In domains like chemistry or social networks, GNNs are typically trained on unweighted graphs: an edge between two nodes either exists (1) or it doesn't (0). To explain a prediction, we want to find the smallest subgraph—say, a specific chemical motif—that preserves the model's output. Because checking every discrete subgraph is combinatorially explosive, standard explainers use a calculus-friendly trick called continuous relaxation: they multiply the graph's edges by a learnable, continuous mask (values between 0 and 1) and use gradient descent to push unimportant edges toward zero.

Here is the catch: the GNN has never seen fractional edges like 0.3 or 0.9 during training. Pushing it into this Out-Of-Distribution (OOD) territory causes its predictions to break down and its gradients to go haywire, resulting in unfaithful explanations.

Figure 1: (a) Classification accuracy of a GCN trained on unweighted graphs, evaluated on weighted graphs from the BA-2motif dataset with varying edge weights for motif and BA-graph edges. High accuracy is maintained only in the “in-distribution” region (both edge types near weight 1.0), but degrades significantly under distributional shift. (b) The original unweighted graph (example ①) is correctly classified, but reweighting motif edges to 0.9 and BA-graph edges to 0.3 (example ②) causes misclassification.

Methods

Instead of interrogating a confused original model, the authors propose STORE (graph explanation with STOchastic RE-weighting). Rather than reinventing the explainer itself, STORE wraps around existing explainers to build a robust surrogate GNN that handles continuous edge weights gracefully.

Figure 2: Overview of the vanilla explainer and STORE. (a) Vanilla explainer. (b) STORE first inputs the original graph into a GNN to obtain node and edge embeddings. Then we use an explainer to generate a weighted explanation subgraph. Based on this explanation, we apply a Gaussian-based sampling strategy to assign edge weights and construct a weighted graph. This graph is used to retrain a surrogate GNN to improve explanation accuracy.

STORE alternates between two phases over a few rounds, building a "ladder" from broad, safe subgraphs down to compact explanations:

  1. Subgraph Identification: Using a standard explainer, STORE extracts an initial, relatively large top-$k$ subgraph where soft-mask optimization hasn't yet drifted too far OOD.
  2. Stochastic Re-Weighting & Model Adaptation: STORE creates new training graphs by assigning random continuous weights to edges. Crucially, it uses two well-separated truncated Gaussian distributions bounded between $[0, 1]$: explanatory edges get higher weights, and non-explanatory edges get lower weights. A surrogate GNN is then jointly trained on both the original binary graphs and these newly weighted graphs.

In the next round, $k$ shrinks to focus on a tighter subgraph, and the newly adapted surrogate provides reliable gradients for the explainer. Furthermore, the authors prove theoretically that if both the original and surrogate models achieve near-optimal accuracy under mild stability assumptions, they share the exact same underlying explanation almost surely.

Datasets

The authors evaluate STORE on existing benchmarks; no new datasets are introduced:

  • Ground-truth explanation benchmarks: One synthetic dataset (BA-2motifs, featuring house or cycle motifs attached to base graphs) and four real-world molecular datasets (MUTAG, Benzene, Alkane-Carbonyl, and Fluoride-Carbonyl).
  • Large-scale fidelity benchmarks: D&D (protein structures) and Graph-SST2 (sentiment analysis graphs).

Key Insights and Ideas

  • Sparsity creates an OOD trap: The harder an explainer tries to be concise (pushing mask values toward zero), the further it drags the input graph away from the GNN's binary training distribution.
  • Smooth randomness beats rigid rules: In ablation studies, sampling edge weights from smooth, separated Gaussian distributions significantly outperformed uniform or purely random noise—for instance, boosting AUC-ROC on MUTAG from 0.513 (random) to 0.774 (Gaussian)—because it teaches the surrogate to respect relative edge importance across smooth transitions.
  • Exposing background crutches: Accuracy heatmaps on MUTAG revealed that a standard GCN maintained high accuracy even when explanatory edges were nearly erased, proving it was exploiting spurious background structures. After STORE's iterative training, the surrogate relied properly on the true explanatory motifs.
  • Initializations matter: Unlike prior work that tests explainers on a single fixed GNN, the authors noticed GNN OOD-sensitivity varies wildly by random seed, prompting a much stricter evaluation across 10 independent GNN+explainer training runs.

Key Results

STORE is model- and explainer-agnostic, consistently boosting five major explainers (GNNExplainer, PGExplainer, ReFine, MixupExplainer, ProxyExplainer) across GCN and GIN backbones:

  • Explanation Accuracy (AUC-ROC): Integrating STORE with PGExplainer jumps AUC-ROC from 0.672 to 0.758 (+12.8% relative gain) on BA-2motifs, and from 0.533 to 0.774 on MUTAG. ProxyExplainer sees an 11.4% relative boost on BA-2motifs (0.729 to 0.812).
  • Fidelity: Across all tested datasets (including D&D and Graph-SST2), STORE improves robust fidelity metrics over vanilla PGExplainer (e.g., nearly doubling positive fidelity on BA-2motifs from 0.038 to 0.074).
  • Fast Convergence & Low Overhead: You don't need dozens of rounds. Performance leaps after just 1 iteration and peaks around 3 iterations. Computationally, a full STORE iteration adds modest runtime—roughly matching the baseline training time (~10 seconds) on BA-2motifs and Fluoride-Carbonyl.
Figure 3: AUC-ROC performance with different numbers of iterations.

Limitations and Future Work

  • Task & Scale Scope: The current work focuses strictly on static graph classification. Extending STORE to node-level prediction tasks and massive-scale graphs remains an open next step.
  • Over-pruning in later rounds: Because the top-$k$ threshold shrinks at each step, running too many iterations (e.g., past round 3 on MUTAG) can prune away genuinely informative edges and slightly dip performance. Developing automated, adaptive stopping criteria for surrogate refinement is a key direction for future work.

Summary updated

Abstract

Graph Neural Networks (GNNs) have achieved remarkable performance in a wide range of graph-related learning tasks. However, explaining their predictions remains a challenging problem, especially due to the mismatch between the graphs used during training and those encountered during explanation. Most existing methods optimize soft edge masks on weighted graphs to highlight important substructures, but these graphs differ from the unweighted graphs on which GNNs are trained. This distributional shift leads to unreliable gradients and degraded explanation quality, especially when generating small, sparse subgraphs. To address this issue, we propose explaining a robust surrogate whose explanations provide a faithful proxy for those of the original model. Specifically, we train this surrogate model through an iterative re-weighting strategy that alternates between identifying explanation subgraphs and adapting the model to the resulting weighted graph distribution, supporting stable explanation refinement while preserving the validity of the soft-mask relaxation. We evaluate our method on multiple benchmark datasets using different GNN backbones and explanation methods. Experimental results show that our method consistently improves explanation quality and can be flexibly integrated with different architectures.
BibTeX
@inproceedings{chen2026robust,
  author = {Zhuomin Chen and Jingchao Ni and Hojat Allah Salehi and Xu Zheng and Dongsheng Luo},
  title = {{Robust Surrogate Modeling for Explainable Graph Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=4cPBjztcLN},
}
Figure