Skip to content
Conference Open access

History Doesn’t Repeat, but Its Patterns Echo: A Parallel Pairwise Negative-Sampling Framework for Temporal Link Prediction

Sep 2026 · Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence · 0 citations · 43 references

TL;DR

This paper proposes ATNSF, a temporal graph learning framework with a hybrid negative sampling strategy that uses a portion of historical edges as hard negatives and introduces a pairwise sampled softmax loss that contrasts each positive instance with a batch of negatives to learn more discriminative representations.

Abstract

Temporal link prediction with temporal graph neural networks (TGNNs) is increasingly used to model spatio-temporal dependencies in temporal graphs and to forecast future interactions among entities. Existing sampling-based training methods typically rely on random negative sampling and pointwise loss formulations, which often lead to suboptimal convergence and limited generalization due to low-quality negative samples. We propose ATNSF, a temporal graph learning framework with a hybrid negative sampling strategy that uses a portion of historical edges as hard negatives. For efficiency, we design an asynchronous parallel training pipeline for scalable optimization and introduce a pairwise sampled softmax loss that contrasts each positive instance with a batch of negatives to learn more discriminative representations. Finally, we theoretically show that jointly designing the loss function and negative sampling strategy is crucial for improving performance and generalization. Extensive experiments across six temporal graph datasets demonstrate that ATNSF improves the average AP from 0.724 to 0.827 (+0.103). Remarkably, it also accelerates training by 1.37× to 6.85×, achieving a 2.57× geometric mean speedup. The source code of this paper can be found at https://github.com/yongqiu-star/ATNSF.

Read PDF

Similar papers

Conference Open access Sep 2026

From Compression to Construction: Pseudo Neighbor Augmentation Sampling for Dynamic Link Prediction

A novel context construction based approach named PeNS is proposed that adopts Pseudo Neighbor Augmentation Sampling Strategy for more accurate dynamic link prediction and tries to augment neighbor sequences with three complementary types of pseudo neighbors, injecting structural and temporal cues to provide rich conte...

Zhi-Gang Yu, Hao Yan, Chang-Jun Fan et al. · 0 citations
#machine learning Preprint Sep 2026

Temporal Heterogeneous Graph Pretraining for Relational Deep Learning

This framework combines Multi-scale Time Encoding, which captures record age using learnable time scales and type-specific projections, with Rotary Time Encoding, which represents signed inter-record intervals through rotary transformations during graph propagation.

Yi-Xin Peng, Er Jin, Diego Collarana et al. · 0 citations
#machine learning Preprint Sep 2026

CoRe: Coherence and Relational Alignment for Multivariate Time Series Forecasting

CoRe is proposed, a model-agnostic learning objective for direct multivariate forecasting that replaces pointwise supervision with two output-space constraints: a frequency coherence loss that aligns predicted and target spectra, and a low-rank relational graph loss that matches sampled pairwise differences in a target...

Xiao-Yu Lin, Hui-Ran Duan, Yi-Ning Liu et al. · 0 citations
Preprint Aug 2026

Denoising the Future: Context-Aware Spectral Diffusion for Temporal Knowledge Graph Extrapolation

Temporal Knowledge Graph (TKG) extrapolation seeks to infer future facts from time-varying relational histories. Recent diffusion-based approaches improve uncertainty modeling through generative denoising, but their aggregated conditioning on subject histories may insufficiently distinguish query-specific evidence from...

Yang-Lei Gan, Peng He, Run Lin et al. · 0 citations
Sep 2026

Pattern in Motion: Retrieval-Augmented Learning for Dynamic Spatio-Temporal Graphs.

Spatio-Temporal Graph Neural Networks (STGNNs) have emerged as powerful tools for modeling dynamic systems, yet they face critical generalization challenges in streaming Spatio-Temporal Out-of-Distribution (STOOD) scenarios, where spatial structures and temporal dynamics evolve beyond the distributions observed in hist...

Haoyu Zhang, Xinke Jiang, Wen-Tao Zhang et al. · 1 citation

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.