Skip to main content
QUICK REVIEW

[Paper Review] PromptCast: A New Prompt-based Learning Paradigm for Time Series Forecasting

Hao Xue, Flora D. Salim|arXiv (Cornell University)|Sep 20, 2022
Stock Market Forecasting MethodsDecision Sciences11 citations
TL;DR

This paper introduces PromptCast, a novel prompt-based learning paradigm that frames time series forecasting as a natural language generation task, transforming numerical sequences into descriptive prompts for pre-trained language models. The approach achieves strong zero-shot generalization and outperforms conventional numerical methods, validated through a new large-scale dataset (PISA) and benchmark across diverse forecasting scenarios.

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.

Motivation & Objective

  • To explore whether large-scale pre-trained language foundation models can be adapted for time series forecasting without architectural modifications.
  • To address the gap in existing methods that rely solely on numerical input/output and complex model design.
  • To propose a new paradigm—PromptCast—that treats forecasting as a sentence-to-sentence generation task.
  • To release a large-scale, real-world dataset (PISA) covering weather, energy, and customer flow forecasting for prompt-based time series tasks.
  • To establish a benchmark evaluating both numerical forecasting models and language generation models under diverse settings like zero-shot and multi-step forecasting.

Proposed method

  • Transform numerical time series into natural language prompts using fixed templates, converting sequences into descriptive sentences.
  • Frame time series forecasting as a text generation task, where the input is a context prompt and the output is a predicted future value expressed in natural language.
  • Utilize pre-trained language models (e.g., LLaMA, OPT) for inference without fine-tuning, enabling zero-shot prediction.
  • Design a prompt template that includes historical values, temporal context (e.g., date, day), and auxiliary information (e.g., location, weather conditions).
  • Construct the PISA dataset with 311,932 instances across three real-world forecasting scenarios: temperature, energy consumption, and customer flow.
  • Develop a benchmark framework to evaluate performance across train-from-scratch, zero-shot, multi-step, and multivariate forecasting settings.

Experimental results

Research questions

  • RQ1Can pre-trained language models effectively perform time series forecasting when prompted with natural language descriptions of numerical sequences?
  • RQ2How does the generalization performance of prompt-based forecasting compare to conventional numerical forecasting models under zero-shot settings?
  • RQ3To what extent can language models capture temporal patterns and numerical semantics through prompt-based input?
  • RQ4Can a unified prompt-based paradigm support diverse time series forecasting scenarios without task-specific model redesign?
  • RQ5What are the limitations and potential improvements of template-based prompting in time series forecasting?

Key findings

  • PromptCast with language generation models achieves strong forecasting performance, demonstrating the viability of using pre-trained language models for time series tasks.
  • The proposed paradigm shows significantly better zero-shot generalization ability compared to conventional numerical-based forecasting models.
  • Case studies confirm that attention mechanisms in language models effectively attend to both numerical value tokens and auxiliary context tokens during prediction.
  • The benchmark results validate that language models can generalize across diverse time series scenarios, including univariate and multivariate settings.
  • The PISA dataset enables consistent evaluation across real-world forecasting tasks and supports future research in prompt-based time series forecasting.
  • The approach opens new pathways for applications such as forecasting chatbots and time-series question-answering systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.