NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improving Image Synthesis with Diffusion-Negative Sampling

Alakh Desai, Nuno Vasconcelos

Introduction

Diffusion Models (DMs) have revolutionized image synthesis, yet they often struggle with precise semantic control. A common technique to mitigate unwanted elements is "negative prompting," where users specify what should not appear in the generated image. However, the effectiveness of these prompts is limited by a "semantic gap"—a discrepancy between human conceptual negation and the model's internal latent representation. This paper introduces Diffusion-Negative Prompting (DNP), a training-free framework that bridges this gap by leveraging the model's own internal "negative space" to guide synthesis.

The Semantic Gap in Diffusion Models

The authors argue that human-defined negations (e.g., "not a dog" implying "a cat") do not align with how DMs partition their latent space. Because the model's internal representation of "negative" concepts is often unintuitive, manually crafted negative prompts frequently fail to provide effective guidance. DNP addresses this by allowing the model to generate its own negative references, which are then used to refine the final output.

Methodology: Diffusion-Negative Prompting

The DNP framework consists of a two-stage process designed to identify and then negate the model's most likely failures for a given prompt.

The DNP pipeline: From prompt to negative image sampling, captioning, and final synthesis.
  1. Diffusion-Negative Sampling (DNS): Instead of standard Classifier-Free Guidance (CFG) that steers the model toward a prompt $p$, DNS utilizes a modified guidance factor to sample an image $\bar{I}$ that represents the least compliant output under the model's distribution. This "negative image" serves as a visual representation of what the model considers the opposite or the worst version of the prompt.
  2. Diffusion-Negative Prompting (DNP): The negative image $\bar{I}$ is processed by an automated captioning model (e.g., BLIP-2) to produce a natural language description $n^*$. This model-derived caption captures the specific features the model tends to confuse with the positive prompt.
  3. Final Synthesis: The original prompt $p$ is paired with the generated negative prompt $n^*$ during a standard diffusion pass. By negating the model's own "misunderstandings," DNP significantly improves prompt adherence.

Experimental Evaluation

The researchers evaluated DNP using two benchmarks: the Existence and Attribute Binding (A&E) dataset, which tests multi-object composition, and a custom Human and Hand Generation (H&H) dataset, focusing on anatomically challenging prompts.

Quantitative and Qualitative Results

The integration of DNP with Stable Diffusion (SD) yielded substantial improvements across multiple metrics. On the A&E dataset, SD+auto-DNP showed a 6.6% increase in the "Minimum Object CLIP Score," indicating superior retention of all prompted objects.

Qualitative comparison of standard Stable Diffusion versus DNP-enhanced synthesis across various prompts.

Qualitatively, human evaluations revealed a strong preference for DNP. Evaluators favored DNP-generated images 3.4x more for prompt correctness and 2.5x more for overall visual quality compared to standard SD. Notably, DNP proved highly effective at correcting anatomical errors, such as distorted limbs or "spaghetti fingers," by identifying and negating the model's internal representations of these artifacts.

Discussion and Key Insights

A primary finding is that the "negative images" generated via DNS are often bizarre to human observers—for instance, a model might consider a "red brick house" the negative of a "blue bird." Despite this lack of human logic, using these specific descriptions as negative prompts provides the model with much clearer boundaries in its latent space.

Furthermore, DNP is an inference-time only method, requiring no retraining or fine-tuning. While it introduces computational overhead by requiring an initial sampling pass, it consistently outperforms "universal" negative prompts (e.g., "ugly, blurry") by providing prompt-specific guidance.

Conclusion

Diffusion-Negative Prompting offers a novel way to improve image synthesis by turning a model's internal weaknesses into a guiding strength. By automating the discovery of effective negative prompts, DNP reduces the need for manual trial-and-error and significantly enhances the reliability of diffusion-based generation. Future work may focus on reducing the computational cost and exploring the impact of multiple negative samples.

Summary updated

BibTeX
@inproceedings{desai2024improving,
  author = {Alakh Desai and Nuno Vasconcelos},
  title = {{Improving Image Synthesis with Diffusion-Negative Sampling}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73668-1\_12},
}
Figure