Introduction
Graph Neural Networks (GNNs) have become the standard for modeling data with complex relational structures, such as molecules, social networks, and citation graphs. However, their "black-box" nature remains a significant hurdle for high-stakes applications. While game-theoretic approaches like Shapley values are popular for explaining model predictions, they often fail in the context of graphs. Standard Shapley-based explainers evaluate node importance by perturbing the input—often creating fragmented, disconnected subgraphs that are Out-of-Distribution (OOD) for the GNN. This leads to biased explanations that do not reflect the model's true logic.
To address this, we introduce MAGE (Myerson-Taylor Structure-Aware Graph Explainer). MAGE leverages a novel mathematical framework that accounts for the physical connectivity of the graph, identifying the high-order motifs that truly drive a model's decision.
The Myerson-Taylor Interaction Index
The core innovation of MAGE is the Myerson-Taylor interaction index, a new allocation rule that generalizes the Myerson value (designed for graph structures) and the Shapley-Taylor index (designed for high-order interactions).
Unlike standard methods that treat any subset of nodes as a valid coalition, MAGE uses an interaction-restricted function. If a subset of nodes is disconnected, its "worth" is calculated as the sum of its connected components rather than a single unit. This ensures that the explainer only considers interactions that are physically possible via the graph's edges, effectively eliminating the bias caused by pathological OOD samples.
The MAGE Framework
MAGE operates through a two-phase pipeline designed for both accuracy and efficiency:
- Interaction Matrix Calculation: The system calculates a pairwise interaction matrix using the second-order Myerson-Taylor index. This captures how pairs of nodes cooperate or conflict within the graph structure.
- Motif Discovery: MAGE treats the identification of influential subgraphs as a variant of the quadratic multiple knapsack problem. It searches for $m$ connected subgraphs that maximize the total attribution score, allowing the discovery of multiple influential motifs simultaneously.
This approach is backed by an axiomatic justification, proving that the index is the unique solution satisfying five natural properties, including "Component Efficiency," which ensures the model's confidence score is fairly distributed among its interacting components.
Experimental Evaluation
We evaluated MAGE across ten diverse datasets, including synthetic shapes (BA-HouseGrid), molecular structures (Mutagenic, Benzene), image-as-graph (MNIST75SP), and text/sentiment analysis (GraphSST2, Twitter).
Key Results
- Superior Accuracy: MAGE outperformed seven state-of-the-art baselines, showing a 59.29% improvement in F1 score for single-motif datasets and a 28.11% improvement in Adjusted Mutual Information (AMI) for multi-motif datasets.
- High Fidelity: In sentiment classification tasks, MAGE achieved up to a 27.55% increase in explanation accuracy compared to the best-performing baseline.
- Computational Efficiency: MAGE is significantly more query-efficient than search-based methods. On the GraphSST2 dataset, MAGE required only 2,000 queries, whereas SubgraphX required 255,000.
- Qualitative Precision: In molecular datasets, MAGE was the only explainer to correctly identify multiple functional groups (e.g., both $-NO_2$ groups in a mutagenic molecule), while other methods often highlighted irrelevant carbon atoms.
Discussion and Insights
Beyond performance metrics, MAGE provides unique insights into GNN behavior:
- Connectivity as a Constraint: By baking graph topology into the mathematical framework, MAGE stays closer to the model's training distribution, leading to more reliable explanations.
- Negative Motifs: Unlike many explainers that only search for positive evidence, MAGE can identify "negative motifs"—structures that decrease the model's confidence or lead to misclassification. This is essential for counterfactual reasoning.
- Efficiency through Decomposition: By separating interaction calculation from subgraph search, MAGE avoids the redundant calculations that plague methods like Monte Carlo Tree Search (MCTS).
Limitations and Future Work
While MAGE is more efficient than many competitors, the exact calculation of these indices remains exponentially complex relative to node count. Current implementations rely on Monte Carlo sampling as a practical approximation. Additionally, MAGE treats the GNN as a black box; future iterations could potentially exploit internal message-passing mechanics for even deeper structural insights. We also look toward extending this framework to weighted networks, where edge strength could further refine the interaction index.
Summary updated