STMemoLLM: A Spatial-Temporal Memory-Augmented LLM for Robust Traffic Forecasting

Jian Zhou, Binqing Wu, Zongjiang Shang, Wanghui Qiu, Dongliang Cui +4 more
11/23/2026
cs.LG

No confident code implementation found for this paper.

Abstract

Traffic forecasting is essential for intelligent transportation systems. However, traditional deep-learning models often rely heavily on high-quality observations.

Show full abstract

Recent LLM-based approaches incorporate pretrained knowledge to improve forecasting, but they remain sensitive to input perturbations and struggle to preserve long-term patterns. To address this, we propose STMemoLLM, a spatial-temporal memory-augmented LLM for robust traffic forecasting. STMemoLLM introduces memory prototypes to compress inputs into compact summary tokens while extracting reliable dynamics from residual signals, achieving a balance between stability and variability. Specifically, a memory-enhanced tokenizer encodes prototypes and sensor characteristics into attention biases to guide adaptive compression of correlated sensors into semantic summary tokens. A memory-calibrated router further evaluates contextual deviation, compression deficiency, and prototype alignment to identify reliable residual signals, which complement the summaries while suppressing noise. Extensive experiments on eight real-world datasets show that STMemoLLM achieves state-of-the-art performance. Additional experiments examine point masking, additive Gaussian noise, structured missingness, and limited training data, demonstrating strong robustness. Code is available at https://anonymous.4open.science/r/STMemoLLM-70BF.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhou2026stmemollm,
  title  = {STMemoLLM: A Spatial-Temporal Memory-Augmented LLM for Robust Traffic Forecasting},
  author = {Jian Zhou and Binqing Wu and Zongjiang Shang and Wanghui Qiu and Dongliang Cui and Chenxi Jin and Yue Yu and Xinyi Fu and Ling Chen},
  year   = {2026},
  eprint = {2611.30148},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.30148v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.30148.svg)](https://codeofpaper.com/paper/2611.30148)

Discussion