The Curse of Conditions: Analyzing and Improving Optimal Transport for Conditional Flow-Based Generation
Ho Kei Cheng, Alexander Gerhard Schwing
Abstract
Minibatch optimal transport coupling straightens paths in unconditional flow matching. This leads to computationally less demanding inference as fewer integration steps and less complex numerical solvers can be employed when numerically solving an ordinary differential equation at test time. However, in the conditional setting, minibatch optimal transport falls short. This is because the default optimal transport mapping disregards conditions, resulting in a conditionally skewed prior distribution during training. In contrast, at test time, we have no access to the skewed prior, and instead sample from the full, unbiased prior distribution. This gap between training and testing leads to a subpar performance. To bridge this gap, we propose conditional optimal transport C^2OT that adds a conditional weighting term in the cost matrix when computing the optimal transport assignment. Experiments demonstrate that this simple fix works with both discrete and continuous conditions in 8gaussians-to-moons, CIFAR-10, ImageNet-32x32, and ImageNet-256x256. Our method performs better overall compared to the existing baselines across different function evaluation budgets. Code is available at https://hkchengrex.github.io/C2OT
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 58c0c8e3-90c3-4cc3-b3a7-dc69a28463b8Cited by top-tier papers4
- Differentiable Generalized Sliced Wasserstein PlansLaetitia Chapel, Romain Tavenard, Samuel VaiterNeurIPS 2025 · 11 citations
- AlignFlow: Improving Flow-based Generative Models with Semi-Discrete Optimal TransportLingkai Kong, Molei Tao, Yang Liu, Bryan Wang et al.ICLR 2026 · 8 citations
- Geometry-Aware Image Flow MatchingJunho Lee, Kwanseok Kim, Joonseok LeeICML 2026 · 3 citations
- COT-FM: Cluster-wise Optimal Transport Flow MatchingChiensheng Chiang, Kuan-Hsun Tu, Jia-Wei Liao, Cheng-Fu Chou et al.CVPR 2026 · 2 citations
Builds on23
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
- Scaling Rectified Flow Transformers for High-Resolution Image SynthesisPatrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari et al.ICML 2024 · 3,620 citations
- Consistency ModelsYang Song, Prafulla Dhariwal, Mark Chen, Ilya SutskeverICML 2023 · 1,720 citations
Related papers
- Faster Inference of Flow-Based Generative Models via Improved Data-Noise CouplingAram Davtyan, Leello Tadesse Dadi, Volkan Cevher, Paolo FavaroICLR 2025
- Switched Flow Matching: Eliminating Singularities via Switching ODEsQunxi Zhu, Wei LinICML 2024 · 3 citations
- Unbalancedness in Neural Monge Maps Improves Unpaired Domain TranslationLuca Eyring, Dominik Klein, Théo Uscidda, Giovanni Palla et al.ICLR 2024 · 30 citations
- Optimal Flow Matching: Learning Straight Trajectories in Just One StepNikita Kornilov, Petr Mokrov, Alexander V. Gasnikov, Alexander KorotinNeurIPS 2024 · 93 citations
- Flow Matching with Semidiscrete CouplingsAlireza Mousavi-Hosseini, Stephen Y. Zhang, Michal Klein, Marco CuturiICLR 2026 · 11 citations
