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

Interpreting Timestamp Permutations in Dynamic Link Prediction

Ilia Karpov, Kirill Koloskov, Valeriy Kuleshov, Dmitry IlvovskyarXiv 2026

TL;DR

This paper introduces a "crossed diagnostic" to untangle why shuffling timestamps degrades the performance of dynamic link predictors. By separating the effects of training chronology from evaluation history, the authors reveal that while training on the correct order is vital for learning, many models are surprisingly indifferent to shuffled history at inference time—often because the "shuffling" never actually reaches the model's inputs.

What Problem Does This Paper Address?

In dynamic link prediction (DLP), we try to predict which nodes in a network will interact next based on their history. To prove a model actually "understands" time, researchers often use a timestamp permutation test: they shuffle the event times and see if performance drops.

However, a performance gap here is a "black box." Does accuracy drop because the model was trained on bad data and learned the wrong patterns? Or does it drop because, at test time, the model is being fed a scrambled history? Furthermore, many DLP models only look at a small window of recent neighbors. If you shuffle the whole timeline, the "most recent 20 neighbors" might not actually change for many queries. This paper aims to provide a more granular, interpretable way to measure what these models are actually learning.

Methods

The authors propose a crossed diagnostic framework that varies two factors independently:

  1. Training Chronology: Was the model trained on the original sequence or a permuted one?
  2. Evaluation History: Is the model fed the original history or a permuted one during testing?

This creates a $2 \times 2$ matrix of conditions (A, B, C, D), allowing researchers to isolate the "training contrast" (A vs. C) from the "history contrast" (A vs. B).

The $2 \times 2$ diagnostic design crossing training and evaluation conditions.

Crucially, they also track input exposure: they check whether the permutation actually changed the tensors (features, time deltas, etc.) that the model sees. If the inputs don't change, the model's prediction can't change, rendering the permutation test meaningless for that specific query.

Datasets

The study primarily uses the MOOC dataset (learner-resource interactions). To demonstrate the diagnostic's breadth, they also evaluate:

  • Wikipedia (user-page edits)
  • Reddit (user-subreddit posts)
  • LastFM (user-song listens)

They test these across several architectures, including TCL (Transformer-based) and DyGFormer.

Key Insights and Ideas

  • The "Exposure" Gap: A major finding is that permutations often don't "reach" the model. In the MOOC dataset, 68.37% of queries had identical inputs regardless of the timestamp shuffle. This happens because models often select the $N$ most recent neighbors; if the shuffle doesn't move an old event into that top-$N$ window, the model never knows anything changed.
  • Training vs. Inference: For models like TCL-BCE, the "training contrast" is huge (~8 points), while the "history contrast" is negligible (~0.03 points). This suggests the model learns a general way to process sequences during training that is robust to scrambled inputs at test time.
  • Explicit Time Encoding: By performing an ablation (turning off the time-encoder), the authors found that explicit time features account for about 55% of the performance gain in TCL. The rest likely comes from learning temporal neighborhoods and optimization order.
  • Stability and Cancellation: Even when inputs do change, the resulting rankings are often stable. When they do flip, gains and losses often cancel each other out in the aggregate accuracy score, masking the model's underlying sensitivity.

Key Results

The authors' crossed diagnostic reveals a stark difference in how training and evaluation affect performance:

  • TCL-BCE (MOOC): Training on the original chronology provides an 8.03 point boost in pairwise accuracy. In contrast, shuffling the history for a fixed, original-trained model only causes a 0.03 point drop.
  • DyGFormer: Shows an even more dramatic 22.34 point training contrast, but only a 0.38 point history contrast, despite having much higher input exposure (87.53%) than TCL.
Figure 1: TCL-BCE input exposure and accuracy contrasts. (a) Queries with changed or identical inputs. (b) A–C: blue means and six seed dots; A–B: orange diamonds at fixed original-trained weights. Contrasts average five permutations within seed and are in percentage points. Input-defined groups differ in composition.

Limitations and Future Work

  • Internal Mechanisms: While the diagnostic tells us that training matters more than history, it doesn't fully explain how the internal weights of a Transformer represent that chronology.
  • Candidate Construction: The results are sensitive to how "negative" candidates are chosen for the link prediction task. The authors note that different sampling strategies (historical vs. random) can significantly change the measured utility of temporal features.
  • Future Directions: The authors suggest that future permutation studies should move away from reporting a single "gap" and instead report training/history contrasts alongside actual input exposure and ranking change statistics.

Summary updated

Abstract

Timestamp permutations are used to test whether dynamic link predictors exploit temporal information, but a performance gap can reflect changes in training, evaluation history, or both. We separate these effects with a crossed diagnostic and measure input exposure: whether altered histories actually change the predictor's inputs. On MOOC, TCL trained with binary cross-entropy gains approximately eight pairwise-accuracy points from original-chronology training under either evaluation history, while changing history at fixed weights gives only 0.03 points. The small history contrast reflects unchanged inputs for 68.37% of queries, stable rankings for most others, and cancellation of gains and losses. Under original evaluation history, suppressing explicit time encoding reduces the training contrast from 8.03 to 3.64 points, a paired reduction of 4.39 points (95% interval [3.68, 5.09]) across six seeds. DyGFormer shows corresponding training and history contrasts of 22.34 and 0.38 points across two seeds, despite greater exposure. Partial history permutations further separate nominal intervention strength, input changes, and aggregate accuracy. These comparisons turn a single permutation gap into interpretable statements about training conditions and model responses, while leaving the internal mechanisms of temporal learning open.
BibTeX
@misc{karpov2026interpreting,
  author = {Ilia Karpov and Kirill Koloskov and Valeriy Kuleshov and Dmitry Ilvovsky},
  title = {{Interpreting Timestamp Permutations in Dynamic Link Prediction}},
  year = {2026},
  eprint = {2611.23753},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.23753},
}
Figure