Large Language Models Are Zero-Shot Time Series Forecasters

Nate Gruver, Marc Finzi, Shikai Qiu, Andrew Gordon Wilson
2/12/2026

Official code: Keytoyze/VisionTS (282 stars, MIT, last commit 2025-08-13). 1 more implementation below.

Abstract

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.

View on arXivView PDF

Code Implementations(2)

Keytoyze/VisionTSOfficial100%
MIT

Code for our paper "VisionTS: Visual Masked Autoencoders Are Free-Lunch Zero-Shot Time Series Forecasters".

28224Shell, PythonAug 26, 20241 years agoMIT
computer-visiondeep-learningtime-series
ngruver/llmtimeCommunity100%
MIT
830178Shell, PythonOct 2, 20232 years agoMIT

Similar Papers

Cite this paper

@article{gruver2026large,
  title  = {Large Language Models Are Zero-Shot Time Series Forecasters},
  author = {Nate Gruver and Marc Finzi and Shikai Qiu and Andrew Gordon Wilson},
  year   = {2026},
  eprint = {2310.07820},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.07820},
  journal = {NEURIPS 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.07820.svg)](https://codeofpaper.com/paper/2310.07820)

Discussion