QuiZSF: An efficient data-model interaction framework for zero-shot time-series forecasting

Shichao Ma, Zhengyang Zhou, Qihe Huang, Binwu Wang, Kuo Yang, Huan Li, Yang Wang · DOI

Introduction

Modern web services rely heavily on sequential data streams for traffic management, anomaly detection, and user behavior modeling. However, new domains constantly emerge where labeled historical data is scarce, making zero-shot forecasting highly challenging.

Recently, Time Series Pre-trained Models (TSPMs)—both numerical models and LLM-based adaptations—have shown promise. Yet, they suffer from a major limitation: they are static. They cannot easily incorporate real-time, open-world knowledge without expensive retraining. While Retrieval-Augmented Generation (RAG) solves this problem in Natural Language Processing by fetching external context on the fly, applying RAG to time series introduces unique hurdles. Searching millions of numerical sequences is computationally heavy, extracting features from diverse domains is complex, and feeding numerical data into text-based LLMs requires bridging a massive modality gap.

The QuiZSF Framework

To solve these challenges, the authors propose QuiZSF (Quick Zero-shot time-series Search and Forecasting), a novel RAG framework specifically designed for zero-shot time series forecasting. By retrieving structurally similar sequences from a massive, hierarchical database and fusing them with the target data, it allows pre-trained models to dynamically leverage external knowledge. This approach successfully bridges the gap between RAG's success in NLP and the time series domain.

The framework consists of three core innovations:

  1. ChronoRAG Base (CRB) & Hierarchical Retrieval: Instead of a flat database, the authors built a tree-structured database clustered by domain and sequence similarity using $k$-means. To find relevant sequences, they use a Hybrid and Hierarchical Time-series Retrieval (HHTR) strategy. It searches for both local (same-domain) and global (cross-domain) matches using a dual metric that combines cosine similarity (for trend alignment) and Euclidean distance (for geometric proximity).
  2. Multi-grained Series Interaction Learner (MSIL): Once auxiliary sequences are retrieved, this module extracts two types of features: fine-grained interaction patterns (via element-wise products) and coarse-grained average patterns (via mean pooling). These are fused with the target sequence using a cross-attention mechanism.
  3. Model Cooperation Coherer (MCC): This acts as an adapter to feed the fused representations into different types of base models. For numerical TSPMs, it uses residual connections. For LLM-based TSPMs, it translates the numerical features into structured text prompts (e.g., "Among retrieved series, $k$ series are within the same domain..."), bridging the modality gap.

Experimental Setup

The framework was evaluated on five standard public benchmarks: ETTh1, ETTh2, ETTm1, ETTm2, and Weather. The Retrieval Database (CRB) is a massive custom database compiled from 27 datasets across 7 domains (Web, Energy, Health, IoT, Nature, Transport, Environment), containing up to 143 million time points. For the numerical TSPM setup, a comprehensive dataset covering 38.7 million time points was curated to train the base model for multi-source generalization.

Key Results and Insights

QuiZSF consistently outperformed strong baselines. When paired with Non-LLM TSPMs, it ranked 1st in 75% of zero-shot settings. When paired with LLM-based TSPMs, it ranked 1st in 87.5% of settings. Remarkably, QuiZSF operating in a strict zero-shot setting managed to outperform several existing full-shot models trained on the target data.

Key insights from the study include:

  • Cross-Domain Structural Similarity: Time series from completely different domains often share fundamental structural patterns like periodicity or sudden shifts. QuiZSF proves that retrieving and reusing these cross-domain patterns acts as highly valuable auxiliary knowledge.
  • Mitigating "Time-Series Hallucinations": Just as RAG grounds text generation, it also grounds time series forecasting. LLMs without RAG tend to overfit and generate inaccurate fluctuations; injecting retrieved average patterns smooths out predictions and keeps them within realistic boundaries.
  • The Goldilocks Zone of Retrieval: Relying only on same-domain data limits feature diversity, while relying only on cross-domain data loses specific contextual relevance. A hybrid split (e.g., 60% local domain, 40% global domain) yields the best performance.

Limitations and Future Work

While the model excels at coarse-grained forecasting, it struggles slightly with high-frequency, minute-scale fluctuations (e.g., ETTm1). Aligning retrieved coarse knowledge with fine-grained target fluctuations remains a challenge. Additionally, the framework's effectiveness is bottlenecked by the quality of the underlying pre-trained base model. Future work will explore sparse indexing for larger-scale retrieval and multi-granularity sequence learning to better handle heterogeneous data streams.

Summary updated

BibTeX
@inproceedings{ma2026quizsf,
  author = {Shichao Ma and Zhengyang Zhou and Qihe Huang and Binwu Wang and Kuo Yang and Huan Li and Yang Wang},
  title = {{QuiZSF: An efficient data-model interaction framework for zero-shot time-series forecasting}},
  booktitle = {The Web Conference},
  year = {2026},
  doi = {10.1145/3774904.3792141},
}
Figure