PromptCast: A New Prompt-based Learning Paradigm for Time Series Forecasting
Hao Xue, Flora D. Salim
TL;DR
PromptCast reframes time series forecasting as a language-model task by transforming numerical inputs and targets into prompts, enabling sentence-to-sentence forecasting with foundation models. The authors release PISA, a large-scale dataset with 311,932 instances across three real-world domains, using a 15-day observation window ($t_{ ext{obs}}=15$) and a 7:1:2 train/val/test split to benchmark both numerical methods and language models. Across extensive experiments, language-model-based PromptCast achieves competitive RMSE/MAE and exhibits strong zero-shot generalization, while ChatGPT-like APIs show higher errors and costs. The work highlights the potential for code-less forecasting, prompts-based experimentation, and future directions including multi-step, multivariate, auto-prompting, and explainable PromptCast applications.
Abstract
This paper presents a new perspective on time series forecasting. In existing time series forecasting methods, the models take a sequence of numerical values as input and yield numerical values as output. The existing SOTA models are largely based on the Transformer architecture, modified with multiple encoding mechanisms to incorporate the context and semantics around the historical data. Inspired by the successes of pre-trained language foundation models, we pose a question about whether these models can also be adapted to solve time-series forecasting. Thus, we propose a new forecasting paradigm: prompt-based time series forecasting (PromptCast). In this novel task, the numerical input and output are transformed into prompts and the forecasting task is framed in a sentence-to-sentence manner, making it possible to directly apply language models for forecasting purposes. To support and facilitate the research of this task, we also present a large-scale dataset (PISA) that includes three real-world forecasting scenarios. We evaluate different SOTA numerical-based forecasting methods and language generation models. The benchmark results with various forecasting settings demonstrate the proposed PromptCast with language generation models is a promising research direction. Additionally, in comparison to conventional numerical-based forecasting, PromptCast shows a much better generalization ability under the zero-shot setting.
