Dynamic Negative Guidance of Diffusion Models
Felix Koulischer, Johannes Deleu, Gabriel Raya, Thomas Demeester, Luca Ambrogioni
Abstract
Negative Prompting (NP) is widely utilized in diffusion models, particularly in text-to-image applications, to prevent the generation of undesired features. In this paper, we show that conventional NP is limited by the assumption of a constant guidance scale, which may lead to highly suboptimal results, or even complete failure, due to the non-stationarity and state-dependence of the reverse process. Based on this analysis, we derive a principled technique called Dynamic Negative Guidance, which relies on a near-optimal time and state dependent modulation of the guidance without requiring additional training. Unlike NP, negative guidance requires estimating the posterior class probability during the denoising process, which is achieved with limited additional computational overhead by tracking the discrete Markov Chain during the generative process. We evaluate the performance of DNG class-removal on MNIST and CIFAR10, where we show that DNG leads to higher safety, preservation of class balance and image quality when compared with baseline methods. Furthermore, we show that it is possible to use DNG with Stable Diffusion to obtain more accurate and less invasive guidance than NP. Our implementation is available at https://github.com/FelixKoulischer/ Dynamic-Negative-Guidance.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.
11 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
- 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
- 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 Feedback Guidance of Diffusion Models
- SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis cites High-Resolution Image Synthesis with Latent Diffusion Models
- SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis cites Diffusion Models Beat GANs on Image Synthesis
- SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis cites Learning Transferable Visual Models From Natural Language Supervision
- SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis cites Denoising Diffusion Probabilistic Models
- When Safety Collides: Resolving Multi-Category Harmful Conflicts in Text-to-Image Diffusion via Adaptive Safety Guidance cites High-Resolution Image Synthesis with Latent Diffusion Models
- When Safety Collides: Resolving Multi-Category Harmful Conflicts in Text-to-Image Diffusion via Adaptive Safety Guidance cites Denoising Diffusion Probabilistic Models
- The Entropic Signature of Class Speciation in Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
- The Entropic Signature of Class Speciation in Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
- The Entropic Signature of Class Speciation in Diffusion Models cites Denoising Diffusion Probabilistic Models
- The Entropic Signature of Class Speciation in Diffusion Models cites Feedback Guidance of Diffusion 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
- Training-Free Safe Denoisers for Safe Use of Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
- Training-Free Safe Denoisers for Safe Use of Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
- Training-Free Safe Denoisers for Safe Use of Diffusion Models cites Learning Transferable Visual Models From Natural Language Supervision
- Training-Free Safe Denoisers for Safe Use of Diffusion 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 Training-Free Safe Denoisers for Safe Use of Diffusion Models
- Feedback Guidance of Diffusion Models cites Denoising Diffusion Probabilistic Models
Cited by top-tier papers11
- Training-Free Safe Denoisers for Safe Use of Diffusion ModelsMingyu Kim, Dongjun Kim, Amman Yusuf, Stefano Ermon et al.NeurIPS 2025 · 21 citations
- Feedback Guidance of Diffusion ModelsFelix Koulischer, Florian Handke, Johannes Deleu, Thomas Demeester et al.NeurIPS 2025 · 16 citations
- When Safety Collides: Resolving Multi-Category Harmful Conflicts in Text-to-Image Diffusion via Adaptive Safety GuidanceYongli Xiang, Ziming Hong, Zhaoqing Wang, Xiangyu Zhao et al.CVPR 2026 · 14 citations
- Learn to Guide Your Diffusion ModelAlexandre Galashov, Ashwini Pokle, Arnaud Doucet, Arthur Gretton et al.ICLR 2026 · 12 citations
- The Entropic Signature of Class Speciation in Diffusion ModelsFlorian Handke, Dejan Stancevic, Felix Koulischer, Thomas Demeester et al.ICML 2026 · 5 citations
Builds on24
- 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
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
- SDXL: Improving Latent Diffusion Models for High-Resolution Image SynthesisDustin Podell, Zion English, Kyle Lacey, Andreas Blattmann et al.ICLR 2024 · 4,569 citations
Related papers
- Inference Time Concept Removal Guidance for Text-to-Image Diffusion ModelsYoonseok Choi, Chaeyoung Oh, Hyunjun Choi, Seokin Seo et al.ICML 2026
- ContrastiveCFG: Guiding Diffusion Sampling by Contrasting Positive and Negative ConceptsJinho Chang, Changsun Lee, Hyungjin Chung, Jong Chul YEICML 2026
- Guiding Diffusion Models With Adaptive Negative Sampling Without External ResourcesAlakh Desai, Nuno VasconcelosICCV 2025 · 1 citation
- Normalized Attention Guidance: Universal Negative Guidance for Diffusion ModelsDar-Yen Chen, Hmrishav Bandyopadhyay, Kai Zou, Yi-Zhe SongNeurIPS 2025 · 17 citations
- Training-Free Safe Text Embedding Guidance for Text-to-Image Diffusion ModelsByeonghu Na, Mina Kang, Jiseok Kwak, Minsang Park et al.NeurIPS 2025 · 8 citations
