Skip to main content
QUICK REVIEW

[Paper Review] GNN Explainer: A Tool for Post-hoc Explanation of Graph Neural Networks

Rex Ying, Dylan Bourgeois|arXiv (Cornell University)|Mar 10, 2019
Explainable Artificial Intelligence (XAI)Computer Science49 references69 citations
TL;DR

GNN Explainer is a model-agnostic method that explains predictions of Graph Neural Networks by identifying the most influential subgraph structure and node features through an optimization process maximizing mutual information between the full model and a simplified explainer model. It enables local, instance-specific explanations for node and graph classification, as well as link prediction, and demonstrates effectiveness in highlighting relevant topological structures on both synthetic and real-world graphs.

ABSTRACT

Graph Neural Networks (GNNs) are a powerful tool for machine learning on graphs. GNNs combine node feature information with the graph structure by using neural networks to pass messages through edges in the graph. However, incorporating both graph structure and feature information leads to complex non-linear models and explaining predictions made by GNNs remains to be a challenging task. Here we propose GnnExplainer, a general model-agnostic approach for providing interpretable explanations for predictions of any GNN-based model on any graph-based machine learning task (node and graph classification, link prediction). In order to explain a given node's predicted label, GnnExplainer provides a local interpretation by highlighting relevant features as well as an important subgraph structure by identifying the edges that are most relevant to the prediction. Additionally, the model provides single-instance explanations when given a single prediction as well as multi-instance explanations that aim to explain predictions for an entire class of instances/nodes. We formalize GnnExplainer as an optimization task that maximizes the mutual information between the prediction of the full model and the prediction of simplified explainer model. We experiment on synthetic as well as real-world data. On synthetic data we demonstrate that our approach is able to highlight relevant topological structures from noisy graphs. We also demonstrate GnnExplainer to provide a better understanding of pre-trained models on real-world tasks. GnnExplainer provides a variety of benefits, from the identification of semantically relevant structures to explain predictions to providing guidance when debugging faulty graph neural network models.

Motivation & Objective

  • To address the challenge of interpreting complex, non-linear predictions made by Graph Neural Networks that combine node features and graph structure.
  • To develop a general-purpose, model-agnostic explanation method applicable to diverse graph-based tasks including node classification, graph classification, and link prediction.
  • To enable both single-instance and multi-instance explanations that highlight semantically meaningful subgraph structures and relevant features.
  • To provide actionable insights for debugging faulty GNN models and improving model transparency.

Proposed method

  • Formalize GNN Explainer as an optimization problem that maximizes the mutual information between the prediction of the full GNN model and the prediction of a simplified, interpretable explainer model.
  • Define the explainer model as a subgraph and subset of features that are locally faithful to the original model's prediction for a given input node or graph.
  • Use a differentiable relaxation of the subgraph selection process to enable end-to-end optimization via gradient descent.
  • Optimize for a sparse subgraph and feature subset that preserve the prediction while minimizing complexity.
  • Apply the method to both node-level and graph-level predictions, supporting both single-instance and class-level explanations.
  • Leverage the mutual information objective to ensure the explanation remains faithful to the original model's behavior.

Experimental results

Research questions

  • RQ1Can GNN Explainer effectively identify the most relevant subgraph structures and features that contribute to a GNN's prediction on a given node or graph?
  • RQ2How well does GNN Explainer perform in isolating meaningful topological patterns from noisy synthetic graphs?
  • RQ3To what extent can GNN Explainer improve understanding of pre-trained GNN models on real-world graph datasets?
  • RQ4Can GNN Explainer provide useful insights for debugging and improving faulty GNN architectures?

Key findings

  • On synthetic graphs with noise, GNN Explainer successfully identifies the underlying relevant topological structures, demonstrating robustness to irrelevant edges and features.
  • The method provides faithful and semantically meaningful explanations that align with the true causal structures in synthetic data.
  • On real-world datasets, GNN Explainer reveals interpretable subgraph patterns that correlate with known or expected features of the prediction task.
  • The approach enables effective debugging by highlighting problematic or spurious substructures in faulty GNN models.
  • Multi-instance explanations help identify common structural motifs across a class of nodes, offering insights into model generalization patterns.
  • The mutual information optimization objective leads to stable and faithful explanations that are sensitive to changes in input structure and features.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.