Manuscript Offprint
arXiv:2609.03937RATL: Learning from Retrieved Residuals for Robust Multivariate Time-Series Forecasting
Abstract
Retrieval-augmented generation (RAG) complements parametric models with retrieved external evidence. The same idea is attractive for continuous-output regression, but directly reusing retrieved target values is often not robust when samples differ in output level, numerical scale, or local dynamics. Moreover, conventional forecasting pipelines generally use residuals for model optimization and error diagnosis, but do not retain individual historical residual examples as memory that can be accessed at inference time. For multivariate time-series forecasting, we propose RATL, a plug-in residual-retrieval and feedback-correction method. RATL freezes a base forecaster to construct retrieval keys and turns its historical forecast residuals into a train-only memory specific to that base model. At inference time, RATL retrieves residual trajectories from similar historical contexts subject to causal availability constraints, then uses a set-aware router operating over forecast blocks and variables to select and combine these trajectories. Experiments show that historical residuals matched to the current context contain reusable forecasting information and that RATL improves frozen base forecasters in most experimental settings. Ablations further show that learned routing strengthens raw residual feedback, while validation-based correction-strength selection limits residual over-injection. On real-world benchmarks, we use iTransformer as the primary frozen base forecaster, compare against multiple strong forecasting baselines, and test transferability across backbones. The results show that RATL can further improve base-forecaster performance in most settings. Overall, RATL shifts the retrieved object from historical target values to base-model-specific historical forecast errors, providing a plug-in, residual-memory-based paradigm for learned feedback correction in continuous-output forecasting.
Introduction
Long-horizon multivariate forecasting maps a local context window to a future trajectory. Modern linear, MLP, and Transformer forecasters have improved this mapping substantially (Zeng et al. 2023; Nie et al. 2023; Liu et al. 2024), yet their prediction is still conditioned on a fixed lookback and on historical patterns compressed into learned parameters. When a relevant pattern occurred far outside the lookback, a parametric forecaster cannot explicitly inspect that occurrence at inference time.
Retrieval-augmented forecasting addresses this limitation by searching a historical datastore and incorporating the futures associated with similar contexts (Zhang et al. 2025; Han et al. 2025; Du, Han, and Guo 2026). However, raw future reuse creates two coupled risks. First, similar contexts need not share the same future level or scale. Second, an imperfect retrieved signal may be injected even when the base prediction is already accurate, causing negative transfer. Both issues become pronounced in multivariate, long-horizon settings, where the correction must vary across variables and forecast blocks.
We investigate a different retrieval target: the forecast error of a fixed base model. For each training window, we store the base-model residual rather than treating the observed future as a stand-alone prediction, yielding an output-space correction. RATL retrieves only historical residuals whose target windows are temporally available from the training memory. In its main configuration, RATL uses the frozen base forecaster's per-variable hidden representations as retrieval keys. J5, a set-aware learned residual router, constructs block-variable candidate tokens from the query, candidate residual blocks, a Direct residual reference, and positional features. Set attention assigns weights to retrieved residual candidates and an explicit zero-residual candidate, while a global correction-strength hyperparameter is selected on validation. As a control, the non-parametric Direct baseline uses only retrieval similarity as weights for a raw weighted correction over the same residual candidates, with and no separate correction-strength tuning. Figure 1 presents the overall design: the central pipeline consists of frozen-base forecasting, causal residual retrieval, block-variable routing, and correction-strength selection, while four side panels expand its key operations.
Experiments show that RATL can turn context-matched historical errors into useful corrections across different forecasting settings and improves overall forecasting performance over the Direct baseline.
Our contributions are:
• We formulate retrieval-augmented forecasting as base-specific residual retrieval, with a train-only memory and an explicit temporal admissibility rule that prevents target leakage.
• We develop RATL around J5, a set-aware, block-variable
Corresponding author.
| Method | Retrieved value | Integration |
|---|---|---|
| kNN-MTS | future segment | similarity aggregation |
| RAFT | future patches | input/feature augmentation |
| PFRP | global prediction | confidence/output gates |
| RATL | frozen-base residual | raw Direct / J5 + val. strength |
Table 1: Retrieval target and integration differ across related forecasters.
residual router with oracle imitation and a no-correction candidate; similarity-weighted Direct serves as the non-parametric retrieval baseline.
- We conduct a 156-run study covering 13 datasets and 52 settings, together with audited transfer studies on frozen DLinear, PatchTST, TimesNet, and TimeMixer checkpoints. RATL improves mean MSE by in the main study. The transfer results show that its gains vary substantially with the base-forecaster architecture, dataset, and retrieval-key choice.
Retrieval-augmented forecasting. Retrieval augmentation has been effective in language modeling by exposing non-parametric memory at inference time (Lewis et al. 2020; Khandelwal et al. 2020). In time series, kNN-MTS retrieves future segments using learned multivariate representations (Zhang et al. 2025); RAFT retrieves matching historical patches at multiple periods (Han et al. 2025); and PFRP combines global retrieved predictions with a local univariate model using confidence and output gates (Du, Han, and Guo 2026). Foundation-model variants concatenate or prompt with retrieved contexts (Tire et al. 2026). RATL differs in the memory value and in the object being combined: it stores the residual of a specific frozen forecaster, then learns to select and compose an additive correction for multivariate blocks. This makes the retrieved value a model-failure template rather than a stand-alone future.
Table 1 summarizes the differences between RATL and representative retrieval-augmented forecasting methods along the retrieval-object and fusion dimensions.
Residual modeling and negative transfer. Residual structure has long been exploited by hybrid statistical–neural models and boosting (Zhang 2003; Friedman 2001). ResMem fits a nearest-neighbor regressor to a base model's training residuals (Yang et al. 2023), while similarity-based macroeconomic forecasting corrects ARIMA predictions with errors from related historical periods (Guerrón-Quintana and Zhong 2023). MSCT-RCM constructs a KNN residual-sequence library for ultra-short photovoltaic forecasting (Ye et al. 2026), whereas -Adapter learns a bounded post-processing correction for frozen forecasters without retrieving historical residuals (Liang et al. 2026). RATL extends the residual-reuse principle to multivariate long-horizon trajectories, causal train-only retrieval, and block-variable routing, and uses a zero-residual candidate and a correction-strength hyperparameter to suppress noise in retrieved historical residuals and reduce forecast error.
Method
Problem Setup and Frozen Base
Let be a lookback window ending at forecast origin and its future. A base forecaster produces
We first train conventionally and then freeze it. RATL learns only to estimate a correction :
This separation lets the same residual-retrieval interface wrap different forecasters and makes every memory value interpretable as a historical error of the deployed base.
Train-Only Residual Memory
For each training window , we store
where is a frozen base representation and is the time at which the full target used to compute becomes available. In the main configuration, is the iTransformer encoder's variable-token representation. The frozen transfer protocols separately use a backbone-agnostic input-statistics key for DLinear/PatchTST and preregistered native hidden keys for PatchTST, TimesNet, and TimeMixer; no key is selected using test results. Search uses squared Euclidean similarity independently for variable tokens.
Why retrieve residuals? A retrieved future can be decomposed as . Reusing asks retrieval to transfer both the neighbor's forecastable level and its model error. RATL retains only : the current base remains responsible for level, trend, and cross-variable structure, while memory estimates the systematic component that the same model missed in a related context. The memory is therefore base-specific. Replacing requires rebuilding residual values, but not redesigning the retrieval/correction interface.
Per-Variable Top-K Search with Retrieval Keys
Given a current input window , we compute the query key using the same frozen mapping used to build the memory. For a per-variable key, is the query representation of variable over the full lookback window. Retrieval is performed independently for each variable, rather than separately for future forecast blocks.
Retrieval first applies a temporal-availability constraint. At forecast origin t, candidate i may participate in the search only if
Because is the time at which the candidate target becomes fully available, this constraint inserts an additional gap of length after the candidate target, preventing retrieval of memory entries that are too close to the current forecast or whose future information is not yet available.
In the frozen main protocol, keys receive no additional normalization, and retrieval uses the per-variable mean squared Euclidean distance
A smaller distance gives a larger retrieval score . For each variable, we select only the K highest-scoring entries among the temporally admissible candidates:
Retrieval depends only on the current query key, historical memory keys, and the temporal-availability constraint; it does not use the current ground-truth future or current true residual. After the search, we take the full residual trajectories associated with these historical windows. Direct combines these trajectories directly according to their retrieval scores, whereas J5 learns candidate weights within the same candidate set for each time block and variable. Thus, Top- search operates on representations of the full input window, and forecast blocking occurs only after retrieval.
Direct Similarity-Weighted Baseline
The Direct corrector converts retrieval scores into weights
and averages the corresponding residual trajectories:
Direct is parameter-free after the base is trained and serves as the non-parametric control for RATL. It tests whether learned routing improves over simply averaging the same retrieved candidates and residual values by context similarity. Direct is evaluated as this raw correction with and is not separately tuned for correction strength.
Block-Residual Candidates and the Soft-Oracle Teacher
The retrieval module returns historical residual trajectories for the current query. Using one candidate weight for an entire trajectory is too coarse because the same historical residual may be useful early in the forecast but fail later; selecting at every time point is more susceptible to local noise and would create groups of fine-grained decisions. To balance flexibility and stability, we partition the forecast horizon into consecutive temporal blocks of length . Let denote the forecast positions in block , and let the number of blocks be . J5 assigns candidate-residual weights separately for every temporal block and variable , allowing one candidate to correct only part of the forecast interval or only some variables.
During training, the target is known, so the true residual of the frozen base forecaster on the current query can be computed as
For each retrieved candidate , we compare its historical residual with the current true residual at block-variable position . We also define candidate as the zero residual, , representing no correction. The candidate error is
A smaller error means that candidate i more closely matches the correction that the base forecaster actually needs for that time block and variable. We therefore construct the soft Oracle teacher distribution
where controls the smoothness of the teacher distribution. Compared with a hard label that selects only the minimum-error candidate, the soft distribution can retain probability mass on several similarly effective candidates and reduce supervision instability caused by small fluctuations in candidate error. This Oracle is used only to construct the supervision target during training; the true future is unavailable at validation and test time, so is neither computed nor used then.
Figure 2 illustrates the “trajectory blocking–candidate comparison–soft teacher distribution” construction for a single variable.
RATL Set-Aware Residual Router
Direct assumes that context similarity directly represents residual utility. J5 instead predicts the block-variable Oracle distribution above, without observing the current true residual, from information available at inference time. For candidate i, temporal block b, and variable d, the router constructs a candidate token from the current query, candidate residual block, Direct residual reference, and block/variable positional features. The general router also supports query-neighbor window relations and similarity features; the frozen main variant disables similarity input/prior and masks the

