Explaining Temporal Graph Models through an Explorer-Navigator Framework

Wenwen Xia, Mincai Lai, Caihua Shan, Yao Zhang, Xinnan Dai, Xiang Li, Dongsheng LiICLR 2023

TL;DR

T-GNNExplainer is the first framework specifically designed to explain predictions made by temporal graph models. It uses a "Navigator" (a pre-trained neural network) to prune the search space and an "Explorer" (based on Monte Carlo Tree Search) to identify the small subset of historical events most responsible for a specific model prediction.

The Challenge of Temporal Graphs

Graph Neural Networks (GNNs) are powerful, but they often operate as "black boxes." While we have tools to explain why a GNN made a prediction on a static graph (e.g., identifying a toxic functional group in a molecule), real-world data is frequently temporal. In a temporal graph, nodes and edges appear as a sequence of events over time, such as user-item interactions in e-commerce or transaction logs in finance.

Existing explainers struggle with temporal models because they cannot capture the complex dependencies between time and topology. If a model predicts a future interaction between two users, we need to know which specific past interactions—out of potentially thousands—triggered that prediction. Finding this "influential subset" is a massive combinatorial challenge that static tools simply aren't built to handle.

Proposed Method: T-GNNExplainer

To bridge this gap, the authors propose an Explorer-Navigator framework called T-GNNExplainer.

T-GNNExplainer Architecture

The framework operates through three primary mechanisms:

  1. The Navigator: This is a feed-forward neural network trained before the explanation process. It learns a "global" understanding of event correlations. Given a target event and a candidate historical event, the Navigator predicts an importance score. This score is used to drastically reduce the search space for the Explorer.
  2. The Explorer: This component uses Monte Carlo Tree Search (MCTS) to find the optimal subset of events. Starting from a root node containing all candidate historical events, it iteratively removes the least important events (guided by the Navigator’s scores) to find a concise, high-impact explanation.
  3. The Reward Function: To guide the search, the system calculates a "reward" based on how much the target model's prediction changes when only the selected subset of events is provided. The goal is to maximize the mutual information between the explanation subset and the original prediction.

Experimental Setup

The researchers evaluated their framework on both real-world and synthetic data to ensure robustness:

  • Real-World Datasets: Included Wikipedia (users editing pages, where edges represent edits) and Reddit (users posting in subreddits).
  • Synthetic Datasets: The authors used Hawkes Processes to generate two synthetic datasets. This is a crucial step because, unlike real-world data, synthetic data allows researchers to define "ground truth" causal rules, making it possible to verify if the explainer is actually finding the correct triggering events.

Key Insights and Results

  • Search vs. Learning: The paper argues that neither pure search-based methods (which are too slow) nor pure learning-based methods (which are too general) are ideal. By combining them—using a learned Navigator to guide a search-based Explorer—T-GNNExplainer achieves the best of both worlds: speed and instance-specific accuracy.
  • Temporal Pruning: In temporal graphs, the search space is often larger than in static graphs due to duplicate edges over time. The Navigator’s ability to "bias" the MCTS search toward relevant time windows is what makes the framework viable.
  • Fidelity-Sparsity Trade-off: A good explanation must be both faithful (the model's prediction should stay the same if only the explanation is present) and sparse (the explanation should be small enough for a human to understand). T-GNNExplainer consistently finds a better balance here than adapted static explainers.
  • Performance Boost: T-GNNExplainer achieved up to a ~50% improvement in the Area Under Fidelity-Sparsity Curve (AUFSC) compared to baselines like PGExplainer and attention-based methods.
  • Efficiency: The Navigator isn't just for accuracy; it's a massive time-saver. Using the Navigator sped up the search process by 28% to 96% across different datasets compared to running the Explorer alone.

Limitations and Future Work

While groundbreaking, the framework has room for growth. The current method provides "instance-level" explanations (explaining one specific prediction at a time). The authors note that "model-level" explanations—understanding the global logic of the entire temporal GNN across all predictions—remains a promising but unsolved direction.

Additionally, while Hawkes processes are a good start for synthetic data, creating more complex, realistic simulated dynamic graphs would help further refine explanation tools. Finally, even with the Navigator, MCTS is more computationally intensive than simple attention-weight visualization, which might limit its use in real-time, high-throughput systems.

Summary updated

BibTeX
@inproceedings{xia2023explaining,
  author = {Wenwen Xia and Mincai Lai and Caihua Shan and Yao Zhang and Xinnan Dai and Xiang Li and Dongsheng Li},
  title = {{Explaining Temporal Graph Models through an Explorer-Navigator Framework}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=BR_ZhvcYbGJ},
}
Figure