[论文解读] AutoTimes: Autoregressive Time Series Forecasters via Large Language Models
AutoTimes 将冻结的大语言模型重新用于自回归时间序列预测,使能够进行可变长度预测,采用逐-token 提示和多模态能力;无需模型更新。
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 imes$ training/inference speedup compared to advanced LLM-based forecasters. Code is available at this repository: https://github.com/thuml/AutoTimes.
研究动机与目标
- 为时间序列提供基础模型的动机,以及对可扩展预训练的需求。
- 提出一种无需参数的重新利用 LLMs,使其作为时间序列的自回归预测器。
- 将时间序列令牌与语言模型令牌对齐,以利用 LLM 的令牌转换。
- 通过逐-token 提示实现对任意回溯/预测长度以及多模态提示的处理。
提出的方法
- 将时间序列段标记为类似语言的令牌,并使用 SeriesTokenizer 将它们投影到 LLM 的嵌入空间。
- 保持冻结的 Transformer 主干,并训练一个轻量级时间序列标记器和去标记器(大约 0.1% 的参数)。
- 使用下一个令牌预测作为训练目标,以维持自回归生成。
- 采用逐令牌提示,将每个段的文本协变量(时间戳)纳入 LLM 提示,并通过最后一个令牌的嵌入进行聚合。
- 将序列嵌入与文本嵌入结合,形成每个段的输入 E_i:E_i = SE_i + TE_i。
- 展示具有可变上下文长度的自回归预测,以及基于 RoPE 的上下文自适应性。
实验结果
研究问题
- RQ1是否可以在不更新参数的情况下,直接将现成的自回归 LLM 用作时间序列预测器?
- RQ2带时间戳的逐令牌提示是否在不同时间范围和模态下提升预测?
- RQ3改造后的 LLM 预测器是否对时间序列表现出零-shot 泛化和就地学习能力?它们如何随模型规模扩展?
- RQ4在长时间、短期和零-shot 预测任务中,AutoTimes 与最先进预测器以及其他 LLM4TS 方法相比的表现如何?
主要发现
- AutoTimes 在不对 LLM 进行训练且可训练参数极少的情况下,达到与最先进预测器相媲美的性能。
- 该方法通过自回归生成支持可变回溯和预测长度,避免了对 horizon 特定训练的需求。
- 带时间戳的逐令牌提示在数据集和预测视野上始终提升预测效果。
- AutoTimes 显现出零-shot 和就地学习能力,特别是在使用目标域时间序列作为提示时。
- 扩展到更大的 LLM 并添加更多时间序列指令/文本可以提升性能和泛化性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。