Revisiting Node Affinity Prediction in Temporal Graphs
Krishna Sri Ipsit Mantri, Or Feldman, Moshe Eliasof, Chaim Baskin
TL;DR
The paper tackles future node affinity prediction in continuous-time dynamic graphs, where standard TGNNs underperform simple heuristics like Persistent Forecast and Moving Average. It reveals a theoretical link between these heuristics and linear state-space models, and introduces NAViS, a TGNN variant that uses per-node states plus a global virtual state and a rank-aware loss to better capture temporal dynamics and ranking quality. NAViS consistently outperforms both heuristics and prior TGNNs on the Temporal Graph Benchmark (TGB) and additional link-prediction datasets, illustrating improved ranking accuracy and generalization. The work highlights the importance of aligning model inductive biases and training objectives with the task, suggesting that linear-SMM-inspired architectures with global context and ranking-focused losses offer practical and scalable gains for dynamic graph forecasting.
Abstract
Node affinity prediction is a common task that is widely used in temporal graph learning with applications in social and financial networks, recommender systems, and more. Recent works have addressed this task by adapting state-of-the-art dynamic link property prediction models to node affinity prediction. However, simple heuristics, such as Persistent Forecast or Moving Average, outperform these models. In this work, we analyze the challenges in training current Temporal Graph Neural Networks for node affinity prediction and suggest appropriate solutions. Combining the solutions, we develop NAViS - Node Affinity prediction model using Virtual State, by exploiting the equivalence between heuristics and state space models. While promising, training NAViS is non-trivial. Therefore, we further introduce a novel loss function for node affinity prediction. We evaluate NAViS on TGB and show that it outperforms the state-of-the-art, including heuristics. Our source code is available at https://github.com/orfeld415/NAVIS
