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:
- Retrieve: It finds the $k$ most similar historical windows in the database using the retrieval keys.
- Aggregate: It averages the steering vectors ($\Delta$) from these neighbors.
- 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.
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.
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