TL;DR
Complex deep learning models for temporal graph link prediction are often outshone by surprisingly simple heuristics based purely on recency and popularity. By stacking lightweight memorization rules into a tiered tie-breaking cascade, the authors achieve state-of-the-art results across standard benchmarks while running orders of magnitude faster on a CPU than neural networks running on GPUs.
What Problem Does This Paper Address?
Temporal (dynamic) graphs model networks whose nodes and edges evolve over time—such as social media interactions, financial transactions, or user-item engagements. The standard benchmark task is dynamic link prediction: forecasting which pair of nodes will form an edge at a given future timestamp.
Recent literature has leaned heavily into increasingly complex, compute-heavy deep learning architectures (e.g., temporal graph networks, transformers, and continuous-time graph neural networks). However, the authors question whether these models actually capture nuanced relational structures or if they merely mimic basic temporal dynamics like recency (who interacted recently?) and popularity (who interacts frequently?). The paper investigates the true predictive power of simple heuristics and critically examines current evaluation protocols.
Methods
The authors introduce four simple counting and memorization heuristics, along with a strategy to combine them:
- Global Recency (GR): Scores a candidate destination node $v$ by the timestamp of its most recent interaction anywhere across the entire graph.
- Local Recency (LR): Scores $v$ relative to source node $u$ by the timestamp of the most recent interaction between $u$ and $v$.
- Global Popularity (GP): Counts total historical incoming edges to $v$ across the entire graph prior to time $t$.
- Local Popularity (LP): Counts total historical interactions between source $u$ and destination $v$ prior to time $t$.
- Heuristic Stacking (Combination): Because integer and timestamp-based heuristics often produce ties, multiple heuristics are applied sequentially in a prioritized order ($\text{LR} \rightarrow \text{GR} \rightarrow \text{LP} \rightarrow \text{GP}$). Ranks tied under the first heuristic are resolved by the next.
Implementation & Diagnostic Tools: - $O(\log S)$ Evaluation with Fenwick Trees: Exact full rankings are efficiently computed in logarithmic time relative to the number of unique timestamps $S$ using Fenwick trees, bypassing the need for biased negative sampling during evaluation. - Complementary Normalized Rank (CNR): A diagnostic metric and visualization tool plotting optimistic ($R^+$) and pessimistic ($R^-$) ranks across edge percentiles to measure dataset predictability and expose tie-breaking sensitivity.
Datasets
The authors evaluated their methods on two standardized benchmark suites (no new datasets were collected, though CNR is a newly introduced analytical tool):
- Temporal Graph Benchmark (TGB):
tgbl-wiki,tgbl-coin,tgbl-comment,tgbl-flight,tgbl-review, andtgbl-subreddit. - BenchTemp: 13 datasets across Transductive, Inductive, Inductive (New-New), and Inductive (New-Old) settings, including
CanParl,CollegeMsg,Contact,Enron,Flights,LastFM,MOOC,Reddit,SocialEvo,Taobao,UCI,UNTrade,UNVote,USLegis, andWikipedia.
Key Insights and Ideas
- The Unreasonable Effectiveness of Memorization: On many real-world graphs, recently active nodes simply remain active, and frequent destinations continue to accumulate edges ("rich-get-richer"). Deep neural networks often struggle to preserve these multi-scale temporal signals while trying to optimize for complex, long-range representations.
- Popularity as an Ideal Tie-Breaker: While Local Recency alone delivers strong predictive signal, it frequently encounters ties (especially on coarse timestamps or when candidates have never interacted). Stacking Global Recency and Popularity behind it resolves ties without diluting accuracy.
- Failure Modes Reveal Data Physics: In graphs with near-zero reoccurrence (e.g.,
tgbl-review, where users rarely review the same item twice), standard Local Recency fails catastrophically ($\text{MRR} = 0.001$). However, inverting the heuristic—penalizing recently interacted nodes to favor unseen items—substantially recovers performance, illustrating that simple heuristics also double as transparent diagnostic probes. - Evaluation Fragility: Neural models and heuristics perform markedly differently depending on whether BenchTemp (sampled negatives, evaluated via AUC) or TGB (standardized negatives, evaluated via MRR) protocols are used, highlighting that current evaluation schemes are vulnerable to selection and exposure biases.
Key Results
- TGB Leaderboard Domination: The combined heuristic achieved #1 rank across all five main TGB datasets evaluated at the time of writing (e.g., test MRR of 0.880 on
tgbl-flightvs. previous best TNCN at 0.820; 0.809 ontgbl-coinvs. TNCN at 0.762; 0.821 ontgbl-wikivs. DyGFormer at 0.798). - BenchTemp Superiority: Across BenchTemp’s inductive and transductive setups, heuristic combinations consistently matched or topped neural models like TGN, CAWN, TGAT, and DyRep on datasets such as
Enron(AUC up to 0.966),Reddit(AUC 1.000 in inductive New-New), andContact(AUC 0.982). - Computational Speedup: Heuristics executed on a single CPU required mere seconds per pass (e.g., 3.65s on
CollegeMsg, 10.57s onWikipedia), whereas neural baselines on GPUs routinely took tens to thousands of seconds per epoch (e.g., NeurTW took 4,388s onWikipediaand 143,731s onFlights).
Limitations and Future Work
- Structural Blind Spots: Pure recency/popularity heuristics fail on sparse, low-degree bipartite graphs without repeat interactions (e.g.,
Taobao, average degree 0.94), where heuristic AUC dropped to ~0.219 unless inverted or combined with other domain assumptions. - Reflection of Bias vs. True Utility: The authors caution that high benchmark performance driven by popularity and recency may simply reflect presentation, position, or exposure biases inherent in how dynamic interaction datasets are recorded, rather than true graph structure.
- Future Directions: Developing robust de-biasing techniques for temporal graph benchmarks, designing evaluation protocols immune to trivial memorization, and exploring lightweight ways to integrate heuristic signals directly into neural graph architectures.
Summary updated