Prototype-Based Explanations for Graph Neural Networks (Student Abstract)

Yong-Min Shin, Sun-Woo Kim, Eun-Bi Yoon, Won-Yong ShinAAAI 2022

Introduction

Graph Neural Networks (GNNs) have become indispensable for modeling complex relational data, from molecular structures in drug discovery to social interactions. However, their "black box" nature remains a significant hurdle for high-stakes applications. While many existing tools provide instance-level explanations—explaining why a specific input was classified a certain way—they often fail to provide a global, "big picture" understanding of what the model has learned across an entire dataset.

To bridge this gap, researchers have introduced PAGE (Prototype-bAsed GNN-Explainer). PAGE shifts the focus toward model-level explanations by identifying human-interpretable "prototypes." These are representative subgraphs that capture the essential structural patterns the GNN uses to distinguish between different classes.

The PAGE Framework

The PAGE methodology operates on the premise that a GNN's internal embedding space naturally organizes information by semantic similarity. The framework consists of two primary stages:

  1. Clustering the Embedding Space: Input graphs are passed through a trained GNN to extract graph-level embedding vectors from the penultimate layer. A Gaussian Mixture Model (GMM) is then applied to cluster these embeddings, grouping graphs with similar learned features.
  2. Prototype Discovery via Maximum Common Subgraph (MCS): For each cluster, PAGE identifies the most representative embeddings (the $k$-nearest to the cluster center). It then employs NeuralMCS, a specialized algorithm, to find the Maximum Common Subgraph among these instances. This shared structure serves as the "prototype" explanation for that cluster.
The PAGE workflow: Clustering the embedding space and extracting the Maximum Common Subgraph (MCS) to form a prototype explanation.

Experimental Setup

The authors evaluated PAGE using two distinct datasets to test its versatility:

  • BA-house: A synthetic dataset where graphs are labeled based on the presence of a "house-shaped" motif, providing a clear ground truth for structural recognition.
  • Solubility: A real-world chemical dataset where molecules are categorized by their solubility, testing the model's ability to extract meaningful patterns from complex, domain-specific data.

Key Results and Comparative Analysis

PAGE was benchmarked against XGNN, a state-of-the-art reinforcement learning-based explainer. Unlike XGNN, which requires complex reward functions and domain knowledge, PAGE is largely domain-agnostic.

Quantitative Performance

The models were compared using two primary metrics:

  • Consistency: Measures the stability of explanations across different model initializations (lower is better).
  • Faithfulness: Measures how accurately the explanation reflects the underlying model's decision logic (higher is better).

As shown in the table below, PAGE significantly outperformed XGNN in both categories, particularly on the BA-house dataset where it achieved a consistency score of 0.048 and a faithfulness score of 0.733.

Quantitative comparison of PAGE and XGNN performance across synthetic and real-world datasets.

Qualitative Insights

Qualitatively, PAGE successfully reconstructed the "house" motif in the synthetic dataset. In the solubility dataset, it identified chemical structures that the model recognized with high probability ($p \approx 1.0$), suggesting that the discovered prototypes are indeed the core features driving the GNN's predictions.

Conclusion and Future Directions

PAGE offers a robust, automated path toward global GNN interpretability by leveraging the inherent structure of the model's embedding space. By focusing on common prototypes rather than individual noisy instances, it provides more stable and faithful explanations than previous methods.

Future work aims to extend PAGE from graph-level classification to node-level classification and to optimize the MCS estimation process for improved scalability on massive datasets.

Summary updated

BibTeX
@inproceedings{shin2022prototype,
  author = {Yong-Min Shin and Sun-Woo Kim and Eun-Bi Yoon and Won-Yong Shin},
  title = {{Prototype-Based Explanations for Graph Neural Networks (Student Abstract)}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i11.21660},
}
Figure