TL;DR
This paper introduces PAGE, a novel method for explaining Graph Neural Networks (GNNs) at the model level. Instead of explaining individual predictions, PAGE discovers "prototype graphs" that represent what the GNN has learned for an entire class, offering more general and interpretable insights than existing instance-level methods.
What Problem Does This Paper Address?
Graph Neural Networks (GNNs) are powerful tools for analyzing graph-structured data, but their "black-box" nature makes it hard to understand why they make certain predictions. While many methods explain individual predictions (instance-level explanations), these don't reveal the GNN's overall learned behavior. This is a significant gap, as understanding the general decision-making process is crucial for trust and for predicting behavior on unseen data. The authors aim to bridge this gap by developing a method that explains the GNN's learned patterns for an entire class.
Methods
PAGE employs a two-phase approach:
- Clustering and Selection of Graph-Level Embeddings: First, PAGE uses the GNN's learned graph-level embeddings from the training set. These embeddings are clustered (using Gaussian Mixture Models) to group similar graphs. Then, a small number of representative graphs (k-nearest neighbors to cluster centroids) are selected for each class. This step leverages the idea that graphs with similar underlying patterns will be close in the embedding space.
- Prototype Graph Discovery: In the second phase, PAGE focuses on the selected graphs for a specific class. It uses node-level embeddings to discover a common subgraph pattern that best represents the class. This involves a novel "prototype scoring function" to efficiently find matching node tuples across the selected graphs. This process is iterated over multiple "search sessions" to find the most representative prototype graph.
Datasets
The authors evaluated PAGE on a combination of synthetic and real-world datasets:
- Synthetic: BA-house and BA-grid (generated using the Barabási-Albert model with specific motif patterns).
- Real-world: Benzene, MUTAG, Solubility, and MNIST-sp.
The paper notes that for these datasets, ground truth explanations (prototypes) are available, which is crucial for evaluating model-level explanation methods.
Key Insights and Ideas
- Model-level explanations are crucial: Understanding what a GNN has learned in general for a class is more valuable than just explaining one prediction, especially for deployment in real-world scenarios.
- Embeddings hold the key: Both graph-level and node-level embeddings from the GNN are essential. Graph-level embeddings help identify representative graphs for a class, while node-level embeddings help find common subgraph patterns within those graphs.
- Clustering is a powerful pre-processing step: Grouping graphs by their embeddings before searching for prototypes significantly improves the selection of relevant graphs and thus the quality of the discovered prototypes.
- Efficient prototype scoring: The proposed prototype scoring function is computationally efficient and effective in finding matching node tuples, outperforming simpler alternatives.
- Robustness to limited data: PAGE can still produce reasonable explanations even when the training set is very small, highlighting its practical applicability.
Key Results
- Qualitative: PAGE consistently produced prototype graphs that were highly similar to the ground truth explanations across various datasets, often capturing intricate structures (like ring structures in Benzene or house shapes in BA-house). In contrast, the benchmark method XGNN often failed to recover complete prototypes.
- Quantitative:
- Accuracy: PAGE achieved significantly higher accuracy in matching prototype graphs to ground truth explanations compared to XGNN.
- Density: PAGE's explanations were generally less dense, suggesting simpler and more focused prototypes.
- Consistency: PAGE showed more stable explanations across different GNN hyperparameter settings.
- Faithfulness: PAGE demonstrated a stronger correlation between explanation output and GNN test accuracy, indicating it better reflects the GNN's learned behavior.
- Efficiency: PAGE was found to be computationally more efficient than the benchmark method XGNN.
- Relationship with Instance-Level Explanations: PAGE's prototypes showed good agreement with instance-level explanations, suggesting a coherent understanding across different explanation granularities.
Limitations and Future Work
- Ground Truth Requirement: A key limitation is the assumption that the number of ground truth explanations per class is available for the clustering phase. The authors suggest future work on estimating this number a priori.
- Node/Edge Level Explanations: The current work focuses on model-level explanations for graph classification. Future research could explore model-level explanations for node-level or edge-level tasks.
- Graph-SST2 Dataset: For datasets like Graph-SST2, where explicit ground truth prototypes are hard to define (due to sentence structure and lexical relationships), PAGE's ability to extract precise subgraph patterns is limited, though it can still identify representative input graphs.
Summary updated