FlexCast: Flexible Context Learning for Time Series Foundation Models
Zuyang Shen, Luqi Gong, Fanda Fan, Bingsong Wang, Xiang Ao, Yahui Wei, Minghao Liu, Chunjie Luo, Jianfeng Zhan
Abstract
Time series foundation models (TSFMs) based on autoregressive (AR) next-token prediction entangle two factors: variable-context conditioning and prediction-unit factorization with autoregressive rollout. Strong AR performance therefore does not reveal whether generalization stems from the flexible training distribution, the local prediction target, the left-to-right inference process, or their combination. We propose FlexCast, a flexible context-target learning framework that disentangles these factors. FlexCast reformulates forecasting as variable-length masked prediction over time series patches: during pretraining, it dynamically samples visible context and masked target patches, exposing the model to diverse context-target configurations without sequential decoding. At inference time, the same pretrained model supports one-step forecasting, confidence-based iterative refinement, and next-token-style generation through a unified mask-and-predict interface, enabling controlled comparison of inference schedules under identical architecture, data, and objective. Evaluated on BLAST and multiple zero-shot benchmarks, FlexCast achieves accuracy competitive with or better than strong TSFM baselines while substantially reducing inference latency. Ablations confirm that context diversity and contiguous target masking drive performance, while left-to-right decoding does not yield consistent gains once flexible context-target relationships have been learned, suggesting that the key benefit of AR-style TSFMs lies in flexible training rather than sequential inference. The code is available at https://github.com/BenchCouncil/FlexCast.
Create a lesson
Related papers
SWIFT: Sample-Wise Instance Fine-Tuning of Time-Series Foundation Models for Forecasting
Shared title terminology · Yang Chen, Feifan Tian, Cong Wang et al.
Aligned, Conflicting, or Unspecified? A Diagnostic Benchmark for Multimodal Time Series Forecasting
Shared title terminology · Xintong Wang, Haihan Nan, Ruidong Li
When Are Images Needed in Multimodal Machine Translation? Text-Only Routing for On-Demand Visual Context
Shared title terminology · Xinyu Wang, Yingfeng Luo, Yuxin Gao et al.
Trained on Harm, Still Refusing: A Training-Time Defense for Code Generation
Shared title terminology · Miaoqing Tian, Ruohan Li, Qian Lu et al.
Efficient Natural Language to Temporal Logic Translation for Real-Time Physical AI
Shared title terminology · Oliver Schön, Adrien Banse, John Lygeros et al.
Portable Active Recovery under Timed and Position-Dependent Visual Outages
Shared title terminology · Jinyuan Zhang, Shengshuo Jiao