New Perspectives on the Evaluation of Link Prediction Algorithms for Dynamic Graphs

Raphaël Romero, Tijl De Bie, Jefrey LijffijtarXiv 2023 · DOI

TL;DR

Dynamic Link Prediction (DLP) models often exhibit high performance on aggregate metrics while failing in specific, localized ways. This research introduces a new taxonomy for negative sampling and "lossless" longitudinal visualization tools—Temporal Node and Edge Activity (TNA/TEA) plots—to expose where and when these models struggle, moving beyond misleading metrics like AUC.

Dynamic Link Prediction (DLP) involves predicting future interactions in networks that evolve over time, such as social media platforms or financial transaction logs. Despite rapid architectural progress, the field faces a significant evaluation crisis. Most models are benchmarked by comparing the score of a real interaction (a "positive") against a randomly generated fake one (a "negative").

The standard evaluation pipeline for Dynamic Link Prediction, comparing positive events against negative samples to produce aggregate metrics.

The authors identify the "Easy Negative" trap: if negative samples are too simplistic (e.g., nodes that have never interacted), even poor models achieve high AUC scores. Furthermore, global metrics like AUC or MRR provide a single score that masks structural failures, such as a model's inability to predict interactions for new users (the "cold-start" problem).

Methodology: Taxonomy and Visualization

To address these issues, the paper proposes two primary contributions:

1. A Negative Sampling Taxonomy

The authors categorize potential negative edges into ten categories based on their visibility during training and testing:

  • Historical: Edges or nodes seen during the training phase.
  • Inductive: Edges or nodes that only appear in the test set.
  • Overlap: Entities present in both training and testing. This taxonomy allows researchers to isolate specific model "skills," such as handling unseen nodes versus predicting recurring interactions.

2. Longitudinal Visualization (TNA and TEA Plots)

The authors introduce Temporal Node Activity (TNA) and Temporal Edge Activity (TEA) plots. These 2-D scatter plots map time against nodes or edges, ranked by their arrival in the network.

A Temporal Node Activity (TNA) plot, where the x-axis represents time and the y-axis represents nodes ranked by arrival time.

By coloring these plots based on predictive success (e.g., whether a positive event was correctly ranked higher than a negative one), they create a "weather map" of model performance. This reveals how errors cluster around specific time intervals or node types.

Key Insights and Results

The study's analysis across datasets like Wikipedia, Enron, and TGBL-Wiki yielded several critical findings:

  • Metric Sensitivity: AUC scores are highly sensitive to the negative sampler. On the uci dataset, the performance of a Temporal Graph Network (TGN) dropped from 0.882 to 0.626 simply by changing the negative sampling strategy.
  • The Power of Heuristics: In many "Historical" edge scenarios, simple heuristics like EdgeBank (which predicts previously seen links) outperform state-of-the-art deep learning models.
  • Warm-up Requirements: Visualization shows that models require a "warm-up" period. Error rates are significantly higher for low-degree nodes, improving only as the node becomes more active in the network.
  • Error Clustering: Unlike what aggregate metrics suggest, errors are not uniform. They are concentrated in specific structural regions, particularly among "inductive" nodes entering the network for the first time.

Conclusion

By moving toward a more granular evaluation framework, this work highlights the limitations of current DLP benchmarks. The proposed taxonomy and visualization tools provide a path toward more robust, interpretable, and reproducible research in dynamic graph analysis, ensuring that models are not just "superstars" on easy negatives but truly capable of capturing complex temporal dynamics.

Summary updated

BibTeX
@misc{romero2023new,
  author = {Raphaël Romero and Tijl De Bie and Jefrey Lijffijt},
  title = {{New Perspectives on the Evaluation of Link Prediction Algorithms for Dynamic Graphs}},
  year = {2023},
  eprint = {2311.18486},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.18486},
}
Figure