Manuscript Offprint

arXiv:2610.01320

ProtoFlow: Prototype-Guided Flow Matching for Multivariate Time Series Forecasting

Shibo Feng, Wanjin Feng, Yang Qiu, Deheng Ye, Peilin Zhao, Chunyan Miao

ABSTRACT

Generative modeling has shown strong promise for multivariate time mseries (MTS) forecasting, especially scale to high-dimensional settings. Diffusion-based methods achieve competitive performance but typically require many sampling steps at inference. VAE-based non-iterative forecasting frameworks have therefore emerged as an efficient alternative. Within this line of work, vector quantization (VQ) enables controllable latent space modeling by mapping multivariate series into compact discrete representations. Existing VQ-based forecasting methods, however, typically rely on autoregressive (AR) token generation, which suffers from exposure bias and training-inference mismatch. Flow matching provides an efficient non-autoregressive alternative for latent forecasting, but existing formulations usually initialize transport from a generic Gaussian prior. We instead observe that the trained VQ codebook already captures representative latent prototypes and can thus serve as a more informative prior for flow matching. Based on this insight, we propose ProtoFlow, a forecasting framework that combines vector-quantized autoencoding with Prototype-prior Flow matching. Our method first maps multivariate sequences into a discrete latent space, then constructs a structured prior from the learned codebook, and finally learns a DiT-based rectified flow to transport samples from this prior to future latent representations conditioned on historical observations. By replacing generic noise initialization with a learned prototype prior, ProtoFlow avoids the rollout mismatch of AR token prediction and promotes faster training convergence. Extensive experiments on benchmark datasets show that it consistently achieves superior forecasting performance with efficient inference.

1 INTRODUCTION

Multivariate time series (MTS) forecasting is an important research problem with broad applications in domains such as economics Huang et al. (2024), traffic systems Shao et al. (2022); Jiang et al. (2023), energy management Chen et al. (2024), and weather prediction Wu et al. (2020; 2023). In many real-world scenarios, forecasting involves a large number of variables evolving over time, making high-dimensional MTS forecasting particularly challenging. As a result, developing effective forecasting models for high-dimensional multivariate sequences has become an increasingly important topic.

Generative models provide a natural and effective framework for this setting, and have shown strong potential for scaling to high-dimensional MTS forecasting Sohl-Dickstein et al. (2015); Dinh et al. (2016); Kingma et al. (2019); Song et al. (2020). Among them, diffusion-based methods have achieved competitive performance in recent years Rasul et al. (2021); Shen & Kwok (2023); Meijer & Chen (2024); Cao et al. (2024); Wang et al. (2024); Ruan et al. (2025). However, their inference typically requires many denoising steps, leading to substantial computational cost.

This limitation has motivated increasing interest in VAEs-based non-iterative forecasting frameworks, which perform generation in a learned latent space. Within this family, vector quantization (VQ) provides a controllable latent space modeling strategy by mapping complex multivariate sequences into a compact discrete codebook. Such vector-quantized representations have recently

∗^{*}Corresponding author shown promise in token-based time series modeling and forecasting Talukder et al. (2024); Chen et al. (2024); Feng et al. (2025). However, existing VQ-based forecasting methods typically rely on autoregressive (AR) token generation. Since AR models are usually trained with teacher forcing, they depend on ground-truth previous tokens during training but on their own predictions during inference, resulting in train–test mismatch and error accumulation during rollout Schmidt (2019); Bengio et al. (2015).

Flow matching (FM) learns continuous transport and can support non-autoregressive generation Liu et al. (2022). Recent time series applications include TSFlow, which introduces Gaussian-process priors Kollovieh et al. (2024); TFM, which learns history-conditioned Neural SDEs through simulation-free training Zhang et al. (2024); and FlowTime, which adopts teacher-forced autoregressive forecasting El-Gazzar & van Gerven (2025). These methods primarily model transport in observation space, where high-dimensional MTS forecasting requires capturing complex temporal and cross-variable dependencies in the joint predictive distribution. ProtoFlow addresses this challenge by jointly generating future sequences in a compact vector-quantized latent space. Its prototype prior incorporates learned latent centers, empirical frequencies, and local variability into the source distribution, providing a structured initialization for conditional transport. Empirically, this initialization supports earlier FM training stabilization than its Gaussian-prior counterpart, while enabling accurate few-step forecasting in high-dimensional MTS settings.

Based on this observation, we propose ProtoFlow, a prototype-prior flow matching framework for high-dimensional multivariate time series forecasting. ProtoFlow combines vector-quantized representations with a structured source prior derived from learned codebook prototypes and their empirical statistics. It jointly generates future latent sequences through non-autoregressive flow matching, avoiding the ground-truth versus generated-token conditioning mismatch associated with teacher-forced autoregressive rollout. Experiments on five real-world benchmarks with several prediction horizons demonstrate strong overall performance against competitive diffusion- and flow-based baselines with few ODE sampling steps. Further analyses show earlier FM training stabilization and reduced sampling-step sensitivity relative to Gaussian initialization, supporting the effectiveness of reusing learned latent structure for transport initialization.

References (46)