atlas

Research map / Time series / Foundation models for time series

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

ICLR 2024 · Time series › Foundation models for time series · approach: LLM-based time series forecasting

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Time-LLM reprograms a frozen LLM (mainly Llama-7B) for time series forecasting by mapping patch embeddings onto learned text prototypes and prepending natural-language prompts (Prompt-as-Prefix), training only lightweight input and output layers.

Problem

Adapting large language models to general time series forecasting, which requires aligning continuous time series with discrete language tokens without costly fine-tuning of the backbone, and achieving accuracy in standard, few-shot and zero-shot settings.

Approach

Keep the LLM frozen and reprogram time series patches via cross-attention onto a small set of learned text prototypes derived from the word embedding matrix, then prepend a natural-language prompt (dataset context, task instruction, input statistics such as trends and lags) as a prefix; only the input embedding and output projection are trained.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
reprogram a frozen Llama-7B with text prototypes and Prompt-as-PrefixTime-LLM · ETTm1MSEHelped
use Time-LLM rather than PatchTSTlong-term forecasting · ETTh2MSE: 0.330 -> 0.334Hurt
use Time-LLM rather than PatchTSTlong-term forecasting · WeatherMSE: 0.225 -> 0.225No clear effect
use Time-LLM rather than GPT4TSM4 short-term forecasting · M4SMAPE: +8.7%Helped
use the full Llama (32) rather than Llama (8) (ablation)Time-LLM · ETTh1 and ETTm1 forecastingMSE: 14.5%Helped
use GPT-2 (12) rather than GPT-2 (6) (ablation)Time-LLM · ETTh1 and ETTm1 forecastingMSE: 2.7%Helped
add patch reprogramming (ablation)Time-LLM · standard and few-shot forecastingMSE: 9.2%; exceeding 17% in few-shot tasksHelped
add Prompt-as-Prefix (ablation)Time-LLM · standard and few-shot forecastingMSE: over 8%; over 19% in few-shot forecastingHelped
add input statistics (ablation)Time-LLM prompts · forecastingMSE: 10.2%Helped
add dataset context (ablation)Time-LLM prompts · forecastingMSE: 9.6%Helped
add task instruction (ablation)Time-LLM prompts · forecastingMSE: 7.7%Helped

Surprising findings

Limitations

Experimental setup

Datasets: ETTh1 ETTh2 ETTm1 ETTm2 Weather Electricity Traffic ILI M4 M3-Quarterly

Benchmarks: ETTh1 ETTh2 ETTm1 ETTm2 Weather Electricity Traffic ILI M4 M3-Quarterly

Metrics: MSE MAE SMAPE MASE OWA

Baselines: GPT4TS DLinear PatchTST TimesNet FEDformer Autoformer Stationary Transformer ETSformer LightTS Informer Reformer N-HiTS

Builds on: PatchTST reversible instance normalization Voice2Series GPT4TS

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy