NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

Temporal Leakage Distorts the TGB Node Affinity Leaderboard: A Point-in-Time Audit

Yuhang Wang, Dongmei Li, Yuze Sun, Xiaolong Qu, Yanxiang Wang, Lei YaoarXiv 2026

Imagine you’re taking a final exam. You’re asked to predict the stock market for next Friday. But, due to a clerical error, the professor hands you a newspaper from next Wednesday as "study material" just before you turn in your answer. You’d look like a genius, right?

In the world of machine learning, we call this temporal leakage, and according to this paper, it’s been quietly distorting the leaderboard of one of the most important benchmarks in the field.

TL;DR

The Temporal Graph Benchmark (TGB) is the gold standard for testing how AI predicts future social or economic interactions, but it has a "time travel" problem. This paper reveals that the benchmark accidentally allows models to peek at future data during evaluation, making simple shortcuts look like state-of-the-art breakthroughs and fundamentally misrepresenting which algorithms actually work.

What Problem Does This Paper Address?

The authors tackle point-in-time correctness in temporal graph learning.

Temporal graphs are networks that change over time—think of users listening to songs, traders exchanging currency, or Redditors posting in subreddits. A key task here is "node affinity prediction": predicting how a node (like a user) will distribute its interactions across other nodes (like music genres) in the future.

To be a fair test, a model should only have access to information available at the exact moment it makes a prediction. If a model is asked to predict next week's behavior but is accidentally fed data from within that week as an input, it’s "leaking" the future. This paper audits the TGB to see if its evaluation protocols are actually as airtight as researchers assumed.

Methods

The researchers didn't just point fingers; they built a toolkit to catch the "time travel" in the act:

  1. Label-Window Probe: A model-agnostic tool that compares labels (the "answers") with the raw edge data to figure out exactly which time window a label actually represents, regardless of what the documentation says.
  2. Instrumented Evaluation Stream: They replayed the standard TGB evaluation loop with "sensors" to detect every time an edge or a label was released to a model before its "availability time."
  3. Leakage-Free Protocol: They developed a drop-in replacement for the TGB evaluation loop that enforces strict boundaries, ensuring no future information—whether from graph edges or past labels—reaches the model too early.
Figure 1: Temporal leakage in TGB: (a) label-side leakage on tgbn-reddit; (b) edge-side leakage on tgbn-trade.

Datasets

The audit focused on the four primary node affinity datasets in TGB v2.3.0:

  • tgbn-trade: Annual agricultural trade flows between nations.
  • tgbn-genre: Users listening to music genres over time.
  • tgbn-reddit: Users posting in various subreddits.
  • tgbn-token: Cryptocurrency token transactions.

Key Insights and Ideas

  • The Documentation Gap: On three of the four datasets, labels were documented as representing the "following week." The authors' probe discovered they actually summarized a single day about five days into the future. Because the evaluation loop fed these labels back to models immediately, models were effectively getting a "one-day-ahead" forecast of the target day.
  • Heuristics vs. Intelligence: Simple heuristics (like "just predict what happened most recently") were beating complex Temporal Graph Neural Networks (TGNNs). The authors found this wasn't because the heuristics were brilliant, but because they were the best at exploiting the leaked future data.
  • The "Aha" Moment on Trade: On the tgbn-trade dataset, the evaluation loop was ingesting all of a year's trade edges before asking the model to predict that year's totals. It wasn't a prediction task; it was an aggregation task in disguise.
Figure 2: Label-window probe on the four TGB node affinity datasets.

Key Results

  • Performance Crashes: When the leaks were plugged using the "leakage-free protocol," the performance of label-based methods (which rely on past answers) dropped by 3% to 17% in NDCG@10 (a standard ranking metric).
  • The Leaderboard Flips: Under the original (leaky) protocol, using past labels seemed like the best strategy. Without leakage, this advantage nearly vanished or even reversed. On tgbn-genre, edge-based methods (using the stream of interactions) actually became superior.
  • Simplicity Wins (Fairly): The authors showed that a simple blend of "long-memory" statistics (averaging behavior over a week or more) matches or exceeds the performance of the complex state-of-the-art model (NAVIS) once the cheating is stopped.
Figure 3: Advantage of past labels over edges under the origi- nal and leakage-free protocols.

Limitations and Future Work

The authors acknowledge a few boundaries to their audit:

  • Scope: They focused on "node affinity" tasks. They did not audit "link prediction" datasets (predicting specific connections), though they note that batching effects there have been studied by others.
  • Resolution: Their probe resolves windows to a one-day granularity. If leakage happens within a single day, it might remain hidden.
  • Future Direction: The paper calls for benchmark maintainers to treat "point-in-time correctness" as a data management requirement. They suggest that future benchmarks should explicitly store the "availability time" for every label to prevent these distortions from happening again.

In short: if we want to build AI that can actually predict the future, we have to stop accidentally giving it the answers during training.

Summary updated

Abstract

Node affinity prediction in the Temporal Graph Benchmark (TGB) asks how a node's future interactions will be distributed over other nodes. On this task, methods that reuse past ground-truth labels often outperform temporal graph neural networks, and the state of the art builds on them. Such comparisons assume a point-in-time correct evaluation, in which a model receives only information available at prediction time. Drawing on as-of joins and bitemporal databases, we formalize this requirement by distinguishing when a label must be predicted, its query time, from when it is fully determined, its availability time, and we audit the four TGB node affinity datasets and their evaluation loop with model-agnostic tools. None of the four meets it. On three datasets, each label summarizes a single day about five days after its timestamp, not the documented following week, yet the loop feeds it back right after that timestamp; on the fourth, the loop processes the edges from which each label is computed before predicting it. Under a drop-in leakage-free protocol, every method whose inputs leak loses up to 17% of its NDCG@10, the advantage of past labels over the interaction stream nearly vanishes or reverses, and both the best configuration of the state of the art and the rankings change; a blend of training-free long-memory statistics, with weights fit on validation data, matches or exceeds the state of the art under both protocols. Point-in-time correctness should therefore be built into benchmarks, and our tools carry over to other benchmarks whose labels aggregate event streams over time windows.
BibTeX
@misc{wang2026temporal,
  author = {Yuhang Wang and Dongmei Li and Yuze Sun and Xiaolong Qu and Yanxiang Wang and Lei Yao},
  title = {{Temporal Leakage Distorts the TGB Node Affinity Leaderboard: A Point-in-Time Audit}},
  year = {2026},
  eprint = {2611.30289},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30289},
}
Figure