Introduction
Artificial intelligence (AI) learns from data. That includes not only examples of correct behavior, but also examples of mistakes and unsafe choices. Showing AI “what not to do” is essential for building systems that are reliable, fair, and aligned with human expectations.
- Why examples of errors matter: the basic idea
- How “what not to do” is used in AI training
- Mechanisms: How negative examples change learning
- Types of negative examples and when to use them
- Practical benefits: reliability, fairness, and user trust
- Case studies and real-world contexts
- Practical recommendations for builders and users
- Conclusion
Why examples of errors matter: the basic idea
Most modern AI systems learn patterns from examples. Supervised learning, a common approach, trains a model by showing many input-output pairs and adjusting the model so its outputs match the desired ones. If a model only ever sees correct examples, it may generalize poorly when faced with ambiguous or novel inputs. Examples of wrong answers, unsafe outputs, or mislabeled cases teach the system to recognize and avoid those outcomes.
In plain terms, learning to avoid mistakes is as important as learning to produce good results. Humans often learn by seeing errors and their consequences; AI benefits from structured, labeled examples of undesired behavior in similar ways.
How “what not to do” is used in AI training
There are several concrete ways that examples of undesired behavior enter AI training workflows:
Negative examples in supervised datasets: These are inputs paired with labels that indicate a particular output is wrong. For instance, in image recognition, showing an image of a cat labeled “not a dog” helps the model distinguish similar animals.
Adversarial examples: Researchers create slightly modified inputs that fool models into making mistakes. Training on these adversarial examples hardens models against subtle attacks and reduces fragile failure modes.
Contrastive learning and ranking losses: Instead of only teaching the model what is correct, training can present both correct and incorrect candidates and tell the model which is better. This helps in tasks like search ranking or recommendation where relative ordering matters.
Reinforcement learning with negative rewards: In settings where an AI explores actions, giving negative feedback for harmful or undesired actions helps it learn to avoid those behaviors over time.
Safety fine-tuning and human feedback: For generative models (like chatbots), human reviewers rate model outputs. Examples flagged as unacceptable (biased, unsafe, or irrelevant) are used to fine-tune the model to reduce similar outputs.
Why avoiding only-good-data is risky
Training only on ideal, sanitized examples creates blind spots. Models may overfit to narrow conditions and fail when real-world inputs are messier. Some common risks include:
Overconfidence: A model may confidently give wrong answers when faced with unfamiliar inputs because it never learned uncertainty in those regions.
Bias amplification: If a dataset contains subtle biased patterns and no explicit negative examples or counterexamples, an AI can learn and amplify those biases.
Fragile behavior: Models trained without adversarial or negative cases can be easily tricked by small, unexpected perturbations.
Unsafe generalization: In safety-critical domains, a model that only sees correct procedures may not recognize or recover from mistakes, which could lead to unsafe actions.
Mechanisms: How negative examples change learning
Negative examples influence AI models through the loss functions and training signals used during learning. The loss function measures how far the model’s output is from the desired outcome, and negative examples increase that distance when the model behaves incorrectly. This produces gradients (directions for change) that steer the model away from mistakes.
Contrastive losses, for example, explicitly reward the model for placing correct items closer in representation space and pushing incorrect items farther away. That creates internal distinctions that make the model less likely to confuse categories.
Adversarial training augments the training set with inputs purposely designed to be confusing. By minimizing loss on these difficult cases, the model learns more robust decision boundaries.
Example: teaching a chatbot what not to say
Consider a conversational AI. Training with only helpful, polite responses might make the chatbot produce fine replies in many situations. But if it never sees examples of harmful, biased, or disallowed content labeled as such, it may reproduce similar content when prompted provocatively.
To prevent this, developers collect examples of undesired replies (hate speech, medical advice that requires a professional, personal data leakage). Human reviewers flag and label these outputs. The model is then fine-tuned to assign lower preference to those replies, or safety filters are trained to intercept them.
Types of negative examples and when to use them
Not all “what not to do” examples are the same. Choosing the right type depends on the task and the risks involved.
Simple mislabels and edge cases: Useful for classification tasks where certain rare examples cause confusion. Including them prevents systematic misclassification.
Adversarial inputs: Valuable for models exposed to hostile or noisy environments, such as vision systems in security settings or content filters targeted by users trying to circumvent rules.
Counterfactuals and counterexamples: Intentionally constructed cases that contradict typical correlations in the data. These help avoid shortcut learning, where a model relies on an irrelevant cue.
Human-judged unacceptable outputs: Critical for generative and dialog systems to learn social norms, safety, and compliance with content guidelines.
Balancing positive and negative examples
Too many negative examples or poorly constructed negatives can harm learning. If negative cases dominate, the model might become overly conservative and refuse reasonable outputs. Conversely, too few negatives leave it vulnerable. The right balance depends on:
Task tolerance for error: In medical triage, avoiding false negatives may be critical; in a casual recommendation system, occasional mistakes are less severe.
Frequency of harmful inputs in deployment: If adversarial inputs are common, invest more in adversarial and robustness training.
Availability of labeled data: Negative examples often require careful human labeling, which can be expensive, so teams prioritize the most consequential failure modes.
Practical benefits: reliability, fairness, and user trust
Incorporating examples of what not to do produces several tangible benefits:
Greater reliability: Models that have seen difficult and incorrect cases are less likely to fail unexpectedly in production.
Improved fairness: Negative examples that expose biased or discriminatory outputs allow teams to correct and reduce those biases.
Safety and compliance: Systems trained with human-reviewed unacceptable outputs better respect safety and content policies.
User trust: When a system consistently avoids obvious mistakes and harmful replies, people are more likely to trust and adopt it.
Limitations and challenges
Collecting high-quality negative examples is resource intensive. Human review, careful curation, and disagreement resolution are often necessary to create reliable labels.
Negative examples may inadvertently encode cultural or normative judgments that differ across regions. What counts as unacceptable in one context may be acceptable in another. Developers must account for this and avoid imposing one cultural standard worldwide without consideration.
There is no perfect coverage: It is impossible to train on every conceivable bad input. Ongoing monitoring and updates are required to catch new failure modes.
Case studies and real-world contexts
Vision systems: Self-driving car systems undergo adversarial and negative-case training to handle poor lighting, occlusions, and unusual road users. Negative examples teach models to avoid misclassifying pedestrians or signs.
Content moderation: Social media platforms use examples of forbidden content to train classifiers and filters. Human-labeled negative examples help the system detect harassment, graphic imagery, or coordinated disinformation patterns.
Medical AI: Diagnostic models include examples of ambiguous or misleading scans to reduce the risk of false reassurance or missed diagnoses. Negative cases often trigger flags for human clinician review rather than automated action.
Ethical and governance considerations
Designing negative-example datasets responsibly requires care. Key considerations include:
Transparency about what counts as undesirable and why, to build user understanding and oversight.
Inclusive labeling practices that involve diverse perspectives to reduce cultural bias in what is considered harmful.
Data minimization and privacy: Negative examples may sometimes include sensitive content; teams must follow privacy best practices and legal requirements.
Practical recommendations for builders and users
For developers:
Identify likely failure modes early and collect targeted negative examples for those scenarios.
Use a mix of adversarial, human-labeled, and counterfactual negatives to cover different kinds of errors.
Continuously monitor deployed systems and add new negative examples as new problems appear.
For non-technical stakeholders:
Ask vendors how they collect and use negative examples to improve safety and fairness.
Understand that no system is perfect; responsible deployment includes human oversight and escalation paths when the AI shows uncertain or risky behavior.
Future directions
Research continues into methods that reduce the need for explicit negative examples, such as self-supervised learning, better uncertainty estimation, and hybrid human-AI review systems. However, practical deployments will likely continue to rely on carefully curated negative examples for the foreseeable future, because explicit examples of what not to do provide direct, interpretable signals for avoiding harmful outcomes.
Conclusion
Examples of what not to do are a crucial part of AI training. They help models recognize risky or incorrect behavior, improve robustness, reduce bias, and align outputs with human expectations. Collecting and using such examples responsibly — balancing quantity, diversity, and cultural context — makes AI systems safer and more trustworthy for real-world use.

