Closing the Loop: A Control-Theoretic Framework for Provably Stable Time Series Forecasting with LLMs

Xingyu Zhang, Jingyao Wang, Zeen Song, Changwen Zheng, Wenwen QiangarXiv 2026 · DOI

TL;DR

Adapting Large Language Models (LLMs) for time series forecasting usually relies on autoregressive generation, which suffers from a severe "snowball effect" where early prediction errors compound over time. This paper introduces Feedback-driven LLM (F-LLM), a closed-loop framework inspired by control theory that uses a lightweight residual estimator to actively correct errors on the fly. This approach keeps long-horizon forecasting errors mathematically bounded and significantly improves accuracy with minimal computational overhead.

What Problem Does This Paper Address?

When LLMs are applied to Time Series Forecasting (TSF), they typically generate future values autoregressively—predicting the next step, appending it to the context, and repeating.

The authors identify a fundamental structural flaw in this paradigm: exposure bias. During training, the model learns using perfect ground-truth history. During inference, however, it operates in an "open-loop" manner, recursively consuming its own imperfect outputs. In continuous domains like time series, even a microscopic error at step one alters the context for step two. Over long forecasting horizons, these minor deviations cascade into massive trajectory drifts (or "rollout drift").

Simply minimizing single-step training error isn't enough to stop this geometric error amplification. To fix it, we need to change the underlying generation dynamics.

Figure 1: Comparison of standard autoregressive generation and the proposed stepwise correction strategy. (a) Standard au- toregressive LLMs suffer from cumulative prediction drift, where minor deviations at each step are fed back as input, causing errors to accumulate over time. (b) The stepwise correction strategy intervenes in this process by adjusting the prediction at each step before it enters the next autoregressive loop, thereby preventing error propagation and stabilizing the trajectory.

Methods

The authors reformulate autoregressive forecasting through the lens of control theory, transforming an open-loop sequence generator into a stabilized closed-loop dynamical system called F-LLM. The framework consists of three core components:

  1. The Plant (Base Predictor): A patch-based autoregressive forecaster utilizing a frozen LLM backbone. It takes the current context window and generates a raw prediction for the next time patch.
  2. The Observer (Residual Estimator): Since true errors are unobservable during inference, a lightweight Multi-Layer Perceptron (MLP) acts as a system observer. It looks at the history of past discrepancies between the model's raw predictions and the corrected context to estimate the current step's latent error.
  3. The Controller (Feedback Loop): The estimated error is injected back into the raw prediction to create a calibrated, corrected patch. Crucially, this corrected patch—not the raw one—is fed into the context window for the next autoregressive step.

To ensure system stability, the authors employ a Two-Stage Training strategy. First, they optimize the projection layers of the base predictor while enforcing a Local Lipschitz constraint to ensure local smoothness (preventing the model from over-correcting when feedback is injected). Second, they freeze the predictor and train the residual estimator to minimize the remaining estimation error.

Figure 2: Illustration of F-LLM. The system operates as a closed-loop control mechanism where a frozen LLM generates raw predictions, while a lightweight residual estimator predicts trajectory deviations based on historical errors. The estimated residuals are injected back into the context via an in-loop correction mechanism to mitigate error accumulation.

Datasets

F-LLM was evaluated on seven standard, real-world multivariate time series benchmarks:

  • Electricity Transformer Temperature: ETTh1, ETTh2, ETTm1, ETTm2
  • ECL (Electricity Consumption Load)
  • Weather
  • Traffic

For zero-shot and cross-domain transfer evaluation, the authors utilized the M3 and M4 datasets, which feature diverse temporal variations and distinct statistical distributions.

Key Insights and Ideas

  • Control Theory Meets LLMs: Instead of treating error accumulation purely as a data-distribution problem (like traditional scheduled sampling), this paper treats it as an unstable dynamical system problem.
  • Provable Stability: The authors provide a mathematical proof showing that under explicit contraction assumptions, this closed-loop feedback loop guarantees a uniformly bounded step-wise error sequence.
  • In-Loop vs. Post-Hoc: Unlike post-processing methods that clean up a sequence after it has been fully generated, F-LLM intervenes during the generation loop. Correcting the trajectory before the next token is generated stops the error snowball before it can form.
  • Inference-Time Correction > Fine-Tuning: The experiments reveal that actively correcting structured prediction bias at inference time is actually more effective at mitigating long-horizon drift than parameter-efficient fine-tuning methods like LoRA.

Key Results

  • State-of-the-Art Performance: Across all seven benchmark datasets, F-LLM consistently achieved the lowest Mean Squared Error (MSE) and Mean Absolute Error (MAE) for long-term forecasting horizons (up to 720 steps), outperforming both specialized TSF models (like PatchTST and iTransformer) and existing LLM-based methods (like AutoTimes and TimeLLM).
  • Preserved Zero-Shot Capabilities: In cross-domain transfer tasks (M4 $\rightarrow$ M3), F-LLM achieved the lowest symmetric Mean Absolute Percentage Error (sMAPE) in 7 out of 8 settings, proving that the feedback loop enhances accuracy without destroying the LLM's generalized reasoning.
  • High Efficiency: Because the LLM backbone remains frozen and the residual estimator is a lightweight MLP, F-LLM achieves these accuracy gains with negligible computational cost and minimal tunable parameters compared to full fine-tuning.

Limitations and Future Work

The authors note that their theoretical stability guarantees are local and based on sufficient conditions within surrogate dynamics, rather than a global stability guarantee for the entire, highly non-linear LLM system.

Additionally, while the lightweight MLP observer works remarkably well, future work could explore more sophisticated observer architectures to capture even more complex, non-linear error patterns across highly volatile datasets.

Summary updated

BibTeX
@misc{zhang2026closing,
  author = {Xingyu Zhang and Jingyao Wang and Zeen Song and Changwen Zheng and Wenwen Qiang},
  title = {{Closing the Loop: A Control-Theoretic Framework for Provably Stable Time Series Forecasting with LLMs}},
  year = {2026},
  eprint = {2602.12756},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.12756},
}
Figure