Introduction
Many real-world systems—such as social networks, recommender systems, and financial transaction networks—are best modeled as temporal graphs, where nodes and edges continuously appear and evolve over time.
To generate accurate node embeddings, Graph Neural Networks (GNNs) rely on "neighbor aggregation," which updates a node's state based on its neighbors. In static graphs, this is straightforward. However, in temporal graphs, a popular node might accumulate a massive, rapidly growing list of historical neighbors. Computing all of them on the fly is computationally prohibitive.
The standard workaround is to subsample only the $d$ most recent neighbors. Unfortunately, this discards older interactions, leading to incomplete information and a strong bias toward short-term behaviors. To address this, researchers introduce Recurrent Temporal Revision Graph Networks (RTRGN), a novel framework that uses node-wise RNN hidden states to efficiently integrate complete historical neighbor information without falling back on lossy subsampling.
Methodology: Recurrent Temporal Revision
To capture complete historical information without the massive computational overhead of standard aggregation, the authors propose the Recurrent Temporal Revision (RTR) framework.
- Layer-wise Hidden States: Instead of pulling neighbor embeddings on the fly, RTRGN maintains a hidden state for each node at every aggregation layer. As new edges form sequentially, these hidden states are updated using a Recurrent Neural Network (RNN). This means the hidden state inherently acts as a memory bank of all past neighbors.
- Temporal Revision (TR): When a new interaction occurs, the model doesn't just look at the new neighbor. It also collects the recent state updates (revisions) of previously interacted neighbors. This allows the network to understand how a node's older neighbors have evolved since they last interacted.
- Heterogeneous Revision (HR): To boost theoretical power, the authors introduce a clever trick during the recursive gathering of these revisions. If a node ends up querying its own past state (self-probing) through a neighbor, the model flags this and treats it mathematically differently than a standard neighbor query. This breaks structural symmetries that standard message-passing GNNs cannot.
Key Insights and Theoretical Findings
- Isomorphism is Harder than Link Prediction: The authors provide a formal definition of expressiveness for temporal graphs. They mathematically prove that distinguishing between two different temporal graphs (isomorphism) is a strictly harder task than predicting future links between nodes.
- Breaking the 1WL Limit: Standard temporal GNNs are theoretically bounded by the Temporal 1-Weisfeiler-Lehman (1WL) test, meaning there are certain distinct graph structures they simply cannot tell apart. By introducing "heterogeneous revision" (treating self-probing nodes differently), RTRGN provably exceeds this Temporal-1WL limit.
- Unlocking Multi-Layer Performance: A known frustration in temporal GNNs is that adding more aggregation layers often yields marginal improvements or even degrades performance. RTRGN breaks this trend. Because it effectively manages historical state updates, it thrives in 2-layer and 3-layer setups, converging faster and achieving significantly higher accuracy than 1-layer models.
Datasets and Results
The authors evaluated their model on two types of tasks:
- Temporal Link Prediction: Evaluated on 7 public real-world datasets (MovieLens, Wikipedia, Reddit, SocialE.-1m, SocialE., UCI-FSN, Ubuntu) and 1 newly introduced private Ecommerce dataset.
- Temporal Graph Isomorphism Test: Evaluated on 2 synthetic datasets designed to test theoretical limits: Oscillating CSL and Cuneiform Writing.
Key Performance Takeaways
- Link Prediction Dominance: RTRGN outperforms state-of-the-art baselines (like TGN, PINT, CAWN, and NAT) across the board.
- Massive Multi-Layer Gains: In 2-layer configurations, RTRGN beats the second-best method by an average of +4.4% in transductive Average Precision (AP). The most dramatic improvement is on the real-world Ecommerce dataset, where RTRGN achieves a massive +9.6% AP improvement over the next best model.
- Perfect Isomorphism Testing: On the synthetic Oscillating CSL and Cuneiform Writing datasets, RTRGN achieved 100% accuracy. Competing models like TGN and PINT failed entirely or partially (e.g., PINT-pos scored a 0% True Negative Rate on Oscillating CSL because it couldn't distinguish the complex temporal structures).
Limitations and Future Work
While highly expressive, maintaining layer-wise RNN hidden states for every node inherently introduces higher memory overhead compared to memory-less models, which could be a bottleneck for exceptionally massive graphs. Additionally, the sequential nature of RNNs can limit parallelization during training.
For future work, the framework could be extended to handle other dynamic graph events—like node/edge deletions or feature updates—beyond just edge additions. Exploring ways to optimize the memory footprint of the layer-wise hidden states would also be a highly practical next step for scaling to industry-level deployments.
Summary updated