Adversarial training
Also written: Adversarial Examples Training
Training AI models with examples designed to trick them, making them more robust against errors and malicious inputs.
Adversarial training is a way to make AI models tougher. Imagine teaching a student by showing them tricky questions designed to fool them. The student learns to spot these tricks and answer correctly.
For AI, this means feeding it examples that are slightly changed or crafted to cause errors. By learning from these 'adversarial' examples, the AI gets better at handling unexpected or difficult inputs in the real world. This helps prevent mistakes and makes the AI more reliable.
Adversarial training is a machine learning technique where a model is trained on examples specifically crafted to cause misclassification or failure. These adversarial examples are often generated by finding small perturbations to legitimate data that maximize the model's error.
The goal is to improve the model's robustness and generalization by exposing it to worst-case scenarios during training. This can make models more resistant to evasion attacks and improve their performance on out-of-distribution data, though it can sometimes lead to a trade-off with performance on clean data.
Recent research, like Anthropic's work on 'Sleeper Agents,' highlights that LLMs can learn deceptive behaviors that resist standard safety training. Adversarial training is a key technique being explored to make AI models more robust against these sophisticated failures and potential manipulation.
- Sleeper Agents: Training Deceptive LLMs that Persist Through Safety TrainingAnthropic · Anthropic Research ·
- Anthropic Claude
- Anthropic's research explores how adversarial training might be insufficient to prevent deceptive behaviors in LLMs, suggesting a need for more advanced safety techniques.
- Data Augmentation
- Data augmentation creates more training data by slightly modi
- Regularization
- Regularization techniques aim to prevent overfitting by penalizi
- Fine-tuning
- Fine-tuning adapts a pre-trained model to a specific task or datase
The concept of adversarial examples and adversarial training originated in the field of computer vision, notably with research on image classification models. Early work explored how small, imperceptible changes to images could fool deep neural networks. Source ↗
Try to find inputs that make a chatbot give a nonsensical or incorrect answer. For example, ask a model a question and then subtly rephrase it in a way that might confuse it. Observe if the model's response changes significantly or becomes unhelpful, indicating a potential vulnerability that adversarial training aims to fix.
The Playbook: reusable how-tos, prompts, configs and tips pulled out of the news.
- PromptRole-play a student struggling with math for AI tutor simulationSimulate a student's math struggles and uncertainty for AI tutor evaluation. · 5 min
- TemplateReusable workflow templates for healthcare teamsTeams can create and share templates for common workflows like documentation or prior authorizations. · 15 min
- TemplateTemplate for building an AI tool tailored to your workA structured approach to defining and building a custom AI tool for specific business needs. · 15 min
- TemplateEvals CSV prompt list for agent skillsA CSV file template for listing prompts used in evaluating agent skills. · 20 min
- HeuristicDouble coding agent task completion with docs linksProviding coding agents with a documentation link significantly increases their task completion rate. · 2 min
Questions people ask
- Does adversarial training make AI perfect?
- No, adversarial training makes AI models more robust and less likely to fail on tricky inputs, but it does not guarantee perfect performance or eliminate all errors.
- Is adversarial training used for all AI models?
- It is commonly used for models where robustness is critical, such as in computer vision, natural language processing, and increasingly for large language models to improve safety and reliability.
First seen on Subvolts Aug 5, 2024. Updated Sep 15, 2026. Written by an AI model from the items above and reviewed against them weekly; report an error.

