Abstract: Straight Variational Flow Matching (S-VFM) addresses a fundamental contradiction in generative modeling: standard Flow Matching attempts to learn straight paths while using training data that inherently forces them to curve. By introducing a variational latent "overview" to disambiguate intersecting paths and a dedicated straightness loss, S-VFM achieves state-of-the-art one-step image generation on benchmarks like CIFAR-10 and ImageNet.
Introduction
Generative modeling via Flow Matching (FM) and Diffusion has revolutionized image synthesis by learning to transform noise into data along continuous trajectories. The efficiency of these models is fundamentally tied to the geometry of these paths. Ideally, trajectories should be straight lines, enabling "one-step" sampling where the model follows a constant velocity vector from start to finish. However, standard training objectives often produce curved paths, necessitating multiple sampling steps (high Number of Function Evaluations, or NFE) to maintain quality.
The Curvature Problem in Flow Matching
The "curvature problem" arises from the independent coupling of noise and data during training. When multiple source-target pairs are processed, their potential paths often intersect. At these intersections, the model—lacking information about the specific destination—learns an average velocity, causing trajectories to bend. While methods like Rectified Flow attempt to straighten these paths through iterative distillation, this process is computationally expensive and complex.
Straight Variational Flow Matching (S-VFM)
Straight Variational Flow Matching (S-VFM) addresses this intrinsic contradiction through two primary innovations that allow for straight-path learning in a single training stage.
1. Disambiguation via Variational Latents
S-VFM introduces a variational encoder that provides the model with a latent "overview" code ($z$). This code acts as a global hint, allowing the velocity field to distinguish between intersecting paths. By conditioning the flow on $z$, the model can maintain distinct directions for different source-target pairs even when their spatial coordinates overlap.
2. Explicit Straightness Objective
To complement the latent disambiguation, the authors introduce a straightness loss ($L_S$). This objective explicitly penalizes the time derivative of the velocity field ($D_t v$). By minimizing "acceleration" along the trajectory, the model is forced to converge toward constant-velocity, straight-line paths, which correspond to Optimal Transport solutions.
Experimental Results
The effectiveness of S-VFM was validated across synthetic benchmarks and high-resolution image datasets.
One-Step Generation Performance
On the CIFAR-10 benchmark, S-VFM achieved a state-of-the-art one-step FID of 2.81, outperforming established methods like improved Consistency Training (iCT) and MeanFlow. This performance scales to high-resolution tasks; on ImageNet 256x256, the S-VFM-XL architecture reached an FID of 3.31 in a single step, significantly surpassing previous one-step generative models.
Flexibility and Efficiency
Unlike many consistency-based models that degrade when sampled with more steps, S-VFM demonstrates consistent improvement as NFE increases. This allows users to trade off inference speed for higher image quality without retraining. Furthermore, S-VFM avoids the multi-stage distillation cycles required by Rectified Flow, simplifying the training pipeline.
Conclusion and Future Work
S-VFM resolves the conflict between straight-path objectives and intersecting training data by combining variational disambiguation with a dedicated straightness loss. While the addition of an encoder introduces some architectural overhead, the gains in one-step generation efficiency and training simplicity are substantial. Future research may extend this framework to video generation, where maintaining straight, consistent trajectories is vital for temporal coherence.
Summary updated