Explaining GNN over Evolving Graphs using Information Flow

Yazheng Liu, Xi Zhang, Sihong XiearXiv 2021

Abstract

Graphs are ubiquitous in many applications, such as social networks, knowledge graphs, and smart grids. Graph neural networks (GNN) are the current state-of-the-art for these applications, yet they remain obscure to humans. Explaining GNN predictions can add transparency; however, as many graphs are not static but continuously evolving, explaining changes in predictions between two graph snapshots is a distinct and equally important challenge. Prior methods only explain static predictions or generate coarse, irrelevant explanations for dynamic predictions. We define the problem of explaining evolving GNN predictions and propose an axiomatic attribution method to uniquely decompose the change in a prediction to paths on computation graphs. Because attribution to many paths involving high-degree nodes is not interpretable, and simple top-k selection is suboptimal, we formulate a novel convex optimization problem to optimally select paths that explain prediction evolution. We prove that existing methods like Layer-Relevance-Propagation (LRP) are special cases of our algorithm. Empirically, across seven datasets and using a novel fidelity metric, we demonstrate the superiority of our approach over existing methods.

Introduction: The Challenge of Prediction Evolution

Most real-world graphs—such as social networks, recommendation systems, and knowledge graphs—are dynamic. As these graphs evolve through the addition or removal of edges and nodes, the predictions made by Graph Neural Networks (GNNs) on these graphs also change. While significant research has focused on explaining static GNN predictions (e.g., "Why is this node classified as X?"), there is a critical gap in explaining prediction evolution (e.g., "Why did the model's classification of this node change from X to Y after a new connection was formed?").

Existing static explanation methods fall short because they do not account for the baseline state of the graph. Counterfactual methods might identify a new edge as a cause but fail to illustrate the internal mechanism—how that edge altered the flow of information through the GNN's layers. Furthermore, simple heuristic selection methods, such as picking the top-k most important edges, often fail to capture the joint effect of multiple paths, leading to explanations that do not faithfully reflect the model's internal logic.

Evolution of a graph $G_0$ to $G_1$ and the resulting change in the computation graph for node $J$.

Methodology: AxiomPath-Convex

To address these limitations, we introduce AxiomPath-Convex, a framework that decomposes prediction shifts into specific information flow paths and uses convex optimization to select the most influential ones.

1. Path-Based Attribution

We extend axiomatic attribution methods (like DeepLIFT) to the GNN domain. By decomposing the change in the model's output (logits) into contributions from every possible "computation path" from input features to the target node, we can pinpoint exactly how structural changes enable new flows of information. This path-based view provides a granular look at the model's decision-making process across layers.

2. Convex Optimization for Path Selection

A single edge addition can affect thousands of paths, making a full list of attributions uninterpretable. Rather than simply ranking paths by individual importance, we formulate a convex optimization problem. This approach selects a small subset of paths that jointly best approximate the total change in the prediction's probability distribution. We measure this approximation using KL-divergence, ensuring the explanation captures the shift in the entire distribution rather than just the winning class.

Experimental Evaluation

We evaluated AxiomPath-Convex on seven real-world datasets, including citation networks (Cora, Citeseer, PubMed), co-purchase graphs (Amazon-Computer, Amazon-Photo), and co-authorship graphs (Coauthor-Computer, Coauthor-Physics). We simulated evolution by adding edges to an initial graph $G_0$ and explaining the resulting change in node classifications in $G_1$.

To measure performance, we introduced the Fidelity-KL metric, which quantifies how much of the prediction change is "undone" when the explained paths are removed. A lower fidelity score indicates a more faithful explanation.

Fidelity scores across seven datasets, showing AxiomPath-Convex consistently outperforms baselines as explanation complexity increases.

Key Results and Insights

  • Superior Fidelity: Across all datasets, AxiomPath-Convex achieved significantly lower fidelity scores than baselines such as Gradient-based methods, GNN-LRP, and standard DeepLIFT. This confirms that our optimization-based selection is more faithful to the model's actual logic.
  • Consistency and Scalability: Unlike GNN-LRP, which showed inconsistent performance as complexity increased, our method demonstrated steady improvement in explanation quality as more paths were included. While optimization adds overhead, the running time remains practical (often a few seconds per node).
  • Theoretical Grounding: We proved that GNN-LRP is a special case of our algorithm when the starting graph is empty, providing a unifying theoretical framework for these attribution methods.

Conclusion

AxiomPath-Convex provides a robust, theoretically grounded, and empirically superior method for explaining GNNs on evolving graphs. By focusing on the "portfolio" effect of information flow paths, it offers a more precise understanding of how structural changes drive model updates. Future work will explore more complex temporal dynamics involving simultaneous edge additions and removals, as well as strategies for handling path explosion in extremely deep or dense networks.

Summary updated

BibTeX
@misc{liu2021explaining,
  author = {Yazheng Liu and Xi Zhang and Sihong Xie},
  title = {{Explaining GNN over Evolving Graphs using Information Flow}},
  year = {2021},
  eprint = {2111.10037},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.10037},
}
Figure