arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.02370cs.LGcs.CL
收藏

AutoTimes:基于大语言模型的自回归时间序列预测器

AutoTimes: Autoregressive Time Series Forecasters via Large Language Models

Tsinghua University(清华大学)

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

AI总结:

针对时间序列基础模型发展受限、现有LLM时间序列预测未充分利用其自回归特性的问题,提出AutoTimes框架,将LLM改造为自回归预测器,实现了低参数、高速度的最优预测性能。

摘要:

由于时间序列语料库有限,且可扩展预训练的探索不足,时间序列基础模型尚未得到充分发展。基于时间序列与自然语言相似的序列结构,越来越多的研究证明了利用大语言模型(LLM)处理时间序列的可行性。然而,LLM固有的自回归特性和仅解码器架构尚未被充分考虑,导致LLM能力利用不足。为充分激活大语言模型的通用token转换和多步生成能力,我们提出AutoTimes,将LLM改造为自回归时间序列预测器:它将时间序列投影到语言token的嵌入空间,并以自回归方式生成任意长度的未来预测。该预测器可兼容任何仅解码器架构的LLM,具备回溯长度的灵活性,且能随更大规模LLM实现性能扩展。此外,我们将时间序列构建为提示(prompt),将预测的上下文拓展至回溯窗口之外,这一机制被称为上下文内预测(in-context forecasting)。通过引入嵌入LLM的文本时间戳,AutoTimes可利用时序信息对齐多变量时间序列。实验结果表明,与先进的基于LLM的预测器相比,AutoTimes仅需0.1%的可训练参数,训练/推理速度提升超5倍,即达到了当前最优(state-of-the-art)性能。代码可在以下仓库获取:https://github.com/thuml/AutoTimes。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