Large Language Models Are Zero-Shot Time Series Forecasters. Gruver, N., Finzi, M., Qiu, S., & Wilson, A. G. October, 2023. arXiv:2310.07820 [cs]
Paper abstract bibtex 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.
@misc{gruver_large_2023,
title = {Large {Language} {Models} {Are} {Zero}-{Shot} {Time} {Series} {Forecasters}},
url = {http://arxiv.org/abs/2310.07820},
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.},
language = {en},
urldate = {2024-05-23},
publisher = {arXiv},
author = {Gruver, Nate and Finzi, Marc and Qiu, Shikai and Wilson, Andrew Gordon},
month = oct,
year = {2023},
note = {arXiv:2310.07820 [cs]},
keywords = {Computer Science - Machine Learning, notion},
}
Downloads: 0
{"_id":"r2YGKdk9oht3hshZG","bibbaseid":"gruver-finzi-qiu-wilson-largelanguagemodelsarezeroshottimeseriesforecasters-2023","author_short":["Gruver, N.","Finzi, M.","Qiu, S.","Wilson, A. G."],"bibdata":{"bibtype":"misc","type":"misc","title":"Large Language Models Are Zero-Shot Time Series Forecasters","url":"http://arxiv.org/abs/2310.07820","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.","language":"en","urldate":"2024-05-23","publisher":"arXiv","author":[{"propositions":[],"lastnames":["Gruver"],"firstnames":["Nate"],"suffixes":[]},{"propositions":[],"lastnames":["Finzi"],"firstnames":["Marc"],"suffixes":[]},{"propositions":[],"lastnames":["Qiu"],"firstnames":["Shikai"],"suffixes":[]},{"propositions":[],"lastnames":["Wilson"],"firstnames":["Andrew","Gordon"],"suffixes":[]}],"month":"October","year":"2023","note":"arXiv:2310.07820 [cs]","keywords":"Computer Science - Machine Learning, notion","bibtex":"@misc{gruver_large_2023,\n\ttitle = {Large {Language} {Models} {Are} {Zero}-{Shot} {Time} {Series} {Forecasters}},\n\turl = {http://arxiv.org/abs/2310.07820},\n\tabstract = {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.},\n\tlanguage = {en},\n\turldate = {2024-05-23},\n\tpublisher = {arXiv},\n\tauthor = {Gruver, Nate and Finzi, Marc and Qiu, Shikai and Wilson, Andrew Gordon},\n\tmonth = oct,\n\tyear = {2023},\n\tnote = {arXiv:2310.07820 [cs]},\n\tkeywords = {Computer Science - Machine Learning, notion},\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","author_short":["Gruver, N.","Finzi, M.","Qiu, S.","Wilson, A. G."],"key":"gruver_large_2023","id":"gruver_large_2023","bibbaseid":"gruver-finzi-qiu-wilson-largelanguagemodelsarezeroshottimeseriesforecasters-2023","role":"author","urls":{"Paper":"http://arxiv.org/abs/2310.07820"},"keyword":["Computer Science - Machine Learning","notion"],"metadata":{"authorlinks":{}},"downloads":0,"html":""},"bibtype":"misc","biburl":"https://bibbase.org/zotero/warren.pettine","dataSources":["zYjFbyFmZWKpRCD4j"],"keywords":["computer science - machine learning","notion"],"search_terms":["large","language","models","zero","shot","time","series","forecasters","gruver","finzi","qiu","wilson"],"title":"Large Language Models Are Zero-Shot Time Series Forecasters","year":2023}