Instance-Adaptive Prompts as Context for Time-Series Foundation Models

Xiao, Zehao, Xie, Shifeng, Zan, Lei, Zhang, Jianfeng, Pan, Lujia, Redko, Ievgen, Tiomoko, Malik, Zhang, Keli

–arXiv.org Artificial Intelligence 

ABSTRACT Longer histories can improve time-series foundation models (TSFMs), but require substantially higher inference cost. We therefore ask whether contextual information can be provided more efficiently through a compact set of learned token embeddings. We introduce PaCTS, which generates a small set of instanceadaptive latent prompts in the form of continuous embedding tokens conditioned on the visible context. These prompts serve as compact context surrogates for frozen TSFMs. The prompt module is jointly trained and deployed across heterogeneous time series with the frozen backbone. Extensive experiments demonstrate the effectiveness of prompts as context, consistently improving forecasting across context lengths and model architectures. With a shorter input context, PaCTS can outperform the same frozen backbone using double context while requiring substantially less inference computation. Compared with weight-space adaptation methods, PaCTS achieves stronger improvements and better out-of-distribution generalization. Code will be released at https://github.com/zzzx1224/PaCTS. 1 INTRODUCTION Foundation models (FMs) have achieved remarkable success in language (Achiam et al., 2023; Team et al., 2023; Liu et al., 2024a) and vision tasks (Dosovitskiy et al., 2020; Radford et al., 2021), demonstrating the ability of large-scale pretraining to deliver strong performance and generalization across tasks (Bommasani et al., 2021). Recently, time-series foundation models (TSFMs) have emerged as a general approach to address unique challenges of large-scale temporal data (Woo et al., 2024; Auer et al., 2025; Podest et al., 2026; Khwaja et al., 2026; Xie et al., 2026a). Pretrained on diverse temporal data, these models achieve strong forecasting performance across datasets and domains without task-specific training (Ansari et al., 2025; Das et al., 2024; Meyer Figure 1: PaCTS improves forecasting at lower et al., 2026). TSFMs identify temporal patterns and forecast future values based on historical context.