TL;DR
Consistency Flow Matching (Consistency-FM) introduces a new paradigm to straighten Ordinary Differential Equation (ODE) trajectories in flow matching by enforcing self-consistency directly within the velocity field rather than in sample space. By defining straight probability flows and supporting multi-segment piecewise linear paths, it achieves high-fidelity generation in 1 to 2 steps while converging 4.4× faster than consistency models and 1.7× faster than rectified flows.
What Problem Does This Paper Address?
Continuous Normalizing Flows (CNFs) and Flow Matching (FM) learn probability trajectories transporting pure noise to complex data distributions. Straight trajectories are the holy grail of flow models because straight paths can be integrated in minimal steps (even a single Euler step) without discretization error.
Existing methods attempt to straighten paths via:
- Iterative rectification (e.g., Rectified Flow), which demands multiple training rounds and suffers from accumulated error across rounds.
- Minibatch Optimal Transport (OT), which is computationally expensive because it requires solving OT matching problems at every training batch.
- Consistency Models (CMs), which enforce self-consistency directly on image/sample endpoints. However, learning consistency across entire curved paths is prone to instability, redundant at arbitrary points, and difficult when trajectories jump between modes.
Consistency-FM asks: Can we maximally straighten flow trajectories by regularizing the velocity field itself, avoiding both iterative retraining and expensive batch-level OT?
Methods
Instead of enforcing that points map to the same data sample, Consistency-FM imposes consistency on the velocity field:
- Velocity Consistency Formulation: The authors prove that along a straight ODE flow, constant velocity ($v(t, \gamma(t)) = v(s, \gamma(s))$) is mathematically equivalent to trajectory consistency: $$\gamma_x(t) + (1-t)v(t, \gamma_x(t)) = \gamma_x(s) + (1-s)v(s, \gamma_x(s))$$
-
Consistency-FM Loss: The training objective balances endpoint trajectory prediction and direct velocity alignment between consecutive time steps $t$ and $t + \Delta t$: $$\mathcal{L}_\theta = \mathbb{E}\left[ \|f_\theta(t, x_t) - f_{\theta^-}(t+\Delta t, x_{t+\Delta t})\|_2^2 + \alpha \|v_\theta(t, x_t) - v_{\theta^-}(t+\Delta t, x_{t+\Delta t})\|_2^2 \right]$$ where $f_\theta(t, x_t) = x_t + (1-t)v_\theta(t, x_t)$ and $\theta^-$ is maintained via Exponential Moving Average (EMA).
-
Multi-Segment Training: To model multimodal, complex target distributions that cannot be bridged by a single straight line, Consistency-FM splits the interval $[0, 1]$ into $K$ segments. It constructs a piecewise linear trajectory where each segment learns its own consistent velocity field, naturally matching multi-step inference ($NFE = K$).
- Distillation: Consistency-FM can also distill pre-trained flow matching models (like Stable Diffusion v1.5) by stepping along the teacher’s estimated velocity field.
Datasets
The authors evaluated Consistency-FM across standard benchmark suites:
- Unconditional & Class-Conditional Image Generation: CIFAR-10 ($32 \times 32$), ImageNet ($64 \times 64$), AFHQ-Cat ($256 \times 256$), and CelebA-HQ ($256 \times 256$).
- Text-to-Image Generation & Distillation: MS COCO 2014 and MS COCO 2017 (using a Stable Diffusion v1.5 backbone).
No new datasets were introduced.
Key Insights and Ideas
- Regularizing Velocity vs. Sample Space: Consistency models force the model to approximate the full ODE integral from any time $t$ to $0$. Consistency-FM parameterizes the consistency functions as straight flows, reducing the learning burden from learning arbitrary curved trajectories to learning locally constant velocities.
- Asymptotic Equivalence to Flow Matching: Theoretical asymptotic analysis demonstrates that as $\Delta t \to 0$, minimizing the trajectory discrepancy objective implicitly bounds both the FM regression error $\|v_\theta - u\|$ and a velocity curvature penalty $(\partial_t v_\theta + u \cdot \nabla_x v_\theta)$.
- Piecewise Linearity via Multi-Segment Optimization: Dividing time into discrete segments guarantees that the oracle velocity within each segment is consistent, provably eliminating accumulated error across segments when the ground truth vector field is locally constant.
Key Results
- Training Efficiency: On CIFAR-10, Consistency-FM converged 4.4× faster than Consistency Models and 1.7× faster than Rectified Flow. In text-to-image distillation from SD v1.5, Consistency-FM required only 25 A100 GPU days (23% of InstaFlow's 110 GPU days).
- Generation Quality:
- CIFAR-10: With 2 NFEs, Consistency-FM achieved an FID of 5.34 (without GAN loss) and 1.75 (with GAN loss), beating Consistency Models (5.83) and CTM (1.93).
- ImageNet $64\times 64$: Achieved an FID of 5.43 (1 NFE) and 1.62 (2 NFE with GAN loss).
- High-Resolution ($256 \times 256$): At 6 NFEs, achieved FID 22.5 on AFHQ-Cat (vs. 36.2 for Rectified Flow + Bellman) and 36.4 on CelebA-HQ (vs. 72.5).
- MS COCO: In single-step text-to-image generation (0.09s latency), Consistency-FM reached 22.7 FID-5k / 0.307 CLIP, outperforming InstaFlow (23.4 FID / 0.304 CLIP) and PeRFlow (23.0 FID / 0.294 CLIP at 4 steps).
- Diversity: Scored lowest Mean Similarity (0.19) and highest Vendi Score (5.33), demonstrating improved output variety over standard Rectified Flow and Consistency Models.
Limitations and Future Work
- Reliance on Small Time Intervals ($\Delta t$): The theoretical equivalence to true probability path matching relies on an asymptotic approximation ($\Delta t \approx 0$).
- High-Resolution Direct Training: While high-resolution results ($256\times 256$) were demonstrated on AFHQ and CelebA-HQ, training large-scale text-to-image models from scratch (rather than via distillation) remains computationally heavy.
- Future Directions: The authors highlight applying Consistency-FM to compositional text-to-image generation (handling intricate prompt semantics) and video diffusion models, where long temporal sequences severely bottleneck training speed.
Summary updated