[Paper Review] GNNInterpreter: A Probabilistic Generative Model-Level Explanation for Graph Neural Networks
GNNInterpreter proposes a probabilistic generative model-level explanation method for Graph Neural Networks (GNNs) that learns a generative graph distribution to reveal the most discriminative structural and feature patterns GNNs rely on for predictions. By optimizing a novel objective function, it produces faithful, realistic, and flexible explanations across diverse GNN architectures and heterogeneous graph types without requiring black-box heads or domain-specific rules, outperforming prior methods in faithfulness and interpretability on multiple datasets.
Recently, Graph Neural Networks (GNNs) have significantly advanced the performance of machine learning tasks on graphs. However, this technological breakthrough makes people wonder: how does a GNN make such decisions, and can we trust its prediction with high confidence? When it comes to some critical fields, such as biomedicine, where making wrong decisions can have severe consequences, it is crucial to interpret the inner working mechanisms of GNNs before applying them. In this paper, we propose a model-agnostic model-level explanation method for different GNNs that follow the message passing scheme, GNNInterpreter, to explain the high-level decision-making process of the GNN model. More specifically, GNNInterpreter learns a probabilistic generative graph distribution that produces the most discriminative graph pattern the GNN tries to detect when making a certain prediction by optimizing a novel objective function specifically designed for the model-level explanation for GNNs. Compared to existing works, GNNInterpreter is more flexible and computationally efficient in generating explanation graphs with different types of node and edge features, without introducing another blackbox or requiring manually specified domain-specific rules. In addition, the experimental studies conducted on four different datasets demonstrate that the explanation graphs generated by GNNInterpreter match the desired graph pattern if the model is ideal; otherwise, potential model pitfalls can be revealed by the explanation. The official implementation can be found at https://github.com/yolandalalala/GNNInterpreter.
Motivation & Objective
- To address the lack of faithful, generalizable, and computationally efficient model-level explanations for GNNs, especially in high-stakes domains like biomedicine.
- To overcome challenges in explaining GNNs, including discrete topology, domain-specific graph validity constraints, and heterogeneous node/edge features.
- To develop a method that explains the high-level decision-making process of GNNs without relying on instance-specific explanations or additional black-box components.
- To generate realistic, domain-aware explanation graphs that reflect the true discriminative patterns GNNs learn, even when models are biased or flawed.
- To provide a unified, flexible framework applicable to various GNNs following the message-passing scheme, regardless of feature type or architecture.
Proposed method
- GNNInterpreter formulates a probabilistic generative model that learns a graph distribution representing the most discriminative patterns GNNs use for a given prediction.
- It optimizes a novel objective function combining reconstruction loss, embedding similarity, and regularization terms to ensure faithfulness and realism.
- The method employs Monte Carlo sampling with a Concrete distribution (temperature τ=0.2) and uses SGD with K=10 samples for training stability.
- Regularization terms include L1/L2 weight decay, budget penalty (Rb) with warm-up, and connectivity constraint (Rc), tuned via grid search for each dataset.
- The approach is model-agnostic and works across different GNN architectures (GCN, GAT) and graph types (synthetic, real-world) with heterogeneous features.
- It implicitly captures domain rules via a higher embedding similarity weight (μ) for datasets with structural constraints, such as MUTAG.
Experimental results
Research questions
- RQ1Can a model-level explanation method faithfully reveal the high-level decision-making patterns of GNNs without relying on instance-specific explanations?
- RQ2How can a generative model produce realistic and valid explanation graphs that reflect the true discriminative features learned by a GNN?
- RQ3To what extent can GNNInterpreter detect model pitfalls such as bias attribution or reliance on spurious patterns?
- RQ4How does GNNInterpreter perform in comparison to existing state-of-the-art model-level explanation methods like XGNN in terms of faithfulness and representativeness?
- RQ5Can GNNInterpreter generalize across different GNN architectures and heterogeneous graph types (node and edge features) without architectural or domain-specific modifications?
Key findings
- On the MUTAG dataset, GNNInterpreter successfully identified the correct structural motifs for mutagenic and non-mutagenic classes, with F1 scores of 0.961 and 0.917, respectively.
- For the Cyclicity dataset, the model achieved high F1 scores (0.995–0.993), and GNNInterpreter revealed the correct cyclic patterns, including the role of color in classification.
- On the Motif dataset, GNNInterpreter accurately recovered the complete-5 motif as the most discriminative pattern, with a perfect F1 score of 1.000 for that class.
- In the Shape dataset, GNNInterpreter correctly identified the star motif as the key discriminative structure, aligning with the model’s perfect prediction on the Star class (F1=1.000).
- For the ColorConsistency dataset, GNNInterpreter generated explanation graphs that faithfully reflected the role of consistent edge and node features, matching the model’s high F1 scores (0.9963 and 0.9962).
- In all datasets, GNNInterpreter revealed model biases or spurious patterns when present, such as over-reliance on specific structural motifs, demonstrating its ability to diagnose model pitfalls.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.