Figure 1: Overview of RATL. The center shows the end-to-end pipeline from an input window to the final corrected forecast; (a) a frozen base forecaster constructs a train-only key–residual memory; (b) Top-K residuals are retrieved independently for each variable under the temporal-availability constraint; (c) candidate trajectories are split into block–variable tokens and augmented with a zero-residual candidate; (d) J5 predicts candidate weights through set attention. Direct similarity weighting is the non-parametric baseline and uses the raw correction with ; for RATL, the correction-strength hyperparameter is selected on validation before one-shot test evaluation.
neighbor-window, window-difference, residual-mean, and Direct-residual-energy channels specified by its feature-ablation mask. Its active token can be written
where contains shared encoders, , are learned block and variable embeddings, and denotes the remaining scalar residual features. A zero-residual token is appended as candidate . Set attention exchanges information among the candidates, followed by a block-variable scoring head:
The resulting correction is
weight abstains by assigning mass to zero correction and s is a learned global residual scale initialized to one. Candidate order is randomly permuted during training, enforcing set rather than rank semantics.
Oracle Imitation and Prediction Loss
J5 is trained with two complementary objectives. The first is the MSE of the final prediction, which directly constrains whether the combined residual improves the base forecast. The second is the Oracle-imitation loss, which requires the router's candidate weights to approximate the block-variable teacher distribution :
In the frozen main configuration, the prediction-loss weight is 1; the global teacher-loss scale is 2.0 and the local weight of the block-variable Oracle cross-entropy is 0.2, so the effective coefficient in Eq. (14) is . The prediction loss provides an end-to-end output constraint, while the Oracle cross-entropy provides fine-grained supervision about which historical residual is useful, when, and for which variable. At inference time, J5 uses only the current query, frozen base-model prediction, and train-only memory to produce ; it requires neither the true future nor the Oracle teacher.
Correction-Strength Selection and Sealed Evaluation
The learned correction can over-inject residuals. For J5/RATL, we therefore treat as a scalar forecasting hyperparameter and select it by
breaking ties toward the smaller . The test set is evaluated only at . Equation (15) applies to J5/RATL, not Direct: Direct is the raw parameter-free similarity-weighted correction fixed at and is not separately -tuned. In the
(a) Split residual trajectories

