Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Flow Matching for Generative Modeling

  • Problem Training continuous normalizing flows at scale normally requires costly ODE simulation, and the simulation-free alternatives either need intractable integrals or produce biased gradients.
  • Method Regresses a neural vector field onto closed-form conditional vector fields of per-sample Gaussian paths, and uses the Optimal Transport choice of linear mean and standard deviation as the path.
  • Results Reached FID 6.35 and 142 NFE on CIFAR-10 with OT paths, against 7.48 and 274 for DDPM in the same ablation table.

Why simulation-free CNF training is hard

Diffusion-based models train in a stable and scalable way, but the probability paths they can represent form a narrow family. That narrowness is linked to very long training runs and to the need for specialized samplers to generate in reasonable time.

Continuous normalizing flows could in principle represent a much wider set of paths, yet maximum likelihood training of them requires repeated numerical ODE simulations. The simulation-free alternatives that exist are limited in other ways: one depends on integrals that are hard to estimate in high dimensions, and another yields biased gradients in the minibatch setting.

The goal of the work is a simulation-free training method that accepts general probability paths, so that training is no longer tied to diffusion processes.

Regressing on conditional targets

Flow Matching fits a neural vector field \(v_t\) to a target vector field \(u_t\) that generates a chosen probability path \(p_t\), by minimizing the squared difference over random times and samples. \[L_{FM}(\theta)=\mathbb{E}_{t,p_t(x)}\|v_t(x)-u_t(x)\|^2\] Here \(\theta\) are the learnable parameters of the vector field, and \(t\) is drawn uniformly from \([0,1]\).

The difficulty is that \(u_t\) has no closed form for a generic path, so this loss cannot be evaluated directly.

The workaround builds the target from per-sample pieces: each data point \(x_1\) gets a conditional path \(p_t(x|x_1)\) that starts at the noise distribution and concentrates around \(x_1\) at \(t=1\). Averaging these conditional paths over \(q(x_1)\) gives the marginal path \(p_t(x)=\int p_t(x|x_1)q(x_1)dx_1\).

A marginal vector field is then obtained by averaging the conditional vector fields with weights given by the conditional paths, and the authors prove in Theorem 1 that this averaged field generates the marginal path.

Conditional Flow Matching replaces the intractable marginal target with the per-sample conditional target, and the authors show in Theorem 2 that the two objectives have identical gradients with respect to \(\theta\), up to a constant independent of \(\theta\). Because the conditional objective only needs samples from \(p_t(x|x_1)\) and the conditional vector field, unbiased estimates are straightforward to draw.

Gaussian conditional paths and their vector fields

The conditional paths are Gaussians with time-dependent mean \(\mu_t(x_1)\) and standard deviation \(\sigma_t(x_1)\). The boundary conditions fix the start at the standard normal distribution and the end at a Gaussian centred on \(x_1\) with a sufficiently small \(\sigma_{min}\).

Many vector fields generate the same path, and most of them add components that leave the distribution unchanged, which wastes computation.

Diffusion paths as special cases

