What NOT to Do
Like this video? Get new free AI lessons on YouTube.
SubscribeSometimes telling AI what to avoid is as important as what to do. Negative prompting prevents common failure modes, tone drift, and unwanted output patterns.
Under the Hood: The "Pink Elephant" Paradox
Why do negative prompts sometimes fail or backfire? To understand this, look at how token attention works:
- Token Attention Activation: When you tell a human "Don't think of a pink elephant," they immediately visualize a pink elephant. LLMs work similarly. Including banned terms (e.g.
"Do NOT mention price or costs") introduces those exact tokens into the attention context, accidentally raising their activation probabilities. - Positive Reframing Beats Pure Negation: Whenever possible, pair a negative constraint with a positive target instruction. Instead of saying
"Don't use passive voice", state"Write exclusively in active, subject-first sentences."
Negative constraint vs positive reframing
| Criteria | Negative Constraint Only | Positively Reframed Instruction |
|---|---|---|
| Instruction | âDon't talk about prices or feesâ | âFocus exclusively on product features and valueâ |
| Attention tokens activated | [prices], [fees] | [features], [value] |
| Outcome | Risk: the model may accidentally mention cost concepts | Result: the probability distribution shifts cleanly away |
Negative Constraint Only
- Instruction
- âDon't talk about prices or feesâ
- Attention tokens activated
- [prices], [fees]
- Outcome
- Risk: the model may accidentally mention cost concepts
Positively Reframed Instruction
- Instruction
- âFocus exclusively on product features and valueâ
- Attention tokens activated
- [features], [value]
- Outcome
- Result: the probability distribution shifts cleanly away
The Power of "Don't"
Common Things to Exclude
Tone Problems
Content Problems
Format Problems
Style Problems
Exercise: Add Negative Constraints
Anti-Pattern Lists
Preventing Common AI Failures
Over-Helpfulness
Excessive Caveats
Verbose Padding
Exercise: Prevent AI Verbosity
Balanced Negative Prompting
Don't go overboard - too many "don'ts" can:
- Confuse priorities
- Make the AI overly cautious
- Leave unclear what TO do
Practice: Negative Prompt Design
Knowing what to exclude, and how to frame those exclusions positively, is half of writing great prompts.
Up next · Lesson 26 of 29
Code Generation Prompts
1 min read
25 of 29 lessons done

Ask Byte about this lesson
A private chat about this lesson. Byte has read the whole lesson, answers in seconds, and shows the section each answer comes from. Ask follow-ups in any language.
Questions & Answers
Public questions about this lesson. The AI Tutor answers right away in your language, the FreeAcademy team checks answers, and every learner can read them.

