FlowGrad: Controlling the Output of Generative ODEs with Gradients
Xingchao Liu, Lemeng Wu, Shujian Zhang, Chengyue Gong, Wei Ping, Qiang Liu
Abstract
Generative modeling with ordinary differential equations (ODEs) has achieved fantastic results on a variety of applications. Yet, few works have focused on controlling the generated content of a pre-trained ODE-based generative model. In this paper, we propose to optimize the output of ODE models according to a guidance function to achieve controllable generation. We point out that, the gradients can be efficiently back-propagated from the output to any intermediate time steps on the ODE trajectory, by decomposing the back-propagation and computing vector-Jacobian products. To further accelerate the computation of the back-propagation, we propose to use a non-uniform discretization to approximate the ODE trajectory, where we measure how straight the trajectory is and gather the straight parts into one discretization step. This allows us to save ∼ 90% of the back-propagation time with ignorable error. Our framework, named FlowGrad, outperforms the state-of-the-art baselines on text-guided image manipulation. Moreover, FlowGrad enables us to find global semantic directions in frozen ODE-based generative models that can be used to manipulate new images without extra optimization. '()+ 𝑥 " '()+
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.
18 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Efficient Rectified Flow for Image Fusion cites Denoising Diffusion Probabilistic Models
- Efficient Rectified Flow for Image Fusion cites InstaFlow: One Step is Enough for High-Quality Diffusion-Based Text-to-Image Generation
- Diffusion Models Beat GANs on Image Synthesis cites Learning Transferable Visual Models From Natural Language Supervision
- Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Probabilistic Models
- Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Implicit 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 D-Flow: Differentiating through Flows for Controlled Generation
- Physics-Constrained Flow Matching: Sampling Generative Models with Hard Constraints cites Denoising Diffusion Probabilistic Models
- D-Flow: Differentiating through Flows for Controlled Generation cites Diffusion Models Beat GANs on Image Synthesis
- D-Flow: Differentiating through Flows for Controlled Generation cites Denoising Diffusion Probabilistic Models
- RectifID: Personalizing Rectified Flow with Anchored Classifier Guidance cites Diffusion Models Beat GANs on Image Synthesis
- RectifID: Personalizing Rectified Flow with Anchored Classifier Guidance cites D-Flow: Differentiating through Flows for Controlled Generation
- RectifID: Personalizing Rectified Flow with Anchored Classifier Guidance cites Learning Transferable Visual Models From Natural Language Supervision
- RectifID: Personalizing Rectified Flow with Anchored Classifier Guidance cites Denoising Diffusion Probabilistic Models
- RectifID: Personalizing Rectified Flow with Anchored Classifier Guidance cites InstaFlow: One Step is Enough for High-Quality Diffusion-Based Text-to-Image Generation
- Denoising Diffusion Implicit Models cites Denoising Diffusion Probabilistic Models
- InstaFlow: One Step is Enough for High-Quality Diffusion-Based Text-to-Image Generation cites Diffusion Models Beat GANs on Image Synthesis
- InstaFlow: One Step is Enough for High-Quality Diffusion-Based Text-to-Image Generation cites Denoising Diffusion Probabilistic Models
- InstaFlow: One Step is Enough for High-Quality Diffusion-Based Text-to-Image Generation cites Denoising Diffusion Implicit Models
- InstaFlow: One Step is Enough for High-Quality Diffusion-Based Text-to-Image Generation cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites Diffusion Models Beat GANs on Image Synthesis
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites Learning Transferable Visual Models From Natural Language Supervision
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites Denoising Diffusion Probabilistic Models
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites Denoising Diffusion Implicit Models
Cited by top-tier papers18
- InstaFlow: One Step is Enough for High-Quality Diffusion-Based Text-to-Image GenerationXingchao Liu, Xiwen Zhang, Jianzhu Ma, Jian Peng et al.ICLR 2024 · 358 citations
- D-Flow: Differentiating through Flows for Controlled GenerationHeli Ben-Hamu, Omri Puny, Itai Gat, Brian Karrer et al.ICML 2024 · 82 citations
- 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
- Efficient Rectified Flow for Image FusionZirui Wang, Jiayi Zhang, Tianwei Guan, Yuhan Zhou et al.NeurIPS 2025 · 16 citations
- RectifID: Personalizing Rectified Flow with Anchored Classifier GuidanceZhicheng Sun, Zhenhao Yang, Yang Jin, Haozhe Chi et al.NeurIPS 2024 · 13 citations
Builds on33
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
- Denoising Diffusion Implicit ModelsJiaming Song, Chenlin Meng, Stefano ErmonICLR 2021 · 11,743 citations
- Photorealistic Text-to-Image Diffusion Models with Deep Language UnderstandingChitwan Saharia, William Chan, Saurabh Saxena, Lala Li et al.NeurIPS 2022 · 8,965 citations
Related papers
- Training Free Guided Flow-Matching with Optimal ControlLuran Wang, Chaoran Cheng, Yizhen Liao, Yanru Qu et al.ICLR 2025
- Greed is Good: A Unifying Perspective on Guided GenerationZander Blasingame, Chen LiuNeurIPS 2025 · 2 citations
- AdjointDEIS: Efficient Gradients for Diffusion ModelsZander W. Blasingame, Chen LiuNeurIPS 2024 · 8 citations
- Image Generation using Continuous Filter AtomsZe Wang, Seunghyun Hwang, Zichen Miao, Qiang QiuNeurIPS 2021 · 10 citations
- Latent Transformations via NeuralODEs for GAN-based Image EditingValentin Khrulkov, Leyla Mirvakhabova, Ivan V. Oseledets, Artem BabenkoICCV 2021 · 15 citations
