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 2026
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. Code is available at https://github.com/LvHaochenBANG/REMIND.git.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper proposes REMIND, a retrieval-guided probabilistic framework for spatiotemporal forecasting under distribution shift.
Reviewers noted that the problem is important, the framework is coherent, and the empirical evaluation is comprehensive.
The main concern is that REMIND treats retrieval similarity and memory dispersion as indicators of shift severity, but the evaluation does not directly establish this relationship or show that the gate responds reliably across different shift regimes. Reviewers also questioned the reliability of retrieval under weak or noisy matches and the additional computational cost.
The author response should clarify how the proposed signals distinguish distribution shift from predictive uncertainty or retrieval failure and provide available evidence that the adaptive gate behaves as intended.
My initial assessment is borderline. The method and empirical results are promising, but the interpretation and validation of the central shift-adaptive mechanism require further clarification.
After the discussion period, all reviewers agreed that their main concerns had been adequately addressed by the authors' responses. In particular, the rebuttal provided additional experimental evidence and clarification regarding the reliability and efficiency of the proposed method, its design choices, and the interpretation of the reported performance gains. As a result, all reviewers now recommend acceptance, and I agree with their assessment.
Final justification
My final justification is reflected in the meta-review above.
- Final justification
- My final justification is reflected in the meta-review above.
Read meta-review
Meta-review
The paper proposes REMIND, a retrieval-guided probabilistic framework for spatiotemporal forecasting under distribution shift.
Reviewers noted that the problem is important, the framework is coherent, and the empirical evaluation is comprehensive.
The main concern is that REMIND treats retrieval similarity and memory dispersion as indicators of shift severity, but the evaluation does not directly establish this relationship or show that the gate responds reliably across different shift regimes. Reviewers also questioned the reliability of retrieval under weak or noisy matches and the additional computational cost.
The author response should clarify how the proposed signals distinguish distribution shift from predictive uncertainty or retrieval failure and provide available evidence that the adaptive gate behaves as intended.
My initial assessment is borderline. The method and empirical results are promising, but the interpretation and validation of the central shift-adaptive mechanism require further clarification.
After the discussion period, all reviewers agreed that their main concerns had been adequately addressed by the authors' responses. In particular, the rebuttal provided additional experimental evidence and clarification regarding the reliability and efficiency of the proposed method, its design choices, and the interpretation of the reported performance gains. As a result, all reviewers now recommend acceptance, and I agree with their assessment.
2 comments
3. Robustness to weak, noisy, or failed retrieval
Clarification and Interpretation. REMIND does not assume that L1 retrieval always returns predictively relevant memories. L1 is adopted because it measures aggregate pointwise discrepancies across the complete spatiotemporal observation window and supports efficient vectorized comparison against a large memory bank. When relevant historical patterns are absent or similar observations correspond to inconsistent futures, it can be difficult for an efficient observation-space criterion to identify reliably predictive matches. REMIND therefore uses memory dispersion, learned deviation features, and adaptive gating to evaluate the retrieved evidence and reduce memory reuse when necessary.
Evidence in the Paper. Sec. 4.2 introduces coarse-to-fine retrieval, which performs global candidate selection followed by node-level refinement. Memory-perturbation training further reduces reliance on ideal retrieval results, and Tab. 3 shows consistent degradation when it is removed.
Additional Evidence. With the remaining pipeline fixed, we compare L1 with cosine, DTW, and STRAP-style retrieval. L1 achieves the lowest retrieved-future MAE, final MAE, and CRPS, while DTW and STRAP-style retrieval incur substantially higher costs without improving downstream performance. We also inject increasing Gaussian perturbations into the top-K memories. At the highest noise level, STRAP’s MAE increases by 55.6%, compared with 29.7% for REMIND, while REMIND’s mean memory gate decreases from 0.74 to 0.24. This shows that REMIND progressively suppresses unreliable memory reuse and shifts toward deviation-aware forecasting as retrieval quality deteriorates.
Conclusion. L1 provides an effective and efficient retrieval basis, while memory perturbation, dispersion assessment, deviation-aware forecasting, and adaptive gating jointly protect REMIND against weak, noisy, or misleading memories.
4. Computational and memory costs
Clarification and Interpretation. The additional cost of REMIND mainly comes from its coarse-to-fine retrieval and node-wise spatial refinement. The memory bank is constructed through a one-time linear pass over normalized training windows without clustering or learned indexing. During querying, REMIND first performs global sample-level retrieval and then applies local refinement only to a small candidate set. ShiftTS, STONE, and TFPS do not construct retrieval-based memory banks, so their memory construction and querying costs are not directly comparable. We therefore compare REMIND with RAFT and STRAP, two representative retrieval-based forecasting methods.
Evidence in the Paper. Tab. 5 already reports the retrieval time of REMIND. Sec. 4.2 describes the coarse-to-fine retrieval procedure and shows that expensive node-wise matching is restricted to the retained candidate set rather than applied to the complete memory bank.
Additional Evidence. We report retrieval time and RAM usage for REMIND, RAFT, and STRAP under the same hardware setting. The retrieval complexity of REMIND is approximately O(RN+KBN). Compared with RAFT, REMIND uses approximately 14% less RAM but requires moderate additional retrieval time because of node-wise spatial refinement. Compared with STRAP, REMIND reduces retrieval time by 33.2%, 68.5%, and 59.7% on CAMELS, PEMS, and ENERGY, respectively, although STRAP uses less RAM on PEMS and ENERGY. REMIND contains 0.292M parameters compared with 0.218M for STRAP, and the adaptive gate accounts for only approximately 2.7% of REMIND's parameters.
Conclusion. REMIND introduces moderate additional computation for spatially refined retrieval, but its coarse-to-fine strategy avoids applying expensive local matching to the full memory bank. The resulting design provides a practical balance among retrieval quality, runtime, model size, and memory consumption.
Overall, the evidence in Figs. 2–3, Secs. 4.2 and 5.5, and Tabs. 2, 3, and 5, together with the additional shift-signal analyses, gate-stratification studies, retrieval-corruption experiments, and efficiency comparisons, supports the interpretation, adaptive behavior, robustness, and practical feasibility of REMIND's central mechanism.
We are grateful to the reviewers for the time and effort they devoted to evaluating our work. We are pleased that the rebuttal addressed their concerns and received positive feedback, and their constructive comments have substantially strengthened the paper. We would be glad if this consolidated response could also resolve the AC’s remaining concerns.
- Rating
- 5/6
- Confidence
- 5/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This work focus on probabilistic spatiotemporal forecasting under distribution shift. The paper proposes REMIND, a retrieval-guided framework that interprets retrieval not only as auxiliary information but also as an indicator of historical support. Based on retrieval similarity and memory dispersion, the model adaptively balances a memory-calibrated branch and a deviation-aware branch through a shift-adaptive gate. A hierarchical Gaussian mixture is further introduced to model predictive uncertainty. Extensive experiments across traffic, hydrology, and energy datasets demonstrate improvements over probabilistic forecasting baselines and distribution-shift-oriented methods.
Strengths and weaknesses
Strengths
-
The paper tackles an important problem at the intersection of probabilistic forecasting and distribution shift.
-
The idea of using retrieval as a measure of historical support rather than merely a memory augmentation mechanism is well motivated.
-
The dual-branch design is intuitive and aligns naturally with different shift regimes: one branch exploits reliable historical patterns, while the other focuses on deviations when retrieval becomes less trustworthy. The adaptive fusion mechanism provides a reasonable way to balance these complementary behaviors.
-
Experimental results are generally strong across multiple datasets and metrics, supporting the effectiveness of the proposed framework.
Weaknesses
-
The shift-adaptive gating mechanism uses retrieval similarity and memory dispersion to indicate distribution shift in Sec 4.5. However, the paper only validates overall performance improvements without explicitly explaining the intrinsic relationship between these signals and distribution shift. It does not analyze their individual contributions to shift characterization, and thus lacks a detailed explanation and analysis of the underlying mechanism.
-
In Line 164, the framework assumes that retrieval quality can reliably reflect historical support. However, in real-world scenarios, issues such as weakly related samples, noise interference, and insufficient memory coverage due to data sparsity may arise. It remains unclear whether the proposed L1-based retrieval method can consistently retrieve truly similar samples in such complex settings. Further clarification on the effectiveness of the retrieval method is needed.
-
The paper proposes a coarse-to-fine retrieval design to reduce computational redundancy, but lacks a comprehensive efficiency evaluation and does not provide quantitative comparisons with the retrieval-based forecasting methods discussed in the paper, such as ShiftTS, STONE, TFPS, and STRAP. Key metrics such as time and memory consumption are missing, making the practical efficiency gains and deployment limitations of the proposed retrieval design unclear.
Questions
- Could the authors provide experiments to clarify how retrieval similarity and memory dispersion respectively reflect different levels of distribution shift? Please discuss their individual contributions under varying shift intensities and explain their underlying mechanisms.
- Could the authors provide additional quantitative robustness experiments under scenarios involving retrieval noise, weak matches, and anomalous memory samples? Can the proposed L1-based retrieval method reliably ensure retrieval quality in such complex settings?
- Could the authors report the time and memory costs of constructing and querying the memory bank? Additionally, could they compare the computational efficiency of the coarse-to-fine retrieval strategy with existing retrieval-based forecasting methods?
- Could the authors further analyze the role and contribution of each component in the ablation studies?
Limitations
yes
Final justification
All my concerns have been resolved and I will increase my score.
Formatting concerns
No problem
3 comments
Rebuttal
We sincerely thank the reviewer for the careful evaluation and constructive feedback. We address each concern below with additional clarification and empirical evidence.
For W1: Limited Analysis of Shift Signals AND Q1: Contributions across Shift Intensities
We thank the reviewer for this important comment. We clarify that retrieval similarity s and memory dispersion C are not treated as equivalent or isolated measures of distribution shift. Instead, they characterize two complementary aspects of historical support. Retrieval similarity measures whether the current observation is covered by similar historical patterns: a lower s indicates weaker memory coverage. Memory dispersion measures whether the retrieved histories provide consistent future evidence: a higher C indicates that similar historical observations may evolve into divergent futures. Thus, s serves as the primary signal of historical support, while C prevents the model from over-trusting historical similarity when future correspondence is unreliable.
We first evaluate their individual contributions on ENERGY:
| Variant | MAE | RMSE | MAPE | CRPS | ES |
|---|---|---|---|---|---|
| w/o Retrieval Similarity | 2.29 | 3.27 | 33.81 | 0.1489 | 22.72 |
| w/o Memory Dispersion | 2.06 | 2.85 | 30.38 | 0.1268 | 19.63 |
| REMIND | 1.72 | 2.39 | 21.49 | 0.1027 | 16.92 |
Removing retrieval similarity increases MAE and CRPS by 33.1% and 45.0%, respectively, while removing memory dispersion increases them by 19.8% and 23.5%. The larger degradation without s confirms that historical coverage is the primary basis for memory reuse. Nevertheless, the consistent degradation without C shows that similarity alone is insufficient, particularly when historically similar observations correspond to inconsistent future outcomes.
We further compute a sample-wise MMD^2^ discrepancy score between each test sample and the training distribution, and divide the test set into low-, medium-, and high-shift groups according to its tertiles:
| Shift Level | Mean Similarity s | Mean Dispersion C | Mean Gate g | Final MAE / CRPS |
|---|---|---|---|---|
| Low | 0.86 | 0.12 | 0.9624 | 1.55/0.0883 |
| Medium | 0.68 | 0.25 | 0.7139 | 1.68/0.0994 |
| High | 0.47 | 0.41 | 0.5225 | 1.92/0.1205 |
As shift intensity increases, similarity decreases from 0.86 to 0.47, while dispersion increases from 0.12 to 0.41. Correspondingly, the mean memory gate decreases from 0.9624 to 0.5225, indicating progressively weaker reliance on retrieved futures. These results clarify the underlying mechanism: s identifies insufficient historical coverage, whereas C identifies unreliable future consensus within the retrieved neighborhood. Their combination allows the gate to adapt memory reuse across different shift intensities.
For W2: Reliability of L1 Retrieval AND Q2: Robustness to Imperfect Memory
We thank the reviewer for raising this important concern. We agree that L1 distance cannot guarantee that every retrieved sample is predictively relevant. We adopt L1 as the coarse retrieval criterion because it measures the aggregate point-wise discrepancy over the complete spatiotemporal observation window and supports highly vectorized comparison with a large memory bank. More complex criteria may capture specific pattern properties, but often introduce considerably higher retrieval costs for high-dimensional spatiotemporal data.
We first replace L1 with alternative retrieval criteria while keeping the remaining REMIND pipeline unchanged. Retrieved-Future MAE measures the discrepancy between the retrieved future prototype and the ground truth, directly reflecting the predictive relevance of retrieved samples.
| Criterion | Retrieved MAE | Final MAE | CRPS | Time(s) |
|---|---|---|---|---|
| Cosine | 2.17 | 1.79 | 0.1089 | 880.93 |
| DTW | 2.22 | 1.84 | 0.1137 | 13118.16 |
| STRAP-style | 2.31 | 1.88 | 0.1165 | 2376.18 |
| L1 | 2.05 | 1.72 | 0.1027 | 957.53 |
Cosine similarity has comparable efficiency but produces less predictively relevant memories because it mainly preserves directional similarity and may overlook absolute magnitude differences. DTW and STRAP-style retrieval introduce substantially greater costs but do not improve retrieval relevance or downstream forecasting. These results show that increased retrieval complexity does not necessarily provide more useful historical support, while L1 achieves the best balance between predictive relevance and efficiency.
More importantly, REMIND does not assume that L1 retrieval is always reliable. Under severe shifts, no observation-space criterion can guarantee useful retrieval when relevant historical patterns are absent or when similar observations correspond to inconsistent futures. Memory dispersion C, deviation features, and the shift-adaptive gate therefore jointly assess the retrieved evidence and reduce memory reuse when historical support is unreliable.
To quantify this robustness, we inject increasing Gaussian perturbations into the top-K retrieved memory samples at test time. Since the data are z-score normalized, the noise level denotes its standard deviation relative to that of the original data. This controlled corruption captures the common consequence of retrieval noise, weak matches, anomalous samples, and limited memory coverage: unreliable retrieved evidence. We compare REMIND with STRAP, which also uses retrieval but lacks shift-adaptive memory control.
| Noise | STRAP MAE | STRAP RMSE | STRAP MAPE | REMIND MAE | REMIND RMSE | REMIND MAPE | Gate g |
|---|---|---|---|---|---|---|---|
| 0.0 | 2.77 | 3.75 | 26.28 | 1.72 | 2.39 | 21.49 | 0.74 |
| 0.1 | 2.95 | 3.96 | 28.10 | 1.76 | 2.44 | 22.10 | 0.66 |
| 0.2 | 3.24 | 4.31 | 31.47 | 1.84 | 2.54 | 23.38 | 0.53 |
| 0.4 | 3.78 | 4.93 | 37.85 | 2.02 | 2.76 | 25.91 | 0.36 |
| 0.6 | 4.31 | 5.58 | 44.92 | 2.23 | 3.02 | 29.14 | 0.24 |
| Degradation at 0.6 | +55.6% | +48.8% | +70.9% | +29.7% | +26.4% | +35.6% | – |
Both methods degrade as memory quality decreases, confirming the effect of retrieval corruption. However, REMIND degrades substantially more slowly than STRAP. At noise level 0.6, STRAP’s MAE increases by 55.6%, compared with 29.7% for REMIND. Meanwhile, the mean gate decreases from 0.74 to 0.24, showing that REMIND progressively suppresses unreliable memory reuse and shifts toward deviation-aware forecasting. Thus, L1 provides an efficient and empirically effective retrieval basis, while REMIND explicitly handles cases where retrieval quality cannot be guaranteed.
For W3: Incomplete Efficiency Evaluation AND Q3: Memory and Retrieval Costs
We thank the reviewer for this valuable suggestion. We first clarify that ShiftTS, STONE, and TFPS are distribution-shift methods but do not construct retrieval-based memory banks, so memory construction and querying costs are not directly applicable to them. We therefore compare REMIND with STRAP and RAFT, two representative retrieval-based forecasting methods. All results are measured under the same hardware setting, and retrieval time denotes the total querying time over the test set.
| Data | Method | RAM | Time(s) |
|---|---|---|---|
| CAMELS | RAFT | 8.93MB | 1.21 |
| STRAP | 44.67MB | 2.74 | |
| REMIND | 7.66MB | 1.83 | |
| PEMS | RAFT | 2.68GB | 9427.53 |
| STRAP | 168.17MB | 39271.09 | |
| REMIND | 2.30GB | 12377.27 | |
| ENERGY | RAFT | 89.31MB | 480.38 |
| STRAP | 28.93MB | 2376.18 | |
| REMIND | 76.55MB | 957.53 |
REMIND builds its memory bank in a one-time linear pass over normalized training windows, without clustering or learned indexing. During querying, it performs global retrieval and refines only the top candidates using local spatial dependencies, with complexity O(RN+KBN), where R is the memory size and K,B are fixed candidate and neighborhood sizes. Compared with RAFT, REMIND uses about 14% less RAM but requires more retrieval time due to node-wise spatial refinement. Compared with STRAP, it reduces retrieval time by 33.2%, 68.5%, and 59.7% on CAMELS, PEMS, and ENERGY. Although STRAP uses less RAM on PEMS and ENERGY, its subgraph construction and pattern extraction are substantially more expensive.
These results show that the coarse-to-fine strategy avoids applying expensive local matching to the full memory bank and achieves a practical balance between spatially refined retrieval and efficiency.
For Q4: Roles and Contributions of Individual Components
We thank the reviewer for this helpful suggestion. Tabs. 2 and 3 show that REMIND’s components play distinct yet complementary roles. Removing the memory-calibrated branch increases MAE and CRPS by 68.6% and 62.0%, confirming the value of historical reuse. Removing the deviation-aware branch causes the largest degradation in MAE, RMSE, and CRPS, showing that retrieval alone is insufficient under substantial pattern deviation. Removing the shift-adaptive gate produces the largest increases in MAPE and ES, demonstrating the need for adaptive rather than static fusion. Overall, the deviation-aware branch contributes most to MAE, RMSE, and CRPS, the gate contributes most to MAPE and ES, and the memory branch provides essential historical support.
Among the supporting mechanisms, memory dispersion has the broadest impact. Removing it increases MAE, MAPE, and CRPS by 19.8%, 41.4%, and 23.5%, respectively, supporting its role in assessing the consistency of retrieved future evidence. Memory perturbation yields smaller but consistent improvements across all metrics, indicating enhanced robustness to imperfect retrieval and reduced over-reliance on highly confident memories. Gaussian mixture modeling mainly improves probabilistic forecasting: removing it changes MAE and RMSE only slightly, but increases CRPS and ES by 14.2% and 15.7%.
These results show that the two branches provide complementary forecasting strategies, the gate performs sample-wise adaptive fusion, and memory dispersion, memory perturbation, and Gaussian mixtures respectively improve retrieval reliability assessment, robustness, and distributional expressiveness.
We appreciate the reviewer’s thoughtful suggestions, which have helped strengthen both the presentation and validation of our work. We hope the added analyses adequately address the concerns.
Thank you for your reply. It has addressed all my concerns. I will increase my score.
We are pleased that our clarification resolved your concerns and sincerely appreciate your updated assessment. Your valuable feedback has helped us further strengthen the paper.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes the REMIND framework for spatio-temporal probabilistic forecasting under distribution shift. The method constructs a memory bank via retrieval, and adaptively gates the fusion between a memory-calibrated branch and a deviation-aware branch based on retrieval similarity and memory dispersion. It is also equipped with hierarchical Gaussian mixture and memory perturbation training. The overall methodology is well-articulated, and the problem formulation is practically meaningful. The experiments cover three domains—hydrology, traffic, and energy—and include comprehensive comparisons with multiple baselines in probabilistic forecasting and distribution shift. However, I have significant reservations regarding the paper's core claim that "memory dispersion reflects the degree of distribution shift and can thus determine when to trust the retrieval." Before supplementary control experiments and a quantitative analysis of the shift are provided, I am inclined to recommend a Borderline Reject.
Strengths and weaknesses
Strengths
Well-motivated problem. The motivation is sound. Blindly trusting retrieved historical patterns can indeed be detrimental under distribution shift. Investigating "when to trust memory" holds greater research value than simply performing retrieval-based forecasting.
Novel methodological design. Combining retrieval similarity with the dispersion of the retrieval target y for dual-branch gating is intuitively appealing and somewhat novel.
Broad experimental coverage. The experiments span a wide range of scenarios.
Comprehensive ablation studies. The ablation experiments are thorough.
Main Weaknesses and Concerns
1. Lack of justification for the correspondence between memory dispersion (C) and "distribution shift"
The paper uses the variance of the retrieved true future values as memory dispersion (C), and adjusts the trust in the memory branch accordingly. While this design is interesting, a large C is not equivalent to the presence of a train-test distribution shift. C essentially measures whether the future y values corresponding to the K retrieved historical segments are consistent with each other given the current query. A large C can be caused by at least the following factors: Genuine concept shift (the scenario the authors aim to capture); Inherently weak x y relationships with high noise (aleatoric uncertainty); Poor retrieval quality, where irrelevant samples are mixed in.
Counterexample: If y is generated near-randomly, the retrieved y values will be highly dispersed regardless of whether a train-test shift exists. This would result in a large C, causing the gate to favor the deviation branch—but this does not imply that "distribution shift has been detected." The paper lacks validation linking C to explicit shift metrics, resulting in a conceptual leap in the core narrative.
Suggestion: Report the correlation between C and train/test shift metrics across datasets; alternatively, conduct synthetic experiments where the shift degree is fixed while only the noise in x y is varied (e.g., adding high noise to y only when x falls within a specific region) to verify if the gate behaves as expected.
2. Inconsistency in PEMS dataset time span
Table 6, PEMS is labeled as 2015–2017 (07-10 to 09-08), with #Steps = 15,264. At a 5-minute resolution: 15,264 div 288 = 53 days. If interpreted literally as a concatenation of the same period over three years (approx. 61 days per year, from Jul 10 to Sep 8), the total number of steps should be over 52,000, which severely contradicts the table. The value 15,264 corresponds to roughly 53 days of continuous data, rather than a three-year concatenation. Given the 6:2:2 chronological split used in the experiments, the train/val/test sets for PEMS likely fall entirely within a single summer window (approx. 32 / 11 / 11 days). Thus, it may not represent the "long-term non-stationarity / cross-period distribution shift" emphasized in the paper.
Suggestion: Clarify the actual construction of the PEMS dataset (whether it is a three-year concatenation and which calendar period the 15,264 steps correspond to). If it is indeed a short sequence, experiments on a longer-span PEMS dataset should be supplemented.
3.Performance gains may stem from model complexity rather than "learning to handle distribution shift"
REMIND incorporates dual branches, gating mechanisms, hierarchical Gaussian mixtures, memory perturbation, and a retrieval module, making it significantly heavier than baselines like DeepAR and STGNF. The current ablation studies only prove that individual components "contribute," but they fail to prove that the gains primarily come from the shift-aware mechanisms.
If the model still achieves substantial improvements on datasets like PEMS where the shift might be weak, a more plausible explanation is the enhanced general representation capacity brought by the retrieval mechanism and the dual-branch architecture.
4. Lack of dataset-level distribution shift quantification and correlation analysis with performance gains
The paper claims to validate the method on data "with distribution shift," but does not systematically report the degree of shift for each dataset. Without this, reviewers cannot determine whether REMIND wins by a larger margin specifically in high-shift scenarios, or if it merely achieves marginal improvements uniformly across all settings.
Questions
1. Construct an IID Split Control Experiment to Eliminate Temporal Drift
It is highly recommended to construct an Independent and Identically Distributed (IID) data split on the CAMELS and PEMS datasets as a control group. Specifically, after generating samples via sliding windows, the data should be randomly shuffled, followed by a 6:2:2 split for the training, validation, and testing sets. The core purpose of this setup is to ensure that both the training and test sets are drawn from the exact same marginal distribution, thereby completely eliminating covariate shift or concept shift caused by temporal ordering in the experimental setup. Under this IID setting, please re-evaluate and compare the performance of REMIND against major baselines, including DeepAR, STGNF, DifSTG, and STRAP, to establish a reliable baseline performance in a stationary distribution environment.
2. Quantify Distribution Shift Metrics and Validate the Gating Mechanism
For each dataset and its corresponding split (Train vs. Test), it is suggested to report detailed statistical changes in x and y , such as the mean, variance, and quantiles, alongside two-sample distance metrics like Maximum Mean Discrepancy (MMD) to quantify the degree of distribution shift. Building upon this, please plot a scatter diagram with the shift metrics on the x-axis and the performance improvement of REMIND over the baseline on the y-axis, visually demonstrating the relationship between model gains and distributional changes. Furthermore, an in-depth validation of the gating mechanism's behavior is required to verify whether it indeed activates the deviation branch more frequently in "high-shift windows," and to confirm whether this specific branch selection actually leads to lower prediction errors.
Limitations
See Weaknesses
Final justification
I find this method quite novel. Although the initial submission lacked clarity on dataset splitting, parameter calculations, and whether the performance gains truly stemmed from distribution shift, the authors provided convincing evidence during the rebuttal. Therefore, I decided to raise my score to accept. I do hope the authors can integrate the supplementary evidence from the rebuttal into the final camera-ready version.
Formatting concerns
No
3 comments
Rebuttal
We sincerely thank reviewer for valuable comments and constructive suggestions. We carefully consider each concern and provide our responses and additional analyses below.
For W1: Lack justification for the correspondence between memory dispersion C and "distribution shift".
REMIND adapts distribution shift at sample level by jointly assessing the availability and reliability of historical support through retrieval similarity, memory dispersion C, and deviation features, and adaptively combining memory-calibrated and deviation-aware forecasting under changing environments.
1. On whether a large C is "equivalent to distribution shift".
We agree that a large memory dispersion C should not be interpreted in isolation as direct evidence of distribution shift. REMIND also does not use C as an isolated shift detector. Instead, retrieval similarity, memory dispersion, and deviation features jointly characterize historical support, whose degradation can reflect the impact of distribution shift at the sample level. This view is consistent with some OOD detection [1] and domain adaptation, where source support is often assessed through distance or density. Specifically, retrieval similarity measures whether the current observation is covered by historical states. Yet similar historical inputs do not necessarily imply similar futures, particularly when conditional dynamics change under distribution shift. C therefore measures the consistency of the retrieved futures and complements retrieval similarity by capturing potential instability in P(Y|X).
2. On noise, retrieval errors, and the counterexample.
We acknowledge that a high C may also arise from uncertainty or imperfect retrieval, but this does not conflict with our design. Regardless of whether it is caused by noise, imperfect retrieval, or distribution shift, it indicates that available historical patterns provide less reliable evidence for the current query. Therefore, reducing reliance on direct memory reuse is reasonable, which is consistent with our design.
In counterexample where Y is random, C would remain uniformly high across samples and thus provide little discriminative information for gating; the branch weight would then depend more on retrieval similarity and deviation features. In this case, REMIND can still make adaptive decisions because its gating mechanism is jointly controlled by multiple signals and is learned from data, rather than being determined by a fixed rule based solely on C.
3. For the suggestion of report the correlation between C and shift metrics
Fig. 2 shows that C is associated with the errors and variance between the retrieved future sequences from historical retrieval and the ground-truth targets, supporting the reasonableness and feasibility of using C to assess the reliability of future evidence. Ablation results (Tab. 3) and Sec. 5.5 further demonstrate that C improves adaptive branch fusion and forecasting performance.
Importantly, we agree with the suggestion that the relationship between C and explicit distribution-shift metrics should be further validated. We compute an MMD-based discrepancy score between test sample and training distribution and report the Pearson and Spearman between C and MMD².
| MMD².mean | Pearson | Spearman | |
|---|---|---|---|
| CAMELS | 0.1275 | 0.6103 | 0.7795 |
| PEMS | 0.2019 | 0.5735 | 0.6266 |
| ENERGY | 1.2323 | 0.5237 | 0.5481 |
The results show moderate positive correlations across three datasets. This supports C as a useful signal, but not as an equivalent measure of distribution shift.
All in all, REMIND does not claim that a large C alone establishes the presence of distribution shift. Instead, C serves as a complementary signal of degraded future consistency within historical support, which provides an indication of distribution shift induced degradation. Some expressions in Line 256 may have caused the misunderstanding, and we will revise the manuscript throughout for greater clarity.
For W2: Inconsistency in PEMS dataset time span
We sincerely thank the reviewer for careful checking and pointing out this inconsistency, and will correct the description in the revised manuscript. We apologize that the dataset description directly adopted from STRAP [2] without careful verification. After tracing the source, we found that PEMS dataset derived from TrafficStream [3]. We use three periods from 2015 to 2017, where each year covers Jul 10 to Aug 31 (53 days, 15264 steps). Therefore, the complete dataset contains 15264*3=45792 steps after concatenation.
In preprocessing, we split the data chronologically with 6:2:2, resulting 27475:9158:9159 steps, corresponding to around 95:32:32 days. During subsequent sliding-window, we prevent windows from crossing gaps between different years.
For dataset-level distribution shift analysis, we already provide illustration in Fig. 3 and further report detailed results here. We add PEMS08 (Jul–Aug 2016), a widely adopted spatiotemporal benchmark with relatively stable distribution, as a reference. The datasets cover a spectrum of distribution discrepancies, ranging from weak shift on PEMS08 to substantially stronger shift on ENERGY. CAMELS and PEMS represent intermediate cases.
| Split | Mean | Var | Q25 | Q75 | MMD² | |
|---|---|---|---|---|---|---|
| CAMELS | Tr | 52.33 | 9395.30 | 10.0 | 49.0 | / |
| Val | 35.12 | 4916.05 | 7.4 | 31.0 | 0.1321 | |
| Te | 32.53 | 3273.05 | 8.1 | 32.0 | 0.1275 | |
| PEMS | Tr | 143.17 | 17749.02 | 43.0 | 208.0 | / |
| Val | 155.50 | 18090.59 | 51.0 | 230.0 | 0.0992 | |
| Te | 160.78 | 18428.69 | 53.0 | 240.0 | 0.2019 | |
| ENERGY | Tr | 36.04 | 40.55 | 31.76 | 40.40 | / |
| Val | 23.90 | 31.74 | 19.90 | 27.56 | 0.5618 | |
| Te | 13.23 | 43.68 | 8.30 | 17.83 | 1.2323 | |
| PEMS08 | Tr | 229.66 | 21211.46 | 110.0 | 332.0 | / |
| Val | 233.24 | 21829.16 | 111.0 | 337.0 | 0.0291 | |
| Te | 231.18 | 21423.52 | 110.0 | 333.0 | 0.0252 |
[1]Out-of-Distribution Detection with Deep Nearest Neighbors.ICML 2022.
[2]STRAP: Spatio-Temporal Pattern Retrieval for Out-of-Distribution Generalization.NeurIPS 2025.
[3]TrafficStream: A streaming traffic flow forecasting framework based on graph neural networks and continual learning.IJCAI 2021.
For W4: Lack dataset-level distribution shift quantification and correlation analysis with performance gains AND Q1: Random shuffle split experiment to eliminate distribution shift
We believe the reviewer aims to understand how REMIND performs under different levels of distribution shift. Since the suggested random shuffling of train, valid, and test sets may introduce data leakage in spatiotemporal forecasting due to overlapping temporal windows, we instead evaluate under a more realistic chronological setting with relatively stable distribution. Specifically, we add PEMS08, a widely used benchmark with relatively small distribution variations, as a stable reference setting. The results demonstrate that REMIND achieves larger improvements under scenarios with stronger distribution shifts, while still maintaining competitive performance under relatively stable environments.
| SDER | DiffSTG | STGNF | STMPN | REMIND | ||
|---|---|---|---|---|---|---|
| PEMS08 | MAE | 20.80 | 21.57 | 16.52 | 17.48 | 16.23 |
| CRPS | 0.0763 | 0.0714 | 0.0683 | 0.0652 | 0.0647 |
| Train-Test MMD² | MAE Improve | CRPS Improve | |
|---|---|---|---|
| CAMELS | 0.128 | 2.24% (8.93→8.73) | 13.39% (0.2577→0.2232) |
| PEMS | 0.202 | 7.15% (17.91→16.63) | 1.61% (0.0868→0.0854) |
| ENERGY | 1.232 | 10.88% (1.93→1.72) | 15.68% (0.1218→0.1027) |
| PEMS08 | 0.025 | 1.76% (16.52→16.23) | 0.77% (0.0652→0.0647) |
For W3: Performance gains may stem from model complexity rather than learning to handle distribution shift AND Q2: Quantify Distribution Shift Metrics and Validate the Gating Mechanism
We believe the reviewer aims to further understand where the performance gains come from and whether the proposed mechanism behaves as expected.
1. Source of performance gains.
First, REMIND uses lightweight net with parameter count (0.292M vs 0.218M) and computational cost comparable to STRAP [2] which is also retrieval-based but lacks shift-adaptive control. REMIND achieve clear advantage.
Second, shown in table above, REMIND achieve larger gains under stronger distribution shifts, while its advantage is modest on the relatively stable PEMS08. This suggests that the improvements are not primarily driven by general representation capacity.
Finally, Tab. 2 shows that remove adaptive gate (2.7% of parameters) substantially degrades performance (MAE:1.72→3.01;CRPS:0.1027→0.1932), shown critical role of this mechanism.
| GPU Cost | MAE | MAPE | ||
|---|---|---|---|---|
| CAMELS | STRAP | 428M | 8.95 | 29.85 |
| REMIND | 498M | 8.73 | 25.30 | |
| ENERGY | STRAP | 654M | 2.77 | 26.28 |
| REMIND | 846M | 1.72 | 21.49 |
2. Whether the proposed mechanism behaves as expected.
Q2 includes three validations.
First, the dataset-level distribution shift analysis has provided in response to W2.
Second, the relationship between distribution shift degree and performance gains is reported as tables in responses to W4 and Q1, since figures cannot be included during rebuttal stage.
Finally, Sec. 5.5 Gate Behavior Analysis present relationship between gate behavior and input signals. To further validate whether the gating mechanism behaves as expected, we divide the test set into low-, medium-, and high-shift groups according to the tertiles of MMD², and compare the two branches and the final gated prediction:
| Shift level | Memory branch MAE/CRPS | Deviation branch | Gate Stength.mean | Final REMIND |
|---|---|---|---|---|
| Low | 1.57/0.0883 | 1.61/0.0934 | 0.9624 | 1.55/0.0883 |
| Medium | 1.94/0.1059 | 1.73/0.1106 | 0.7139 | 1.68/0.0994 |
| High | 2.26/0.1404 | 1.98/0.1257 | 0.5225 | 1.92/0.1205 |
The results show that REMIND assigns greater weight to the deviation branch under higher-shift scenarios, and the adaptive fusion of the two branches achieves better overall performance. This behavior is consistent with our motivation and further supports that the performance gains.
We appreciate reviewer insightful feedback, which helps us improve clarity of our work. We hope our responses and additional analyses adequately address the raised concerns.
Thank you for your reply. It has addressed all my concerns. I will increase my score.
Thank you for your positive response and updated assessment. We are glad that our clarification addressed your concerns, and we sincerely appreciate your careful review and valuable feedback, which have helped us strengthen the paper.
- Rating
- 5/6
- Confidence
- 5/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes REMIND, a retrieval-guided probabilistic forecasting framework to handle distribution shift. It designs coarse-to-fine memory retrieval, dual prediction branches for mild/severe shifts, a shift-adaptive fusion gate, hierarchical Gaussian mixture uncertainty modeling and memory perturbation training. Experiments on hydrology, traffic and energy datasets show good performance. This work addresses the challenge that existing retrieval-based forecasting methods fail to quantify shift degree and adapt prediction strategies, leading to poorly calibrated distributions.
Strengths and weaknesses
Strengths
- Clear motivation targeting the unmet need of adaptive probabilistic forecasting under continuous distribution shift.
- The overall framework is technically coherent, with retrieval, adaptive fusion, and uncertainty modeling working together in a well-motivated manner.
- The empirical study is thorough, including diverse datasets, competitive baselines, ablations, hyperparameter studies, and retrieval analyses.
- Complete appendix including full math derivation, implementation details, limitations and broader impacts. Code available for reproducibility.
Weaknesses
-
The framework relies on retrieval similarity as a proxy for historical support in the memory-calibrated branch around Eq. (2) and Eq. (5), which assumes that similarity in observation space reliably reflects future predictive relevance. This assumption may not hold under strong distribution shifts, where similar historical patterns can still lead to divergent future outcomes, potentially causing biased memory reuse, but the paper does not provide a dedicated analysis of this failure case.
-
The overall inference pipeline combining coarse-to-fine retrieval in Sec. 4.2 with dual probabilistic branches and mixture modeling in Eq. (7) and Eq. (10) introduces additional computational overhead, but the paper does not report runtime or scalability comparisons against retrieval-based baselines such as RAFT[1] and STRAP[2].
-
The shift-adaptive gating mechanism in Eq. (11)–(12) may raise some concerns regarding both its modeling assumption and learning strategy. It relies on the idea that distribution shift can be sufficiently captured by a gate derived from retrieval similarity and memory dispersion, and that such a gate can be learned through heuristic supervision signals.
(a) It assumes a monotonic relationship between similarity/dispersion and shift severity, which may be somewhat restrictive in complex spatiotemporal settings where shift can be multi-dimensional and not strictly ordered.
(b) It is unclear why cross-entropy is chosen as the supervision objective in Eq. (12), and whether alternative formulations such as MSE could also be used without affecting the gating behavior.
Reference
[1] Han S, Lee S, Cha M, et al. Retrieval augmented time series forecasting. ICML 2025.
[2] Zhang H, Miao H, Jiang X, et al. Strap: Spatio-temporal pattern retrieval for out-of-distribution generalization. NIPS 2026.
Questions
-
In cases where historically similar patterns lead to divergent future outcomes, is retrieval similarity in Eq. (2) still a reliable indicator of distribution shift in practice, or could it potentially mislead the model?
-
What is the additional runtime and memory cost introduced by the retrieval pipeline in Sec. 4.2 together with the dual-branch mixture modeling in Eq. (7) and Eq. (10), compared to baselines such as RAFT and STRAP?
-
Does the shift-adaptive gating design in Eq. (11)–(12) adequately handle complex spatiotemporal distribution shifts in a comprehensive manner, and is the choice of cross-entropy-based supervision in Eq (12) essential for learning the gating behavior, or could alternative objectives such as MSE achieve comparable or even better performance?
Limitations
yes
Final justification
The authors have fully addressed my main concerns regarding retrieval reliability, computational overhead, and the design of the gating mechanism through additional experiments and theoretical analysis. The new results demonstrate that REMIND can identify cases in which similar historical patterns lead to inconsistent future outcomes, while achieving a reasonable balance among retrieval quality, runtime efficiency, and memory usage. The further clarification of the gating mechanism and the cross-entropy regularization also provides strong support for the current design choices. Overall, my concerns have been resolved, and I therefore maintain my original rating.
Formatting concerns
No
3 comments
Rebuttal
We are grateful to the reviewer for the thoughtful evaluation and detailed suggestions. Below, we clarify the key issues and present additional evidence where needed.
For W1: Divergent Futures under Similar Histories AND Q1: Reliability of Retrieval Similarity
We agree that observation similarity alone cannot guarantee future predictive relevance under strong distribution shifts. In REMIND, retrieval similarity is therefore not treated as an isolated indicator of distribution shift. It measures whether the current observation is covered by historical patterns, while memory dispersion C evaluates whether these similar histories lead to consistent future outcomes, thereby characterizing the reliability of P(Y|X). The shift-adaptive gate jointly considers similarity, dispersion, and deviation features.
To directly examine the reviewer’s failure case, we select the top one-third of test samples by retrieval similarity and further divide them into three groups according to the tertiles of C:
| High-similarity samples | Memory Branch MAE / CRPS | Deviation Branch MAE / CRPS | Mean Gate Strength | Final REMIND MAE / CRPS |
|---|---|---|---|---|
| Low C | 1.38 / 0.0795 | 1.52 / 0.0860 | 0.91 | 1.35 / 0.0780 |
| Medium C | 1.60 / 0.0925 | 1.57 / 0.0910 | 0.66 | 1.52 / 0.0875 |
| High C | 1.92 / 0.1110 | 1.83 / 0.1045 | 0.38 | 1.78 / 0.0994 |
When C is low, the retrieved futures are consistent and the gate mainly relies on the memory-calibrated branch. As C increases, the memory branch becomes less reliable and its gate weight decreases from 0.91 to 0.38. Under high C, the gate primarily favors the deviation-aware branch while retaining useful historical information, allowing the final prediction to outperform both individual branches.
We agree that high retrieval similarity alone is not a reliable signal when future outcomes diverge. However, these results confirm that REMIND identifies such cases through memory dispersion, which complements retrieval similarity, and adaptively reduces biased memory reuse.
For W2: Computational Overhead AND Q2: Runtime and Memory Cost
Tab. 5 already reports the retrieval time of REMIND’s coarse-to-fine retrieval, and we further compare its retrieval cost with RAFT [1] and STRAP [2]:
| Dataset | Method | RAM | Retrieval Time (s) |
|---|---|---|---|
| CAMELS | RAFT | 8.93 MB | 1.21 |
| STRAP | 44.67 MB | 2.74 | |
| REMIND | 7.66 MB | 1.83 | |
| PEMS | RAFT | 2.68 GB | 9427.53 |
| STRAP | 168.17 MB | 39271.09 | |
| REMIND | 2.30 GB | 12377.27 | |
| ENERGY | RAFT | 89.31 MB | 480.38 |
| STRAP | 28.93 MB | 2376.18 | |
| REMIND | 76.55 MB | 957.53 |
REMIND’s retrieval cost mainly comes from its two-stage design: global sample-level retrieval followed by node-wise refinement within a small candidate set. Its complexity is approximately O(RN+KBN), where R is the number of historical windows, N is the number of nodes, K is the retained candidate size, and B is the average neighborhood size. With fixed K and B, the cost remains approximately linear in N.
Compared with RAFT, REMIND requires more retrieval time due to node-wise refinement, but consistently uses approximately 14% less RAM, partly because RAFT performs retrieval across multiple temporal scales. This moderate overhead allows REMIND to refine globally retrieved candidates according to local spatial dependencies, whereas RAFT performs node-independent temporal retrieval.
Compared with STRAP, REMIND reduces retrieval time by 33.2%, 68.5%, and 59.7% on CAMELS, PEMS, and ENERGY, respectively. STRAP requires less RAM on PEMS and ENERGY because it stores low-dimensional pattern keys, but its subgraph construction and multi-pattern extraction introduce substantially higher computational cost.
Overall, REMIND trades moderate additional runtime over RAFT for finer spatiotemporal matching, while remaining considerably faster than STRAP. These results demonstrate that its coarse-to-fine retrieval achieves a practical balance between retrieval quality, runtime, and memory usage.
For W3: Flexible Shift-Adaptive Gating AND Q3: Choice of Gate Regularization
We agree that complex spatiotemporal shifts are multi-dimensional and may not follow a strict linear ordering. We agree that complex spatiotemporal shifts are multi-dimensional and may not follow a strict linear ordering. Accordingly, REMIND does not assume a fixed or strictly monotonic relationship between either s or C and shift severity. Instead, they provide complementary soft evidence about the reliability of historical support: s reflects whether similar historical observations exist, while C reflects whether their future outcomes are consistent. As observed in Fig. 2, lower similarity and higher dispersion generally correspond to larger forecasting errors and uncertainty, but the relationship is nonlinear and exhibits substantial sample-level variation.
This observation motivates the design of the shift-adaptive gate. The regularization in Eq. (12) only encodes the broad directional prior that higher similarity should favor memory reuse, whereas higher dispersion should reduce it. It does not hard-set or uniquely determine the gate. The gate in Eq. (11) additionally takes the learned deviation representation D as input and is jointly optimized by the forecasting objective. It is therefore not forced to exactly follow the similarity- and dispersion-based priors, but retains the capacity to learn sample-specific adjustments. REMIND thus preserves the observed general tendency while maintaining flexibility under more complex shift patterns.
The key consideration is that s and C only provide prior guidance, while the forecasting-optimal gate also depends on how well the two branches explain the actual future. For clarity, considering either soft target q=s or q=1-C, the joint objective for one sample can be written as
.
The forecasting term has the gradient
Thus, when the memory branch assigns a higher likelihood to the target, the forecasting loss pushes g upward; when the deviation branch is more reliable, it pushes g downward. The optimal gate therefore depends not only on its alignment with s and C, but also on the sample-specific relative likelihoods of the two branches. Departing from the general similarity- or dispersion-based tendency can therefore improve forecasting.
We next clarify the choice of the cross-entropy-form regularizers and . This formulation is not essential for defining the gating direction, and MSE can serve as a valid alternative. We adopt it because the gate and its soft targets are bounded in [0,1], making cross-entropy a natural objective for aligning their distributions while retaining joint optimization with the forecasting loss. To empirically examine this choice, we replace both regularizers with their MSE counterparts:
| Regularization | MAE | CRPS | Spearman(g,s) | Spearman(g,C) |
|---|---|---|---|---|
| 1.72 | 0.1027 | 0.967 | -0.766 | |
| MSE counterparts | 1.98 | 0.1395 | 0.982 | -0.883 |
Both formulations preserve the intended directions, with g positively correlated with s and negatively correlated with C. Although MSE produces stronger rank correlations, it yields substantially worse MAE and CRPS. This shows that stronger alignment with the heuristic signals does not necessarily lead to better forecasting. The proposed regularizers provide effective directional guidance while allowing the gate to be jointly adapted by the forecasting objective.
These comments have helped us refine both the presentation and validation of the method. We hope the clarifications and new results satisfactorily resolve the reviewer’s concerns.
Thank you to the authors for the detailed rebuttal. Their response has fully addressed my concerns, and I will therefore maintain my current rating.
Thank you for your time and thoughtful consideration. We appreciate your constructive feedback and are glad that our response addressed your concerns.
Comments on the paper
1 comment
Please Engage in the Author-Reviewer Discussion (Two Days Remaining)
Dear Reviewers,
As only two days remain in the discussion period, please carefully review the other reviews and the authors' rebuttal and engage in the discussion. In particular, please clarify which concerns have been adequately addressed and which, if any, remain unresolved.
Please disregard this message if you have already participated in the discussion and provided your updated assessment.
Thank you for your time and participation.
Best,
AC
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the AC and reviewers for their constructive efforts to strengthen our paper. Below, we consolidate our responses to the four main concerns, with further details provided in the individual rebuttals.
1. Relationship between retrieval similarity, memory dispersion, and shift severity
Clarification and Interpretation. Under distribution shift, historical patterns observed during training become less representative of current test samples, weakening the support they provide for prediction. We characterize historical support along two complementary dimensions: availability and reliability. Retrieval similarity s measures availability by assessing whether the current observation is covered by similar patterns in historical memory. Memory dispersion C measures reliability by assessing whether the retrieved histories are associated with consistent future outcomes. Accordingly, a lower s or higher C suggests weaker historical support and serves as evidence of a greater degree of sample-level shift. The gate combines these signals with learned deviation features to adjust memory reuse.
Evidence in the Paper. Fig. 2 empirically relates s and C to the quality of historical support: lower retrieval similarity and higher memory dispersion are generally associated with larger discrepancies between the retrieved futures and ground-truth targets, as well as greater predictive uncertainty, although the relationships are nonlinear. Tab. 3 shows that removing memory dispersion consistently degrades forecasting performance, while Sec. 5.5 analyzes how the adaptive gate responds to similarity and dispersion.
Additional Evidence. We compute the correlation between C and a sample-wise MMD² shift score across CAMELS, PEMS, and ENERGY. The Pearson correlations range from 0.524 to 0.610, while the Spearman correlations range from 0.548 to 0.780, showing a consistent moderate positive relationship. On ENERGY, removing s increases MAE and CRPS by 33.1% and 45.0%, whereas removing C increases them by 19.8% and 23.5%, confirming their distinct contributions. Across low-, medium-, and high-shift groups, mean similarity decreases from 0.86 to 0.47, while mean dispersion increases from 0.12 to 0.41. Across datasets spanning different shift levels, REMIND shows more pronounced improvements under stronger distribution shifts (ENERGY dataset).
Conclusion. Together, these results show that s and C capture complementary changes in historical support across shift levels, providing a practical basis for sample-level shift characterization and adaptive memory reuse.
2. Gate behavior across different shift regimes
Clarification and Interpretation. The adaptive gate is not determined by a fixed or strictly monotonic rule based on s and C. Similarity and dispersion provide broad directional guidance: higher similarity generally encourages memory reuse, whereas higher dispersion discourages it. The gate additionally receives learned deviation features and is jointly optimized by the forecasting objective. This design combines interpretable priors with data-driven flexibility, allowing the gate to adapt memory reuse to each sample rather than mechanically following s and C.
Evidence in the Paper. Eq. (11) defines the gate using retrieval similarity, memory dispersion, and the learned deviation representation. Eq. (12) introduces similarity- and dispersion-based regularization as soft guidance rather than hard constraints. Sec. 5.5 provides the original gate-behavior analysis. Tab. 2 further shows that removing the adaptive gate increases MAE from 1.72 to 3.01 and CRPS from 0.1027 to 0.1932, although the gate accounts for only approximately 2.7% of the model parameters. The dual-branch design also provides two complementary prediction strategies: the memory-calibrated branch exploits reliable historical patterns, while the deviation-aware branch handles cases in which historical support is weak or unreliable.
Additional Evidence. Across low-, medium-, and high-shift groups defined by sample-wise MMD², the mean memory gate decreases from 0.9624 to 0.7139 and 0.5225, while adaptive fusion consistently outperforms either branch alone. Among high-similarity samples, increasing C from the lowest to highest tertile reduces the gate from 0.91 to 0.38, showing that similarity alone does not determine memory reuse. Moreover, MSE regularization aligns the gate more strongly with s and C but yields worse MAE and CRPS, confirming the benefit of combining directional priors with forecasting-driven flexibility.
Conclusion. The gate behaves consistently with the intended mechanism across different shift and memory-reliability regimes. It progressively reduces memory reliance when historical support becomes weaker or less reliable while retaining the flexibility required for sample-specific fusion.