Time-LLM: Time Series Forecasting by Reprogramming Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Jin, Ming, Wang, Shiyu, Ma, Lintao, Chu, Zhixuan, Zhang, James Y., Shi, Xiaoming, Chen, Pin-Yu, Liang, Yuxuan, Li, Yuan-Fang, Pan, Shirui, Wen, Qingsong
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913212168929280
author Jin, Ming
Wang, Shiyu
Ma, Lintao
Chu, Zhixuan
Zhang, James Y.
Shi, Xiaoming
Chen, Pin-Yu
Liang, Yuxuan
Li, Yuan-Fang
Pan, Shirui
Wen, Qingsong
author_facet Jin, Ming
Wang, Shiyu
Ma, Lintao
Chu, Zhixuan
Zhang, James Y.
Shi, Xiaoming
Chen, Pin-Yu
Liang, Yuxuan
Li, Yuan-Fang
Pan, Shirui
Wen, Qingsong
contents Time series forecasting holds significant importance in many real-world dynamic systems and has been extensively studied. Unlike natural language process (NLP) and computer vision (CV), where a single large model can tackle multiple tasks, models for time series forecasting are often specialized, necessitating distinct designs for different tasks and applications. While pre-trained foundation models have made impressive strides in NLP and CV, their development in time series domains has been constrained by data sparsity. Recent studies have revealed that large language models (LLMs) possess robust pattern recognition and reasoning abilities over complex sequences of tokens. However, the challenge remains in effectively aligning the modalities of time series data and natural language to leverage these capabilities. In this work, we present Time-LLM, a reprogramming framework to repurpose LLMs for general time series forecasting with the backbone language models kept intact. We begin by reprogramming the input time series with text prototypes before feeding it into the frozen LLM to align the two modalities. To augment the LLM's ability to reason with time series data, we propose Prompt-as-Prefix (PaP), which enriches the input context and directs the transformation of reprogrammed input patches. The transformed time series patches from the LLM are finally projected to obtain the forecasts. Our comprehensive evaluations demonstrate that Time-LLM is a powerful time series learner that outperforms state-of-the-art, specialized forecasting models. Moreover, Time-LLM excels in both few-shot and zero-shot learning scenarios.
format Preprint
id arxiv_https___arxiv_org_abs_2310_01728
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Time-LLM: Time Series Forecasting by Reprogramming Large Language Models
Jin, Ming
Wang, Shiyu
Ma, Lintao
Chu, Zhixuan
Zhang, James Y.
Shi, Xiaoming
Chen, Pin-Yu
Liang, Yuxuan
Li, Yuan-Fang
Pan, Shirui
Wen, Qingsong
Machine Learning
Artificial Intelligence
Time series forecasting holds significant importance in many real-world dynamic systems and has been extensively studied. Unlike natural language process (NLP) and computer vision (CV), where a single large model can tackle multiple tasks, models for time series forecasting are often specialized, necessitating distinct designs for different tasks and applications. While pre-trained foundation models have made impressive strides in NLP and CV, their development in time series domains has been constrained by data sparsity. Recent studies have revealed that large language models (LLMs) possess robust pattern recognition and reasoning abilities over complex sequences of tokens. However, the challenge remains in effectively aligning the modalities of time series data and natural language to leverage these capabilities. In this work, we present Time-LLM, a reprogramming framework to repurpose LLMs for general time series forecasting with the backbone language models kept intact. We begin by reprogramming the input time series with text prototypes before feeding it into the frozen LLM to align the two modalities. To augment the LLM's ability to reason with time series data, we propose Prompt-as-Prefix (PaP), which enriches the input context and directs the transformation of reprogrammed input patches. The transformed time series patches from the LLM are finally projected to obtain the forecasts. Our comprehensive evaluations demonstrate that Time-LLM is a powerful time series learner that outperforms state-of-the-art, specialized forecasting models. Moreover, Time-LLM excels in both few-shot and zero-shot learning scenarios.
title Time-LLM: Time Series Forecasting by Reprogramming Large Language Models
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2310.01728