Lune

CVPR2025Top-tier venue

Rectified Diffusion Guidance for Conditional Generation

Mengfei Xia, Nan Xue, Yujun Shen, Ran Yi, Tieliang Gong, Yong-Jin Liu

Abstract

Classifier-Free Guidance (CFG), which combines the conditional and unconditional score functions with two coefficients summing to one, serves as a practical technique for diffusion model sampling. Theoretically, however, denoising with CFG cannot be expressed as a reciprocal diffusion process, which may consequently leave some hidden risks during use. In this work, we revisit the theory behind CFG and rigorously confirm that the improper configuration of the combination coefficients (i.e., the widely used summing-to-one version) brings about expectation shift of the generative distribution. To rectify this issue, we propose ReCFG 1 with a relaxation on the guidance coefficients such that denoising with ReCFG strictly aligns with the diffusion theory. We further show that our approach enjoys a closed-form solution given the guidance strength. That way, the rectified coefficients can be readily pre-computed via traversing the observed data, leaving the sampling speed barely affected. Empirical evidence on real-world data demonstrate the compatibility of our post-hoc design with existing state-of-the-art diffusion models, including both class-conditioned ones (e.g., EDM2 on ImageNet) and text-conditioned ones (e.g., SD3 on CC12M), without any retraining. Code is available at https://github.com/thuxmf/recfg .

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.

14 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
  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Implicit Models
  • Learn to Guide Your Diffusion Model cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Learn to Guide Your Diffusion Model cites Diffusion Models Beat GANs on Image Synthesis
  • Learn to Guide Your Diffusion Model cites Learning Transferable Visual Models From Natural Language Supervision
  • Learn to Guide Your Diffusion Model cites Denoising Diffusion Probabilistic Models
  • Learn to Guide Your Diffusion Model cites Denoising Diffusion Implicit Models
  • Learn to Guide Your Diffusion Model cites Feedback Guidance of Diffusion Models
  • Normalized Attention Guidance: Universal Negative Guidance for Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Normalized Attention Guidance: Universal Negative Guidance for Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
  • Normalized Attention Guidance: Universal Negative Guidance for Diffusion Models cites Learning Transferable Visual Models From Natural Language Supervision
  • Normalized Attention Guidance: Universal Negative Guidance for Diffusion Models cites Denoising Diffusion Probabilistic Models
  • 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
  • Stage-wise Dynamics of Classifier-Free Guidance in Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Denoising Diffusion Implicit Models cites Denoising Diffusion Probabilistic Models
  • Feedback Guidance of Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Feedback Guidance of Diffusion Models cites Denoising Diffusion Probabilistic Models
  • Feedback Guidance of Diffusion Models cites Denoising Diffusion Implicit Models
  • Rectified CFG++ for Flow Based Models cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Rectified CFG++ for Flow Based Models cites Diffusion Models Beat GANs on Image Synthesis
  • Rectified CFG++ for Flow Based Models cites Learning Transferable Visual Models From Natural Language Supervision
  • Rectified CFG++ for Flow Based Models cites Denoising Diffusion Probabilistic Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers14

  1. Rectified CFG++ for Flow Based ModelsShreshth Saini, Shashank Gupta, Alan BovikNeurIPS 2025 · 20 citations
  2. Normalized Attention Guidance: Universal Negative Guidance for Diffusion ModelsDar-Yen Chen, Hmrishav Bandyopadhyay, Kai Zou, Yi-Zhe SongNeurIPS 2025 · 17 citations
  3. Feedback Guidance of Diffusion ModelsFelix Koulischer, Florian Handke, Johannes Deleu, Thomas Demeester et al.NeurIPS 2025 · 16 citations
  4. Stage-wise Dynamics of Classifier-Free Guidance in Diffusion ModelsCheng Jin, Qitan Shi, Yuantao GuICLR 2026 · 13 citations
  5. Learn to Guide Your Diffusion ModelAlexandre Galashov, Ashwini Pokle, Arnaud Doucet, Arthur Gretton et al.ICLR 2026 · 12 citations

Builds on20

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
  3. Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
  4. High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
  5. Denoising Diffusion Implicit ModelsJiaming Song, Chenlin Meng, Stefano ErmonICLR 2021 · 11,743 citations

Related papers

  1. Inner Classifier-Free Guidance and Its Taylor Expansion for Diffusion ModelsShikun Sun, Longhui Wei, Zhicai Wang, Zixuan Wang et al.ICLR 2024 · 2 citations
  2. CFG++: Manifold-constrained Classifier Free Guidance for Diffusion ModelsHyungjin Chung, Jeongsol Kim, Geon Yeong Park, Hyelin Nam et al.ICLR 2025
  3. No Training, No Problem: Rethinking Classifier-Free Guidance for Diffusion ModelsSeyedmorteza Sadat, Manuel Kansy, Otmar Hilliges, Romann M. WeberICLR 2025
  4. Improving Classifier-Free Guidance in Masked Diffusion: Low-Dim Theoretical Insights with High-Dim ImpactKevin Rojas, Ye He, Chieh-Hsin Lai, Yuhta Takida et al.ICLR 2026 · 11 citations
  5. Rethinking the Spatial Inconsistency in Classifier-Free Diffusion GuidanceDazhong Shen, Guanglu Song, Zeyue Xue, Fu-Yun Wang et al.CVPR 2024 · 12 citations
Dusk over the sea between two cliffs drawn in fine vertical lines