Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

AutoTimes: Autoregressive Time Series Forecasters via Large Language Models

About

Foundation models of time series have not been fully developed due to the limited availability of time series corpora and the underexploration of scalable pre-training. Based on the similar sequential formulation of time series and natural language, increasing research demonstrates the feasibility of leveraging large language models (LLM) for time series. Nevertheless, the inherent autoregressive property and decoder-only architecture of LLMs have not been fully considered, resulting in insufficient utilization of LLM abilities. To fully revitalize the general-purpose token transition and multi-step generation capability of large language models, we propose AutoTimes to repurpose LLMs as autoregressive time series forecasters, which projects time series into the embedding space of language tokens and autoregressively generates future predictions with arbitrary lengths. Compatible with any decoder-only LLMs, the consequent forecaster exhibits the flexibility of the lookback length and scalability with larger LLMs. Further, we formulate time series as prompts, extending the context for prediction beyond the lookback window, termed in-context forecasting. By introducing LLM-embedded textual timestamps, AutoTimes can utilize chronological information to align multivariate time series. Empirically, AutoTimes achieves state-of-the-art with 0.1% trainable parameters and over $5\times$ training/inference speedup compared to advanced LLM-based forecasters. Code is available at this repository: https://github.com/thuml/AutoTimes.

Yong Liu, Guo Qin, Xiangdong Huang, Jianmin Wang, Mingsheng Long• 2024

Related benchmarks

TaskDatasetResultRank
Long-term time-series forecastingETTh1
MAE0.422
351
Long-term time-series forecastingWeather
MSE0.235
348
Long-term time-series forecastingETTh2
MSE0.352
327
Long-term time-series forecastingETTm2
MSE0.243
305
Long-term time-series forecastingETTm1
MSE0.332
295
Long-term time-series forecastingTraffic
MSE0.374
278
Long-term forecastingETTh1
MSE0.389
179
Long-term time-series forecastingECL
MSE0.159
134
Long-term time-series forecastingElectricity
MSE0.173
103
Short-term forecastingM4 Quarterly--
67
Showing 10 of 21 rows

Other info

Code

Follow for update