TL;DR
Existing temporal graph neural networks (TGNNs) often fail to capture the "arrow of time"—how the temporal sequence of edges dictates what can causally influence what. This paper formalizes temporal graph equivalence through time-respecting path isomorphism, proves it is equivalent to static isomorphism on a specially constructed augmented event graph, and shows that running directed message passing (Dir-GNN) on this representation matches the expressive power of the directed Weisfeiler-Leman test.
What Problem Does This Paper Address?
In dynamic relational data, edge order matters fundamentally: if Alice contacts Bob at time $t_1$, and Bob contacts Carol at $t_2$, Alice can only causally influence Carol if $t_1 < t_2$.
However, formal analyses of TGNN expressive power have lacked a suitable definition of graph isomorphism:
- Time-aggregated models collapse time into static edge weights, completely missing whether valid paths exist.
- Timewise or multi-relational models treat timestamps as rigid edge attributes. They demand exact timestamp equality—declaring two graphs non-isomorphic even if their reachability and causal structures are identical.
The authors tackle this gap by formulating an isomorphism based on time-respecting paths (where consecutive steps occur within a maximum waiting time $\delta$). It focuses solely on the partial ordering required for information flow, ignoring timestamp differences that do not impact reachability.
Methods
The paper develops a theoretical and practical framework linking temporal causality to directed message passing:
- Augmented Event Graph ($G^{\text{aug}}$):
- The authors convert a temporal graph into a directed, static, 2-colored graph.
- Nodes include both the original entities $V$ (labeled 0) and instantaneous temporal edge events $E^\tau$ (labeled 1).
- Directed edges connect events that form valid time-respecting paths of length 2 ($1 \le t' - t \le \delta$), as well as connecting original nodes to and from their incident edge events.
- Theoretical Guarantee: Two temporal graphs are time-respecting path isomorphic if and only if their augmented event graphs are isomorphic under standard static graph isomorphism.
-
Graph Compression: To reduce the memory and computation overhead of large event graphs, equivalent connected components that encode identical relative causal structures are merged, with multiplicity preserved via edge weights.
-
Message Passing Architecture: Because time-respecting paths are directed (forward in time), standard undirected GNNs are insufficient. The authors apply Dir-GNN (Rossi et al., 2023), which performs distinct aggregations for incoming and outgoing neighbors. They prove that Dir-GNN on $G^{\text{aug}}$ achieves the full expressive power of the Directed Weisfeiler-Leman (D-WL) test.
Datasets
The authors evaluated temporal graph classification using setups where static topology is held identical, isolating the model's ability to discern causal order:
- Synthetic Benchmarks:
- Experiment A (Shuffled Timestamps): 250 temporal graphs generated from random walks on $k$-regular graphs ($n=10, k=3$), where timestamps are shuffled for varying fractions $\alpha \in [0, 1]$ of edges.
- Experiment B (Cluster Connectivity): Two communities connected by bottleneck edges, using second-order random walks with parameter $\sigma \in (-1, 1)$ to tune whether cross-cluster causal paths are suppressed ($\sigma < 0$) or amplified ($\sigma > 0$).
- Real-World Interaction Datasets:
ants-1-1&ants-1-2(ant interaction networks)sp-workplace&sp-hospital(SocioPatterns proximity logs)eu-email-dept2(institutional email exchanges)- Evaluated on windowed sequences (500 timestamps each) combined with timestamp shuffling / edge randomization to construct balanced binary classification tasks.
Key Insights and Ideas
- Causality is a Partial Order, Not an Absolute Clock: If event $A$ cannot reach event $B$, it doesn't matter whether $A$ occurred at 1:00 PM and $B$ at 2:00 PM or vice-versa. Defining equivalence around time-respecting paths captures the true causal topology without penalizing meaningless time shifts.
- Line-Graph Duality Bridges Temporal and Static WL: Line graph expansions translate edge sequences into node paths. Augmenting event line graphs with original node identities guarantees both edge-level causality and node-level consistency.
- Directionality is Crucial: The ablation study proves that undirected or one-way message passing collapses accuracy on causal tasks (dropping from 95% down to 63%), confirming that incoming and outgoing temporal contexts must be separated.
Key Results
- Synthetic Detection: The proposed model achieves near-perfect classification on Experiment A whenever $\alpha > 0.2$, and reliably separates non-random community flows from random baselines across values of $\sigma$ in Experiment B. By contrast, GAT models applied to time-concatenated static graphs perform near random guess (~50% accuracy).
- Real-World Benchmarks: On temporal classification across five real datasets, the proposed architecture significantly outperforms baselines:
- Proposed Model: 0.85 ± 0.20 (
eu-email-dept2), 0.98 ± 0.02 (sp-workplace), and 1.00 ± 0.00 (sp-hospital). - TGN: 0.51 to 0.99 depending on the dataset (struggling on
sp-workplaceat 0.51 andeu-email-dept2at 0.56). - GAT: Hovered near chance (0.48 – 0.58).
- Under edge-randomized configuration models, the proposed model achieved 1.00 ± 0.00 across all five datasets.
Limitations and Future Work
- Task Scope: The evaluation strictly investigates graph-level classification where static topology is controlled. Common temporal tasks like link prediction and node classification were not tested.
- Graph Expansion Overhead: Expanding edges into event nodes increases graph size substantially, requiring heuristic compression that can slightly over-constrain edge orderings between identical node pairs.
- Integration with Existing Frameworks: Memory-based models (like TGN) are typically trained on single streaming graphs and do not trivially adapt to batched graph classification, making comprehensive comparisons challenging.
- Theoretical Connections: The relationship between this event-graph isomorphism and temporal computation tree isomorphisms remains an open theoretical question.
Summary updated