Stationarity-Aware Retrieval-Augmented Time Series Forecasting

Shiqiao Zhou, Holger Schöner, Zipeng Wu, Edouard Fouché, IAG Wilson +1 more
6/2/2026
9 citations
cs.LG
rag

Official code: ShiqiaoZhou/SARAF (17 stars, Python, last commit 2026-09-23).

Abstract

Time series forecasting relies on historical patterns, but real-world series often exhibit non-stationarity and regime shifts that challenge fully parametric forecasters. Inspired by Retrieval-Augmented Generation (RAG), recent work augments forecasters by retrieving relevant historical segments and using them as external evidence at inference time.

Show full abstract

However, due to the intrinsic non-stationarity of real-world time series, a highly similar past segment does not necessarily imply a similar future, rendering similarity-only retrieval brittle and prone to redundancy. We propose Stationarity-Aware Retrieval-Augmented Time Series Forecasting (SARAF), a framework that adaptively balances relevance and diversity in retrieval. SARAF first forms a candidate pool via temporal similarity with time-aligned enhancement, then applies a diversity-aware selection strategy to cover heterogeneous historical regimes, with the diversification strength automatically modulated by dataset-level stationarity. Moreover, SARAF uses stationarity-aware aggregation to fuse the retrieved futures. Extensive experiments on eight real-world datasets show that SARAF achieves competitive forecasting performance and improves average accuracy and robustness over strong baselines, with particularly clear benefits under challenging non-stationary settings. Code: https://github.com/ShiqiaoZhou/SARAF.

View on arXivView PDF

Code Implementations(1)

ShiqiaoZhou/SARAFOfficial100%

Code of Stationarity-Aware Retrieval-Augmented Time Series Forecasting (KDD'26)

170Python, ShellJun 1, 20262 months ago

Similar Papers

Cite this paper

@article{zhou2026stationarityaware,
  title  = {Stationarity-Aware Retrieval-Augmented Time Series Forecasting},
  author = {Shiqiao Zhou and Holger Schöner and Zipeng Wu and Edouard Fouché and IAG Wilson and Shuo Wang},
  year   = {2026},
  eprint = {2606.04135},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.04135v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.04135.svg)](https://codeofpaper.com/paper/2606.04135)

Discussion