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

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

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151106) · [Open on the map](../papers.html#p151106)

Category: [Time Series, PDEs & Probabilistic ML](../pcat/9.md) › [Time Series Forecasting and Robustness](../pgroup/253.md) · Type: new method · Keywords: spatiotemporal forecasting, distribution shift, probabilistic modeling, retrieval, dual branch architecture, Gaussian mixture

Areas: [Memory](../areas/memory.md) › Long-horizon memory › VLA memory; [Continual Learning & Adaptation](../areas/continual-adaptation.md) › Non-Stationarity Adaptation › Domain Shift Adaptation

## Summary
REMIND is a retrieval-guided probabilistic framework that adaptively forecasts spatiotemporal data under distribution shift by balancing memory-calibrated and deviation-aware branches.

## Explained to a 5-year-old
The system tries to guess what will happen in a place over time, like how many cars will be on a road. It looks at old examples to see if the current situation is similar to the past. If the change is small, it uses one way of guessing; if the change is big, it uses another way. It also mixes different guesses to know how sure it is about its answer. This helps it give better and more trustworthy predictions when things are different.

## Explained to a 5-year-old, longer
The system wants to predict what will happen in a place over time, such as traffic or weather. It stores many past examples in a memory bank. When a new situation appears, it checks how similar it is to those past examples. If the new situation looks a lot like the past, it uses a simple guessing method. If it looks very different, it uses a more careful guessing method. A special gate decides which method to trust based on how similar and how spread out the memories are. The system also combines several guesses together to understand how uncertain it is. This mixing helps it give answers that are both accurate and honest about their confidence. By training with small random changes to the memory, the system learns to work well even when the real world changes over time. All of this makes the predictions more reliable when the conditions are not exactly the same as before.

## For a technical reader
REMIND builds a memory bank using spatiotemporal retrieval to capture historical patterns. It then splits forecasting into two probabilistic branches: one calibrated for mild distribution shifts and another aware of large deviations. A shift-adaptive gate merges these branches based on retrieval similarity and memory dispersion. The combined predictions are modeled with a hierarchical Gaussian mixture to capture heterogeneous uncertainty, and a memory perturbation scheme improves generalization. Experiments on real-world datasets show consistent gains in both accuracy and calibration over existing methods.

## Problem
Probabilistic spatiotemporal forecasting methods assume stationary data distributions, yet real-world systems experience distribution shifts that cause miscalibrated and unreliable predictions. There is a need for forecasting approaches that can characterize shift degree and adapt prediction strategies accordingly.

## Method
The approach uses spatiotemporal retrieval to build a memory bank, then employs a dual-branch architecture with a memory-calibrated probabilistic branch for mild shifts and a deviation-aware probabilistic branch for severe shifts. A shift-adaptive gate balances the branches based on retrieval similarity and memory dispersion, and a hierarchical Gaussian mixture models the combined uncertainty, trained with a memory perturbation scheme.

## Results
The approach achieves superior forecasting accuracy and probabilistic prediction quality compared to state-of-the-art methods on real-world datasets with distribution shifts.

## Contributions
It introduces a retrieval-guided probabilistic framework that adaptively adjusts forecasting based on estimated shift degree, a dual-branch architecture with shift-adaptive gating, a hierarchical Gaussian mixture for heterogeneous uncertainty, and a memory perturbation training scheme to improve generalization.

## Practical relevance
The approach enables more reliable and calibrated forecasts under distribution shift, supporting safer decision-making in critical real-world applications.

## Research questions this paper is counted under

- [How can spatio-temporal forecasting models capture and adapt to changing system regimes?](../q/518.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151106)
