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

TL;DR

Introduced NPC to optimize text-image alignment via negative prompts, achieving a 54% improvement on GenEval++.

cs.CV 🔴 Advanced 2025-12-09 39 views
Sangha Park Eunji Kim Yeongtak Oh Jooyoung Choi Sungroh Yoon
text generation image generation negative prompting diffusion models alignment optimization

Key Findings

Methodology

NPC employs a Verifier-Captioner-Proposer framework to generate negative prompt candidates and selects the best using a salient score, avoiding additional image synthesis.

Key Results

  • NPC achieved 0.571 on GenEval++, outperforming the strongest baseline Bagel (0.371) by 54%.
  • NPC achieved the best overall performance on Imagine-Bench, demonstrating robust alignment for complex and surreal prompts.
  • Ablation studies revealed that negative prompts significantly enhanced attention allocation to critical text tokens.

Significance

NPC addresses long-standing challenges in text-image alignment for complex compositional and surreal prompts, offering an automated optimization path for diffusion models with significant academic and industrial impact.

Technical Contribution

The study extends the scope of negative prompting, introduces an attention-based salient scoring method, and designs an automated pipeline that reduces manual intervention while enhancing alignment performance.

Novelty

NPC is the first to systematically analyze the impact of targeted and untargeted negative prompts on alignment and proposes a novel automated generation and selection mechanism.

Limitations

  • NPC relies on the performance of Verifier and Captioner, which may be limited by language understanding capabilities.
  • Negative prompts may show instability for extremely complex or ambiguous instructions.
  • Further optimization of computational efficiency is needed for real-time applications.

Future Work

Future research could explore integrating richer contextual information for more precise negative prompts and optimizing computational efficiency for large-scale real-time applications.

AI Executive Summary

Text-to-image generation has made significant strides, yet achieving precise alignment for complex compositional or surreal prompts remains challenging. Existing methods primarily focus on positive guidance by reinforcing desired content generation, often neglecting the importance of negative guidance—explicitly instructing models on what not to generate.

This paper introduces NPC, an automated pipeline for generating negative prompts via a Verifier-Captioner-Proposer framework. NPC selects the most effective prompt using a salient scoring method without requiring additional image synthesis. On GenEval++, NPC achieved 0.571, outperforming the strongest baseline Bagel (0.371) by 54%. On Imagine-Bench, NPC demonstrated superior alignment across all tasks, showcasing its robustness for complex and surreal instructions.

By analyzing attention mechanisms, the study reveals that negative prompts significantly improve attention allocation to critical text tokens, enhancing alignment quality. Despite its strong performance, NPC's reliance on prompt generation quality and computational efficiency remains a challenge. Future research could focus on integrating richer context and improving efficiency for real-time applications.

Deep Analysis

Background

Diffusion models have revolutionized text-to-image generation, with notable systems like Stable Diffusion and DALL-E 3. However, these models struggle with complex compositional structures and surreal prompts, particularly in multi-object relations, attribute binding, and numeracy.

Core Problem

The core challenge is achieving precise text-image alignment. Existing models often fail on complex instructions, such as mismatched object counts or incorrect attribute bindings, posing significant barriers to practical applications.

Innovation

NPC introduces three key innovations: 1) Verifier-Captioner-Proposer framework for automated negative prompt generation; 2) salient scoring method to select optimal prompts; 3) systematic analysis of targeted and untargeted negative prompts' impact on alignment.

Methodology

  • �� Verifier checks generated images for alignment issues and provides targeted negatives.
  • �� Captioner generates detailed descriptions to supply untargeted negatives.
  • �� Proposer combines outputs to generate negative prompt candidates.
  • �� Salient scoring evaluates candidates' potential contribution to alignment and selects the best.

Experiments

Experiments were conducted on GenEval++ and Imagine-Bench benchmarks to evaluate compositional control and surreal alignment. FLUX.1-dev was used as the generator, with Verifier and Captioner implemented using GPT-4.

Results

NPC achieved 0.571 on GenEval++, outperforming Bagel (0.371) by 54%. On Imagine-Bench, NPC demonstrated the best overall performance, excelling in complex and surreal alignment tasks.

Applications

NPC can be applied to high-precision advertising material generation, artistic creation, and automated design for complex scenarios requiring accurate alignment.

Limitations & Outlook

NPC's reliance on prompt generation quality may lead to instability for extremely complex instructions. Computational efficiency needs optimization for real-time applications.

Plain Language Accessible to non-experts

Imagine NPC as a smart kitchen assistant. You give it a recipe for a complex dish, but it makes mistakes—like adding chili to a dessert. NPC acts as a correction system, analyzing the recipe and the dish, then generating a 'don't add chili' negative prompt to help the assistant focus on making the dish correctly.

ELI14 Explained like you're 14

Imagine you're playing a game where you ask an AI to draw 'a green fire hydrant and a black elephant.' The AI messes up and makes the hydrant yellow. NPC is like a game tool that tells the AI, 'Don't draw a yellow hydrant!' It also notices unrelated things in the background, like a vintage TV, and says, 'Don't draw the vintage TV!' This helps the AI focus on drawing the right stuff!

Glossary

Negative Prompt

A prompt used to suppress undesired content during generation, ensuring focus on intended elements.

Used in NPC to optimize text-image alignment.

Verifier

Evaluates generated images for alignment issues and provides targeted negatives.

Generates alignment-specific feedback in NPC.

Captioner

Generates detailed descriptions of images to provide untargeted negatives.

Complements Verifier outputs in NPC.

Salient Score

A scoring method to evaluate negative prompts' potential contribution to alignment.

Used to select the best negative prompt in NPC.

GenEval++

A benchmark dataset for evaluating compositional control in text-to-image generation.

Used to assess NPC's performance.

Open Questions Unanswered questions from this research

  • 1 How to further optimize negative prompt quality for complex instructions?
  • 2 Can richer contextual information enhance alignment performance?

Applications

Immediate Applications

Advertising Generation

Helps create precisely aligned advertising materials with reduced manual intervention.

Artistic Creation

Supports automated design for complex creative scenarios, improving efficiency.

Long-term Vision

Real-Time Generation Systems

Optimizing computational efficiency for real-time text-to-image generation applications.

Abstract

Despite substantial progress in text-to-image generation, achieving precise text-image alignment remains challenging, particularly for prompts with rich compositional structure or imaginative elements. To address this, we introduce Negative Prompting for Image Correction (NPC), an automated pipeline that improves alignment by identifying and applying negative prompts that suppress unintended content. We begin by analyzing cross-attention patterns to explain why both targeted negatives-those directly tied to the prompt's alignment error-and untargeted negatives-tokens unrelated to the prompt but present in the generated image-can enhance alignment. To discover useful negatives, NPC generates candidate prompts using a verifier-captioner-proposer framework and ranks them with a salient text-space score, enabling effective selection without requiring additional image synthesis. On GenEval++ and Imagine-Bench, NPC outperforms strong baselines, achieving 0.571 vs. 0.371 on GenEval++ and the best overall performance on Imagine-Bench. By guiding what not to generate, NPC provides a principled, fully automated route to stronger text-image alignment in diffusion models. Code is released at https://github.com/wiarae/NPC.

cs.CV cs.AI