mlsanityData to 14 Oct 2026

Align-RAG: Alignment Is All You Need for TSFM In-Context Learning

arXiv 2608.05571 ↗First posted 6 Aug 2026cs.LG cs.IRcited by 0

On the map: Retrieval-augmented generation → Time series and agricultural RAG

Abstract (arXiv)

Retrieval-augmented forecasting promises to adapt frozen Time Series Foundation Models (TSFMs) to new domains without fine-tuning, but recent methods typically rely on learned fusion modules, i.e., trained adapters that merge retrieved examples into the backbone's forecast, based on the assumption that frozen backbones cannot dynamically incorporate retrieved context on their own. We show this assumption is unnecessary. We introduce Align-RAG, a training-free method that applies a closed-form per-pair amplitude rescaling and integer-lag phase shift to retrieved past-future windows before they enter a frozen backbone's context. With no learned parameters, Align-RAG outperforms the state-of-the-art trained retrieval adapter on a frozen Chronos-Bolt on all seven datasets of the standard benchmark (avg -3.75% MSE), showing that the gains previously attributed to learned fusion are recoverable without any training. Align-RAG further improves zero-shot MSE on four additional frozen TSFMs with various architectures by 2.5% to 13.7% per backbone with no per-backbone tuning. To probe why alignment helps, we compare the frozen backbone's prediction shift under aligned demonstrations to the closed-form ridge prediction shift on the same pairs. We find that aligned demonstrations induce prediction shifts that track a closed-form ridge predictor on the same pairs, with a future-shuffle control ruling out a futures-averaging account. Together, these results indicate that frozen TSFMs already support dynamic in-context use of retrievals, and that closed-form alignment should be the default baseline for retrieval-augmented forecasting before any fusion module is trained. Code available at: https://github.com/masadi-99/align-rag

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Time series and agricultural RAG, one of 15 directions in Retrieval-augmented generation. Builds on 20 of its 27 references that are in the map. First posted on arXiv 6 Aug 2026.

Builds on

20 of 27 references.

Closest ancestors · 5

Same direction, newest first

  1. 2025TS-RAG: Retrieval-Augmented Generation based Time Series Foundation Models are Stronger Zero-Shot Forecaster6 Mar
  2. 2024TimeRAF: Retrieval-Augmented Foundation model for Zero-shot Time Series Forecasting30 Dec
  3. 2024TimeRAG: BOOSTING LLM Time Series Forecasting via Retrieval-Augmented Generation21 Dec
  4. 2024Retrieval Augmented Time Series Forecasting12 Nov
  5. 2024Retrieval-Augmented Diffusion Models for Time Series Forecasting24 Oct

Other references · 15

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  2. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
  3. 2023REPLUG: Retrieval-Augmented Black-Box Language Modelscited by 792
  4. 2024Chronos: Learning the Language of Time Seriescited by 759
  5. 2022Transformers learn in-context by gradient descentcited by 732
  6. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
  7. 2023In-Context Retrieval-Augmented Language Modelscited by 702
  8. 2023A decoder-only foundation model for time-series forecastingcited by 692
  9. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  10. 2024Unified Training of Universal Time Series Forecasting Transformerscited by 614
  11. 2017Soft-DTW: a Differentiable Loss Function for Time-Seriescited by 271
  12. 2025Chronos-2: From Univariate to Universal Forecastingcited by 194
3 more
  1. 2024Toto: Time Series Optimized Transformer for Observabilitycited by 48
  2. 2016shapeDTW: shape Dynamic Time Warpingcited by 35
  3. 2024In-Context Fine-Tuning for Time-Series Foundation Modelscited by 35

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026GRAM: Correcting Frozen Time-Series Foundation Models via Graph-Retrieved Amplitude Memory
  2. 2026Retrieval Is Not Enough: Refreshing Memory for Frozen Time-Series Forecasters
  3. 2026Not All Retrievals are Useful: Cross-Attention for Input-Aware RAG in Time Series Forecasting
  4. 2026Factorize to Generalize: Retrieval-Guided Invariant-Dynamic Decomposition for Time Series Forecasting
  5. 2026Model-agnostic Retrieval-Augmented Extended Forecasting for time series
  6. 2026TS-RAG: Retrieval Augmented Generation for Time Series Forecasting
  7. 2026Stationarity-Aware Retrieval-Augmented Time Series Forecasting
  8. 2025QuiZSF: A Retrieval-Augmented Framework for Zero-Shot Time Series Forecasting