Guiding Diffusion Models With Adaptive Negative Sampling Without External Resources

Alakh Desai, Nuno Vasconcelos
8/1/2025
diffusion-flow

No confident code implementation found for this paper.

Abstract

Diffusion models (DMs) have demonstrated an unparalleled ability to create diverse and high-fidelity images from text prompts. However, they are also well-known to vary substantially regarding both prompt adherence and quality.

Show full abstract

Negative prompting was introduced to improve prompt compliance by specifying what an image must not contain. Previous works have shown the existence of an ideal negative prompt that can maximize the odds of the positive prompt. In this work, we explore relations between negative prompting and classifier-free guidance (CFG) to develop a sampling procedure, Adaptive Negative Sampling Without External Resources (ANSWER), that accounts for both positive and negative conditions from a single prompt. This leverages the internal understanding of negation by the diffusion model to increase the odds of generating images faithful to the prompt. ANSWER is a training-free technique, applicable to any model that supports CFG, and allows for negative grounding of image concepts without an explicit negative prompts, which are lossy and incomplete. Experiments show that adding ANSWER to existing DMs outperforms the baselines on multiple benchmarks and is preferred by humans $2 \times$ more over the other methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{desai2025guiding,
  title  = {Guiding Diffusion Models With Adaptive Negative Sampling Without External Resources},
  author = {Alakh Desai and Nuno Vasconcelos},
  year   = {2025},
  eprint = {2508.02973},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2508.02973},
  journal = {IEEE International Conference on Computer Vision}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.02973.svg)](https://codeofpaper.com/paper/2508.02973)

Discussion