The Research Report
The Gravity Well in Your Prompt: Why Saying "Not X" Guarantees X
How AI image classifiers turn negation into a feature, and what to do about it.
You type "a portrait, not sensual" into an image generator. You get something sensual. You try harder: "a modest portrait, absolutely no sensuality, keep it professional." The output is worse. More of what you didn't want. You add more negation. The model adds more of the thing.
You are not hallucinating. You are not bad at prompting. You have fallen into a semantic gravity well, and the harder you fight, the deeper you sink.
This is not a quirk of one model. It is a structural failure in how safety-filtered AI systems process language. The research now confirms it across multiple domains, from text generation to image classification to multimodal chat. Negation tokens do not subtract. They inject. The concept you deny becomes the concept the model sees. And once a safety refusal fires, it poisons the rest of your session.
Here is what is happening, why, and how to write prompts that escape the trap.
The Core Problem: Classifiers Read Images, Not Prompts
Most people assume that when you write "not sensual," the model reads those words and subtracts sensuality from its internal representation. That is not how it works.
Modern image generators use a two-stage pipeline. First, a text encoder (usually CLIP or a derivative) converts your prompt into a semantic vector. Second, a diffusion model generates pixels conditioned on that vector. The safety classifier sits in the middle. It evaluates the predicted visual composition from the semantic vector, not the literal text of your prompt.
CLIP was trained on image-text pairs from the internet. It learned to associate words with visual concepts. The word "sensual" maps to a specific region of CLIP's embedding space. The word "not" does not map to a region that subtracts sensuality. CLIP has no reliable representation of negation. Multiple papers published in 2025 and 2026 have confirmed this.
A CVPR 2025 paper from MIT and Oxford, "Vision-Language Models Do Not Understand Negation" (Alhamoud et al.), introduced NegBench, a benchmark spanning 79,000 examples across image, video, and medical datasets. The result: modern VLMs perform at chance level on negated queries. A separate paper from Lehigh University and IIT Jodhpur, "Learn 'No' to Say 'Yes' Better" (ECCV 2024), found that CLIP's text encoder processes "no" and "not" as additive semantic content rather than logical operators. The negation token activates the concept it modifies instead of suppressing it.
When you write "not sensual," CLIP encodes "not" and "sensual" as separate tokens. The "sensual" token activates the sensuality region of embedding space. The "not" token adds a small, noisy vector that does not cancel the first one. The combined embedding sits closer to "sensual" than an embedding without either token would. You have made the prompt more sensual by trying to make it less.
This is the gravity well. The forbidden concept has semantic mass. The negation cue has almost none. Your prompt falls toward the concept, not away from it.
The Mechanism: Two Failure Modes, One Result
A January 2026 paper titled "Semantic Gravity Wells: Why Negative Constraints Backfire" (Rana et al., arXiv:2601.08070) provides the most detailed mechanistic account of this phenomenon. The researchers studied Qwen2.5-7B-Instruct with 2,500 prompts and 40,000 samples. They found that violation probability follows a tight logistic function of semantic pressure:
p = σ(−2.40 + 2.27·P₀)
Where P₀ is the model's baseline probability of producing the forbidden token before any constraint is applied. At low semantic pressure (P₀ = 0.1), only 9% of samples violate the constraint. At high pressure (P₀ = 0.9), violations exceed 46%. The slope is steep and the fit is tight.
The paper identifies two distinct failure modes:
Priming failure (87.5% of violations). The instruction mentions the forbidden word. That mention activates the word's representation in the model's attention layers. The model attends more strongly to the forbidden word than to the negation cue ("do not"). The instruction intended to suppress the target instead primes it. This is the dominant failure mode. The very act of naming the thing you don't want makes the model want to produce it.
Override failure (12.5% of violations). In rarer cases, the model's late-layer feed-forward networks generate strong positive contributions toward the forbidden token. Layers 23 through 27 contribute +0.39 toward target probability in failures, compared to +0.10 in successes. These late-layer contributions overwhelm earlier suppression signals, even when suppression exists. Activation patching confirmed these layers are causally responsible. Replacing their activations flips the sign of constraint effects.
The practical takeaway: in nearly 9 out of 10 failures, the problem is not that the model ignores your constraint. The problem is that your constraint is the thing causing the failure. You named the concept. The model activated it. The negation cue was too weak to counteract the activation.
Why Image Prompts Are Worse Than Text Prompts
The gravity well effect applies to all language model interfaces. But image generation amplifies it for three reasons.
Reason 1: CLIP cannot process negation. The text encoder that bridges your prompt to the diffusion model has no reliable negation mechanism. Research from ACL 2024 ("How and Where Does CLIP Process Negation?" by Quantmeyer et al.) found that CLIP's negation processing is shallow and inconsistent. The model encodes "no X" as something closer to "X" than to the absence of "X." A December 2025 paper on medical imaging ("The Effect of Negation on CLIP in Medical Imaging") showed that negated captions in CLIP produce embeddings nearly identical to their affirmative counterparts. "No pneumothorax" and "pneumothorax" land in almost the same spot.
Reason 2: Safety classifiers evaluate predicted visual compositions. When a safety filter checks your prompt, it does not parse the text. It evaluates the semantic vector. If that vector lands near a blocked region (violence, nudity, sensuality), the filter triggers. Adding "not X" pushes your vector toward X. Your negation activates the safety filter you were trying to avoid.
Reason 3: Dedicated negative prompt fields work differently. Stable Diffusion and Flux support separate negative prompt inputs. These operate at the diffusion level, steering the model away from visual features during denoising. They do not rely on CLIP understanding negation. They use a different mathematical mechanism (classifier-free guidance with negative conditioning). But if you write negation inline in your main prompt, the CLIP encoder processes it, and the gravity well takes over. Chat-based image generators (ChatGPT, Gemini, most API tools) do not offer a separate negative prompt field. Every word goes through the same text encoder. You have no escape hatch.
The Confidence Asymmetry: Hedging Triggers Refusals
There is a second layer to this problem. It involves how safety classifiers weigh prompt language.
Research from the r/PromptEngineering community and confirmed by the OVERT benchmark (Over-Refusal Evaluation on Text-to-Image Models) shows that confident affirmative prompts clear safety filters more easily than hedging or negated prompts. This is counterintuitive but consistent.
A prompt like "a professional headshot of a woman in a business suit" sails through. The semantic vector is clear. It sits far from blocked regions. The safety classifier sees low risk.
A prompt like "a portrait of a woman, not sensual, modest clothing, SFW" does not sail through. The hedging language introduces tokens associated with blocked categories ("sensual," "SFW" as a meta-tag often used in NSFW contexts). The classifier detects proximity to blocked regions. The confidence of the prompt language also matters. Hedging signals uncertainty. Safety systems interpret uncertainty as risk.
The result: the prompt you wrote to be safe is the prompt most likely to be flagged as unsafe.
Context Poisoning: The Violation State
Once a safety refusal fires, the damage does not end with that one prompt. A January 2026 study from Course Correct Labs, "The Violation State: Safety State Persistence in a Multimodal Language Model Interface" (DeVilling, arXiv:2601.06049), documented a reproducible behavioral effect in ChatGPT's image generation.
The setup: a user uploads a copyrighted image and asks the model to remove the watermark. The model correctly refuses. What follows is the problem. For the rest of that conversation, harmless image prompts (kitchens, bedrooms, abstract patterns, coffee cups) keep getting blocked. Text and code requests still work. Only starting a new chat clears the state.
Across 40 sessions (30 contaminated, 10 control), contaminated threads showed 116 out of 120 image-generation refusals (96.67%). Control threads showed zero refusals. Fisher's exact test: p < 0.0001. The refusals do not decay over time. They survive rate limits and retries. The behavior looks like a binary session-level flag rather than a per-request judgment.
The model sometimes admits the prompts are safe and blames the earlier request chain. It cannot fix the state inside the session.
This is context poisoning. A single refusal leaves the conversation in a contaminated state that shuts down image generation as a whole. It is not specific to copyright. Any refusal that fires the safety system can trigger it. And negation-laden prompts, as we have seen, are the most likely prompts to trigger refusals.
The cycle feeds itself:
- You write a negated prompt to avoid a safety issue.
- The negation tokens activate the blocked concept in the classifier.
- The classifier refuses.
- The refusal poisons the session.
- All subsequent image prompts fail, even benign ones.
- You start a new chat and try again with a different negated prompt.
- Return to step 1.
The Evidence Stack
Here is what the research tells us, organized by finding:
Negation does not subtract. CLIP and similar text encoders process "not X" as additive content, not logical negation. Multiple papers confirm this across domains including general images, medical imaging, and video. (Alhamoud et al. 2025, Quantmeyer et al. 2024, Cai et al. 2025)
Negation primes the forbidden concept. In LLMs, 87.5% of negative constraint failures are priming failures. The model attends more to the forbidden word than to the negation cue. (Rana et al. 2026)
Violation probability is predictable. It follows a logistic function of semantic pressure. High-pressure contexts fail 5x more often than low-pressure ones. (Rana et al. 2026)
Safety classifiers evaluate vectors, not text. A prompt with "no nudity" lands closer to "nudity" in embedding space than a prompt with no nudity-related tokens at all. The classifier sees the proximity and may refuse.
Hedging increases refusal rates. Prompts that hedge or use safety meta-language ("SFW," "safe for work," "not explicit") are more likely to trigger safety filters than confident, affirmative prompts with no safety-adjacent tokens. (OVERT benchmark, 2025)
Refusals persist across sessions. A single safety refusal can contaminate an entire conversation, blocking all subsequent image generation with a 96.67% refusal rate. (DeVilling 2026)
The effect is not model-specific. While individual studies test specific models, the underlying mechanisms (CLIP negation blindness, semantic priming, session-level safety state) are architectural, not incidental. They apply across safety-filtered systems that use CLIP-family encoders and session-based safety logic.
How to Write Prompts That Escape the Gravity Well
The solution is not better negation. The solution is avoiding negation entirely. Here are concrete strategies.
1. Describe what you want, not what you don't want
Bad: "a portrait, not sensual, no revealing clothing, SFW"
Good: "a professional headshot of a woman wearing a tailored blazer and silk scarf"
The second prompt never activates the sensuality region of embedding space. It specifies what exists in the image. The safety classifier sees a semantic vector in professional business territory. No gravity well. No refusal.
2. Use concrete, specific nouns instead of abstract modifiers
Bad: "a modest dress"
Good: "a knee-length wool coat dress with a high collar"
"Modest" is an abstract modifier that carries contextual associations the classifier may interpret differently than you intend. "Knee-length wool coat dress with a high collar" is a concrete visual description. It maps to a specific, unambiguous region of embedding space.
3. Anchor your prompt with a genre or style reference
Bad: "a landscape, not dark or scary"
Good: "a sunlit pastoral landscape in the style of Constable, golden hour, rolling hills"
Genre and style references constrain the semantic vector to a well-defined region. "In the style of Constable" activates a cluster of visual features (pastoral, golden light, rolling countryside) that leaves no room for the model to drift toward "dark" or "scary."
4. Avoid safety meta-language
Never use these tokens in image prompts: SFW, NSFW, safe for work, not explicit, no nudity, family-friendly, PG-rated. These tokens are strongly associated with content-flagging contexts in CLIP's training data. They pull your embedding toward blocked regions regardless of your intent.
5. Use negative prompt fields when available
In Stable Diffusion, Flux, and similar diffusion models with separate negative prompt inputs, put your exclusions there. The negative prompt field operates at the diffusion level, not the text encoder level. It uses classifier-free guidance to steer away from visual features during denoising. It bypasses CLIP's negation blindness entirely. If you are using a chat-based generator with no negative prompt field, you must use strategies 1 through 4 instead.
6. Start a new session after any refusal
If you trigger a safety refusal, do not continue in the same conversation. Start a new chat. The violation state research shows that a single refusal can contaminate the entire session with a 96.67% image refusal rate. No amount of prompt engineering within that session will fix it. The session is poisoned. Move on.
7. Reduce semantic pressure
The logistic model shows that high semantic pressure (P₀ > 0.7) makes violations nearly inevitable. Semantic pressure is the model's baseline probability of producing the forbidden concept. You can reduce it by changing the context. If you are generating a portrait and keep getting sensuality, change the context from "portrait" to "passport photo" or "corporate ID badge." The context shift reduces the baseline probability of the unwanted concept.
8. Rephrase at the concept level, not the word level
If "a woman in a dress" produces unwanted results, do not add "not revealing." Change the concept. "A woman in a winter parka and hiking boots" changes the entire semantic context. You are not negating. You are replacing.
Why This Matters Beyond Image Generation
The gravity well is not just an image prompting problem. It applies to any domain where a safety-filtered system processes natural language.
Content moderation prompts. "Flag hate speech but not political criticism" primes the model to flag political criticism. The word "criticism" activates the concept. The negation does not cancel it.
Medical AI. "No pneumothorax" in a radiology report may be processed as "pneumothorax" by CLIP-based systems. This is not hypothetical. The December 2025 paper on CLIP in medical imaging demonstrated exactly this. A negated finding can be treated as a positive finding by the classifier.
Code generation. "Write a function that does not use recursion" primes the model to think about recursion. The code is more likely to include recursion than if you had written "write an iterative function."
Customer service bots. "Do not mention the competitor" primes the bot to mention the competitor. The brand name activates its own representation.
The pattern is the same across domains. Naming a forbidden concept activates it. Negation tokens are weak. The forbidden concept is heavy. Gravity wins.
The Deeper Lesson
The gravity well reveals something fundamental about how these systems work. They are not reasoning engines that process logical operators. They are pattern matchers that activate representations. The word "not" is a pattern. The word "sensual" is a pattern. The model activates both. It has no reliable mechanism for treating "not" as an operator that inverts the second pattern.
This is not a bug. It is a property of the architecture. CLIP was trained on internet image-text pairs where "not" rarely reverses the visual content of an image. A caption that says "no cats in this image" still activates the cat region of the model's representation because the word "cat" appears. The visual content may not contain cats, but the text does. CLIP learned text-to-visual correlations, not logical negation.
Fixing this at the architecture level requires training models on negation-aware data. The TNG-CLIP paper (Cai et al., 2025) proposed generating synthetic training data with negated captions to teach CLIP the difference between "cat" and "no cat." NegBench showed that fine-tuning on negated data can improve recall by 10% and accuracy by 28%. But these are incremental improvements. No current model fully understands negation.
Until architecture-level fixes arrive, the burden falls on prompt design. The rule is simple: never name what you don't want. Describe what you do want. Be specific. Be concrete. Let the model's pattern matching work for you, not against you.
References
- Alhamoud, K. et al. "Vision-Language Models Do Not Understand Negation." CVPR 2025. arXiv:2501.09425. Project: NegBench.github.io
- Rana, S. et al. "Semantic Gravity Wells: Why Negative Constraints Backfire." January 2026. arXiv:2601.08070. Code: github.com/gut-puncture/Semantic-Gravity-RP
- DeVilling, B. "The Violation State: Safety State Persistence in a Multimodal Language Model Interface." January 2026. arXiv:2601.06049. coursecorrectlabs.com/studies/violation-state
- Quantmeyer, V., Mosteiro, P., Gatt, A. "How and Where Does CLIP Process Negation?" ACL ALVR Workshop 2024.
- Cai, Y. et al. "TNG-CLIP: Training-Time Negation Data Generation for Negation Awareness of CLIP." 2025. arXiv:2505.18434.
- Cheng, Z. et al. "OVERT: A Benchmark for Over-Refusal Evaluation on Text-to-Image Models." 2025.
- Alhamoud, K. et al. "Learn 'No' to Say 'Yes' Better: Improving Vision-Language Models via Negations." ECCV 2024. arXiv:2403.20312.
- Xiao, J. et al. "Not Just What's There: Enabling CLIP to Comprehend Negated Visual Descriptions Without Fine-tuning." AAAI 2026. arXiv:2602.21035.
- Ban, Y. et al. "Understanding the Impact of Negative Prompts: When and How Do They Take Effect?" 2024. arXiv:2406.02965.