On the Power of Heuristics in Temporal Graphs
Filip Cornell, Oleg Smirnov, Gabriela Zarzar Gandler, Lele Cao
TL;DR
This work shows that temporal graphs exhibit strong recency and popularity signals that can be captured with simple memorization-based heuristics, often rivaling or surpassing neural models under standard evaluation. It introduces four heuristics—Global Recency, Local Recency, Global Popularity, and Local Popularity—and a principled way to combine them, along with efficient ranking via Fenwick Trees to enable full rankings in $\mathcal{O}(\log S)$ time. A new Complementary Normalized Rank metric provides a lens for analyzing dataset predictability and the impact of temporal patterns, while extensive experiments on the Temporal Graph Benchmark and BenchTemp demonstrate robust performance and highlight evaluation protocol effects. The findings underscore the value of refined evaluation and interpretability for temporal graph models and point to future work on de-biasing and hybrid approaches that blend heuristics with neural methods.
Abstract
Dynamic graph datasets often exhibit strong temporal patterns, such as recency, which prioritizes recent interactions, and popularity, which favors frequently occurring nodes. We demonstrate that simple heuristics leveraging only these patterns can perform on par or outperform state-of-the-art neural network models under standard evaluation protocols. To further explore these dynamics, we introduce metrics that quantify the impact of recency and popularity across datasets. Our experiments on BenchTemp and the Temporal Graph Benchmark show that our approaches achieve state-of-the-art performance across all datasets in the latter and secure top ranks on multiple datasets in the former. These results emphasize the importance of refined evaluation schemes to enable fair comparisons and promote the development of more robust temporal graph models. Additionally, they reveal that current deep learning methods often struggle to capture the key patterns underlying predictions in real-world temporal graphs. For reproducibility, we have made our code publicly available.