The Variance Exploding path keeps the mean at \(x_1\) and sets the standard deviation to \(\sigma_{1-t}\), with \(\sigma_t\) increasing, \(\sigma_0=0\) and \(\sigma_1\gg 1\). For this path the conditional vector field reduces to \[u_t(x|x_1)=-\frac{\sigma'_{1-t}}{\sigma_{1-t}}(x-x_1)\]

The Variance Preserving path scales the mean by \(\alpha_{1-t}\), with \(\alpha_t=e^{-\frac{1}{2}T(t)}\), and sets the standard deviation to \(\sqrt{1-\alpha_{1-t}^2}\). Its conditional vector field is given in the paper as a closed form in the same notation, derived from the general Gaussian result.

In the authors' experiments, Flow Matching on diffusion paths is more stable and robust than score matching for the same paths.

Optimal Transport paths

The OT path sets the mean to \(\mu_t(x)=t x_1\) and the standard deviation to \(\sigma_t(x)=1-(1-\sigma_{min})t\), so both change linearly in time. The corresponding flow is \(\psi_t(x)=(1-(1-\sigma_{min})t)x+t x_1\), and the CFM loss for a sampled \(x_0\) regresses onto \(x_1-(1-\sigma_{min})x_0\).

This flow is the Optimal Transport displacement map between the two Gaussians, which is why the authors call the path optimal, referring to the Wasserstein-2 solution. Under this map particles move along straight lines at constant speed. The authors observe that diffusion sampling trajectories can overshoot the final sample and backtrack, whereas OT trajectories stay straight.

Figure 2 compares the diffusion conditional score with the OT conditional vector field, and the OT field keeps a constant direction over time, which the authors argue makes it simpler to fit with a parametric model.

Ablation on CIFAR-10 and ImageNet

All models use the same U-Net architecture from Dhariwal and Nichol with minimal changes, trained unconditionally on CIFAR-10 and on ImageNet at 32 and 64. Likelihood is reported in bits per dimension, sample quality by FID over 50k samples, and cost as the average NFE of the adaptive solver at tolerances of 1e-5, with dopri5 used for evaluation.

The baselines are allowed more training iterations for better convergence, and all models share the same hyperparameters and iteration count otherwise.

On CIFAR-10, FM with OT reached NLL 2.99, FID 6.35 and NFE 142, while DDPM reached 3.12, 7.48 and 274. On ImageNet 32×32, FM with OT reached 3.53, 5.02 and 122, against 3.54, 6.99 and 262 for DDPM and 3.56, 5.68 and 178 for score matching. On ImageNet 64×64, FM with OT reached 3.31, 14.45 and 138, against 3.32, 17.36 and 264 for DDPM.

The authors state that FM with OT obtains the best results across the quantitative measures on both CIFAR-10 and ImageNet compared with the other methods in this ablation. The authors note that the CIFAR-10 FID is higher than in earlier work and suggest the architecture was not optimized for CIFAR-10.

ImageNet 128×128 against GAN baselines

The authors trained FM with OT paths on ImageNet at 128×128 and report an NLL of 2.90 and an FID of 20.9. The GAN rows in the same table are FID values only: MGAN at 58.9, PacGAN2 at 57.5, Logo-GAN-AE at 50.9, Self-cond. GAN at 41.7, Uncond. BigGAN at 25.3 and PGMGAN at 21.7.

The GAN values are numbers reported for the cited works, not runs under the authors' setup, so the comparison is between reported values.

Sampling cost with fixed-step solvers

Using identical random seeds on ImageNet 64×64 models, the OT path starts forming images earlier, while the diffusion paths keep the noise dominant until near the final time. The authors describe the OT path as removing noise roughly linearly, whereas diffusion paths remove it mostly at the end.

For the cost comparison, the authors use ImageNet-32 models from the ablation and compare low-NFE fixed-step solutions with 1000-NFE solutions, using 256 random noise seeds and per-pixel MSE. The numerical error reported in this comparison is for the midpoint scheme. FM with OT reaches the same error threshold with roughly 60% of the NFEs that diffusion models need.

Measured by FID, FM with OT keeps decent sample quality at very low NFE values, which gives a better trade-off than the ablated models. The 2D checkerboard experiment shows the same low-cost sampling behaviour.

Training speed on ImageNet

The authors note that existing diffusion work trains with very high iteration counts, such as 1.3m for Score Flow and 10m for VDM. Sampling cost stays constant during Flow Matching training, whereas for score matching it can change considerably.

The authors describe this as 33% less image throughput, and the two budgets differ in model size and batch size, so the throughput figure is the authors' own accounting.

Conditional super-resolution

The task upsamples ImageNet validation images from 64×64 to 256×256, following the SR3 evaluation protocol, with the reference row giving the FID of the original validation set. FM with OT reached FID 3.4, IS 200.8, PSNR 24.7 and SSIM 0.747, against 5.2, 180.1, 26.4 and 0.762 for SR3, and 15.2, 121.1, 27.9 and 0.801 for regression.

FM with OT has the lowest FID of the three methods, while its PSNR and SSIM are below those of SR3 and regression. The authors describe the PSNR and SSIM as similar to SR3, and argue that IS and FID better indicate generation quality, following the SR3 authors.

Limits of the evidence

The CIFAR-10 FID values are higher than earlier reports, and the authors suggest the architecture was not tuned for that dataset.

The authors show that the conditional flow is optimal, but do not show that the marginal vector field is an optimal transport solution; they only expect it to remain relatively simple.

The ablation compares models with one architecture and one hyperparameter set, and the baselines are given more iterations, so the comparison does not equalize training budgets. The ImageNet 128×128 GAN numbers are values from other works, and the table has no likelihood for them.

The abstract mentions better generalization for OT paths, but the experiments in this excerpt do not include a dedicated generalization measurement. Non-isotropic Gaussians and more general kernels are named as future directions, and they are not tested here.

Paper info

Authors
Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, Matt Le
Venue
arXiv · Preprint
First published
2022-10-6
Added
2026-10-20
Updated
2023-2-8
Version
v2
arXiv
2210.02747
Category
cs.LG · cs.AI · stat.ML
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, Matt Le (2022). Flow Matching for Generative Modeling. arXiv:2210.02747v2. https://arxiv.org/abs/2210.02747v2

BibTeX
@misc{lipman2022flow,
  title = {{Flow Matching for Generative Modeling}},
  author = {Yaron Lipman and Ricky T. Q. Chen and Heli Ben-Hamu and Maximilian Nickel and Matt Le},
  year = {2022},
  eprint = {2210.02747},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.02747v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up