LLM4TS: Aligning Pre-Trained LLMs as Data-Efficient Time-Series Forecasters

Ching Chang, Wei-Yao Wang, Wen-Chih Peng, Tien-Fu Chen
8/16/2023
260 citations
cs.LG

Official code: blacksnail789521/LLM4TS (35 stars, Python, MIT, last commit 2025-03-23).

Abstract

Multivariate time-series forecasting is vital in various domains, e.g., economic planning and weather prediction. Deep train-from-scratch models have exhibited effective performance yet require large amounts of data, which limits real-world applicability.

Show full abstract

Recently, researchers have leveraged the representation learning transferability of pre-trained Large Language Models (LLMs) to handle limited non-linguistic datasets effectively. However, incorporating LLMs with time-series data presents challenges of limited adaptation due to different compositions between time-series and linguistic data, and the inability to process multi-scale temporal information. To tackle these challenges, we propose LLM4TS, a framework for time-series forecasting with pre-trained LLMs. LLM4TS consists of a two-stage fine-tuning strategy: the time-series alignment stage to align LLMs with the nuances of time-series data, and the forecasting fine-tuning stage for downstream time-series forecasting tasks. Furthermore, our framework features a novel two-level aggregation method that integrates multi-scale temporal data within pre-trained LLMs, enhancing their ability to interpret time-specific information. In experiments across 7 time-series forecasting datasets, LLM4TS is superior to existing state-of-the-art methods compared with trained-from-scratch models in full-shot scenarios, and also achieves the highest rank in few-shot scenarios. In addition, evaluations compared with different unsupervised representation learning approaches highlight LLM4TS's effectiveness with representation learning in forecasting tasks. Ablation studies further validate each component's contribution to LLM4TS and underscore the essential role of utilizing LLM's pre-trained weights for optimal performance. The code is available at https://github.com/blacksnail789521/LLM4TS.

View on arXivView PDF

Code Implementations(1)

MIT

Official repository for LLM4TS: Aligning Pre-Trained LLMs as Data-Efficient Time-Series Forecasters, accepted at ACM TIST 2025.

355PythonAug 18, 20231 years agoMIT

Similar Papers

Cite this paper

@article{chang2023llmts,
  title  = {LLM4TS: Aligning Pre-Trained LLMs as Data-Efficient Time-Series Forecasters},
  author = {Ching Chang and Wei-Yao Wang and Wen-Chih Peng and Tien-Fu Chen},
  year   = {2023},
  eprint = {2308.08469},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.08469v6}
}

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/2308.08469.svg)](https://codeofpaper.com/paper/2308.08469)

Discussion