How Interpretable Are Interpretable Graph Neural Networks?

Yongqiang Chen, Yatao Bian, Bo Han, James Cheng

Abstract

Current "interpretable" Graph Neural Networks (XGNNs) often rely on a mathematically flawed "extract-then-predict" paradigm. By using weighted "soft" subgraphs as proxies for discrete subgraph distributions, these models produce unfaithful explanations that do not accurately reflect their internal logic. This paper introduces the Graph Multilinear neT (GMT) framework, which utilizes random subgraph sampling to bridge this gap. GMT significantly improves both interpretability and out-of-distribution (OOD) generalization, achieving up to a 15% performance boost on challenging benchmarks.

The Approximation Failure in XGNNs

In critical domains like drug discovery, understanding why a GNN makes a prediction is as important as the prediction itself. Most XGNNs attempt to provide this clarity by identifying a "causal" subgraph—a subset of edges that supposedly drives the model's decision. This typically involves an attention mechanism that assigns importance scores to edges, creating a "soft" weighted subgraph used for the final prediction.

However, this approach suffers from a fundamental theoretical gap. As illustrated in Figure 3, the prediction on an "average" soft subgraph is not equivalent to the average prediction over all possible discrete subgraphs ($f(\mathbb{E}[G]) \neq \mathbb{E}[f(G)]$). Since GNNs are highly non-linear, this approximation leads to "unfaithful" interpretations where the model's stated explanation does not align with its actual decision-making process.

The approximation failure in XGNNs: predicting on an average 'soft' subgraph vs. averaging predictions over discrete subgraphs.

Graph Multilinear neT (GMT)

To address this, the authors propose the Graph Multilinear neT (GMT) framework, grounded in the theory of Subgraph Multilinear Extension (SubMT). GMT offers two primary implementations:

  • GMT-lin (Linearized): This version constrains the model's architecture (e.g., using a single message-passing layer) to force more linear behavior, thereby narrowing the approximation gap.
  • GMT-sam (Sampling-based): This more robust approach replaces the soft proxy with random subgraph sampling during training. By sampling multiple discrete subgraphs via MCMC and averaging their predictions, GMT-sam directly optimizes for the true expected output. The process is made end-to-end differentiable using the Gumbel-softmax trick.

To maintain efficiency during inference, the authors suggest a Classifier Retraining phase. Once the extractor learns to identify the correct subgraphs through sampling, a new classifier is trained specifically on these discrete subgraphs, eliminating the need for expensive sampling at test time.

Experimental Results

The GMT framework was evaluated across 12 diverse benchmarks, including regular graphs (e.g., BA-2Motifs, Mutag) and geometric graphs (e.g., particle tracking in physics).

A key contribution of this work is the focus on Counterfactual Fidelity, a metric that measures how much a prediction changes when the identified "important" subgraph is perturbed. As shown in Figure 6, GMT-sam achieves significantly higher fidelity than previous state-of-the-art methods like GSAT, indicating that its explanations are much more faithful to the model's internal logic.

Structural Causal Model (SCM) of XGNNs and counterfactual fidelity results on BA-2Motifs and Mutag datasets.

Beyond interpretability, GMT demonstrates superior Out-of-Distribution (OOD) generalization. In the "Spurious-Motif" dataset, where models must ignore misleading background patterns, GMT improved accuracy by 10-15% over standard GNNs. This suggests that true interpretability—finding the actual causal components of a graph—is inextricably linked to a model's ability to generalize to new environments.

Conclusion

The GMT framework exposes and rectifies a common mathematical pitfall in graph interpretability. By moving from "soft" approximations to principled subgraph sampling, GMT provides explanations that are both more faithful and more useful for downstream tasks. While sampling introduces some training overhead, the resulting gains in reliability and generalization mark a significant step forward for trustworthy AI in the graph domain.

Summary updated

BibTeX
@inproceedings{chen2024how,
  author = {Yongqiang Chen and Yatao Bian and Bo Han and James Cheng},
  title = {{How Interpretable Are Interpretable Graph Neural Networks?}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=F3G2udCF3Q},
}
Figure