TL;DR
CorDGT is a new Transformer-based framework for Continuous-Time Dynamic Graphs (CTDGs) that captures complex "high-order proximity" more efficiently than previous methods. By using a parameter-free interaction intensity estimation based on the Poisson Point Process and a novel "correlated" positional encoding, it achieves state-of-the-art performance on link prediction while scaling much better to large-scale datasets than traditional memory-based models.
What Problem Does This Paper Address?
In the world of dynamic graphs—think social networks where friendships form over time or transaction logs in e-commerce—the goal is to learn "node representations" that capture both the structure of the graph and how it evolves. A core challenge is preserving proximity: nodes that are "close" in the graph should have similar representations.
While first-order proximity (direct interaction) is easy to model, high-order proximity (shared neighbors and complex paths) is much harder. In dynamic graphs, this proximity has a "spatial-temporal duality." For example, if you and I have three shared friends, we are "closer" if we interacted with those friends recently and frequently.
Existing methods struggle with this because:
- Computational Cost: Estimating "interaction intensity" often requires expensive pre-training (e.g., using Hawkes processes).
- Independence Bias: Most models aggregate neighbor information independently, failing to capture how a shared neighbor relates to both nodes in a potential interaction.
Methods
The authors introduce CorDGT (Dynamic Graph Transformer with Correlated Spatial-Temporal Positional Encoding). The architecture relies on three main innovations:
- Parameter-Free Temporal Distance (TD): Instead of training a complex model to learn interaction intensity, the authors use the Poisson Point Process (PPP). By assuming interactions follow this simple counting process, they can estimate intensity using a simple, closed-form calculation ($n/t_n$). This makes the model much faster without sacrificing accuracy.
- Correlated Spatial-Temporal Positional Encoding (STPE-C): Standard positional encodings usually look at a node's position relative to one target. STPE-C encodes a contextual node’s distance (both spatial and temporal) to both target nodes in a link prediction task. This captures the "correlation" between the two nodes through their shared neighborhood.
- Structural Transformer: The model uses a modified Transformer architecture. It includes a specific masking matrix that ensures information only flows from the past to the future and from "farther" neighbors to "closer" ones, maintaining the causal and hierarchical integrity of the graph.
Datasets
The model was evaluated on a diverse set of nine datasets:
- Small/Medium Scale: Reddit, Wikipedia, LastFM, UCI (student messages), Enron (emails), Social Evolution (mobile proximity), and Flights.
- Large Scale: Two subsets of the Gowalla check-in dataset (Food and Outdoors), with the Food dataset containing over 2.7 million edges and 670k nodes.
Key Insights and Ideas
- The "Weak Assumption" Win: One of the most interesting takeaways is that the "weak assumption" of a Poisson Point Process is sufficient for high-quality proximity estimation. You don't need the heavy machinery of Hawkes processes to get great results; simplicity leads to efficiency.
- Duality is Key: The paper demonstrates that modeling the relationship between a neighbor and both target nodes (the "correlation") is significantly more effective than treating neighbors as independent entities.
- Memory vs. Sampling: Unlike popular models like TGN that maintain a "memory" state for every node (which becomes a bottleneck on huge graphs), CorDGT relies on local contextual sampling. This makes it much more scalable for real-world, large-scale applications.
Key Results
- State-of-the-Art Accuracy: CorDGT outperformed eight major baselines (including TGN, CAWN, and Graphmixer) across all datasets. It showed an average improvement of 1.95% in transductive and 3.21% in inductive Average Precision (AP).
- Massive Gains on Sparse Data: On the Social Evolution and LastFM datasets, the inductive AP improved by 9.52% and 6.71% respectively, proving the model's strength in handling varying interaction intensities.
- Speed and Scalability: On the large-scale Food dataset, CorDGT was significantly faster than memory-based models. While TGN and DyRep struggled with the overhead of managing millions of node states, CorDGT-10 (using 10 contextual neighbors) achieved higher accuracy in roughly 60% of the time.
Limitations and Future Work
While CorDGT is a leap forward, the authors and the architecture suggest a few areas for growth:
- Distance Metrics: The current spatial distance is a proxy based on $K$-hop neighborhoods. Developing more sophisticated, "online" shortest-path metrics that don't break the bank computationally could further improve accuracy.
- Sampling Strategies: The model currently uses uniform tree-based sampling. Exploring more advanced sampling (like biased random walks) might help capture even more diverse neighborhood structures.
- Theoretical Depth: While the Poisson assumption works well empirically, further theoretical work could explore exactly when this "weak assumption" fails and where more complex intensity models might still be necessary.
Summary updated