What Is Adversarial Training?

Adversarial Training Explainer

Adversarial training improves robustness by including deliberately difficult or perturbed examples during learning. The training process repeatedly creates examples that try to fool the current model and then updates the model to handle them correctly.

A common formulation searches for the strongest allowed perturbation around each training example and minimizes the resulting worst-case loss. The allowed size, distance measure, and attack method define the threat model.

This approach can substantially improve resistance to attacks similar to those used in training. It is not universal protection: robustness may fall against a different perturbation type, larger change, adaptive attacker, or entirely different attack surface.

Adversarial training is computationally expensive and can reduce clean-input accuracy. Evaluation should use strong independent attacks, disclose the threat model, and test for gradient masking rather than relying on one familiar attack.

Adversarial training teaches a model with deliberately challenging inputs so it becomes less vulnerable to similar perturbations at deployment.

Key terms include adversarial example, perturbation, worst-case loss, threat model, robust accuracy, adaptive attacker, gradient masking and evaluation.

An attack method searches for inputs that expose the model's current weakness.

The model is updated to reduce error on those challenging examples.

Protection against one perturbation rule does not cover every possible attack.

Independent adaptive testing is needed to measure what the defense actually withstands.

Explore more "Explainers"

Discover additional explainers across politics, science, business, technology, and other fields. Each explainer breaks down a complex idea into clear, everyday language—helping you better understand how major concepts, systems, and debates shape the world around us.