TimeRAG: Boosting LLM Time Series Forecasting via Retrieval-Augmented Generation

Although the rise of large language models (LLMs) has introduced new opportunities for time series forecasting, existing LLM-based solutions require excessive training and exhibit limited transferability. In view of these challenges, we propose TimeRAG, a framework that incorporates Retrieval-Augmented Generation (RAG) into time series forecasting LLMs, which constructs a time series knowledge base from historical sequences, retrieves reference sequences from the knowledge base that exhibit similar patterns to the query sequence measured by Dynamic Time Warping (DTW), and combines these reference sequences and the prediction query as a textual prompt to the time series forecasting LLM. Experiments on datasets from various domains show that the integration of RAG improved the prediction accuracy of the original model by 2.97% on average.

Authors

Institutions

Publication Details

Published
2025-03-12
DOI
https://doi.org/10.1109/icassp49660.2025.10889933
Citations
6
Primary Topic
Time Series Analysis and Forecasting
Type
article
Field-Weighted Citation Impact
8.91
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

TimeRAG: Boosting LLM Time Series Forecasting via Retrieval-Augmented Generation

Silin Yang, Dong Wang, Ruochun Jin, Haoqi Zheng
6 citations
Time Series Analysis and Forecasting
8.91
article

TimeRAG: Boosting LLM Time Series Forecasting via Retrieval-Augmented Generation

Silin Yang, Dong Wang, Ruochun Jin, Haoqi Zheng
article en
6 citations

Abstract

Although the rise of large language models (LLMs) has introduced new opportunities for time series forecasting, existing LLM-based solutions require excessive training and exhibit limited transferability. In view of these challenges, we propose TimeRAG, a framework that incorporates Retrieval-Augmented Generation (RAG) into time series forecasting LLMs, which constructs a time series knowledge base from historical sequences, retrieves reference sequences from the knowledge base that exhibit similar patterns to the query sequence measured by Dynamic Time Warping (DTW), and combines these reference sequences and the prediction query as a textual prompt to the time series forecasting LLM. Experiments on datasets from various domains show that the integration of RAG improved the prediction accuracy of the original model by 2.97% on average.

National University of Defense Technology (CN), Peking University (CN)
Affordable and clean energy
Openalex Percentile: Top 2%
Time Series Analysis and Forecasting
8.91
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

TimeRAG: Boosting LLM Time Series Forecasting via Retrieval-Augmented Generation — Silin Yang, Dong Wang, et al. · (2025) | TGRS Research Map | TGRS