SteerCast: Retrieval-Based Latent Steering for Decoder-Only Time Series Forecasting

Van Dai Do, Huu Hiep Nguyen, Minh Hoang Nguyen, Hung Le

TL;DR

SteerCast is a training-free, inference-time method that improves decoder-only time series forecasters by "steering" their internal hidden states. By retrieving similar historical patterns from a training database and injecting a latent correction signal, it mitigates error accumulation in long-term forecasts without the computational bloat of traditional retrieval-augmented methods.

What Problem Does This Paper Address?

Large-scale decoder-only Transformers (like TimesFM or Time-MoE) have become powerful "foundation models" for time series forecasting. However, they aren't perfect. Even after fine-tuning, these models often struggle with rare patterns, abrupt distribution shifts, and—most critically—cumulative error propagation. Because they generate forecasts one step at a time, a small mistake early on can snowball into a wildly inaccurate trajectory over long horizons.

Standard ways to fix this, such as retraining or ensembling, are computationally expensive. Meanwhile, traditional Retrieval-Augmented Generation (RAG) for time series usually involves prepending retrieved historical sequences to the input. This is problematic for decoder-only models because it consumes the limited context window and increases the quadratic cost of self-attention ($O(L^2)$), making it slow and memory-intensive.

Methods

The authors propose SteerCast, which moves the "correction" from the input space to the latent space.

1. Database Construction (Offline)

Instead of just storing raw data, SteerCast builds a "memory" from the training set. For every training window, it stores:

  • A Retrieval Key ($r$): A compressed representation of the history, created by mean-pooling the model's final-layer hidden states.
  • A Steering Vector ($\Delta$): This is the core innovation. It is the difference between the model's internal representations when it is shown the ground-truth future versus when it generates its own prediction. Essentially, $\Delta$ encodes the "latent nudge" required to correct the model's natural bias.

2. Inference-Time Steering (Online)

When the model faces a new query at test time:

  1. Retrieve: It finds the $k$ most similar historical windows in the database using the retrieval keys.
  2. Aggregate: It averages the steering vectors ($\Delta$) from these neighbors.
  3. Inject: During the autoregressive generation of the forecast, it adds this averaged $\Delta$ into the model's hidden states at every layer and every step.
Figure 2: SteerCast overview. (Left) For each training example , we run the fine-tuned forecaster F to obtain an initial prediction hpred and compute representations for the concatenated sequences [xtrain; ypred] and [xtrain; ytrain]; their difference yields a steering vector. (Middle) During autoregressive forecasting, we add ∆into the hidden states at each generation step at every generation step to guide the forecast toward trajectories consistent with retrieved training cases. (Right) We retrieve the top-k training histories whose keys are closest to the current query, then average their steering vectors to obtain ∆.

To ensure stability, the authors use a cosine-similarity gate. If the model's current state is already well-aligned with the steering direction, the intervention is weakened to prevent over-correction.

Figure 1: Schematic illustrations for improving decoder-based time-series forecasters, including (a) model fine-tuning (b) retrieval-based fine-tuning and (c) our approach SteerCast. SteerCast investigates and demonstrates how to effectively improve forecasting performance with latent space editing while requiring no gradient updates where well-developed methods are not capable of.

Datasets

The researchers evaluated SteerCast across ten diverse multivariate benchmarks:

  • Energy: ETT (4 subsets)
  • Finance: Exchange Rate
  • Climate: Weather
  • Health: Illness (influenza-like illness ratios)
  • Monash Archive: US Births, SaugeenDay (river discharge), and Sunspots.

Key Insights and Ideas

  • Model-Aware Correction: Unlike RAG methods that provide raw data, SteerCast provides a signal that is "pre-translated" into the model's own internal language. It doesn't just say "here is what happened before"; it says "here is how you usually fail in this situation, so adjust your internal state like this."
  • Efficiency through Latents: By intervening in the hidden states, SteerCast avoids the $O(L^2)$ cost of adding extra tokens to the input. It adds only a tiny overhead (~12% slower) compared to the base model.
  • Horizon Transferability: Surprisingly, a database built for a short forecasting horizon (e.g., 96 steps) can effectively steer the model even when it's asked to predict much further out (e.g., 720 steps). This suggests the steering vectors capture fundamental error patterns in the model's dynamics.

Key Results

SteerCast was tested on three state-of-the-art backbones: Time-MoE, Timer-XL, and TimesFM.

  • Consistent Gains: It achieved the lowest Mean Squared Error (MSE) on 25 out of 30 dataset-backbone combinations.
  • Superior to Baselines: It outperformed standard fine-tuning and other retrieval-based methods like RAFT, reducing MSE by an average of 7.4%.
  • Robustness: It remained effective even under "temporal distribution shift" (training on only the first 50% of data and testing on the far future), showing that historical latent residuals remain useful even as the data evolves.

Limitations and Future Work

  • Architecture Specificity: SteerCast is currently designed for decoder-only models. Because it relies on a per-step autoregressive rollout, it cannot be directly applied to "direct-prediction" encoder models (like PatchTST or iTransformer) without a significant redesign of the injection rule.
  • Database Scaling: For extremely large datasets, the database can become quite large (e.g., ~39GB for the Traffic dataset). While the authors show that sub-sampling the database still yields good results, managing this memory footprint is a practical consideration for deployment.
  • Future Directions: The authors suggest exploring more sophisticated ways to aggregate neighbors, such as using learned attention mechanisms instead of simple mean-pooling.

Summary updated

BibTeX
@inproceedings{do2026steercast,
  author = {Van Dai Do and Huu Hiep Nguyen and Minh Hoang Nguyen and Hung Le},
  title = {{SteerCast: Retrieval-Based Latent Steering for Decoder-Only Time Series Forecasting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=DRNgEw9MBD},
}
Figure