[Paper Review] MotifExplainer: a Motif-based Graph Neural Network Explainer
MotifExplainer is a novel, model-agnostic GNN explainer that identifies recurrent, statistically significant motifs—rather than individual nodes or edges—as the primary explanation units. By extracting domain-specific motifs, encoding them via a pre-trained GNN, and using an attention mechanism to rank their predictive importance, the method achieves superior interpretability and efficiency compared to existing node-, edge-, or subgraph-level explainers, with inference times under 0.03 seconds and training times under 400 seconds on MUTAG.
We consider the explanation problem of Graph Neural Networks (GNNs). Most existing GNN explanation methods identify the most important edges or nodes but fail to consider substructures, which are more important for graph data. The only method that considers subgraphs tries to search all possible subgraphs and identify the most significant subgraphs. However, the subgraphs identified may not be recurrent or statistically important. In this work, we propose a novel method, known as MotifExplainer, to explain GNNs by identifying important motifs, recurrent and statistically significant patterns in graphs. Our proposed motif-based methods can provide better human-understandable explanations than methods based on nodes, edges, and regular subgraphs. Given an input graph and a pre-trained GNN model, our method first extracts motifs in the graph using well-designed motif extraction rules. Then we generate motif embedding by feeding motifs into the pre-trained GNN. Finally, we employ an attention-based method to identify the most influential motifs as explanations for the final prediction results. The empirical studies on both synthetic and real-world datasets demonstrate the effectiveness of our method.
Motivation & Objective
- To address the limitation of existing GNN explainers that focus on nodes or edges, which fail to capture higher-order structural patterns critical for graph interpretation.
- To improve human-understandability of GNN predictions by identifying recurrent and statistically significant substructures (motifs) rather than arbitrary or non-representative subgraphs.
- To develop an efficient, model-agnostic explanation framework that leverages motif-level attention for scalable and interpretable GNN explanation.
- To enable practical applications in domains like drug discovery by generating explainable, reusable fragment libraries from GNN predictions.
Proposed method
- Motif extraction is performed using domain-specific rules based on expert knowledge, identifying recurring subgraph patterns in the input graph.
- Each extracted motif is embedded using the feature extractor of a pre-trained GNN, preserving structural and feature information.
- An attention-based model is trained to assign importance scores to motifs based on their contribution to the GNN’s final prediction.
- The top-ranked motifs by attention weights are selected as the final explanation, providing a concise, human-readable summary of the GNN’s decision.
- The method is model-agnostic and does not require retraining the GNN, enabling application to any pre-trained GNN model.
- Training includes motif extraction, motif embedding construction, and attention model training, with inference being highly efficient.
Experimental results
Research questions
- RQ1Can motif-based explanations provide more interpretable and human-understandable insights than node- or edge-level explanations in GNNs?
- RQ2Does identifying recurrent and statistically significant motifs lead to more reliable and generalizable explanations compared to arbitrary subgraph identification?
- RQ3Can an attention mechanism effectively rank motifs by their predictive relevance for GNN decisions?
- RQ4How does the efficiency of motif-based explanation compare to existing state-of-the-art GNN explainers in terms of training and inference time?
Key findings
- MotifExplainer achieves the fastest inference time among all compared methods, with an average of 0.02 seconds per graph on the MUTAG dataset.
- The method requires significantly less training time than PGExplainer (363s vs. 740s) and ReFine (363s vs. 946s), demonstrating improved training efficiency.
- On both synthetic and real-world datasets, MotifExplainer produces more accurate and qualitatively superior explanations than GNNExplainer, PGExplainer, SubgraphX, and ReFine.
- The attention-based selection of motifs leads to more consistent and interpretable explanations, particularly in drug discovery-relevant tasks where motif reuse is critical.
- Empirical results confirm that motif-based explanations are more stable and semantically meaningful than subgraph-based explanations that may not be recurrent or statistically significant.
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.