Papers › Retrieval Augmented Time Series Forecasting

Retrieval Augmented Time Series Forecasting

7 May 2025arXiv:2505.04163archive 2025-07-28

Sungwon Han, Seungeon Lee, Meeyoung Cha, Sercan O Arik, Jinsung Yoon

Time series forecasting uses historical data to predict future trends, leveraging the relationships between past observations and available features. In this paper, we propose RAFT, a retrieval-augmented time series forecasting method to provide sufficient inductive biases and complement the model's learning capacity. When forecasting the subsequent time frames, we directly retrieve historical data candidates from the training dataset with patterns most similar to the input, and utilize the future values of these candidates alongside the inputs to obtain predictions. This simple approach augments the model's capacity by externally providing information about past patterns via retrieval modules. Our empirical evaluations on ten benchmark datasets show that RAFT consistently outperforms contemporary baselines with an average win ratio of 86%.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2505.04163")

Code

Syntology Ran 3 of 13 code samples harvested from 1 repository linked to this paper; 10 have no recorded run. Of those that ran: 3 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

archon159/RAFT officialmentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 3 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran
10unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from archon159/RAFT. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

group_values archon159/RAFT/utils/m4_summary.py official repository ran MIT (permissive) · c7809c2a271dca7d · report
mase archon159/RAFT/utils/m4_summary.py official repository ran MIT (permissive) · a835854e98db22c5 · report
smape_2 archon159/RAFT/utils/m4_summary.py official repository ran fingerprinted MIT (permissive) · 27a243751eb26480 · report
accelerated_dtw archon159/RAFT/utils/dtw_metric.py official repository unverified MIT (permissive) · 19d697bd6bbd21c0 · report
calculate_ADF archon159/RAFT/utils/ADFtest.py official repository unverified MIT (permissive) · 6aa5559ae4d6a717 · report
calculate_target_ADF archon159/RAFT/utils/ADFtest.py official repository unverified MIT (permissive) · 447f4eb6d094eb7f · report
divide_no_nan archon159/RAFT/utils/losses.py official repository unverified MIT (permissive) · bdc787c888ab83a2 · report
dtw archon159/RAFT/utils/dtw.py official repository unverified MIT (permissive) · 66037d9834a6eeb5 · report
dtw archon159/RAFT/utils/dtw_metric.py official repository unverified MIT (permissive) · 79cd2766b7a4c49f · report
jitter archon159/RAFT/utils/augmentation.py official repository unverified MIT (permissive) · 7e91f7d6b90183d5 · report
rotation archon159/RAFT/utils/augmentation.py official repository unverified MIT (permissive) · 3e06f3c627157901 · report
scaling archon159/RAFT/utils/augmentation.py official repository unverified MIT (permissive) · 570f35b7d04be7f7 · report
shape_dtw archon159/RAFT/utils/dtw.py official repository unverified MIT (permissive) · 4967a8f159950811 · report

Tasks

RetrievalTime SeriesTime Series Forecasting

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections