Abstract
Temporal graphs are widely used to model dynamic systems with time-varying interactions. In real-world scenarios, the underlying mechanisms of generating future interactions in dynamic systems are typically governed by a set of recurring substructures within the graph, known as temporal motifs. Despite the success of current temporal graph neural networks (TGNN), it remains uncertain which temporal motifs trigger specific model predictions. We propose Temporal Motifs Explainer (TempME), a novel approach derived from the information bottleneck principle that uncovers the most pivotal temporal motifs guiding TGNN predictions. Extensive experiments validate TempME's superiority, showing up to an 8.21% increase in explanation accuracy and a 22.96% boost in prediction Average Precision.
The Challenge of Temporal Explainability
Temporal Graph Neural Networks (TGNNs) are powerful tools for modeling dynamic systems like social networks or financial transactions, but they typically function as "black boxes." While explainability for static graphs is well-studied, temporal graphs introduce unique challenges:
- Duplicate Events: Multiple interactions can occur between the same nodes in rapid succession.
- Lack of Cohesion: Existing explainers often pick out scattered, unrelated events. A human-intelligible explanation should consist of events that are close in both time and graph topology.
- Computational Cost: Many current methods require expensive search algorithms for every explanation, making them impractical for real-time use.
The TempME Framework
TempME follows a generative pipeline grounded in information theory to identify the "building blocks" of dynamic systems—temporal motifs—responsible for specific predictions.
- Temporal Motif Extraction: The system samples sequences of events that occur in reverse chronological order leading up to the event being explained.
- Motif Encoding: A dedicated Motif Encoder (incorporating event anonymization, message passing, and graph pooling) creates high-dimensional embeddings for these motifs.
- Information Bottleneck (IB) Generator: The core of the model seeks a "bottleneck" that maximizes the mutual information between the explanation and the TGNN’s prediction while minimizing the information taken from the original graph. This ensures the explanation is both relevant and sparse.
- Null Model Integration: To distinguish meaningful patterns from random noise, TempME incorporates a randomized "null model" to focus on motifs that appear significantly more often in real data than by chance.
Key Insights and Results
TempME was evaluated across six diverse real-world datasets, including Wikipedia, Reddit, and political networks (US Legis, Can.Parl.).
- Cohesiveness is King: By using motifs as the unit of explanation rather than individual edges, TempME inherently guarantees that the resulting explanation is connected and chronologically sensible.
- Explanation as a Feature: Discovered motifs don't just explain the model—they can improve it. Feeding these motif embeddings back into the base TGNN significantly boosted link prediction performance, specifically by up to 22.96% on the US Legis dataset.
- Efficiency via Generation: Unlike search-based explainers, TempME trains a generative model. Once trained, it can produce explanations via a simple forward pass, achieving a ~550x speedup over methods like TGNNExplainer on the Reddit dataset.
- Accuracy: TempME outperformed state-of-the-art baselines by up to 8.21% in ACC-AUC across the six datasets.
Conclusion
TempME provides a robust framework for making TGNNs more transparent and trustworthy. By focusing on spatiotemporally correlated motifs rather than disjointed edges, it offers explanations that are both more accurate and more human-intelligible. Future work will explore integrating domain-specific knowledge and multi-modal information to further enhance explanatory power.
Summary updated