The Curse of Conditions: Analyzing and Improving Optimal Transport for Conditional Flow-Based Generation

Ho Kei Cheng, Alexander Schwing
3/13/2025
cs.LGcs.CV

No official code found. Best implementation: hkchengrex/C2OT (30 stars, MIT, last commit 2025-10-12).

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

View on arXivView PDF

Code Implementations(1)

hkchengrex/C2OTCommunity100%
MIT

[ICCV 2025] The Curse of Conditions: Analyzing and Improving Optimal Transport for Conditional Flow-Based Generation

302Python, Jupyter NotebookMar 13, 20251 years agoMIT
flow-matchinggenerative-modelinggenerative-models

Similar Papers

Cite this paper

@article{cheng2025curse,
  title  = {The Curse of Conditions: Analyzing and Improving Optimal Transport for Conditional Flow-Based Generation},
  author = {Ho Kei Cheng and Alexander Schwing},
  year   = {2025},
  eprint = {2503.10636},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.10636v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.10636.svg)](https://codeofpaper.com/paper/2503.10636)

Discussion