One-Embedding-Fits-All: Efficient Zero-Shot Time Series Forecasting by a Model Zoo

Hao-Nan Shi, Ting-Ji Huang, Lu Han, De-Chuan Zhan, Han-Jia Ye

TL;DR

ZooCast is a novel framework that dynamically routes time-series forecasting tasks to the most suitable Time Series Foundation Model (TSFM) within a "model zoo." By mapping both forecasting tasks and models into a unified, low-dimensional embedding space, ZooCast achieves the superior accuracy of large model ensembles at the computational efficiency of a single model.

What Problem Does This Paper Address?

The recent explosion of Time Series Foundation Models (TSFMs)—such as Chronos, Moirai, and TimesFM—has revolutionized zero-shot forecasting. However, much like large language models, no single TSFM rules them all. One model might excel at high-frequency electricity data, while another dominates on spiky cloud metrics due to differing architectures and training biases.

To get the best results, you could naively run every available model and average their predictions (an ensemble approach). But because contemporary TSFMs range from hundreds of megabytes to several gigabytes, executing a full forward pass on all of them for every new task is computationally prohibitive. Existing model selection methods are either too slow, require labeled data, or fail to handle the non-stationary, multi-channel nature of multivariate time series.

The authors introduce ZooCast to solve this bottleneck, creating a "precompute-and-select" routing pipeline that matches tasks to optimal models instantly.

Figure 1: Workflow of zero-shot forecasting with model zoo. Stage 1 (Left): A precomputation stage, each TSFM’s predictive preferences are summarized into compact embeddings via a co-embedding extractor, stored in a unified zoo repr. library (repr. for representation). Stage 2 (Right): An instant selection stage, new forecasting tasks are rapidly embedded and matched against the precomputed representations through lightweight similarity computations, enabling immediate optimal model recommendation and predictions. This “precompute-and-select” design ensures ZooCast enhances forecasting accuracy while maintaining efficiency, and exhibits scalability for future models.

Methods

ZooCast operates on a One-Embedding-Fits-All paradigm, which consists of three core components:

  1. Advantage Subset Characterization: Instead of evaluating models on massive datasets, ZooCast profiles each TSFM using a tiny, highly discriminative subset of data. The authors discovered that samples where models disagree most (high-variance samples) contain the strongest signals for identifying a model's unique strengths.
  2. Model-Task Co-Embedding: The authors trained a lightweight encoder-decoder network ($\psi$) to map both the target time series tasks and the TSFMs into the same low-dimensional vector space. The extractor is optimized using a combination of reconstruction loss, contrastive learning, and a novel transferability alignment loss that maps cross-task similarity directly to forecasting performance (1-MSE scores).
  3. Error-Correcting Consensus Ranking: Time series data is notoriously noisy and multi-channel. To prevent a single messy channel from throwing off model selection, ZooCast uses an Error-Correcting Output Codes (ECOC)-inspired voting mechanism. It computes channel-wise similarities and aggregates them into a robust global ranking based on broad consensus across all channels.
Figure 2: Overview of ZooCast with one-embedding-fits-all design: (a) Advantage subset charac- terizes model preferences based on inter-model performance analysis. (b) Co-Embedding extractor aligns model and task representations in a shared space for efficient similarity-based model selection. (c) Error-corrected model ranking refines the task prediction by leveraging cross-channel similarity.

Datasets

  • Extractor Training: An independent auxiliary dataset $D^*$ consisting of ~300,000 subsequences sampled from the M3, M5, and Tourism datasets. This data was strictly kept disjoint from the TSFM pretraining corpora and downstream tasks to prevent data leakage.
  • Evaluation Benchmark: The GIFT-Eval benchmark, a comprehensive zero-shot forecasting suite containing 23 real-world datasets across 97 configurations. It spans domains such as Energy, Economy/Finance, Healthcare, Transport, Nature, Sales, and Web/CloudOps.

Key Insights and Ideas

  • The Value of High Variance: The performance gap between the optimal model and the average model grows exponentially on high-variance samples. Profiling models on these "difficult" samples allows ZooCast to accurately capture model preferences using minimal data.
Model preference analysis across variance deciles
  • Amortized O(1) Selection: By compressing an entire foundation model's preferences into a single static embedding vector once, matching a new task to the model zoo reduces to simple, lightning-fast matrix dot products.
  • Seamless Scalability: When a new TSFM is released, ZooCast can integrate it into the library in under a minute by evaluating it only against the fixed characterization set. There is no need to re-evaluate or retrain the existing models in the zoo.

Key Results

  • Superior Accuracy: ZooCast-guided Top-3 and Top-5 ensembles consistently outperformed individual TSFMs and naive "ensemble-all" baselines on the GIFT-Eval benchmark.
  • Massive Speedups: In a head-to-head efficiency analysis against a brute-force baseline (forwarding all 13 TSFMs), ZooCast reduced the total pipeline time from 88,024 seconds to just 4,123 seconds (including precomputation, selection, and forecasting)—representing a dramatic computational saving.
  • Robustness to Evolving Zoos: Simulating real-world deployment where models are released sequentially, ZooCast steadily improved its forecasting accuracy (sMAPE) and maintained the top rank as newer, stronger models were added to the zoo.
Figure 4: Real-world model selection with sequential model releases on GIFT-Eval. The x-axis represents the latest TSFM releases from left to right. Lower Rank values indicate superior relative performance compared to others, while reduced sMAPE reflects improved accuracy. ZooCast (in red) demonstrates consistent superiority across evolving model zoos and unseen datasets, with performance improving as more recent and higher-quality models become available.

Limitations and Future Work

Despite its strong performance, the authors note a few constraints:

  • Fixed Input Lengths: The current representation extractor only supports fixed-length inputs (length 36) and cannot yet accommodate dynamic sequence lengths.
  • Lack of Multimodal Support: The framework does not currently integrate co-variable or multimodal information (like text or images) that might accompany time-series data in certain domains.
  • Simplistic Integration: The current ensemble strategy relies on simple averaging, discarding potentially valuable multi-quantile prediction details. Future work will explore richer integration strategies and adaptive ensembles.

Summary updated

BibTeX
@misc{shi2025one,
  author = {Hao-Nan Shi and Ting-Ji Huang and Lu Han and De-Chuan Zhan and Han-Jia Ye},
  title = {{One-Embedding-Fits-All: Efficient Zero-Shot Time Series Forecasting by a Model Zoo}},
  year = {2025},
  eprint = {2509.04208},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.04208},
}
Figure