← Master Index
Vol. 13 Module 13.2 Lecture

Negative Instructions

Prompt Writing Craft

How This Lesson Fits the Module & Volume

Positive instructions say what to do; negative instructions fence failure modes. Used well, they cut common bugs. Used poorly, they become a laundry list that the model ignores—or paradoxically highlights forbidden content. This lecture balances “do” and “don’t” after templates are in place.

Learning Objectives

By the end of this lesson, students should be able to:

  • Write negatives that target observed failure modes.
  • Prefer positive replacements when clearer than bans.
  • Avoid contradictory do/don’t pairs.
  • Limit negative lists to high-severity items.
  • Pair negatives with examples of correct behavior.
  • Test whether negatives actually reduce the failure.
Definition

Negative instructions are explicit prohibitions (“do not…”) that constrain disallowed content, behaviors, or formats. They complement positive task statements and are most effective when few, specific, and tied to real errors.

When Negatives Help

Use a negative when…Prefer a positive when…
A specific bad pattern keeps recurringYou can describe the desired pattern cleanly
Safety / legal lines must never be crossedStyle choices have many valid forms
Output must omit fields (no preamble)You can show the exact schema
Untrusted context may contain commandsFencing + “treat as data” already covers it

Before / After

Before (weak): endless don’ts, no positive target.

Don't be wrong. Don't be long. Don't be short. Don't use markdown. Don't use plain text. Don't mention competitors. Don't mention products. Don't apologize. Don't not apologize. Don't invent. Don't omit. Don't explain. Don't refuse.

After (strong): positive target + few high-value negatives.

## Task Write a 2-sentence status update for the incident channel. ## Positive target Sentence 1: what broke. Sentence 2: current mitigation. ## Do not - Do not invent root cause if unknown (say "investigating"). - Do not name customers or PII. - Do not use emoji. ## Output Plain text only, exactly two sentences.

Design Rules

Keep short

  • Top 3–7 bans
  • Severity first
  • Drop unused bans

Be precise

  • Name the pattern
  • Show a counterexample
  • Avoid vague “don’t be bad”

Resolve conflicts

  • Do vs don’t clashes
  • Use priority language
  • Re-test both sides
Common Misconception

“Listing every possible bad thing makes the model safe.” Long negative catalogs dilute attention and still miss novel failures. Prefer tight bans plus positive schemas, retrieval grounding, and code-side validators.

Knowledge Check

  1. Short Answer: What are negative instructions? Answer: Explicit prohibitions that ban disallowed behaviors or formats.
  2. True/False: Longer don’t lists always increase safety. Answer: False.
  3. Multiple Choice: Prefer positives when: (a) the desired pattern is clear, (b) you want contradictions, (c) eval is banned. Answer: (a).
  4. Short Answer: How many high-value bans should you keep roughly? Answer: About 3–7 (a short list).
  5. True/False: Negatives should target observed failure modes. Answer: True.
  6. Multiple Choice: “Do not invent facts” pairs well with: (a) refuse/ask rules, (b) deleting context, (c) raising temperature blindly. Answer: (a).
  7. Short Answer: Why pair negatives with good examples? Answer: To show the allowed alternative, not only the ban.
  8. Short Answer: What should you do if do and don’t conflict? Answer: Resolve with priority language and re-test.
  9. Multiple Choice: Code-side validators: (a) replace all prompting, (b) complement negatives for hard guarantees, (c) train embeddings. Answer: (b).
  10. True/False: Vague bans like “don’t be bad” are precise enough. Answer: False.

Key Takeaways

  • Use short, specific negatives tied to real failures.
  • Lead with positive targets whenever possible.
  • Resolve do/don’t conflicts explicitly.
  • Back hard rules with validators, not bans alone.
  • Next: Output Format Specification.
Trainer’s Guide

Hands-on idea: Trim a 20-line don’t list to five severity-ranked bans and measure format compliance.

Discussion prompt: Which negatives belong in the prompt vs only in post-processing filters?

Recap: Negatives fence errors; positives define success. Continue with Output Format Specification.