CoSPOT: LLM-Based Online Time Series Forecasting with Spectral Prompts

Seungyoon Choi, Hyunchul Kim, Jae-Gil Lee, Chanyoung Park· September 3, 2026 View original

Key takeaways

  • Existing online time series forecasting methods struggle with long-term adaptation and unseen patterns.
  • CoSPOT uses a frozen LLM as a backbone, guided by compositional spectral prompts.
  • Representing time series in the frequency domain allows for efficient adaptation and generalization.
  • The framework demonstrates superior performance in challenging online and cross-dataset scenarios.

Who benefits

FinanceRetailEnergyLogisticsManufacturing

Summary

CoSPOT is an LLM-based framework for online time series forecasting that uses compositional spectral prompts to guide a frozen LLM. This approach enables efficient adaptation to non-stationary environments and generalization to unseen patterns by representing time series in the frequency domain.

Online Time Series Forecasting (OTSF) requires models to adapt continuously to evolving data and non-stationary environments. Existing methods, often relying on memory buffer-based retrieval, struggle with long-term adaptation and generalizing to entirely new patterns. This paper introduces CoSPOT, a novel framework that leverages the powerful few-shot capabilities of pre-trained Large Language Models (LLMs) for OTSF. CoSPOT uses a frozen LLM as its core online forecaster, minimizing the number of parameters that need updating during the online phase. Its key innovation lies in "compositional spectral prompts." Instead of feeding raw time series data directly, CoSPOT decomposes the time series into frequency bases. It then composes corresponding spectral basis prompts according to their amplitudes. This frequency-domain representation allows the LLM to be guided by the overall distribution of the input, enabling it to generalize to unseen patterns by forming new combinations of learned basis prompts. Extensive experiments on real-world datasets demonstrate CoSPOT's superior performance and practicality in challenging online scenarios, including extended online phases and cross-dataset settings with significant distribution shifts.

Why it matters

This method offers a robust and efficient way to perform online time series forecasting, crucial for dynamic business environments where data patterns constantly shift and real-time predictions are needed.

How to implement this in your domain

  1. 1Evaluate current online time series forecasting solutions for their adaptability to non-stationary data and generalization capabilities.
  2. 2Explore integrating LLM-based approaches like CoSPOT for improved real-time prediction.
  3. 3Investigate the use of frequency-domain representations and spectral prompts for guiding LLMs in time series tasks.
  4. 4Pilot CoSPOT in a domain with rapidly changing data patterns, such as financial markets or energy demand forecasting.

Original post by Seungyoon Choi, Hyunchul Kim, Jae-Gil Lee, Chanyoung Park

"arXiv:2609.02093v1 Announce Type: new Abstract: To address the sequential and evolving nature of time series, the Online Time Series Forecasting (OTSF) task has been extensively studied in multiple domains. Existing research focuses on adapting to non-stationary environments by e…"

View on X

Originally posted by Seungyoon Choi, Hyunchul Kim, Jae-Gil Lee, Chanyoung Park on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses