Skip to content

Negative Prompt

You might say

“Every time I generate a character, I paste 50 negative keywords like "ugly, extra fingers, worst quality", but the face still looks plastic and distorted. How do negative prompts actually work?”

Describe it to an agent this way — far better than saying “make it nicer”.
Also called
Negative guidanceUnconditional prompt steeringNegative constraints

PROMPT ENGINEERING

negative-prompt · Negative Prompt

Compare schematic denoising paths with and without explicit exclusions, holding the positive intent constant. This is conditioning during generation—not playback speed or a repair pass afterward.

Mechanism sketch · Not a model benchmark Held constant: the positive generation intent

Without a negative condition

No explicit list of attributes to avoid.

Blur attribute region
Extra-limb attribute region
Initial latentCandidate · Inspect before use

With a negative condition

Exclusion targets are explicit; syntax support depends on the model.

Blur attribute region(blurry:1.2)
Extra-limb attribute region(extra limbs:1.3)
Initial latentCandidate · Inspect before use
latent denoising trajectory · Process order
StartIntermediateFinish

Ticks show process order, not video time. Path curvature and animation duration do not encode weight magnitude.

Three things you can check

  • Blur: the lower attribute region repeats the table entry (blurry:1.2) exactly.
  • Extra limbs: the lower attribute region repeats the table entry (extra limbs:1.3) exactly.
  • Stage: both paths unfold along the denoising axis, with no repair stage appended after the candidate.
Inputs and point of application
QuantityValue / source wordingUnitInterpretation
Blur exclusion(blurry:1.2)Syntax weight · DimensionlessSyntax reproduced from the entry, not a proportional reduction in blur.
Extra-limb exclusion(extra limbs:1.3)Syntax weight · DimensionlessSyntax reproduced from the entry, not anatomical accuracy or a success probability.
Application stagelatent denoising trajectoryProcess stageThe exclusion conditions latent denoising rather than editing the finished result.

With reduced motion, complete static paths remain visible alongside exclusion labels, process ticks, and the candidate endpoints.

Not a positive prompt: a positive prompt specifies what to generate; a negative prompt specifies what to steer away from. Neither is a hard guarantee about the final image.

A negative prompt is an explicit instruction set telling a generative diffusion model what visual attributes, styles, or artifacts to steer away from during the latent denoising trajectory.

Rather than describing what should appear in the frame, a negative prompt defines an unwanted semantic subspace. It establishes a repulsive vector in the text-conditioning latent space, pushing generation away from specific defects without cluttering positive descriptions.

Why it works

Modern image and video diffusion models generate samples by iteratively removing predicted noise from a latent representation. In standard Classifier-Free Guidance (CFG), the model evaluates two unconditional and conditional predictions at each sampling step tt: the unconditional estimate ϵθ(xt,∅)\epsilon_\theta(x_t, \varnothing) (conditioned on an empty string or null token) and the positive prompt estimate ϵθ(xt,cpos)\epsilon_\theta(x_t, c_{pos}).

When you specify a negative prompt cnegc_{neg}, the system substitutes the null token ∅\varnothing with the negative prompt’s text embedding vector:

ϵ~θ(xt,cpos,cneg)=ϵθ(xt,cneg)+s⋅(ϵθ(xt,cpos)−ϵθ(xt,cneg))\tilde{\epsilon}_\theta(x_t, c_{pos}, c_{neg}) = \epsilon_\theta(x_t, c_{neg}) + s \cdot \left(\epsilon_\theta(x_t, c_{pos}) - \epsilon_\theta(x_t, c_{neg})\right)

In practical engineering terms, this formula boils down to a push-and-pull vector trajectory across latent space:

Steered Denoising Direction = Negative Baseline + CFG Multiplier × (Positive Target - Negative Baseline)

  • Standard diffusion (no negative prompt): The anchor is an empty null token (unconditional ambient noise), so the model merely pulls latent representations toward the positive conditioning.
  • With a negative prompt: The anchor is anchored to unwanted semantic clusters (such as anatomical distortion or plastic textures). The vector difference (ϵθ(xt,cpos)−ϵθ(xt,cneg))(\epsilon_\theta(x_t, c_{pos}) - \epsilon_\theta(x_t, c_{neg})) acts as an explicit directional vector pointing away from defects toward desired attributes.
  • Guidance scale ss (CFG): Typically configured around CFG scale 6.0–8.0. It scales that difference vector at every denoising step, penalizing proximity to cnegc_{neg} in the high-dimensional CLIP text embedding space and aggressively accelerating convergence toward cposc_{pos}.

