A Retrieval Augmented Spatio-Temporal Framework for Traffic Prediction

Authors

  • Weilin Ruan The Hong Kong University of Science and Technology (Guangzhou)
  • Xilin Dang The Chinese University of Hong Kong
  • Ziyu Zhou The Hong Kong University of Science and Technology (Guangzhou)
  • Sisuo Lyu The Hong Kong University of Science and Technology (Guangzhou)
  • Yuxuan Liang The Hong Kong University of Science and Technology (Guangzhou)

DOI:

https://doi.org/10.1609/aaai.v40i46.41264

Abstract

Traffic prediction serves as a cornerstone of modern intelligent transportation systems and the critical task of spatio-temporal forecasting. Although advanced Spatio-temporal Graph Neural Networks (STGNNs) and pre-trained models have made significant progress in traffic prediction, two critical challenges persist: (i) limited contextual capacity when handling complex spatio-temporal dependencies, and (ii) low predictability at fine-grained spatio-temporal points caused by heterogeneous patterns. Inspired by Retrieval-Augmented Generation (RAG), we propose RAST, a universal framework that integrates retrieval-augmented mechanisms with spatio-temporal modeling to address these challenges. Our framework consists of three key designs: 1) Decoupled Encoder and Query Generator to capture decoupled spatial and temporal features and construct a fusion query via residual fusion; 2) Spatio-temporal Retrieval Store and Retrievers to maintain and retrieve vectorized fine-grained patterns; and 3) Universal Backbone Predictor that flexibly accommodates pre-trained STGNNs or simple MLP predictors. Extensive experiments on 6 real-world traffic networks, including large-scale datasets, demonstrate that RAST achieves superior performance while maintaining computational efficiency.

Downloads

Published

2026-03-14

How to Cite

Ruan, W., Dang, X., Zhou, Z., Lyu, S., & Liang, Y. (2026). A Retrieval Augmented Spatio-Temporal Framework for Traffic Prediction. Proceedings of the AAAI Conference on Artificial Intelligence, 40(46), 39163-39172. https://doi.org/10.1609/aaai.v40i46.41264