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

Ming Jin, Shiyu Wang, Lintao Ma, Zhixuan Chu, James Y. Zhang +6 more
2/12/2026

No official code found. Best implementation: KimMeen/Time-LLM (2,671 stars, Apache-2.0, last commit 2025-10-15). 1 more below.

Abstract

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.

View on arXivView PDF

Code Implementations(2)

kwuking/TimeMixerCommunity100%
Apache-2.0

[ICLR 2024] Official implementation of "TimeMixer: Decomposable Multiscale Mixing for Time Series Forecasting"

1,967239Shell, PythonMar 5, 20241 years agoApache-2.0
deep-learningmachine-learningtime-seriestime-series-analysistime-series-forecasting
KimMeen/Time-LLMCommunity74%
Apache-2.0

[ICLR 2024] Official implementation of " 🦙 Time-LLM: Time Series Forecasting by Reprogramming Large Language Models"

2,671467Shell, PythonJan 20, 20241 years agoApache-2.0
cross-modal-learningcross-modalitydeep-learninglanguage-modellarge-language-models+8 more

Similar Papers

Cite this paper

@article{jin2026timellm,
  title  = {Time-LLM: Time Series Forecasting by Reprogramming Large Language Models},
  author = {Ming Jin and Shiyu Wang and Lintao Ma and Zhixuan Chu and James Y. Zhang and X. Shi and Pin-Yu Chen and Yuxuan Liang and Yuan-Fang Li and Shirui Pan and Qingsong Wen},
  year   = {2026},
  eprint = {2310.01728},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.01728},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.01728.svg)](https://codeofpaper.com/paper/2310.01728)

Discussion