Abstract
Graph Neural Networks (GNNs) are powerful tools for graph-structured data but lack inherent interpretability. Current explanation methods are typically post-hoc, applied to models optimized solely for classification accuracy. This paper presents MetA-Train to Explain (MATE), a meta-learning framework that incorporates explainability into the training objective. By using a nested optimization loop, MATE steers GNN parameters toward regions of the parameter space that are more amenable to post-hoc explanation without compromising classification performance. Our results across synthetic and real-world datasets demonstrate significant improvements in explanation quality and cross-explainer generalization.
Introduction
While GNNs excel at tasks like molecule toxicity prediction or social network analysis, their "black-box" nature hinders deployment in high-stakes domains. Instance-level explainers, such as GNNExplainer, attempt to identify influential subgraphs after a model is trained. However, these post-hoc tools often struggle because the underlying model was never optimized for interpretability. Since the optimization landscape of neural networks is non-convex, multiple parameter configurations can yield identical accuracy but vastly different levels of explainability. MATE addresses this by "nudging" the model toward more interpretable parameters during the training phase.
The MATE Framework
MATE adopts a meta-learning strategy inspired by Model-Agnostic Meta-Learning (MAML). The core idea is to treat "being explainable" as a task that the model must learn to perform well.
The framework operates through a nested optimization process:
- Inner Loop (Explanation Task): For a given input, a surrogate explainer is trained on-the-fly to identify an explanatory subgraph.
- Adaptation Step: The model's parameters $\theta$ are temporarily adapted to $\theta'$ based on the explanation loss $\mathcal{L}_e$.
- Outer Loop (Meta-Update): The primary model parameters are updated using the gradient of the classification loss, evaluated at the adapted state $\theta'$.
This "look-ahead" mechanism ensures that the meta-gradient pushes the model toward a state where post-hoc explainers can more easily identify the correct structural motifs.
Experimental Evaluation
The authors evaluated MATE on standard benchmarks where ground-truth explanations are known:
- Synthetic Node Classification: BA-shapes, BA-Community, Tree-cycles, and Tree-grids.
- Graph Classification: BA-2motifs and MUTAG (mutagenic molecules).
These datasets allow for quantitative assessment of whether the explainer identifies the intended motifs (e.g., "house" structures or specific chemical groups).
Key Results and Insights
- Enhanced Explainability: MATE-trained models consistently outperformed standard models in explanation AUC. Improvements were observed across multiple explainers: +4.6% for GNNExplainer, +24.6% for PGExplainer, and +4.7% for SubgraphX.
- Preserved Accuracy: Crucially, this gain in interpretability does not come at the expense of classification performance. MATE models maintained or even slightly exceeded the accuracy of standard GNNs.
- Cross-Explainer Generalization: Although MATE uses a GNNExplainer-based surrogate during training, the resulting models are easier to explain for other algorithms. This suggests that MATE promotes more robust and "honest" internal feature representations.
- Qualitative Clarity: Visualizations indicate that explainers on MATE models produce cleaner subgraphs with higher confidence on ground-truth motifs.
Conclusion and Future Work
MATE demonstrates that explainability can be treated as a first-class citizen during GNN training. By navigating the multiplicity of minima in the loss landscape, MATE finds solutions that are both accurate and inherently interpretable. Future research will explore the scalability of this approach to larger graphs and its applicability to other modalities such as computer vision and natural language processing.
Summary updated