arXiv:2610.05349cs.CVOct 2026

Manuscript Offprint

arXiv:2610.05349

Learning Conditional Source Distribution via Flow Reversal for Temporal Flow Matching

Kuan-Hsun Tu, Hsuan-Chi Liu, Jia-Wei Liao, Chien-Sheng Chiang, Tsung-Wei Ke

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

Kuan-Hsun Tu*, Hsuan-Chi Liu*†, Jia-Wei Liao*, Chien-Sheng Chiang & Tsung-Wei Ke National Taiwan University

{khtu, hhhhhsuan, d11922016, b10902063, ccf, twke}@csie.ntu.edu.tw

FM

Figure

CNP-Flow (Ours)

Video Prediction

RIVER

CNP-Flow

Temporally inconsistent

Initial frame

Motion Planning

time

Collision

Goal

MPD

CNP-Flow

Video Interp. FVD ↓

Video Pred. FVD ↓

Motion Planning EE Error ↓

KTH

CLEVRER

KTH

BAIR

CLEVRER

EE pos err

EE ori err

Figure 1: CNP-Flow learns condition-dependent source distributions for temporal generation. CNP-Flow uses a Conditional Noise Predictor (CNP) to predict a source distribution for each condition. This source-side conditioning reduces FVD by up to 75% over RIVER on video prediction, and yields more precise motion-planning trajectories with fewer collisions.

ABSTRACT

We introduce CNP-Flow, a flow matching framework for temporal generation that learns conditional source distributions through flow reversal. Whereas standard conditional flow matching (FM) incorporates conditioning through the vector field and draws source samples from a standard Gaussian, CNP-Flow uses a conditional noise predictor (CNP) to produce an isotropic Gaussian source for each temporal condition. The CNP is supervised by source samples obtained through flow reversal, which maps observed targets backward through a pretrained FM model. A three-stage pipeline pretrains the FM model, trains the CNP, and fine-tunes the FM model using the learned source distribution, while preserving the FM backbone architecture. Across video prediction, video interpolation, and 7-DoF Franka robot motion planning, CNP-Flow consistently improves generation quality. It also matches baseline performance with fewer function evaluations. Project page: https://embodiedai-ntu.github.io/cnpflow

1 INTRODUCTION

Generative modeling is typically framed as drawing samples from a learned data distribution, where each generation is independent of the others. However, applications such as video generation (Ho

∗^{*}Equal contribution. †\daggerCorresponding author.

et al., 2022; Ge et al., 2023) and robotic control (Janner et al., 2022; Carvalho et al., 2023) require a more challenging and constrained setup: they must generate a sequence of temporally correlated samples conditioned on past or future data. This defines the task of temporal generation, which imposes two requirements: the transitions between samples must follow those of the data distribution, and each sample must remain structurally consistent with the conditional inputs (Lai et al., 2018; Ge et al., 2023). Depending on the conditioning, temporal generation can be further divided into extrapolation and interpolation. Extrapolation predicts future samples given the past (Voleti et al., 2022; Davtyan et al., 2023), while interpolation generates intermediate trajectories given the start and end of a sequence (Janner et al., 2022; Carvalho et al., 2023; Reda et al., 2022).

Flow Matching (FM) (Lipman et al., 2023) is an effective framework for generative modeling: a neural network regresses a deterministic vector field that transports samples from a source distribution to the target distribution. The source is typically chosen to be simple, such as a standard Gaussian. Thanks to this general formulation, FM models extend naturally to temporal generation by treating temporal conditions as additional inputs (Esser et al., 2024; Gkanatsios et al., 2025). While conceptually simple, their performance depends heavily on the quantity and quality of the conditions injected into the model (Peebles and Xie, 2023). Existing approaches, therefore, focus on improving the conditioning mechanism through various inductive biases: randomly masking conditional inputs as a form of regularization (Voleti et al., 2022; Davtyan et al., 2023) or biasing generated samples toward conditional data via gradient methods (Ho et al., 2022). However, the former sacrifices fidelity, while the latter cannot handle multiple conditions simultaneously.

