Generating In-Distribution Proxy Graphs for Explaining Graph Neural Networks

Zhuomin Chen, Jiaxing Zhang, Jingchao Ni, Xiaoting Li, Yuchen Bian, Md Mezbahul Islam, Ananda Mondal, Hua Wei, Dongsheng Luo

Abstract

Graph Neural Networks (GNNs) have become a building block in graph data processing, with wide applications in critical domains. The growing needs to deploy GNNs in high-stakes applications necessitate explainability for users in the decision-making processes. A popular paradigm for the explainability of GNNs is to identify explainable subgraphs by comparing their labels with the ones of original graphs. This task is challenging due to the substantial distributional shift from the original graphs in the training set to the set of explainable subgraphs, which prevents accurate prediction of labels with the subgraphs. To address it, in this paper, we propose a novel method that generates proxy graphs for explainable subgraphs that are in the distribution of training data. We introduce a parametric method that employs graph generators to produce proxy graphs. A new training objective based on information theory is designed to ensure that proxy graphs not only adhere to the distribution of training data but also preserve explanatory factors. Such generated proxy graphs can be reliably used to approximate the predictions of the labels of explainable subgraphs. Empirical evaluations across various datasets demonstrate our method achieves more accurate explanations for GNNs.

1. Introduction

As Graph Neural Networks (GNNs) are increasingly deployed in high-stakes domains like healthcare and fraud detection, understanding the rationale behind their predictions is critical. A standard approach to explain a GNN's prediction on a graph $G$ is to identify a small, dense subgraph $G'$ that is primarily responsible for the prediction. This is often framed using the Graph Information Bottleneck (GIB) principle, which seeks to find a subgraph that is both concise and maximally informative about the target label.

However, a significant challenge arises: the Out-Of-Distribution (OOD) problem. GNNs are typically trained on graphs with specific structural distributions. When an explainer extracts a tiny subgraph $G'$ and feeds it back into the GNN to verify its importance, the GNN is forced to process a structure that may be wildly different from anything in its training set. This distributional shift makes the GNN's prediction on $G'$ unreliable, undermining the entire explanation process.

2. Methodology: The ProxyExplainer Framework

To mitigate the OOD issue, we propose ProxyExplainer, a framework that evaluates explanations using proxy graphs $\tilde{G}$ instead of raw subgraphs $G'$. A proxy graph is constructed to contain the essential explanatory features of $G'$ while maintaining the structural distribution of the original training data.

The ProxyExplainer architecture showing the generation of proxy graphs.

The architecture consists of two main modules trained via bi-level optimization:

  1. The Explainer ($\Psi$): A generative model that identifies the candidate explanation subgraph $G'$ from the original graph $G$.
  2. The Proxy Graph Generator: This module uses a dual-structured mechanism to synthesize the proxy graph $\tilde{G}$. It employs a Graph Auto-Encoder (GAE) to reconstruct the explanation subgraph $G'$ and a Variational Graph Auto-Encoder (VGAE) to encode the non-explanatory remainder $G^\Delta$ into a latent space. By perturbing this latent space with Gaussian noise and decoding it, the model generates a semantically neutral but structurally realistic "background."

By combining the reconstructed explanation with this perturbed background, ProxyExplainer creates a graph that appears "in-distribution" to the GNN but derives its label-predictive power solely from the explanation subgraph.

3. Experimental Evaluation

We evaluated ProxyExplainer on several standard benchmarks with ground-truth explanations, including real-world molecular datasets (MUTAG, Benzene, Alkane-Carbonyl, Fluoride-Carbonyl) and synthetic datasets (BA-2motifs, BA-3motifs).

3.1 Key Results

ProxyExplainer consistently outperformed state-of-the-art baselines, including GNNExplainer, PGExplainer, ReFine, and MixupExplainer. As shown in the table below, our method achieved significantly higher AUC-ROC scores for identifying ground-truth explanation edges.

Comparison of ProxyExplainer against state-of-the-art baselines across six datasets.

On average, ProxyExplainer improved edge identification accuracy by 10.6% on real-world datasets and 7.5% on synthetic datasets. Furthermore, robustness fidelity scores ($Fid_{\alpha_1,+}$, $Fid_{\alpha_2,-}$) confirmed that the extracted subgraphs accurately reflect the GNN's internal decision logic rather than exploiting OOD artifacts.

4. Conclusion

The OOD problem is a fundamental hurdle for GNN explainability. By shifting the evaluation from raw subgraphs to generated proxy graphs, ProxyExplainer ensures that explanations are verified on data that the GNN can reliably process. Our results demonstrate that maintaining the data distribution is just as important as identifying the explanatory features themselves. Future work will explore extending this proxy-based approach to model-level and counterfactual explanations across various data modalities.

Summary updated

BibTeX
@inproceedings{chen2024generating,
  author = {Zhuomin Chen and Jiaxing Zhang and Jingchao Ni and Xiaoting Li and Yuchen Bian and Md Mezbahul Islam and Ananda Mondal and Hua Wei and Dongsheng Luo},
  title = {{Generating In-Distribution Proxy Graphs for Explaining Graph Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=ohG9bVMs5j},
}
Figure