Abstract
The great success in graph neural networks (GNNs) provokes the question about explainability: Which fraction of the input graph is the most determinant of the prediction? Particularly, parametric explainers prevail in existing approaches because of their stronger capability to decipher the black-box (i.e., the target GNN). In this paper, based on the observation that graphs typically share some joint motif patterns, we propose a novel non-parametric subgraph matching framework, dubbed MatchExplainer, to explore explanatory subgraphs. It couples the target graph with other counterpart instances and identifies the most crucial joint substructure by minimizing the node corresponding-based distance. Moreover, we note that present graph sampling or node-dropping methods usually suffer from the false positive sampling problem. To ameliorate that issue, we design a new augmentation paradigm named MatchDrop. It takes advantage of MatchExplainer to fix the most informative portion of the graph and merely operates graph augmentations on the rest less informative part. We conduct extensive experiments on both synthetic and real-world datasets and show the effectiveness of our MatchExplainer by outperforming all parametric baselines with significant margins. Additional results also demonstrate that our MatchDrop is a general scheme to be equipped with GNNs for enhanced performance.
Introduction
Graph Neural Networks (GNNs) have become a cornerstone for analyzing relational data in fields like drug discovery and social network analysis. However, their "black-box" nature often obscures the logic behind their predictions. Understanding which specific subgraph (or motif) triggered a decision is vital for trust and scientific validation.
Existing explainability methods typically rely on gradient-based perturbations or parametric models that train auxiliary neural networks. These approaches often struggle with generalization and high computational costs. This paper introduces MatchExplainer, a non-parametric framework that identifies explanatory subgraphs by matching motifs across different instances, and MatchDrop, a training-time strategy that protects critical information from destructive data augmentation.
Methodology
MatchExplainer: Non-parametric Subgraph Matching
MatchExplainer is built on the intuition that graphs with the same predicted label likely share a common explanatory motif. Instead of training a new model, it identifies a "reference set" of graphs with the same label and uses a greedy search to find a $K$-node subgraph in the target that most closely matches a subgraph in the reference set. The final explanation is chosen by identifying the subgraph whose removal causes the maximum drop in the GNN's prediction confidence.
MatchDrop: Information-Aware Augmentation
Standard graph augmentations, such as random node dropping, often suffer from a "false positive" problem where critical features are accidentally deleted, misguiding the model during training. MatchDrop utilizes MatchExplainer to identify the most informative portion of the graph and "freezes" it, ensuring that random perturbations are only applied to less important regions.
Experimental Results
The authors evaluated their methods on four diverse benchmarks: MUTAG (molecules), BA-3Motif (synthetic motifs), MNIST-70K (superpixel graphs), and VG-5 (scene graphs).
Superior Explanations
MatchExplainer significantly outperformed state-of-the-art parametric baselines such as GNNExplainer and PGExplainer across all datasets. Notably, on the MNIST dataset, MatchExplainer achieved an ACC-AUC of 93.8%, representing a 48.9% relative improvement over previous methods that struggled to exceed 65%.
Enhanced Training with MatchDrop
Integrating MatchDrop into the training of GCN and GIN models consistently improved final accuracy. For instance, on the MUTAG dataset, MatchDrop boosted GCN accuracy from 82.8% to 84.4%, outperforming standard "DropNode" techniques by ensuring the model always sees the core features required to justify its label.
Conclusion
MatchExplainer demonstrates that non-parametric subgraph matching can provide more accurate and efficient explanations for GNNs than traditional parametric approaches. By coupling these explanations with MatchDrop, the framework also offers a general scheme for enhancing GNN robustness and performance. Future work will focus on scaling these matching algorithms for even larger and more complex graph structures.
Summary updated