In the real world, graphs are rarely static. Social networks add friends, financial transactions flow continuously, and molecules vibrate. When we use Graph Neural Networks (GNNs) to monitor these systems, their predictions change as the underlying graph evolves. But why? If a rumor detector suddenly flags an account as suspicious, was it because of a single new tweet or a subtle shift in how information is flowing through the network?
This paper introduces AxiomLayeredge, a framework designed to explain how GNN predictions respond to continuously evolving graphs by looking at the internal "layer edges" of the model.
TL;DR
The authors propose a method to explain why a GNN's prediction shifts as a graph evolves (e.g., changing edge weights). By attributing these shifts to "layer edges"—internal message-passing steps—they balance high-fidelity explanations with human interpretability, outperforming existing static graph explainers.
What Problem Does This Paper Address?
Most GNN explanation tools (like GNNExplainer or PGExplainer) are built for static graphs. They tell you which parts of a single graph are important for a single prediction. However, they struggle with evolving graphs.
When a graph changes from state $G_0$ to $G_1$, the prediction changes from $P_0$ to $P_1$. Existing methods often try to explain $P_1$ from scratch or treat the change as a jump from an empty graph. This ignores the context of the evolution. Furthermore, there is a classic trade-off in GNN explanations:
- Input Edges: Easy for humans to understand but often fail to capture the complex, multi-layer nonlinearities of the GNN (low fidelity).
- Message Flows: Capture every detail of the computation but are far too complex for a human to parse (low interpretability).
The authors seek a "Goldilocks" solution: an explanation that is both mathematically rigorous (axiomatic) and human-readable.
Methods
The researchers introduce Layer Edges—edges representing the message passing between nodes at a specific layer of the GNN.
Their framework consists of three main steps:
- Axiomatic Attribution: They adapt techniques for attributing neural network outputs to handle the difference in logits between two graph states. This ensures the "summation-to-delta" property: the sum of all attributed contributions exactly equals the total change in the model's output.
- Fair Mapping with Shapley Values: A single layer edge might participate in thousands of different "message flows" through the network. To determine the true contribution of one specific edge, the authors use Shapley values—a concept from cooperative game theory—to fairly distribute the total change among the participating layer edges.
- KL-Divergence Optimization: Finally, they don't just pick the "top" edges. They formulate an optimization problem to find a small subset of layer edges that, if updated while keeping others at their original weights, would most closely recreate the new prediction (minimizing the KL-divergence between the explained state and the true final state).
Datasets
The method was evaluated on eight datasets across three common GNN tasks:
- Node Classification: YelpChi & YelpNYC (fraud detection), Pheme & Weibo (rumor detection).
- Link Prediction: BC-OTC & BC-Alpha (bitcoin trust networks), UCI (social messaging).
- Graph Classification: MUTAG & ClinTox (molecular chemistry), IMDB-BINARY & REDDIT-BINARY (social networks).
Key Insights and Ideas
- The Layer Edge Advantage: Layer edges provide a superior middle ground. Because they exist at specific layers, they capture how information is transformed as it moves deeper into the network, offering higher fidelity than raw input edges without the cognitive overhead of full message flows.
- Continuous vs. Discrete: Unlike previous work that only looked at adding or removing edges, this paper handles continuous weight changes. This is vital for real-world applications like sensor networks or financial flows where the "strength" of a connection fluctuates.
- Axiomatic Trust: By ensuring the "summation-to-delta" property, the authors provide a guarantee that the explanation isn't just a heuristic—it is a mathematically sound decomposition of the model's internal shift.
Key Results
The authors measured success using KL-Divergence—the lower the score, the better the explanation captures the model's actual behavior.
- Superior Fidelity: Across almost all datasets and tasks, AxiomLayeredge achieved significantly lower KL-divergence than baselines like GNN-LRP, FlowX, and DeepLIFT.
- High Sparsity Performance: Even when asked to provide very "sparse" explanations (using fewer than 10% of the changed edges), the method maintained high fidelity. For example, on the Weibo and Pheme datasets, it showed a massive performance gap over traditional static explainers.
- Qualitative Accuracy: In "motif" tests (where the ground truth reason for a change is known, like a specific "house" shape being destroyed), AxiomLayeredge correctly identified the responsible edges while other methods often pointed to irrelevant neighbors.
Limitations and Future Work
- Temporal Dynamics: The current model works on "snapshots" ($G_0$ and $G_1$). It does not yet support GNN architectures that use internal memory or time-series components like RNNs or LSTMs (e.g., Temporal Graph Networks).
- Attention Mechanisms: While it works for standard GNNs, the authors note limitations in measuring the specific contributions of learned attention weights (like in GAT models) versus the underlying structural changes.
- Softmax Attribution: The paper notes that they haven't yet defined strict rules for attributing the final nonlinear softmax layer's impact back to the inputs, which remains a challenge for multi-class classification.
Summary updated