Manuscript Offprint

arXiv:2610.18621

Deterministic Prediction as Global Velocity: Flow Matching for Probabilistic Time-Series Forecast

Jiajing Hu, Xu Han, Li-Ping Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Accurate uncertainty quantification is critical for many time series forecasting applications, and recent studies have increasingly adopted generative models to capture predictive uncertainty. Existing approaches often combine deterministic forecasting with generative modeling to improve predictive performance. However, their joint training is typically unstable because the deterministic model is embedded within the generative process, resulting in deep computational graphs and changing the probability transport path. In this work, we propose DV-Flow, a unified flow-matching formulation that incorporates the deterministic predictor as a parallel velocity component rather than as the endpoint of the transport path. This design enables stable end-to-end optimization while subsuming several existing formulations as special cases, allowing direct comparisons among them. Extensive experiments on six real-world datasets demonstrate that DV-Flow consistently improves probabilistic forecasting performance over strong baselines. Our code is available at https://github.com/tufts-ml/dv-flow-time-series.

1 Introduction

Time series forecasting plays a crucial role in domains such as finance, logistics, and healthcare (Zhang et al., 2024). Many downstream decision-making tasks built on forecasts require probabilistic quantification of future trajectories. From a modeling standpoint, this involves learning the conditional distribution of future time series given the past. Accordingly, many deterministic and probabilistic approaches were developed.

Deterministic forecasting models (Lin et al., 2024a; Wu et al., 2021; Zeng et al., 2023; Fan et al., 2022; Box & Jenkins, 1970; Sims, 1980; Liu et al., 2023; Nie et al., 2022; Lim et al., 2021) are typically trained to minimize the squared prediction error and therefore approximate the conditional mean of the data distribution. These models excel at producing accurate point forecasts, but their characterization of predictive uncertainty can only come from a Gaussian assumption derived from the mean squared error.

Probabilistic models such as diffusion models (Ho et al., 2020; 2022) and flow-matching frameworks (Lipman et al., 2022; Tong et al., 2023; Liu et al., 2022) have demonstrated strong capabilities in modeling complex, high-dimensional distributions, and have been successfully applied to time series forecasting (Rasul et al., 2021; Kerrigan et al., 2024b; Tamir et al., 2024; Zhang et al., 2024; Hu et al., 2024; Gao et al., 2024; Kollovieh et al., 2024b; Fan et al., 2024). Although these models enable sampling of diverse future trajectories and thus support full-trajectory uncertainty quantification, they are not explicitly designed to recover the conditional mean, which remains a central quantity for forecasting.

To leverage the complementary strengths of deterministic and probabilistic models, recent works have explored hybrid formulations that combine both components. Existing approaches typically fall into two categories. Two-stage methods (Gong et al., 2024; Xu et al., 2025) first train a deterministic predictor and then fit a probabilistic model conditioned on its output. Although stable, such approaches forgo the potential benefits of joint optimization. Alternatively, several recent methods (Li et al., 2025; Srivastava et al., 2024; Yu et al., 2024; Li et al., 2024) pursue fully end-to-end training by incorporating the deterministic predictor directly into diffusion or flow-matching formulations. In these approaches, the deterministic model either defines a residual variable or serves as a prior state of the generative path.

A key consequence of the previous joint training designs is that the generative model takes the output of the deterministic predictor as part of its input when constructing the intermediate states of the flow or diffusion process, forming deep computational graphs and yielding a non-stationary regression task during joint optimization. Similar optimization challenges arising from moving targets have been widely recognized in reinforcement learning and adversarial learning (Mnih et al., 2015; Goodfellow et al., 2014). In addition, many existing end-to-end hybrid approaches optimize only the diffusion (or flow-matching) objective, updating both components without explicitly supervising the deterministic predictor, which may not learn the conditional mean and simply increases the network depth.

In this work, we propose a novel joint-training flow-matching formulation that absorbs the deterministic forecast into the flow-matching velocity as a global velocity component. Specifically, the deterministic forecast gives a global velocity direction, which depends only on the historical context. The original flow-matching velocity is then retained as the local velocity, which is state- and time-dependent and captures the complex distribution of the target time series. Moreover, we add an auxiliary loss that explicitly supervises the deterministic component to leverage the strength of the deterministic point forecaster, while the local velocity captures higher-order variability and uncertainty. This formulation preserves the strengths of both deterministic and probabilistic models and enables principled, stable end-to-end joint training, leading to improved forecast performance and more reliable uncertainty quantification.

We evaluate our model on six real-world benchmark datasets spanning diverse domains, including electricity consumption and stock prices, where reliable uncertainty quantification is critical for decision-making. Beyond comparisons with SOTA baselines, we identify a unified framework that captures existing hybrid formulations as special cases and conduct a systematic empirical study in a controlled experimental setting. This controlled comparison enables a direct assessment of how different hybrid formulations affect distribution fitting, velocity fitting, and optimization stability.

In summary, our work contributes to research on probabilistic forecasting of time series in three aspects:

• We introduce a Dual Velocity flow matching framework (DV-Flow) that treats the deterministic predictor as a velocity component and thereby enables stable end-to-end joint training.

• We analyze the decomposition of probabilistic forecasting into a center prediction and variance estimation through trajectory sampling.

• We evaluate DV-Flow through controlled experiments and on real-world datasets, demonstrating that the proposed DV-Flow method exhibits stable training dynamics and improves forecast probabilistic distribution performance.

References (82)