TL;DR
If Alice emails Bob on Monday and Bob emails Carol on Tuesday, a rumor can travel from Alice to Carol—flip those days, and the rumor hits a temporal brick wall. Standard Temporal Graph Neural Networks (TGNNs) often miss how the "arrow of time" dictates who can actually influence whom. This paper defines a mathematical way to measure this causal flow, unfolds temporal networks into a clever static blueprint, and uses it to build a GNN that nails temporal pattern recognition where popular models stumble.
What Problem Does This Paper Address?
In static Graph Neural Networks (GNNs), we measure a model's "expressive power"—its theoretical ability to tell two different networks apart—using the classic Weisfeiler-Leman (WL) graph isomorphism test. When edges gain timestamps (forming temporal graphs), defining when two graphs are "the same" gets surprisingly tricky.
Existing definitions fall into a Goldilocks trap:
- Too loose (Time-aggregated): Squashes all timestamps together. It sees that Alice talked to Bob and Bob talked to Carol, completely missing that Bob talked to Carol before hearing from Alice.
- Too strict (Timewise/Time-concatenated): Demands exact timestamp matches. If two events happen on totally disconnected parts of the network, swapping their timestamps doesn't change any chain of influence—yet strict definitions declare the graphs completely different.
Take a look at $G_1$, $G_3$, and $G_4$ above (assuming information must move forward within $\delta = 2$ time steps). In $G_1$ and $G_3$, swapping the timestamps on $(b,d)$ and $(c,d)$ doesn't change who can reach node $e$, because those edges aren't on a shared path—causally, they are identical! Meanwhile, in $G_4$, changing $(d,e)$ from timestamp $4$ to $1$ breaks the chain from $b \to d \to e$. We lacked a theoretical framework—and a corresponding GNN—that treats $G_1$ and $G_3$ as equivalent while recognizing that $G_4$ is fundamentally different.
Methods
The authors introduce time-respecting path isomorphism, a happy medium that considers two temporal graphs equivalent if and only if they preserve the exact same causal topology (chains of events occurring forward in time within a maximum waiting window $\delta$).
Checking every possible path in a network is computationally explosive. Instead, the authors prove this is equivalent to standard static graph isomorphism on a new structure they call the augmented event graph ($G^{\text{aug}}$):
- Unfolding time (Novel representation): In $G^{\text{aug}}$, every timestamped interaction (like $ab^1$) becomes its own white "event node," connected by directed arrows to subsequent valid events (like $bd^2$). Crucially, they augment this with the original gray nodes ($a, b, c, d, e$) wired to their respective events, locking in which physical nodes participated in which events.
- Directed Message Passing (Standard tool, new playground): Because $G^{\text{aug}}$ is just a static directed graph where arrows literally represent the flow of time, the authors apply an existing Directed GNN (Dir-GNN). By theoretical equivalence, running Dir-GNN on $G^{\text{aug}}$ gives it the exact expressive power of a directed Weisfeiler-Leman test tailored for causal paths.
Datasets
The authors evaluate their model across three distinct setups:
- Shuffled Empirical Graphs: Five high-resolution real-world networks from biology and human interactions: ant colonies (
ants-1-1,ants-1-2), face-to-face contacts (sp-workplace,sp-hospital), and emails (eu-email-dept2). They create a custom classification benchmark by shuffling timestamps to either preserve causal paths (Class 1) or destroy them (Class 2), while keeping static edge counts identical. - Synthetic Stochastic Block Models: Generated graphs with two communities where a parameter $\sigma$ dials cross-community causal paths up or down without altering static topology or edge frequencies.
- External Dissemination Benchmarks: Five existing benchmarks (
highschool_ct1,highschool_ct2,infectious_ct1,mit_ct1,tumblr_ct1) where node labels change over time to simulate processes like rumor or disease spreading.
Key Insights and Ideas
- Partial orderings beat exact clocks: Causality doesn't care about global wall-clock time; it only cares about local partial ordering along connected paths. Building invariance to irrelevant timestamp shifts directly into the graph representation spares the GNN from having to learn it from scratch.
- Stricter isn't smarter: Models built on strict "timewise" definitions (like GAT on concatenated timestamps, or TGAT) get overwhelmed by exact timestamp values. They fail to separate timestamp changes that break causal chains from harmless jitter.
- Node consistency matters: Earlier line-graph approaches converted temporal edges into nodes, but discarded the original nodes. Retaining the original nodes in $G^{\text{aug}}$ is the mathematical linchpin that makes static isomorphism strictly equivalent to preserving all time-respecting paths.
Key Results
- Perfect empirical separation: On all five shuffled real-world datasets, the proposed model achieves 1.000 ± 0.000 accuracy across 100 runs—the only method to do so.
- Timewise vs. Path-aware divide: Timewise baselines GAT and TGAT perform near random guessing (~0.49–0.55 accuracy). Memory and random-walk models do better (TGN: 0.74–0.86, PINT: 0.83–0.95, CAW: 0.76–0.98), while only explicit path-aware baselines rival the new approach (DBGNN: 0.94–1.00, DL-WL kernel: 0.992–1.000).
- Sensitivity & Transfer: On synthetic graphs, classification accuracy smoothly climbs from 0.5 to ~1.0 as causal patterns deviate further from randomness. On the external dissemination benchmarks, running message passing on $G^{\text{aug}}$ beats the time-aggregated graph on 4 out of 5 datasets by 14 to 20 percentage points (e.g., 0.989 vs. 0.820 on
tumblr_ct1), falling short only on the smallest dataset (mit_ct1).
Limitations and Future Work
- Quadratic blowup during bursts: In sparse networks, $G^{\text{aug}}$ scales linearly with the number of temporal events. However, during dense bursts of activity—or when the waiting window $\delta$ is huge—every event connects to many successors, causing the graph size to grow quadratically in the worst case.
- Beyond whole-graph classification: Following standard WL expressivity theory, this work focuses strictly on classifying entire graphs. Extending this causal isomorphism framework to node classification and link prediction is left as an exciting next step.
Summary updated