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 about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 57f9ee9e-34e5-4061-9254-e4e82dee07beRelated papers
- PDFormer: Propagation Delay-Aware Dynamic Long-Range Transformer for Traffic Flow PredictionJiawei Jiang, Chengkai Han, Wayne Xin Zhao, Jingyuan WangAAAI 2023 · 542 citations
- 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
- LLGformer: Learnable Long-range Graph Transformer for Traffic Flow PredictionDi Jin, Cuiying Huo, Jiayi Shi, Dongxiao He et al.WWW 2025 · 14 citations
- Trafformer: Unify Time and Space in Traffic PredictionDi Jin, Jiayi Shi, Rui Wang, Yawen Li et al.AAAI 2023 · 60 citations
- How Different from the Past? Spatio-Temporal Time Series Forecasting with Self-Supervised Deviation LearningHaotian Gao, Zheng Dong, Jiawei Yong, Shintaro Fukushima et al.NeurIPS 2025 · 9 citations
