Lune

NeurIPS2023Top-tier venue

Large Language Models Are Zero-Shot Time Series Forecasters

Nate Gruver, Marc Finzi, Shikai Qiu, Andrew Gordon Wilson

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 zeroshot 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. 2 https://github.com/ngruver/llmtime

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

162 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Measuring Massive Multitask Language Understanding cites Language Models are Few-Shot Learners
  • A decoder-only foundation model for time-series forecasting cites Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting
  • A decoder-only foundation model for time-series forecasting cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Unified Training of Universal Time Series Forecasting Transformers cites A decoder-only foundation model for time-series forecasting
  • Unified Training of Universal Time Series Forecasting Transformers cites Language Models are Few-Shot Learners
  • Unified Training of Universal Time Series Forecasting Transformers cites Time-LLM: Time Series Forecasting by Reprogramming Large Language Models
  • Time-LLM: Time Series Forecasting by Reprogramming Large Language Models cites Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting
  • Time-LLM: Time Series Forecasting by Reprogramming Large Language Models cites Language Models are Few-Shot Learners
  • Chain-of-Thought Prompting Elicits Reasoning in Large Language Models cites Training language models to follow instructions with human feedback
  • Training language models to follow instructions with human feedback cites Language Models are Few-Shot Learners
  • Are Language Models Actually Useful for Time Series Forecasting? cites A decoder-only foundation model for time-series forecasting
  • Are Language Models Actually Useful for Time Series Forecasting? cites Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting
  • Are Language Models Actually Useful for Time Series Forecasting? cites Unified Training of Universal Time Series Forecasting Transformers
  • Are Language Models Actually Useful for Time Series Forecasting? cites Time-LLM: Time Series Forecasting by Reprogramming Large Language Models
  • MOMENT: A Family of Open Time-series Foundation Models cites A decoder-only foundation model for time-series forecasting
  • MOMENT: A Family of Open Time-series Foundation Models cites Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting
  • MOMENT: A Family of Open Time-series Foundation Models cites Unified Training of Universal Time Series Forecasting Transformers
  • MOMENT: A Family of Open Time-series Foundation Models cites Time-LLM: Time Series Forecasting by Reprogramming Large Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers162

  1. Time-LLM: Time Series Forecasting by Reprogramming Large Language ModelsMing Jin, Shiyu Wang, Lintao Ma, Zhixuan Chu et al.ICLR 2024 · 915 citations
  2. A decoder-only foundation model for time-series forecastingAbhimanyu Das, Weihao Kong, Rajat Sen, Yichen ZhouICML 2024 · 601 citations
  3. Unified Training of Universal Time Series Forecasting TransformersGerald Woo, Chenghao Liu, Akshat Kumar, Caiming Xiong et al.ICML 2024 · 513 citations
  4. MOMENT: A Family of Open Time-series Foundation ModelsMononito Goswami, Konrad Szafer, Arjun Choudhry, Yifu Cai et al.ICML 2024 · 442 citations
  5. Are Language Models Actually Useful for Time Series Forecasting?Mingtian Tan, Mike A. Merrill, Vinayak Gupta, Tim Althoff et al.NeurIPS 2024 · 326 citations

Builds on19

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  3. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
  4. Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou et al.ICLR 2021 · 7,905 citations
  5. Informer: Beyond Efficient Transformer for Long Sequence Time-Series ForecastingHaoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang et al.AAAI 2021 · 7,289 citations

Related papers

  1. From Tokenizer Bias to Backbone Capability: A Controlled Study of LLMs for Time Series ForecastingXinyu Zhang, Shanshan Feng, Xutao Li, Kenghong Lin et al.KDD 2026 · 2 citations
  2. Enhancing Zero-Shot Time Series Forecasting in Off-the-Shelf LLMs via Noise Injection PromptingXingyou Yin, Ceyao Zhang, Min Hu, Kai ChenACL Findings 2026
  3. AutoTimes: Autoregressive Time Series Forecasters via Large Language ModelsYong Liu, Guo Qin, Xiangdong Huang, Jianmin Wang et al.NeurIPS 2024 · 138 citations
  4. TEST: Text Prototype Aligned Embedding to Activate LLM's Ability for Time SeriesChenxi Sun, Hongyan Li, Yaliang Li, Shenda HongICLR 2024 · 223 citations
  5. TsLLM: Augmenting LLMs for General Time Series Understanding and PredictionFelix Parker, Nimeesha Chan, Chi Zhang, Kimia GhobadiICML 2026 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines