Rethinking Evaluation for Temporal Link Prediction through Counterfactual Analysis

Aniq Ur Rahman, Alexander Modell, Justin CoonOpenReview 2025 · Submission to ICLR 2025 · Rejected

Abstract

In response to critiques of existing evaluation methods for temporal link prediction (TLP) models, we propose a novel approach to verify if these models truly capture temporal patterns in the data. Our method involves a sanity check formulated as a counterfactual question: "What if a TLP model is tested on a temporally distorted version of the data instead of the real data?" Ideally, a TLP model that effectively learns temporal patterns should perform worse on temporally distorted data compared to real data. We provide an in-depth analysis of this hypothesis and introduce two data distortion techniques to assess well-known TLP models. Our contributions are threefold: (1) We introduce two simple techniques to distort temporal patterns within a graph, generating temporally distorted test splits of well-known datasets for sanity checks. These distortion methods are applicable to any temporal graph dataset. (2) We perform counterfactual analysis on six TLP models JODIE, TGAT, TGN, CAWN, GraphMixer, and DyGFormer to evaluate their capability in capturing temporal patterns across different datasets. (3) We introduce two metrics -- average time difference (ATD) and average count difference (ACD) -- to provide a comprehensive measure of a model's predictive performance.
BibTeX
@misc{rahman2025rethinking,
  author = {Aniq Ur Rahman and Alexander Modell and Justin Coon},
  title = {{Rethinking Evaluation for Temporal Link Prediction through Counterfactual Analysis}},
  year = {2025},
  url = {https://openreview.net/forum?id=k3LAIS5wTY},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2025},
}

Loading related content...

Figure