These approaches all target the conditioning mechanism. A separate line of work, however, takes a different angle: modulating the source distribution itself. Recent studies show that FM models can be steered toward higher-quality outputs by selecting more suitable source samples (Pooladian et al., 2023; Tong et al., 2024; Chiang et al., 2026). A common approach in image editing (Meng et al., 2022; Song et al., 2021) replaces the standard Gaussian noise with a noised version of the original image, thereby preserving its spatial structure. In text-to-video generation (Ge et al., 2023) and video editing (Chang et al., 2024), drawing source samples in a directionally correlated manner across frames improves temporal coherence over drawing them independently per frame. Pushing this further, recent video prediction methods (Shrivastava and Shrivastava, 2024b;a) replace the standard Gaussian source with the previous frame. In robotic manipulation, action generation is largely determined by the source samples, so training a dedicated noise sampler enables adaptation of pretrained robot policies (Wagenmaker et al., 2025). Together, these results suggest that source samples themselves carry rich conditional information, which motivates us to ask: can a learned source distribution also benefit temporal generation?

We introduce Conditional Noise Predictor for Flow Matching (CNP-Flow), a flow matching framework for temporal generation. The core idea is to learn a noise predictor that takes the current condition as input and outputs a source distribution suited to downstream FM models under that condition. This formulation naturally encompasses both interpolation and extrapolation (see Fig. 1). To supervise the noise predictor, we construct pseudo-ground-truth source distributions by retrieving source samples for each condition through flow reversal of a pretrained FM model. A recent study (Chiang et al., 2026) shows that pretrained FM models map similar target data to nearby source samples through flow reversal. Motivated by this, we parameterize these distributions as a family of isotropic Gaussians, with the conditional noise predictor (CNP) outputting their mean and standard deviation. This sidesteps the exact search for optimal source distributions, which is intractable, while still providing effective surrogates that substantially improve temporal generation in our experiments.

CNP-Flow consists of a CNP and an FM model, trained via a three-stage pipeline that bootstraps each model from the other. First, we pretrain an FM model with a standard Gaussian source; flow reversal through the pretrained model then retrieves surrogate source samples for each condition. Next, we train the noise predictor by maximizing the likelihood of these source samples under each condition, enabling it to predict source distributions at test time. Finally, we fine-tune the FM model with the predicted distributions, refining its vector field. Fig. 2 illustrates this on a toy example: compared to a vanilla FM, CNP-Flow draws temporally correlated source samples and produces temporally coherent sequences.

CNP-Flow shows empirical gains along three independent axes. On video benchmarks, distribution-level alignment improves, with FVD on KTH dropping from 180.00 to 44.76 and comparable margins on CLEVRER and BAIR (see Fig. 1). Inference becomes far more efficient: with only 5 function

Figure

(a) FM (Standard Gaussian)

(b) CNP-Flow (Ours)

Figure 2: 2D toy example of temporal generation. Colors indicate temporal phase along the target circular trajectory. (a) Vanilla FM draws source samples from a standard Gaussian. Samples associated with neighboring temporal conditions can be widely separated, and the generated sequence deviates from the target trajectory. (b) CNP-Flow learns a conditional source distribution with a smoother arrangement of samples by temporal phase (see the zoomed region), and the generated sequence follows the target trajectory more closely. Detailed experimental settings are provided in Appendix F.

evaluations, CNP-Flow surpasses what the standard Gaussian baseline achieves at 50. The same formulation transfers beyond video to a 7-DoF Franka motion planning task, where the fraction of valid trajectories rises from 84.9% to 88.5%, and end-effector position error drops from 1.6 cm to 0.8 cm (see Fig. 1). These results point to the same mechanism: conditioning the source improves source–target alignment and straightens the transport path, without modality-specific structure.

References (52)