Lune

INFOCOM2026Top-tier venue

CSTDFormer: Empowering Transformers to Learn Spatio-Temporal Delays via Contrastive Learning

En Wang, Jiajian Lv, Di Liang, Zidie Zhou, Wenbin Liu, Mijia Zhang, Ruijia Wang

Abstract

Urban spatio-temporal prediction is crucial for real-world applications such as traffic dispatching, environmental monitoring, and emergency response. Despite breakthroughs in deep learning that have advanced spatio-temporal pattern learning, the complex spatio-temporal dependencies inherent in urban dynamic systems continue to pose challenges for effective spatio-temporal modeling. Existing approaches often focus on modifying model architectures and assume that spatio-temporal information passes immediately, while neglecting the spatio-temporal delays caused by urban events, geographic factors, and sensor communication latency. To fill this gap, we propose CSTDFormer, which leverages contrastive learning to empower the pure Transformer architecture to capture both short-range and long-range spatio-temporal delays. Specifically, we introduce Spatio-Temporal Delay Contrastive Learning (STD-CL) combined with self-attention to model fine-grained short-range spatio-temporal delay effects, and then devise Local-Global Contrastive Learning (LG-CL) combined with cross-attention to model long-range spatio-temporal delay relationships. Extensive experiments demonstrate that our approach outperforms nine baseline methods on five real-world datasets from different urban spatio-temporal scenarios, highlighting the necessity of considering spatio-temporal delays in urban spatio-temporal prediction.

Ask Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

its abstract · related work

Get the answer

Free to start. No credit card required.

Related papers

  1. PDFormer: Propagation Delay-Aware Dynamic Long-Range Transformer for Traffic Flow PredictionJiawei Jiang, Chengkai Han, Wayne Xin Zhao, Jingyuan WangAAAI 2023 · 542 citations
  2. SSL-STMFormer Self-Supervised Learning Spatio-Temporal Entanglement Transformer for Traffic Flow PredictionZetao Li, Zheng Hu, Peng Han, Yu Gu et al.AAAI 2025 · 12 citations
  3. LLGformer: Learnable Long-range Graph Transformer for Traffic Flow PredictionDi Jin, Cuiying Huo, Jiayi Shi, Dongxiao He et al.WWW 2025 · 14 citations
  4. Trafformer: Unify Time and Space in Traffic PredictionDi Jin, Jiayi Shi, Rui Wang, Yawen Li et al.AAAI 2023 · 60 citations
  5. STaRFormer: Semi-Supervised Task-Informed Representation Learning via Dynamic Attention-Based Regional Masking for Sequential DataMaximilian Forstenhäusler, Daniel Külzer, Christos Anagnostopoulos, Shameem Puthiya Parambath et al.NeurIPS 2025 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines