[2310.07820] Large Language Models Are Zero-Shot Time Series Forecasters
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.
Large Language Models Are Zero-Shot Time Series Forecasters Nate Gruver∗ Marc Finzi∗ Shikai Qiu∗ Andrew Gordon Wilson NYU CMU NYU NYU arXiv:2310.07820v3 [cs.LG] 12 Aug 2024 Abstract By encoding time…
related reading
- 2402.01801arxiv.org
- [2005.14165] Language Models are Few-Shot Learnersarxiv.org
- [2305.18290] Direct Preference Optimization: Your Language Model is Secretly a Reward Modelarxiv.org
- [2510.13786] The Art of Scaling Reinforcement Learning Compute for LLMsarxiv.org
- Large Language Diffusion Modelsarxiv.org
- The Unreasonable Difficulty of Time Series Forecastingsuzyahyah.github.io
- [2309.10668] Language Modeling Is Compressionarxiv.org
- Pitfalls in Evaluating Language Model Forecastersarxiv.org
- [2210.13382] Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskarxiv.org
- Large Language Models Must Be Taught to Know What They Don't Knowarxiv.org
- Is Capability a Liability? More Capable Language Models Make Worse Forecasts When It Matters Mostarxiv.org
- [2607.05316] How Much is Left? LLMs Linearly Encode Their Remaining Output Lengtharxiv.org