Lune

NeurIPS2024Top-tier venue

Gradient Guidance for Diffusion Models: An Optimization Perspective

Yingqing Guo, Hui Yuan, Yukang Yang, Minshuo Chen, Mengdi Wang

Abstract

Diffusion models have demonstrated empirical successes in various applications and can be adapted to task-specific needs via guidance. This paper studies a form of gradient guidance for adapting a pre-trained diffusion model towards optimizing user-specified objectives. We establish a mathematical framework for guided diffusion to systematically study its optimization theory and algorithmic design. Our theoretical analysis spots a strong link between guided diffusion models and optimization: gradient-guided diffusion models are essentially sampling solutions to a regularized optimization problem, where the regularization is imposed by the pre-training data. As for guidance design, directly bringing in the gradient of an external objective function as guidance would jeopardize the structure in generated samples. We investigate a modified form of gradient guidance based on a forward prediction loss, which leverages the information in pre-trained score functions and provably preserves the latent structure. We further consider an iteratively fine-tuned version of gradient-guided diffusion where guidance and score network are both updated with newly generated samples. This process mimics a first-order optimization iteration in expectation, for which we proved O(1/K) convergence rate to the global optimum when the objective function is concave. Our code will be released at https://github.com/yukang123/GGDMOptim.git.

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.

32 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

  • DriftLite: Lightweight Drift Control for Inference-Time Scaling of Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
  • DriftLite: Lightweight Drift Control for Inference-Time Scaling of Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
  • DriftLite: Lightweight Drift Control for Inference-Time Scaling of Diffusion Models cites Denoising Diffusion Probabilistic Models
  • 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
  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Implicit Models
  • Training-Free Guidance Beyond Differentiability: Scalable Path Steering with Tree Search in Diffusion and Flow Models cites Diffusion Models Beat GANs on Image Synthesis
  • Training-Free Guidance Beyond Differentiability: Scalable Path Steering with Tree Search in Diffusion and Flow Models cites Derivative-Free Guidance in Continuous and Discrete Diffusion Models with Soft Value-based Decoding
  • Derivative-Free Guidance in Continuous and Discrete Diffusion Models with Soft Value-based Decoding cites Training-Free Guidance Beyond Differentiability: Scalable Path Steering with Tree Search in Diffusion and Flow Models
  • Training-Free Guidance Beyond Differentiability: Scalable Path Steering with Tree Search in Diffusion and Flow Models cites Denoising Diffusion Probabilistic Models
  • Improved Denoising Diffusion Probabilistic Models cites Denoising Diffusion Probabilistic Models
  • Improved Denoising Diffusion Probabilistic Models cites Denoising Diffusion Implicit Models
  • InstructG2I: Synthesizing Images from Multimodal Attributed Graphs cites High-Resolution Image Synthesis with Latent Diffusion Models
  • InstructG2I: Synthesizing Images from Multimodal Attributed Graphs cites Diffusion Models Beat GANs on Image Synthesis
  • InstructG2I: Synthesizing Images from Multimodal Attributed Graphs cites Denoising Diffusion Probabilistic Models
  • Diffusion Models Beat GANs on Image Synthesis cites Improved Denoising Diffusion Probabilistic Models
  • Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Probabilistic Models
  • Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Implicit Models
  • Derivative-Free Guidance in Continuous and Discrete Diffusion Models with Soft Value-based Decoding cites Diffusion Models Beat GANs on Image Synthesis
  • Derivative-Free Guidance in Continuous and Discrete Diffusion Models with Soft Value-based Decoding cites Denoising Diffusion Probabilistic Models
  • Denoising Diffusion Implicit Models cites Denoising Diffusion Probabilistic Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers32

  1. Derivative-Free Guidance in Continuous and Discrete Diffusion Models with Soft Value-based DecodingXiner Li, Yulai Zhao, Chenyu Wang, Gabriele Scalia et al.NeurIPS 2025 · 147 citations
  2. Training-Free Guidance Beyond Differentiability: Scalable Path Steering with Tree Search in Diffusion and Flow ModelsYingqing Guo, Yukang Yang, Hui Yuan, Mengdi WangNeurIPS 2025 · 29 citations
  3. DriftLite: Lightweight Drift Control for Inference-Time Scaling of Diffusion ModelsYinuo Ren, Wenhao Gao, Lexing Ying, Grant M. Rotskoff et al.ICLR 2026 · 24 citations
  4. LinEAS: End-to-end Learning of Activation Steering with a Distributional LossPau Rodríguez, Michal Klein, Eleonora Gualdoni, Valentino Maiorca et al.NeurIPS 2025 · 15 citations
  5. InstructG2I: Synthesizing Images from Multimodal Attributed GraphsBowen Jin, Ziqi Pang, Bingjun Guo, Yu-Xiong Wang et al.NeurIPS 2024 · 15 citations

Builds on35

  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. Denoising Diffusion Implicit ModelsJiaming Song, Chenlin Meng, Stefano ErmonICLR 2021 · 11,743 citations
  5. Improved Denoising Diffusion Probabilistic ModelsAlexander Quinn Nichol, Prafulla DhariwalICML 2021 · 5,234 citations

Related papers

  1. MMD Guidance: Training-Free Distribution Adaptation for Diffusion Models via Maximum Mean Discrepancy GuidanceMatina Mahdizadeh Sani, Nima Jamali, Mohammad Jalali, Farzan FarniaICML 2026 · 4 citations
  2. Reflected Diffusion ModelsAaron Lou, Stefano ErmonICML 2023 · 84 citations
  3. REG: Rectified Gradient Guidance for Conditional Diffusion ModelsZhengqi Gao, Kaiwen Zha, Tianyuan Zhang, Zihui Xue et al.ICML 2025
  4. Refining Generative Process with Discriminator Guidance in Score-based Diffusion ModelsDongjun Kim, Yeongmin Kim, Se Jung Kwon, Wanmo Kang et al.ICML 2023 · 109 citations
  5. Value Gradient Guidance for Flow Matching AlignmentZhen Liu, Tim Z. Xiao, Carles Domingo-Enrich, Weiyang Liu et al.NeurIPS 2025 · 15 citations
Dusk over the sea between two cliffs drawn in fine vertical lines