Lune

ICML2024Top-tier venue

D-Flow: Differentiating through Flows for Controlled Generation

Heli Ben-Hamu, Omri Puny, Itai Gat, Brian Karrer, Uriel Singer, Yaron Lipman

Abstract

Taming the generation outcome of state of the art Diffusion and Flow-Matching (FM) models without having to re-train a task-specific model unlocks a powerful tool for solving inverse problems, conditional generation, and controlled generation in general. In this work we introduce D-Flow, a simple framework for controlling the generation process by differentiating through the flow, optimizing for the source (noise) point. We motivate this framework by our key observation stating that for Diffusion/FM models trained with Gaussian probability paths, differentiating through the generation process projects gradient on the data manifold, implicitly injecting the prior into the optimization process. We validate our framework on linear and non-linear controlled generation problems including: image and audio inverse problems and conditional molecule generation reaching state of the art performance across all.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

53 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • High-Resolution Image Synthesis with Latent Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
  • GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
  • GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models cites Denoising Diffusion Probabilistic Models
  • Elucidating the Design Space of Diffusion-Based Generative Models cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Elucidating the Design Space of Diffusion-Based Generative Models cites GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models
  • Elucidating the Design Space of Diffusion-Based Generative Models cites Diffusion Models Beat GANs on Image Synthesis
  • Elucidating the Design Space of Diffusion-Based Generative Models cites Denoising Diffusion Probabilistic Models
  • Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Probabilistic Models
  • Flow Priors for Linear Inverse Problems via Iterative Corrupted Trajectory Matching cites Denoising Diffusion Probabilistic Models
  • Gradient Guidance for Diffusion Models: An Optimization Perspective cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Gradient Guidance for Diffusion Models: An Optimization Perspective cites Diffusion Models Beat GANs on Image Synthesis
  • Gradient Guidance for Diffusion Models: An Optimization Perspective cites Denoising Diffusion Probabilistic Models
  • Physics-Constrained Flow Matching: Sampling Generative Models with Hard Constraints cites Diffusion Models Beat GANs on Image Synthesis
  • Physics-Constrained Flow Matching: Sampling Generative Models with Hard Constraints cites Denoising Diffusion Probabilistic Models
  • ReNO: Enhancing One-step Text-to-Image Models through Reward-based Noise Optimization cites High-Resolution Image Synthesis with Latent Diffusion Models
  • ReNO: Enhancing One-step Text-to-Image Models through Reward-based Noise Optimization cites Elucidating the Design Space of Diffusion-Based Generative Models
  • ReNO: Enhancing One-step Text-to-Image Models through Reward-based Noise Optimization cites Diffusion Models Beat GANs on Image Synthesis
  • ReNO: Enhancing One-step Text-to-Image Models through Reward-based Noise Optimization cites Denoising Diffusion Probabilistic Models
  • Inference-Time Scaling for Flow Models via Stochastic Generation and Rollover Budget Forcing cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Inference-Time Scaling for Flow Models via Stochastic Generation and Rollover Budget Forcing cites Elucidating the Design Space of Diffusion-Based Generative Models
  • Inference-Time Scaling for Flow Models via Stochastic Generation and Rollover Budget Forcing cites Diffusion Models Beat GANs on Image Synthesis
  • Inference-Time Scaling for Flow Models via Stochastic Generation and Rollover Budget Forcing cites Denoising Diffusion Probabilistic Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers53

  1. ReNO: Enhancing One-step Text-to-Image Models through Reward-based Noise OptimizationLuca Eyring, Shyamgopal Karthik, Karsten Roth, Alexey Dosovitskiy et al.NeurIPS 2024 · 131 citations
  2. Gradient Guidance for Diffusion Models: An Optimization PerspectiveYingqing Guo, Hui Yuan, Yukang Yang, Minshuo Chen et al.NeurIPS 2024 · 79 citations
  3. Flow Priors for Linear Inverse Problems via Iterative Corrupted Trajectory MatchingYasi Zhang, Peiyu Yu, Yaxuan Zhu, Yingshan Chang et al.NeurIPS 2024 · 61 citations
  4. Physics-Constrained Flow Matching: Sampling Generative Models with Hard ConstraintsUtkarsh Utkarsh, Pengfei Cai, Alan Edelman, Rafael Gómez-Bombarelli et al.NeurIPS 2025 · 60 citations
  5. Inference-Time Scaling for Flow Models via Stochastic Generation and Rollover Budget ForcingJaihoon Kim, Taehoon Yoon, Jisung Hwang, Minhyuk SungNeurIPS 2025 · 43 citations

Builds on28

  1. Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
  2. Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
  3. High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
  4. GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion ModelsAlexander Quinn Nichol, Prafulla Dhariwal, Aditya Ramesh, Pranav Shyam et al.ICML 2022 · 4,691 citations
  5. Elucidating the Design Space of Diffusion-Based Generative ModelsTero Karras, Miika Aittala, Timo Aila, Samuli LaineNeurIPS 2022 · 3,959 citations

Related papers

  1. DNF-Intrinsic: Deterministic Noise-Free Diffusion for Indoor Inverse RenderingRongjia Zheng, Qing Zhang, Chengjiang Long, Wei-Shi ZhengICCV 2025 · 2 citations
  2. FlowDPS: Flow-Driven Posterior Sampling for Inverse ProblemsJeongsol Kim, Bryan Sangwoo Kim, Jong Chul YeICCV 2025 · 6 citations
  3. Training Free Guided Flow-Matching with Optimal ControlLuran Wang, Chaoran Cheng, Yizhen Liao, Yanru Qu et al.ICLR 2025
  4. Controlled Generation with Equivariant Variational Flow MatchingFloor Eijkelboom, Heiko Zimmermann, Sharvaree Vadgama, Erik J. Bekkers et al.ICML 2025
  5. Training-Free Reward-Guided Image Editing via Trajectory Optimal ControlJinho Chang, Jaemin Kim, Jong Chul YeICLR 2026 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines