cs.LGOct 23, 2026

When to Trust Memory: Retrieval-Guided Probabilistic Spatiotemporal Forecasting under Distribution Shift

Authors: Haochen Lv, Jianhao Zhang, Zhichen Lei, Yang Jiang, Xiaowei Mao, Shengnan Guo, Youfang Lin, Huaiyu Wan

Organizations: School of Computer Science and Technology, Beijing Jiaotong University, Beijing, China. · Key Laboratory of Big Data and Artificial Intelligence in Transportation, Ministry of Education, Beijing, China. · Beijing Key Laboratory of Traffic Data Mining and Embodied Intelligence, Beijing, China.

Abstract

Spatiotemporal forecasting plays an important role in real-world applications, where probabilistic approaches provide uncertainty estimates for decision-making. Real-world systems are inherently non-stationary, leading to distribution shifts between training and test data. However, existing probabilistic methods mainly focus on modeling data distributions under standard settings, while distribution shift methods often handle such shifts in a coarse manner, failing to characterize shift degree and adapt prediction strategy accordingly. As a result, they often produce miscalibrated and unreliable forecasts. To address this issue, we propose REMIND, a retrieval-guided probabilistic framework for spatiotemporal forecasting under distribution shift. REMIND leverages retrieval to estimate how well current observation are supported by historical patterns, enabling adaptive prediction under different shift regimes. It employs spatiotemporal retrieval to construct a memory bank and introduces a dual branch architecture, combining a memory-calibrated probabilistic branch for mild shifts with a deviation-aware probabilistic branch for severe shifts. A shift-adaptive gate, guided by retrieval similarity and memory dispersion, balances the two branches according to shift degree. We further design a hierarchical Gaussian mixture to capture heterogeneous uncertainty over the dual branch predictions, and introduce a memory perturbation training scheme to improve generalization. Experiments on real-world datasets with distribution shifts demonstrate that REMIND consistently outperforms state-of-the-art methods in both forecasting accuracy and probabilistic prediction quality.

Figures & tables

Appendix figures & tables9 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Reversible Residual Normalization Alleviates Spatio-Temporal Distribution Shift

    Apr 17, 2026Zhaobo Hu, Vincent Gauthier, Mehdi NaimaInvertible Neural NetworksDistribution Shift Robustness

  2. ROAR: Retrieval Opportunity-Aware Refinement for Zero-Shot Time Series Forecasting

    May 24, 2026Jinjin Chi, Lei Feng, Yiming Wang +4Zero-Shot Time Series ForecastingTime Series Forecasting

  3. DeRegiME: Deep Regime Mixtures for Probabilistic Forecasting under Distribution Shift

    May 19, 2026Kieran Wood, Stefan Zohren, Stephen J. RobertsDistribution Shift RobustnessTime Series Forecasting