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

基于大语言模型的时序数据预测中的上下文学习与少样本学习

In-Context and Few-Shots Learning for Forecasting Time Series Data based on Large Language Models

Department of Computer Science(计算机科学系);Texas Tech University(德克萨斯理工大学);Advanced Academic Programs Science(高级学术计划科学);Johns Hopkins University(约翰霍普金斯大学);Cumberland University(坎布里奇大学)

Saroj Gopali, Bipin Chhetri, Deepika Giri, Sima Siami-Namini, Akbar Siami Namin

AI总结:

本文研究了基于大语言模型的时序数据预测,探讨了上下文学习、零样本和少样本学习方法,发现TimesFM在预测性能上表现最佳。

摘要:

现有的数据驱动方法在建模和预测时序数据方面包括ARIMA(自回归积分滑动平均)、基于Transformer的模型、LSTM(长短期记忆)和TCN(时间卷积网络)。这些方法,特别是基于深度学习的模型如LSTM和TCN,已经在预测时序数据方面表现出色。随着利用预训练基础模型如大语言模型(LLMs)以及更值得注意的Google最近推出的时间序列基础模型TimesFM的研究进展,有必要探讨这些基础模型是否能够超越现有建模方法,在分析和预测时序数据方面表现出色。本文研究了使用LLM模型进行时序数据预测的性能。我们研究了在特定应用领域下训练LLM模型时的上下文学习方法。更具体地说,本文探讨了通过上下文学习、零样本学习和少样本学习来训练LLM,并使用OpenAI的o4-mini和Gemini 2.5 Flash Lite,以及最近的Google基于Transformer的TimesFM时间序列基础模型,以及两个深度学习模型,即TCN和LSTM网络,进行时序数据预测。研究发现,TimesFM在整体性能上表现最佳,具有最低的RMSE值(0.3023)和具有竞争力的推理时间(266秒)。此外,OpenAI的o4-mini也基于零样本学习表现出良好的性能。这些发现突显了预训练时间序列基础模型作为实时预测的有前景方向,使能够实现准确且可扩展的部署,同时最小化模型适应。

英文摘要:

Existing data-driven approaches in modeling and predicting time series data include ARIMA (Autoregressive Integrated Moving Average), Transformer-based models, LSTM (Long Short-Term Memory) and TCN (Temporal Convolutional Network). These approaches, and in particular deep learning-based models such as LSTM and TCN, have shown great results in predicting time series data. With the advancement of leveraging pre-trained foundation models such as Large Language Models (LLMs) and more notably Google's recent foundation model for time series data, {\it TimesFM} (Time Series Foundation Model), it is of interest to investigate whether these foundation models have the capability of outperforming existing modeling approaches in analyzing and predicting time series data. This paper investigates the performance of using LLM models for time series data prediction. We investigate the in-context learning methodology in the training of LLM models that are specific to the underlying application domain. More specifically, the paper explores training LLMs through in-context, zero-shot and few-shot learning and forecasting time series data with OpenAI {\tt o4-mini} and Gemini 2.5 Flash Lite, as well as the recent Google's Transformer-based TimesFM, a time series-specific foundation model, along with two deep learning models, namely TCN and LSTM networks. The findings indicate that TimesFM has the best overall performance with the lowest RMSE value (0.3023) and the competitive inference time (266 seconds). Furthermore, OpenAI's o4-mini also exhibits a good performance based on Zero Shot learning. These findings highlight pre-trained time series foundation models as a promising direction for real-time forecasting, enabling accurate and scalable deployment with minimal model adaptation.

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

↑