HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Flow Matching for Generative Modeling

Yaron Lipman Ricky T. Q. Chen Heli Ben-Hamu Maximilian Nickel Matt Le

Flow Matching for Generative Modeling

Abstract

We introduce a new paradigm for generative modeling built on Continuous Normalizing Flows (CNFs), allowing us to train CNFs at unprecedented scale. Specifically, we present the notion of Flow Matching (FM), a simulation-free approach for training CNFs based on regressing vector fields of fixed conditional probability paths. Flow Matching is compatible with a general family of Gaussian probability paths for transforming between noise and data samples -- which subsumes existing diffusion paths as specific instances. Interestingly, we find that employing FM with diffusion paths results in a more robust and stable alternative for training diffusion models. Furthermore, Flow Matching opens the door to training CNFs with other, non-diffusion probability paths. An instance of particular interest is using Optimal Transport (OT) displacement interpolation to define the conditional probability paths. These paths are more efficient than diffusion paths, provide faster training and sampling, and result in better generalization. Training CNFs using Flow Matching on ImageNet leads to consistently better performance than alternative diffusion-based methods in terms of both likelihood and sample quality, and allows fast and reliable sample generation using off-the-shelf numerical ODE solvers.

Code Repositories

edapinenut/ppflow
pytorch
Mentioned in GitHub
g4vrel/CFM
pytorch
Mentioned in GitHub
shivammehta25/Matcha-TTS
pytorch
Mentioned in GitHub
jjunak-yun/FLowHigh_code
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
density-estimation-on-cifar-10Flow matching
NLL (bits/dim): 2.99
image-generation-on-cifar-10FM
FID: 6.35
image-generation-on-imagenet-32x32FM
FID: 5.02
bpd: 3.53
image-generation-on-imagenet-64x64FM
Bits per dim: 3.31
FID: 14.45

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp