atlas

Research map / Image generation / Fast diffusion sampling

D-Flow: Differentiating through Flows for Controlled Generation

ICML 2024 · Image generation › Fast diffusion sampling · approach: Flow matching distillation · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes D-Flow, which controls a frozen flow/diffusion model by optimizing the source noise point x0 through the ODE sampler to minimize a differentiable cost, and shows this implicitly projects gradients onto the data manifold.

Problem

Controlled generation and inverse problems with pre-trained diffusion/flow-matching models without task-specific retraining or restrictive guidance assumptions.

Approach

Optimize the source noise x0 by differentiating an arbitrary cost through the ODE sampling process of a frozen flow model; for Gaussian-path models, this differentiation implicitly projects the cost gradient onto high-variance data directions, keeping samples near the data manifold without an explicit prior term.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Optimize the source noise through the flow to perform center inpaintingCond-OT flow-matching model · ImageNet-128 inpainting-center, σ_y=0FID: 5.40 -> 4.14Helped
Optimize the source noise through the flow for super-resolutionCond-OT flow-matching model · ImageNet-128 super-resolution ×2, σ_y=0FID: 3.05 -> 2.50Helped
Optimize the source noise through the flow for noisy center inpaintingCond-OT flow-matching model · ImageNet-128 inpainting-center, σ_y=0.05FID: 6.25 -> 4.76Helped
Optimize the source noise through the flow for noisy super-resolutionCond-OT flow-matching model · ImageNet-128 super-resolution ×2, σ_y=0.05FID: 4.38 -> 4.26Helped
Optimize the source noise through the flow for free-form inpaintingT2I latent flow-matching model · MS-COCO free-form inpaintingFID: 23.31 -> 16.92Helped
Optimize the source noise through the flow for music inpaintingLatent music flow-matching model · In-domain music inpainting (10%)FAD: 0.75 -> 0.22Helped
Optimize the source noise through the flow for music super-resolutionLatent music flow-matching model · MusicCaps super-resolution ×2FAD: 3.07 -> 1.25Helped
Optimize source noise to condition molecule generationUnconditional equivariant flow-matching model · QM9 conditional generation, polarizability αMAE: 2.37 -> {1.39}Helped
Add D-Flow optimization to midpoint sampling (ablation)Unconditional equivariant flow-matching model · QM9 generationmolecule stability (%): 72.10 -> 58.97Hurt
Add D-Flow optimization to midpoint sampling (ablation)Unconditional equivariant flow-matching model · QM9 generationvalidity (%): 85.56 -> 79.38Hurt

Surprising findings

Limitations

Experimental setup

Datasets: face-blurred ImageNet-128 MS-COCO validation set MusicCaps QM9

Benchmarks: face-blurred ImageNet-128 (10k split) MS-COCO val (1k subset) MusicCaps QM9

Metrics: FID LPIPS PSNR SSIM Clip score FAD MAE atom stability molecule stability validity

Baselines: PiGDM OT-ODE RED-Diff EDM Equivariant Flow-Matching (E) GeoLDM (G)

Builds on: flow matching RED-Diff torchdiffeq EnCodec

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy