arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.12232

Training on the Future: A Delay-Aware Audit of Test-Time Adaptation for Time-Series Forecasting

Mohamed Readh Fentazi, Mazene Ameur, Adlen Ksentini

ABSTRACT

Test-time adaptation (TTA) methods for time-series forecasting update a deployed model, or a small adapter around it, from incoming ground truth. But the label of an H-step forecast exists only H steps later, and real data pipelines add further delay. We build a leakage-free harness in which the label of forecast origin s is released for updates only at step s+ds + d with d≥Hd \geq H, and enforce this rule inside the released code of four recent TTA methods (TAFAS, COSA, PETSA and DynaTTA), run on their own backbones and checkpoints across five benchmarks (ETTm1, ETTh2, Weather, Electricity and Traffic). As references we add two closed-form correctors: a bank of recursive least squares (RLS) filters combined by a per-coordinate median, with no tunable hyperparameters and 56 microseconds per step on the 7-channel streams, and an ELF-style linear corrector. Under causal delayed labels the picture is asymmetric. On ETTm1 every audited method genuinely adapts, yet the RLS bank still beats three of the four at a fraction of their cost; only DynaTTA beats the bank, only at the minimum causal delay, and at roughly 2,500 times the per-update cost; the ELF-style corrector beats all four. On the other four datasets, the largest statistically significant improvement any published method achieves over its own frozen checkpoint is half a percent, on all four at least one published method is significantly worse than the frozen model at the minimum causal delay, and on drift-heavy ETTh2 longer label delays make every adapter that separates from the frozen model, ours included, significantly harmful. Leaky next-step updates inflate the apparent gains of simple adapters by up to 110%, and the backbone training recipe moves frozen online error by up to a factor of 25, more than any adaptation effect we measure. We release the harness, integration patches and all cached runs.

1 INTRODUCTION

Deployed forecasting models degrade as the data they see drifts away from the data they were trained on, and a growing literature proposes test-time adaptation (TTA) as the remedy: small gradient updates to the deployed model, or to a lightweight adapter around it, driven by the ground truth that arrives during deployment (Kim et al., 2025; Medeiros et al., 2025; Im & Kwon, 2026; Grover & Etemad, 2025). The premise is attractive. The evaluation is not yet trustworthy, for a simple reason: the label of an H-step-ahead forecast does not exist until H steps after the forecast is issued. A protocol that lets an adapter consume the full target window of a forecast before that window has been observed is, in effect, training on the future. Online-forecasting setups descended from FSNet (Pham et al., 2023) do this at every step, and recent work has begun to correct it (Liang et al., 2024; Lau et al., 2025; Kim et al., 2025). Even the corrected protocols assume that a label can be used the moment it matures; real pipelines add lag on top, since metering, verification and ETL all delay the point at which an observation becomes usable as a label.

This paper makes the delay explicit and turns it into an experimental axis. In our harness the label of forecast origin s is released for adapter updates only at step s+ds + d. The setting d=Hd = H is the minimum causal delay, d>Hd > H models pipeline latency, and d=1d = 1 reproduces the leaky legacy.

Figure

Figure 1: Leaky versus causal evaluation on ETTh2 (DLinear stream, standardized MSE). (Left) With next-step updates (d=1), all three adapters (bias-EMA, the RLS-Bank, and the best gradient adapter) score below the persistence baseline. (Right) With updates restricted to matured windows (d=H), none does, and the ranking changes. Best GD: the per-panel oracle over the learning-rate grid. Values from Table 4.

protocol, which we report only as a reference. Figure 1 previews why the distinction matters: on ETTh2, three simple adapters appear to beat a persistence baseline under leaky updates and lose to it under causal updates. We do not evaluate published methods on re-implementations: TAFAS, COSA, PETSA and DynaTTA run from their own repositories on their own checkpoints, on five standard benchmarks (ETTm1, ETTh2, Weather, Electricity and Traffic), with the delay enforced by small, fully logged patches inside their update loops and their partial-ground-truth mechanisms retained with causally shortened prefixes.

Against this stack we field two closed-form reference adapters. The first is ours. For every channel and horizon step, a recursive least squares (RLS) filter corrects the frozen model's forecast from four features. RLS is a textbook update rule from adaptive filtering with no learning rate. Its one knob, the forgetting factor, turns out to be regime-dependent, so we run a small bank of RLS filters across forgetting factors together with a passthrough expert and combine their outputs by a per-coordinate median. The median is not a stylistic choice: feedback-driven selection and mixing, the direct analogues of learned combination in the adaptive-filters literature, fail specifically under delay, because the feedback that would dismiss a failing expert arrives up to d steps late (Section 4). The resulting RLS-Bank has no tunable hyperparameters at deployment and costs 56 microseconds per step on one CPU core for a 7-channel, 24-horizon problem. The second reference is not ours: an ELF-style corrector (Lee et al., 2025), the closest published relative of our adapter, re-implemented inside the harness so that it, too, updates only on released labels. We report it with the same rigor as everything else, including the cells where it beats our bank.

Our contributions are the following. (i) A leakage-free, delay-parameterized evaluation protocol, including causal semantics for partial-ground-truth mechanisms under label lag, enforced inside all four audited methods' own code. (ii) The RLS-Bank, a closed-form adapter with no tunable hyperparameters at deployment, with an analysis of why feedback-driven expert selection fails under delayed labels and evidence that the median absorbs numerically exploding experts on the 321- and 862-channel streams. (iii) A five-dataset audit of TAFAS, COSA, PETSA and DynaTTA on their own checkpoints, with three checkpoint seeds on the ETT streams and block-bootstrap significance. On ETTm1, the one dataset where the published stack genuinely adapts, the bank beats three of the four at every delay at a small fraction of their cost, and the ELF-style corrector beats all four. Outside ETTm1, the largest significant improvement any published method achieves over its own frozen checkpoint is half a percent, and on all four of the other datasets at least one published method is significantly worse than the frozen model at the minimum causal delay. (iv) Three findings about evaluation practice: leaky updates inflate the apparent gains of simple adapters by up to 110 percent; the backbone training recipe alone moves frozen online error by up to a factor of 25, more than any adaptation effect we measure; and gradient adapters are fragile in ways closed-form updates are not, with up to eleven of twelve gradient configurations diverging per cell.

We state the scope of the claim. This paper does not argue that gradient-based adaptation cannot help; on ETTm1 all four audited methods help, and DynaTTA beats the bank there. Nor is RLS new. The claim is that under causal, delay-aware evaluation, properly configured closed-form correctors set a bar that the audited stack clears exactly once across five datasets, and that evaluation practice, not only the methods, needs recalibration.

References (48)

  • Mean-square performance of a convex combination of two adaptive filters
  • Combinations of adaptive filters: Performance and convergence properties
  • Time series prediction under distribution shift using differentiable forgetting
  • Learning the context of errors: Black-box online adaptation of time series foundation models (opens arXiv in a new tab)
  • Implementation of self-tuning regulators with variable forgetting factors
  • Nowcasting: The real-time informational content of macroeconomic data
  • Shift-aware test time adaptation and benchmarking for time-series forecasting
  • Online time series prediction using feature adjustment
  • COSA: Context-aware output-space adapter for test-time adaptation in time series forecasting
  • Battling the non-stationarity in time series forecasting via test-time adaptation
  • Fast and slow streams for online time series forecasting without information leakage
  • Lightweight online adaption for time series foundation model forecasts
  • Act now: A novel online forecasting framework for large-scale streaming data (opens arXiv in a new tab)
  • Accurate parameter-efficient test-time adaptation for time series forecasting (opens arXiv in a new tab)
  • A time series is worth 64 words: Long-term forecasting with transformers
  • Learning fast and slow for online time series forecasting
  • It's TIME: Towards the next generation of time series forecasting benchmarks (opens arXiv in a new tab)
  • Universal linear prediction by model order weighting
  • Towards principled test-time adaptation for time series forecasting (opens arXiv in a new tab)
  • Xibai Wang. Adapt only when it pays: Budgeted decision-loss priority for delayed online time-series adaptation. arXiv:2606.25068, 2026. (opens arXiv in a new tab)
  • On delayed prediction of individual sequences
  • Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting
  • Are transformers effective for time series forecasting? In Proceedings of the AAAI Conference on Artificial Intelligence, 2023
  • Continuous evolution pool: Taming recurring concept drift in online time series forecasting (opens arXiv in a new tab)
  • OneNet: Enhancing time series forecasting models under concept drift
  • Proactive model adaptation against concept drift for online time series forecasting
  • Informer: Beyond efficient transformer for long sequence time-series forecasting
  • Every deviation from the stock repository is logged here
  • On our Python 3.12 stack with CUDA torch 2.12 these pins do not install: numpy 1.23.5 has no Python 3.12 wheel and its source build fails (the pulled-in setuptools calls pkgutil.ImpImporter, removed in Python 3.12), and the torch pin would replace the container’s CUDA runtime
  • Its full output on a fresh clone, and the all-[skip] output of a second invocation that confirms idempotence, are included in the code release
  • An environment variable gives the label lag $\ell = d - H$
  • Exported files carry per-window origin indices, and scoring inner-joins on origin before computing metrics, so every method, theirs and ours, is evaluated on identical tensors; the same inner-join is applied on the Weather, Electricity and Traffic streams
  • MIDAS regressions)
  • The full $d=1$ columns for every method are in Tables 4–8
  • $d=1$ is the leaky reference
  • $d = 1$ is the leaky reference
  • standardized online MSE at each label-release delay for the DLinear backbone (left) and the PatchTST backbone (right, 3-seed mean)
  • >method</th><th colspan=
  • standardized online MSE at each label-release delay for the DLinear backbone (left) and the PatchTST backbone (right, one seed)
  • Auxiliary rows (rls_feat, the no-clip bank, the gradient proxies, bias_ema) and the ELF-style correctors are our adapters replayed on the same frozen exports
  • Wall times for the published methods are measured on the 7-channel ETT streams with the authors’ default flags; parameter counts are taken from the runs’ own logs
  • The ETTh2/PatchTST panel and both Electricity panels use a logarithmic y-axis
  • (Left) Online MSE versus delay
  • Panel annotations count divergences among the eight feature-space configurations; the four calibration-space configurations bring the totals to the twelve-configuration counts quoted in Section 5.1 (Appendix B)
  • oracle gradient learning rate (left) and oracle RLS memory $1/(1-\lambda)$ (right) as a function of delay, per cell
  • Bold marks the best non-oracle aggregation per column
  • Negative mean = first method better; * = 95% CI excludes zero
  • >configuration</td><td>$d = H$</td><td>$d = 2H$</td><td>$d = 4H$</td></tr><tr><td rowspan=