arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.07820cs.LG
收藏

大型语言模型是零样本时间序列预测器

Large Language Models Are Zero-Shot Time Series Forecasters

NYU(纽约大学);CMU(卡内基梅隆大学)

Nate Gruver, Marc Finzi, Shikai Qiu, Andrew Gordon Wilson

AI总结:

本文提出将时间序列编码为数字文本并用大型语言模型进行零样本预测,发现GPT-3和LLaMA-2可媲美专用模型,并揭示了模型规模、数字标记化及校准对性能的影响。

摘要:

通过将时间序列编码为数字字符串,我们可以把时间序列预测构建为文本中的下一个标记预测。基于这一思路,我们发现GPT-3和LLaMA-2等大型语言模型(LLMs)能够以令人惊讶的零样本方式外推时间序列,其水平可与在下游任务上训练的专用时间序列模型相当甚至更优。为了促成这一性能,我们提出了有效标记化时间序列数据的程序,以及将标记上的离散分布转换为连续值上高度灵活密度的方法。我们认为,LLMs在时间序列上取得成功源于它们天然表示多模态分布的能力,以及对简单性和重复性的偏好,这与许多时间序列中的显著特征(如重复的季节性趋势)相一致。我们还展示了LLMs如何通过非数值文本自然地处理缺失数据而无需插补,容纳文本辅助信息,并回答问题以帮助解释预测。虽然我们发现增大模型规模通常会提升时间序列性能,但我们表明GPT-4可能因数字标记化方式以及不确定性校准较差而表现不如GPT-3,后者很可能是RLHF等对齐干预的结果。

英文摘要:

By encoding time series as a string of numerical digits, we can frame time series forecasting as next-token prediction in text. Developing this approach, we find that large language models (LLMs) such as GPT-3 and LLaMA-2 can surprisingly zero-shot extrapolate time series at a level comparable to or exceeding the performance of purpose-built time series models trained on the downstream tasks. To facilitate this performance, we propose procedures for effectively tokenizing time series data and converting discrete distributions over tokens into highly flexible densities over continuous values. We argue the success of LLMs for time series stems from their ability to naturally represent multimodal distributions, in conjunction with biases for simplicity, and repetition, which align with the salient features in many time series, such as repeated seasonal trends. We also show how LLMs can naturally handle missing data without imputation through non-numerical text, accommodate textual side information, and answer questions to help explain predictions. While we find that increasing model size generally improves performance on time series, we show GPT-4 can perform worse than GPT-3 because of how it tokenizes numbers, and poor uncertainty calibration, which is likely the result of alignment interventions such as RLHF.

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

↑