TL;DR
While standard Flow Matching models require multiple steps of numerical ODE integration to produce high-quality samples, recent "Mean Flow" formulations compress the generation process into a single step by predicting time-averaged velocity fields. This paper introduces Optimal Transport Mean Flow (OT-MF), which combines mini-batch optimal transport couplings with Mean Flow supervision to straighten generation paths. This simple geometric modification yields substantially sharper, higher-fidelity one-step generation across 2D distributions, 3D point clouds, and images.
What Problem Does This Paper Address?
Diffusion models and continuous Flow Matching (FM) generate high-quality data by gradually integrating an Ordinary Differential Equation (ODE) or Stochastic Differential Equation (SDE) from noise to data. However, solving these equations requires tens to hundreds of sequential sampling steps (Number of Function Evaluations, or NFEs), leading to slow inference.
To enable one-step generation, the recently proposed Mean Flow framework directly trains neural networks to predict the average velocity over an interval rather than the instantaneous velocity. While promising, vanilla Mean Flows rely on independent pairings between noise and data points. This creates convoluted, crisscrossing trajectories that are difficult for a single-step vector displacement to accurately capture, often degrading sample fidelity and causing geometric distortions.
Methods
The authors propose Optimal Transport MeanFlow (OT-MF):
- OT-Coupled Supervision: Instead of pairing independent noise and data samples, OT-MF solves an optimal transport problem within each mini-batch ($\pi_{0,1} = \text{OT}(p^B, q^B)$). The Mean Flow objective is then supervised along these OT-assigned trajectories.
- Guided Generation: The framework is extended to classifier-free guidance (CFG), deriving guided mean velocity objectives conditioned on contextual representations or labels.
- Scalable OT Solvers: Because exact discrete OT scaling ($O(n^3 \log n)$) can introduce training latency, the authors incorporate fast, scalable OT approximations:
- Low-Rank Linear OT (LOT-LR) and Hierarchical Linear OT (LOT-HR), which project measures through a pivot distribution to reduce matching complexity.
- Entropic Regularization (Sinkhorn OT), which smooths the transport plan using Sinkhorn iterations.
Datasets
The authors benchmark across four distinct domains:
- Low-Dimensional Toy Data: Five synthetic 2D density-matching pairs: Gaussian to 8-Gaussians, Moons to 8-Gaussians, Gaussian to Moons, Gaussian to S-curve, and Gaussian to Checkerboard.
- Latent Image Generation: The MNIST benchmark, tokenized into $4 \times 4 \times 4$ latents using a frozen pretrained Latent Diffusion VAE.
- 3D Point Clouds: Subsets of ShapeNet (Chairs class) and ModelNet10 (classes such as desk, table, and monitor), conditioned using PointNet autoencoder feature embeddings.
- Unpaired Image-to-Image Translation: High-resolution face translation using FFHQ encoded into 512-dimensional ALAE latent spaces across Adult $\to$ Child and Man $\to$ Woman splits.
No new datasets were introduced.
Key Insights and Ideas
- Straight Paths Benefit Mean Flows Most: In standard multi-step flow matching, optimal transport straightens trajectories. In Mean Flows, straightening trajectories is even more critical: when paths are straight, the average displacement over time aligns closely with the local velocity vector. This drastically reduces the approximation error when jumping from $t=0$ to $t=1$ in a single evaluation ($x_1 \approx x_0 + u_{1,0}(x_0)$).
- Fast Linear OT Preserves Accuracy: Full batch OT can add computational overhead. The experiments reveal that low-rank and hierarchical linear OT (LOT-LR and LOT-HR) achieve generative fidelity competitive with exact OT while introducing negligible wall-clock overhead during training.
- Smoother Latent Trajectories: OT-based pairing eliminates mode-collapse and crossing artifacts, leading to noticeably smoother continuous shape and attribute interpolations compared to vanilla Mean Flow.
Key Results
- 2D Synthetic Benchmarks: Across all 5 toy tasks at NFE=1, OT-MF slashed 2-Wasserstein ($W_2^2$) distance compared to vanilla Mean Flow (e.g., dropping from $0.3931$ to $0.0141$ on Gaussian $\to$ 8-Gaussians, and $0.1913$ to $0.0084$ on Gaussian $\to$ S-curve).
- MNIST Latent Generation (1-NFE, EMA): OT-MF dropped the FID from 3.6709 (vanilla MF) to 1.9179, while $W_2$ decreased from $8.7449$ to $8.2102$. Accelerated variants remained competitive (LOT-HR achieved 1.9754 FID).
- 3D Point Cloud Modeling: On ShapeNet Chairs, 1-step $W_2$ improved from 0.0477 (MF) to 0.0121 (OT-MF). On ModelNet10, $W_2$ dropped from 0.0377 to 0.0208. Training times remained practical (e.g., 20.81s/epoch for OT-MF vs. 16.32s/epoch for MF; LOT-LR required only 17.22s/epoch).
- Image-to-Image Translation: In single-step translation, OT-MF improved FID from 17.50 to 15.64 on Adult $\to$ Child and from 6.79 to 6.44 on Man $\to$ Woman.
Limitations and Future Work
- Training Computational Overhead: While fast approximations like LOT-LR mitigate solver bottlenecks, OT-based mini-batch pairing still incurs additional compute relative to unconditional random pairing.
- Extension to Sliced Optimal Transport: The authors discuss integrating Sliced OT (SOT) in the appendix, but note unsolved challenges in learning generalized Radon transforms, optimizing through non-differentiable 1D projection plans, and scaling to massive projection dimensions.
- Scale of Image Experiments: The image experiments are limited to low-resolution latents (MNIST). Validating OT-MF on large-scale text-to-image foundation models (e.g., ImageNet, LAION) remains an open step for future research.
Summary updated