(b) Candidate error
(c) Soft Oracle target
J5 learns from inference-time features using .
Figure 2: Construction of block-residual candidates and the soft Oracle supervision target for a fixed variable . Full residual trajectories are first divided into consecutive temporal blocks along the forecast horizon. In each block, every historical candidate and the zero-residual candidate are compared with the current true residual to obtain the block-variable error . A temperature-scaled softmax over negative errors then gives the teacher distribution . Curves and values in the figure illustrate the procedure and are not experimental results.
results, RATL denotes J5 with validation-selected . This is ordinary validation-based hyperparameter selection, not predictive-uncertainty calibration or a safety guarantee.
Experiments
Setup
Datasets and metrics. We evaluate 13 public multivariate benchmarks following the provenance convention of iTransformer (Liu et al. 2024): ETTh1, ETTh2, ETTm1, and ETTm2 from the ETT benchmark (Zhou et al. 2021); ECL, Exchange, Traffic, and Weather as used by Autoformer (Wu et al. 2021); Solar-Energy from LSTNet (Lai et al. 2018); and PEMS03/04/07/08 as evaluated by SCINet (Liu et al. 2022). Long-term datasets use horizons {96, 192, 336, 720}; PEMS uses {12, 24, 36, 48}, yielding 52 cells. Lookback is 96 and stride is one. ETT follows its official split, the other long-term datasets use chronological 70/10/20 splits, and PEMS uses 60/20/20. Standardization is fit on training data only. We report MSE and MAE, mean and sample standard deviation over seeds {1, 2, 3}.
Models and selection. The main-experiment base model is iTransformer (Liu et al. 2024). Base-model and J5 checkpoints are selected by minimum validation MSE and always use matched seeds. The frozen RATL configuration uses K = 64, forecast-horizon blocks of length eight, no similarity feature or similarity prior in J5, and the pruned feature mask described above. Full per-cell configurations, precision tiers, and commands are included in the supplement.
Overall Forecasting Accuracy
Across all 52 cells, RATL reduces MSE by 9.57% and MAE by 6.21% on average. Relative to the matched base model, it records 48 wins, 2 ties, and 2 losses; 48 cells improve for every seed, and 47 cells have a positive seed-level 95% confidence interval. Gains are largest on PEMS (dataset averages of 20.56–24.41%), but remain positive on ETT, Weather, ECL, Solar, and Traffic. The 2 losses are Exchange-336 ( ) and Exchange-720 ( ).
Table 2 summarizes the base-model and RATL MSE over every dataset and forecast length in the iTransformer main experiment.
Table 3 directly compares Direct and J5 at a fixed correction scale ( ). J5 improves the raw aggregate gain by 1.07 percentage points, supporting the role of learned candidate interaction. The dataset-level breakdown in the supplement further shows that raw Direct is strong on ECL, Traffic, Solar, and PEMS, but degrades results on ETTh2, ETTm2, Exchange, and Weather.
Correction strength is a consequential hyperparameter. For RATL, the selected is often below one on ETT and Weather, while high-gain Traffic and PEMS cells frequently retain . Thus, is a dataset–horizon–seed-dependent hyperparameter rather than a universal damping constant. Because , RATL can revert to the original base forecaster when validation rejects the correction.
Comparison with Strong Forecasters
To summarize RATL's transfer behavior across base forecasters, Table 4 collects the iTransformer main panel and the frozen DLinear, PatchTST, TimesNet, and TimeMixer trans-
Long-term forecasting
| Dataset | H=96 | H=192 | H=336 | H=720 | ||||
|---|---|---|---|---|---|---|---|---|
| Base | RATL | Base | RATL | Base | RATL | Base | RATL | |
| ETTh1 | .387±.000 | .377±.001 | .439±.001 | .429±.002 | .480±.001 | .466±.001 | .491±.001 | .470±.003 |
| ETTh2 | .304±.004 | .297±.003 | .380±.001 | .373±.001 | .421±.005 | .414±.004 | .422±.001 | .422±.001 |
| ETTm1 | .349±.001 | .327±.001 | .384±.001 | .362±.001 | .420±.001 | .399±.002 | .481±.002 | .463±.003 |
| ETTm2 | .185±.000 | .178±.000 | .252±.001 | .247±.002 | .316±.002 | .309±.002 | .413±.001 | .409±.002 |
| Exchange | .088±.001 | .088±.001 | .179±.000 | .178±.000 | .329±.002 | .338±.007 | .859±.001 | .929±.042 |
| Weather | .176±.002 | .165±.002 | .226±.002 | .216±.001 | .282±.001 | .274±.001 | .358±.001 | .353±.002 |
| ECL | .148±.001 | .134±.000 | .161±.001 | .150±.001 | .176±.003 | .163±.001 | .214±.004 | .192±.003 |
| Solar | .207±.002 | .200±.001 | .242±.002 | .228±.001 | .255±.002 | .234±.002 | .253±.000 | .232±.002 |
| Traffic | .400±.001 | .377±.001 | .418±.000 | .398±.001 | .433±.000 | .412±.001 | .466±.000 | .444±.000 |
PEMS traffic forecasting
| Dataset | H=12 | H=24 | H=36 | H=48 | ||||
|---|---|---|---|---|---|---|---|---|
| Base | RATL | Base | RATL | Base | RATL | Base | RATL | |
| PEMS03 | .067±.001 | .060±.000 | .096±.002 | .078±.000 | .132±.002 | .099±.001 | .164±.002 | .119±.001 |
| PEMS04 | .081±.000 | .068±.000 | .101±.001 | .078±.000 | .118±.001 | .090±.001 | .134±.002 | .099±.002 |
| PEMS07 | .063±.002 | .054±.002 | .085±.004 | .065±.002 | .104±.004 | .074±.002 | .121±.002 | .083±.001 |
| PEMS08 | .084±.004 | .072±.001 | .123±.005 | .096±.001 | .188±.006 | .129±.003 | .212±.006 | .149±.005 |
Table 2: Three-seed MSE (mean±std). RATL denotes the frozen J5 variant with validation-selected . Lower is better.
| Correction | Mean gain | 95% CI |
|---|---|---|
| Direct | 7.19% | [3.84, 10.61] |
| J5 | 8.26% | [5.18, 11.39] |
| J5 – Direct | +1.07 pp | [0.57, 1.62] |
Table 3: Aggregate relative MSE gain over the base at fixed correction scale ( ) across 52 dataset–horizon cells. Confidence intervals are paired cell bootstraps.
fer panels. We freeze the best-performing base model and rebuild a train-only residual memory for that exact model. Each row reports the cell-level macro-average gain of RATL relative to its matched frozen base model, rather than comparing absolute forecasting accuracy across backbones. Because the panels differ in coverage and preregistered retrieval keys, this table is intended to show cross-architecture compatibility and its boundaries, not to provide a strict backbone ranking. Complete per-cell absolute metrics and comparisons with independently trained strong forecasters are provided in the supplement.
The retrieval keys used by the different backbones are defined as follows. The iTransformer main experiment uses the per-variable tokens from the final encoder output. The unified DLinear and PatchTST transfer panels in the table use a 12-dimensional input-statistics key consisting of the window's last value, mean, standard deviation, end-to-start difference, and eight-segment average pooling, which keeps the retrieval rule consistent across architectures. PatchTST is also evaluated separately with a native hidden key obtained by temporal pooling of its final encoder patch tokens. TimesNet uses the forecast-horizon hidden states of the final TimesBlock together with the output-head weights to construct per-variable keys. TimeMixer first temporally pools the multiscale hidden states of the final PDM and then averages them across scales. Every key is predefined before testing and uses the same per-variable L2 Top-K retrieval and train-only residual memory. Consequently, differences in the table reflect both the base forecaster and its preregistered key and cannot be attributed to a retrieval representation alone.
The macro-average gain is positive for every backbone in Table 4, but individual cells can degrade, and the variation in gain shows that transfer depends on the base architecture, dataset, and predefined retrieval key. The TimesNet and TimeMixer hidden-key panels establish compatibility for those evaluated backbone–dataset–key combinations, but they contain no same-backbone input-key arm and therefore do not compare keys or establish hidden-key superiority. PatchTST is additionally evaluated with a native hidden key in a separate matched audit. These results support compatibility under the evaluated settings, not guaranteed improvement. Complete per-cell results, protocol-specific horizons, and integrity audits are provided in the supplement.
The supplement also provides source-labeled, published dataset-average comparisons, which show the same broad pattern: RATL is competitive on ETT and Weather, strong on ECL, Solar, Traffic, and PEMS, and weak on Exchange.
Robustness, Significance, and Protocol Audit
Paired test-window bootstrap on representative cells yields positive MSE-gain intervals: [3.95, 4.31]% for ETTm1-336, [4.89, 5.11]% for Traffic-336, and [15.03, 16.02]% for PEMS08-24. In contrast, the intervals for Exchange-336 and Exchange-720 are strictly negative. Analysis of the top candidates shows that ETTm1 improves as increases from 16 to 128; Traffic remains stable around ; and none of the tested values repairs Exchange-720. The Exchange failures therefore cannot be explained by a single candidate-pool setting.
| Backbone | Retrieval key | Scope | Cells | MSE gain | MAE gain |
|---|---|---|---|---|---|
| iTransformer | native hidden (encoder) | 13 datasets × 4 H | 52 | 9.57% | 6.21% |
| DLinear | input statistics | 9 datasets × 1 H | 9 | 5.83% | 5.75% |
| PatchTST | input statistics | 9 datasets × 1 H | 9 | 2.78% | 1.20% |
| TimesNet | native hidden (head) | 9 datasets × 1 H | 9 | 1.42% | 0.48% |
| TimeMixer | native hidden (multiscale) | 9 datasets × 1 H | 9 | 0.58% | 0.40% |
Table 4: Cross-backbone summary. Each row reports the macro-average cell gain of RATL over its matched frozen base. The panels use preregistered retrieval keys and different coverage, so the table summarizes transfer scope rather than ranking backbones. DLinear/PatchTST use except Exchange at ; TimesNet/TimeMixer use the same dataset–horizon scope.
Unlike traffic, energy, and weather data with stable physical periodicity, we consider Exchange a relatively small financial series that is strongly affected by exogenous shocks and exhibits clear regime changes. Its exchange-rate levels, volatility, and cross-variable relationships may change over time, while stable daily or weekly periodicity is relatively weak. Thus, even when two input windows are similar in historical shape or backbone representation, their subsequent exchange-rate changes and base-model errors need not be similar. The RATL assumption that similar contexts have transferable residual patterns is more likely to fail on this dataset, causing historical residuals retrieved at test time to be mismatched in direction or magnitude. Long horizons also reduce the number of effective windows available for validation selection, further increasing uncertainty in correction-strength estimation.
Because retrieved residuals may not provide reliable corrections in settings with weak periodicity or strong distribution shift, RATL includes two predefined fallback-to-base mechanisms. Locally, J5 adds an explicit zero-residual candidate at every block-variable position, allowing the router to reduce or cancel the residual correction at that position. Globally, the validation candidate set includes , so the final output can revert completely to the frozen base forecaster when validation evidence does not support a nonzero correction. These mechanisms reduce the risk of negative transfer but do not provide a non-degradation or safety guarantee.
Conclusion and Future Work
We propose RATL, which causally retrieves historical residuals from a frozen base forecaster and uses a block-variable router to select and combine candidate residuals. The iTransformer main experiment shows that model-specific historical errors can serve as reusable inference-time memory; the DLinear, PatchTST, TimesNet, and TimeMixer transfer panels further provide evidence that the interface is compatible with multiple architectures in the evaluated settings.
RATL's gains vary with the base forecaster, dataset, and retrieval-key definition. For datasets with limited data, weak periodicity, and more frequent changes driven by exogenous factors, historical residuals from similar contexts need not transfer to the test stage. The zero-residual candidate and fallback can mitigate negative transfer but provide no non-degradation or safety guarantee. At the same time, exact retrieval and long multivariate residual memories incur growing computational and storage costs as the numbers of training windows and variables and the forecast length increase. Semantic representations of exogenous factors could be incorporated into retrieval-key vectors.
Future work will focus on uncertainty-aware abstention based on candidate disagreement and distribution drift, sample-adaptive correction strength, and validation-safe retrieval-key selection. It will also explore approximate nearest-neighbor search, residual quantization, prototype memories, and dynamic memory compression to reduce deployment costs. Further studies should test the cross-regime stability of residual patterns across broader backbones and real operating environments, and assess applicability to transportation, energy, and industrial forecasting together with domain constraints, online monitoring, and conservative fallback strategies.
References
Du, D.; Han, T.; and Guo, S. 2026. Predicting the Future by Retrieving the Past. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, 20896–20904.
Friedman, J. H. 2001. Greedy Function Approximation: A Gradient Boosting Machine. The Annals of Statistics, 29(5): 1189–1232.
Guerrón-Quintana, P.; and Zhong, M. 2023. Macroeconomic Forecasting in Times of Crises. Journal of Applied Econometrics, 38(3): 295–320.
Han, S.; Lee, S.; Cha, M.; Arik, S. O.; and Yoon, J. 2025. Retrieval Augmented Time Series Forecasting. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, 21774–21797. PMLR.
Khandelwal, U.; Levy, O.; Jurafsky, D.; Zettlemoyer, L.; and Lewis, M. 2020. Generalization through Memorization: Nearest Neighbor Language Models. In International Conference on Learning Representations.
Lai, G.; Chang, W.-C.; Yang, Y.; and Liu, H. 2018. Modeling Long- and Short-Term Temporal Patterns with Deep Neural Networks. In The 41st International ACM SIGIR Conference on Research and Development in Information Retrieval, 95–104.
Lewis, P.; Perez, E.; Piktus, A.; Petroni, F.; Karpukhin, V.; Goyal, N.; Küttler, H.; Lewis, M.; Yih, W.-t.; Rocktäschel, T.;
Riedel, S.; and Kiela, D. 2020. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. In Advances in Neural Information Processing Systems, volume 33, 9459–9474.
Liang, D.; Li, Q.; Wang, Y.; Chen, J.; Zhang, H.; Cui, X.; Wang, Q.; and Li, S. 2026. The Forecast After the Forecast: A Post-Processing Shift in Time Series. In The Fourteenth International Conference on Learning Representations.
Liu, M.; Zeng, A.; Chen, M.; Xu, Z.; Lai, Q.; Ma, L.; and Xu, Q. 2022. SCINet: Time Series Modeling and Forecasting with Sample Convolution and Interaction. In Advances in Neural Information Processing Systems, volume 35, 5816–5828.
Liu, Y.; Hu, T.; Zhang, H.; Wu, H.; Wang, S.; Ma, L.; and Long, M. 2024. iTransformer: Inverted Transformers Are Effective for Time Series Forecasting. In International Conference on Learning Representations.
Nie, Y.; Nguyen, N. H.; Sinthong, P.; and Kalagnanam, J. 2023. A Time Series Is Worth 64 Words: Long-Term Forecasting with Transformers. In International Conference on Learning Representations.
Tire, K.; Taga, E. O.; Ildiz, M. E.; and Oymak, S. 2026. Retrieval Augmented Time Series Forecasting. In International Conference on Artificial Intelligence and Statistics.
Wang, S.; Wu, H.; Shi, X.; Hu, T.; Luo, H.; Ma, L.; Zhang, J. Y.; and Zhou, J. 2024. TimeMixer: Decomposable Multiscale Mixing for Time Series Forecasting. In International Conference on Learning Representations.
Wu, H.; Hu, T.; Liu, Y.; Zhou, H.; Wang, J.; and Long, M. 2023. TimesNet: Temporal 2D-Variation Modeling for General Time Series Analysis. In International Conference on Learning Representations.
Wu, H.; Xu, J.; Wang, J.; and Long, M. 2021. Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting. In Advances in Neural Information Processing Systems, volume 34, 22419–22430.
Yang, Z.; Lukasik, M.; Nagarajan, V.; Li, Z.; Rawat, A. S.; Zaheer, M.; Menon, A. K.; and Kumar, S. 2023. ResMem: Learn What You Can and Memorize the Rest. In Advances in Neural Information Processing Systems, volume 36, 60768–60790.
Ye, X.; Yin, J.; Zhang, J.; Li, A.; Liu, Z.; Chen, B.; Yang, J.; Li, S.; and Li, H. 2026. A Multi-Scale CNN-Transformer Network with Residual Correction for Ultra-Short-Term Photovoltaic Power Forecasting. Processes, 14(5): 759.
Zeng, A.; Chen, M.; Zhang, L.; and Xu, Q. 2023. Are Transformers Effective for Time Series Forecasting? In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, 11121–11128.
Zhang, G. P. 2003. Time Series Forecasting Using a Hybrid ARIMA and Neural Network Model. Neurocomputing, 50: 159–175.
Zhang, H.; Nie, P.; Sun, L.; and Boulet, B. 2025. Nearest Neighbor Multivariate Time Series Forecasting. IEEE Transactions on Neural Networks and Learning Systems, 36(7): 12606–12618.
Zhou, H.; Zhang, S.; Peng, J.; Zhang, S.; Li, J.; Xiong, H.; and Zhang, W. 2021. Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, 11106–11115.
Zhou, T.; Ma, Z.; Wen, Q.; Wang, X.; Sun, L.; and Jin, R. 2022. FEDformer: Frequency Enhanced Decomposed Transformer for Long-Term Series Forecasting. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, 27268–27286. PMLR.