Negative prompting operates as geometric vector repulsion across the diffusion trajectory. If cnegc_{neg} contains a concept such as “monochrome”, the model steers intermediate latents away from low-saturation regions. Because the text encoder maps words into a shared semantic manifold, token weights such as (blurry:1.2) apply an asymmetric scaling factor to specific vector components, intensifying the repulsion along selected dimensions without altering the global guidance baseline.

When to use it

  • Eliminating persistent structural defects. When models default to unwanted anatomical distortions, warped limbs, or unwanted text watermarks across seeds.
  • Tuning color temperature and palette bias. When a model insists on muddy sepia or excessive green casts, placing “yellow tint, warm color cast” in the negative prompt cleanly shifts the white balance without overloading the positive prompt.
  • Isolating single subjects. When prompting for a solo character in a bustling street, adding “crowd, pedestrians, extra people” prevents the latent initialization from seeding multiple human silhouettes.
  • Stripping synthetic digital render styles. When realistic photographic textures are desired, negating “3D render, CGI, glossy plastic, smooth cartoon” strips out artificial specular highlights.

Pitfalls

  • The universal negative garbage dump. Pasting a boilerplate block of 40 adjectives (“ugly, worst quality, low quality, normal quality, blurry, jpeg artifacts”) degrades output fidelity. CLIP models allocate a fixed budget of 77 tokens per chunk. Flooding this window with generic buzzwords dilutes attention, flattens dynamic range, and frequently causes hyper-smooth “wax doll” skin.
  • Negating absent concepts and color bleeding. Inserting “red” into the negative prompt to remove an unwanted jacket often causes the complementary color (cyan or vivid green) to bleed into skin tones and shadows. Repulsion operates along bipolar semantic axes; pushing away from one hue inevitably propels the latent toward its visual opposite.
  • Overdriving the guidance scale. Setting CFG > 12.0 alongside heavy negative constraints causes numerical latent divergence. The vector difference blows past the VAE decoder’s dynamic range, resulting in posterized edges, scorched contrast, and dark high-frequency halos around subjects.
  • Negating scene fundamentals. Adding “shadows”, “darkness”, or “ground” to a daylight landscape strips away vital spatial anchoring cues. The sampler compensates by generating unnatural flat lighting or ungrounded floating geometry.
  • Cross-tool syntax misconceptions. Enclosing terms in attention parentheses like (extra limbs:1.3) works in WebUI and ComfyUI for Stable Diffusion, but video foundation models like Runway Gen-3 or Kling AI often lack negative prompt fields or parse punctuation literally as plain text.

Model-specific prompts

Stable Diffusion / SDXL (ComfyUI & WebUI)

Positive:
A portrait of a weathered sailor at dusk, sea spray on woolen coat, 85mm lens, f/2.8, natural skin pores, rim lighting, 35mm film grain.

Negative:
(deformed iris, cross-eyed:1.2), smooth plastic skin, 3D render, airbrushed, cartoon, oversaturated, high-contrast blowout, watermark, signature.

Video Workflows (Kling AI / Runway)

Positive:
Medium tracking shot of an elderly sailor adjusting a brass compass on deck, salt spray in air, overcast morning, cinematic 35mm film texture.

Negative (Parameters / Exclusions):
Morphing hands, flickering light, static framing, distorted architecture, digital noise, extra limbs, cartoon illustration.

Negative prompts refine output boundaries, but they cannot rescue an unstructured baseline; establish a clean hierarchy first with prompt-structure. When generating sequential shots, negative steering must be calibrated carefully to preserve character-consistency without washing out colors, and severe contrast defects should be addressed during a dedicated color-grading-pass rather than by over-tightening negative tokens.

Sources

  1. Jonathan Ho & Tim Salimans, Classifier-Free Diffusion Guidance, NeurIPS 2021 Workshop — https://arxiv.org/abs/2207.12598
  2. Alec Radford et al., Learning Transferable Visual Models From Natural Language Supervision (CLIP), 2021 — https://arxiv.org/abs/2103.00020
  3. Robin Rombach et al., High-Resolution Image Synthesis with Latent Diffusion Models (Stable Diffusion), CVPR 2022 — https://arxiv.org/abs/2112.10752
  4. Stability AI, Stable Diffusion Prompt Engineering & Parameter Reference Guide

Quick check

Pick the answer you think fits best and see the explanation instantly. Your answers stay in this browser.

Pick one — it grades instantly

How does a diffusion model calculate the denoising direction when a negative prompt is provided?

Selecting grades it — no submit