Improving and generalizing flow-based generative models with minibatch optimal transport

Alexander Tong, Kilian Fatras, Nikolay Malkin, Guillaume Huguet, Yanlei Zhang +3 more
2/1/2023
1,154 citations
cs.LG
diffusion-flow

Official code: atong01/conditional-flow-matching (2,612 stars, Python, MIT, PyTorch, last commit 2026-04-20).

Abstract

Continuous normalizing flows (CNFs) are an attractive generative modeling technique, but they have been held back by limitations in their simulation-based maximum likelihood training. We introduce the generalized conditional flow matching (CFM) technique, a family of simulation-free training objectives for CNFs.

Show full abstract

CFM features a stable regression objective like that used to train the stochastic flow in diffusion models but enjoys the efficient inference of deterministic flow models. In contrast to both diffusion models and prior CNF training algorithms, CFM does not require the source distribution to be Gaussian or require evaluation of its density. A variant of our objective is optimal transport CFM (OT-CFM), which creates simpler flows that are more stable to train and lead to faster inference, as evaluated in our experiments. Furthermore, we show that when the true OT plan is available, our OT-CFM method approximates dynamic OT. Training CNFs with CFM improves results on a variety of conditional and unconditional generation tasks, such as inferring single cell dynamics, unsupervised image translation, and Schrödinger bridge inference.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

TorchCFM: a Conditional Flow Matching library

2,612229Python, ShellJan 30, 20237 months agoMIT
continuous-normalizing-flowsoptimal-transportpytorch

Similar Papers

Cite this paper

@article{tong2023improving,
  title  = {Improving and generalizing flow-based generative models with minibatch optimal transport},
  author = {Alexander Tong and Kilian Fatras and Nikolay Malkin and Guillaume Huguet and Yanlei Zhang and Jarrid Rector-Brooks and Guy Wolf and Yoshua Bengio},
  year   = {2023},
  eprint = {2302.00482},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.00482v4}
}

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/2302.00482.svg)](https://codeofpaper.com/paper/2302.00482)

Discussion