Introduction
Artificial intelligence systems learn patterns from data. While people often focus on examples of what an AI should do, examples of what not to do are equally important. This article explains why negative examples matter, how they are used, and what trade-offs and safeguards are involved when training safer, more reliable AI.
- What we mean by “examples of what not to do”
- Why negative examples matter: core reasons
- How negative examples are used in practice
- Concrete examples of negative examples and their effects
- Mechanisms: how negative examples change model behavior
- Limitations and trade-offs
- Designing effective negative-example datasets
- Ethical and practical safeguards
- Common misconceptions
- Applications where negative examples are especially valuable
- Practical tips for organizations building models
- Future directions
- Conclusion
What we mean by “examples of what not to do”
In AI training, “examples of what not to do” are labeled cases showing undesirable behavior, errors, or inappropriate outputs. They can be explicit negative samples (inputs paired with rejected outputs), annotations that mark parts of data as harmful or low-quality, or instructions that steer a model away from certain responses.
These examples contrast with positive training examples, which show the correct or desired mapping from inputs to outputs. Negative examples help the model learn boundaries and constraints rather than only learning what passes as normal.
Why negative examples matter: core reasons
Negative examples improve safety and alignment. Without explicit signals about unacceptable outputs, a model may reproduce biased, unsafe, or irrelevant content it saw in training data. Negative examples tell the model where to draw lines.
They reduce unwanted generalization. Models generalize from patterns; if training data contains noisy or harmful patterns, the model may reproduce them unless shown counterexamples that mark those patterns as incorrect.
They enable more precise behavior control. When developers want a model to refuse certain requests, avoid particular styles, or prefer factual accuracy, negative examples show the model not only what to do but what to avoid.
They support robust evaluation. Comparing a model’s outputs against negative examples provides concrete tests for whether it still makes known mistakes.
How negative examples are used in practice
Supervised fine-tuning: Developers collect pairs of inputs and desired outputs as well as inputs with rejected or corrected outputs. During training, the model is optimized to favor the desired responses and disfavor the rejected ones.
Reinforcement learning from human feedback (RLHF): Human evaluators rank multiple outputs for the same prompt, including low-quality or harmful responses. The reward model learns to assign lower scores to undesirable outputs, guiding the AI toward preferred behavior.
Data filtering and labeling: Large datasets often contain problematic text. Annotators mark segments as harmful, biased, or irrelevant, and these labels inform which examples are excluded or downweighted during training.
Instruction tuning and rule-based prompts: Developers give explicit instructions that include prohibitions (for example, “Do not provide medical diagnoses”). Models are trained on many such instructions so they learn to follow both positive and negative directives.
Concrete examples of negative examples and their effects
Example: Hate speech avoidance. If a training set contains slurs, simply removing them may not be enough; annotators provide examples of how similar phrasing can create harm and include corrected, neutral alternatives. The model learns to prefer neutral terms and avoid replicating harmful language.
Example: Avoiding hallucinations. For a factual assistant, negative examples include prompts with confidently incorrect answers paired with corrected, evidence-based responses. This helps the model recognize signals that tend to produce hallucinations and choose safer replies instead.
Example: Refusing dangerous advice. For safety, developers include scenarios where the correct action is to refuse to provide instructions (for example, regarding illegal activities or self-harm). The model learns refusal patterns and polite ways to redirect the user.
Mechanisms: how negative examples change model behavior
Gradient updates and loss functions: During training, negative examples increase the penalty (loss) when the model produces an undesirable output. The model’s parameters are adjusted to reduce the likelihood of such outputs in the future.
Reward shaping in RLHF: Negative examples affect the reward model’s judgment. Outputs similar to rejected examples receive lower rewards, which guides the policy toward higher-reward (preferred) behaviors.
Representation learning: By contrasting good and bad examples, models learn internal representations that separate acceptable and unacceptable behaviors. This separation makes it easier for the model to generalize the refusal or correction to new, unseen inputs.
Limitations and trade-offs
Imperfect coverage: It’s impossible to list every harmful or incorrect response. Negative examples teach the model about known problems but cannot anticipate every future scenario.
Over-reliance and false negatives: If negative examples are too strict or biased, the model may over-censor harmless content or refuse legitimate queries. Balancing safety with utility requires careful curation and iterative testing.
Context sensitivity: What is undesirable in one context may be acceptable in another. Annotators and policies must capture nuance; otherwise, the model may misapply prohibitions.
Cat-and-mouse problem: Bad actors may intentionally craft inputs that circumvent learned safeguards. Negative examples raise the barrier but do not make models invulnerable to misuse.
Designing effective negative-example datasets
Label quality matters: Use trained annotators and clear annotation guidelines. Ambiguous or inconsistent labels confuse the model.
Diversity and representativeness: Include diverse examples of how undesirable behavior can appear across phrasing, languages, and cultural contexts so the model learns broader patterns.
Include corrected alternatives: Pairing negative examples with improved versions (showing how to respond instead) teaches the model not only what to avoid but what to do instead.
Iterative feedback loops: Monitor model outputs after deployment, collect new negative examples from real-world failures, and retrain. Continuous improvement reduces repeat mistakes.
Ethical and practical safeguards
Transparency and documentation: Document why certain examples are labeled negative and what policies guided those decisions. Clear documentation helps users understand model behavior and reduces reputational risk.
Human oversight: Keep humans in the loop for high-risk use cases. Negative-example training reduces risk but cannot replace human judgment where decisions have serious consequences.
Global and cultural sensitivity: Negative labels should reflect varied cultural norms and legal contexts. What is offensive or harmful differs by region; datasets should consider this diversity or explicitly limit the intended scope.
Auditability and testing: Regularly audit models using benchmark datasets and adversarial tests. Independent evaluation teams can help detect blind spots that internal teams might miss.
Common misconceptions
“Negative examples only tell the model what not to do.” In practice, the most effective negative examples are paired with positive alternatives. Showing both sides accelerates learning and improves model usefulness.
“More negative examples always make models safer.” Quantity helps, but quality and balance matter. Overweighting negative examples can decrease model helpfulness or produce excessive refusals.
“Negative examples make models perfect.” They reduce known failures but do not eliminate unpredictable errors, biases, or vulnerabilities entirely.
Applications where negative examples are especially valuable
Content moderation: Training classifiers to detect and block disallowed content relies heavily on labeled negative examples (e.g., examples of harassment, explicit content, or misinformation).
Customer support: Negative examples of poor responses (rude, incorrect, or unhelpful replies) teach assistant models to prioritize clarity, politeness, and accuracy.
Healthcare and legal assistants: In sensitive domains, negative examples help ensure the model avoids giving definite diagnoses or legal advice and instead provides safe, general information and referrals to professionals.
Autonomous systems: For robots or self-driving systems, negative examples of unsafe actions (near-misses, collisions, or illegal maneuvers) inform safety constraints and emergency behaviors.
Practical tips for organizations building models
Start with a clear policy: Define unacceptable behaviors and create annotation guidelines before collecting negative examples so labels are consistent.
Balance with positive examples: Always pair negative cases with good alternatives to teach constructive replacements for prohibited behavior.
Test across scenarios: Evaluate on diverse prompts and languages to find gaps where negative examples did not generalize.
Plan for updates: Treat negative-example datasets as living artifacts that evolve with real-world use and new kinds of failures.
Future directions
Automated adversarial generation: Research explores using model-guided techniques to produce challenging negative examples that human annotators might miss, increasing training robustness.
Better reward models and alignment methods: Advances in reward learning aim to make the distinction between acceptable and unacceptable outputs clearer and more stable across contexts.
Cross-cultural annotation frameworks: Developing standardized ways to represent regional norms and legal constraints can make negative-example training more globally appropriate.
Conclusion
Examples of what not to do are a fundamental part of training AI systems that are safe, reliable, and useful. They help models learn boundaries, avoid repeating harmful patterns, and prefer better alternatives. Because negative examples have limits, they work best when combined with high-quality positive data, clear policies, human oversight, and ongoing evaluation. Thoughtful use of negative examples reduces many common risks of AI while preserving usefulness for real-world tasks.

