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

Guiding What Not to Generate: Automated Negative Prompting for Text-Image Alignment

Sangha Park, Eunji Kim, Yeongtak Oh, Jooyoung Choi, Sungroh Yoon · DOI

Abstract

While most research focuses on improving text-to-image (T2I) alignment by emphasizing what should be present, this paper introduces Negative Prompting for Image Correction (NPC). NPC is an automated pipeline that identifies and suppresses undesirable elements in generated images. By utilizing a multi-agent Large Language Model (LLM) framework to generate and rank negative prompts, NPC significantly enhances the compositional accuracy of state-of-the-art models like FLUX and Stable Diffusion without requiring retraining or rigid layout constraints.

Introduction

Despite the impressive photorealism of modern diffusion models, they frequently fail on compositional prompts involving specific counts (e.g., "three laptops"), attribute binding, or complex spatial relations. Existing solutions typically rely on rewriting positive prompts or imposing layout controls that can diminish image naturalism.

This research explores a third path: Negative Prompting. While users often use generic negatives like "blurry," they rarely use them to correct semantic errors. NPC provides a systematic, automated way to use negative guidance to steer models away from incorrect content—such as an unrequested "wooden table"—and toward the intended prompt.

The NPC Pipeline

The authors propose a four-stage automated loop to refine image generation:

  1. Initial Generation & Verification: An MLLM (e.g., GPT-4o) verifies the image against the prompt. If a failure is detected, it identifies the specific error (e.g., "two donuts instead of one"), creating targeted negatives.
  2. Captioning: A detailed description of the image is generated to surface untargeted negatives—incidental elements like a "white background" that were not requested.
  3. Proposal: An LLM suggests candidate negative prompts based on the failure reasons and the caption.
  4. Salient Text-Space Scoring: To avoid the cost of generating images for every candidate, a "salient score" predicts which negative prompt will best shift the model's internal attention back to the important (salient) words in the original positive prompt.
The NPC workflow: Initial generation followed by refinement using targeted and untargeted negative prompts to correct compositional errors.

Key Insights: Attention and Scoring

Cross-attention analysis reveals that negative prompts do not simply "delete" objects. Instead, by instructing the model not to focus on a specific element (like a "wooden table"), the internal attention mechanism is forced to re-allocate focus back to salient tokens in the positive prompt (like "laptop").

Surprisingly, suppressing "untargeted" incidental details can be as effective at fixing count errors as directly suppressing extra objects. Furthermore, the developed salient score allows the system to select the most effective negative prompt using only text embeddings, reducing the average number of regeneration attempts from 4.1 to 2.5.

Visual comparison of base generation versus targeted and untargeted refinement, showing the corresponding salient scores and relative performance gains.

Experimental Results

NPC was evaluated across several rigorous benchmarks, including GenEval++, Imagine-Bench, and T2I-CompBench. Key findings include:

  • Compositional Accuracy: On GenEval++, NPC achieved an overall score of 0.571, representing a 54% relative gain over the strongest baseline, Bagel.
  • Surrealism and Attributes: In Imagine-Bench, NPC excelled in "Hybridization" and "Attribute Shift" tasks, achieving the best overall performance (6.80).
  • Model Agnostic: The pipeline proved effective across diverse architectures, including SDXL, SD3, and FLUX.1-dev.

Conclusion

NPC demonstrates that automated negative prompting is a powerful, training-free method for improving T2I alignment. While current implementation relies on high-end MLLMs, introducing latency and API costs, the underlying logic of "negative guidance" offers a promising direction for future model training. Future work may involve expanding the salient score to handle more complex, multi-token negative phrases and integrating this logic directly into the diffusion process.

Summary updated

BibTeX
@inproceedings{park2026guiding,
  author = {Sangha Park and Eunji Kim and Yeongtak Oh and Jooyoung Choi and Sungroh Yoon},
  title = {{Guiding What Not to Generate: Automated Negative Prompting for Text-Image Alignment}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2026},
}
Figure