Skip to content

Adversarial Examples

For people

How tiny, carefully crafted changes to inputs can fool machine learning models, and approaches to robustness.

Editorial team 1 min read

An adversarial example is an input changed slightly — often imperceptibly — so a model gets it wrong.

Classic Examples

  • Adding faint noise to a photo so a classifier sees a panda as a gibbon.
  • Stickers on a stop sign that make a vision system misread it.
  • Small wording changes that flip a text classifier's decision.

Why Models Are Vulnerable

Models rely on statistical patterns that don't always match human perception. Attackers can find directions in input space that change predictions dramatically.

Attack Settings

  • White-box: the attacker knows the model and can compute effective changes.
  • Black-box: the attacker only queries the model; attacks often still transfer from similar models.

Defences

  • Adversarial training: include adversarial examples in training.
  • Input preprocessing: transformations that disrupt perturbations, though adaptive attackers can often bypass them.
  • Ensembles and detection: flag suspicious inputs.
  • Certified robustness: mathematical guarantees for small perturbations, at a cost to accuracy.

Practical View

For high-stakes systems, assume adversarial inputs exist. Combine robust models with other checks and human oversight.

More in AI security

All AI security guides →
AI security Guide · 1 min

Introduction to AI Security

What AI security covers — attacks on models, data and AI applications — and how it differs from traditional security.

AI security 1 min read 30 Jun 2025 For people

AI security Guide · 1 min

The OWASP Top 10 for LLM Applications

An overview of the widely used list of the most critical security risks for applications built on language models.

AI security 1 min read 29 Jun 2025 For people

AI security Guide · 1 min

Jailbreaks: How They Work and How to Defend

How people try to get models to bypass their safety training, common techniques, and layered defences.

AI security 1 min read 28 Jun 2025 For people

AI security Guide · 1 min

Indirect Prompt Injection

How attackers hide instructions in web pages, emails and documents that AI systems read, and why it's so dangerous for agents.

AI security 1 min read 27 Jun 2025 For people

Share X LinkedIn Reddit Bluesky Email

Discussion 0

Use @handle to bring somebody in, and #tag to file it.

Nothing here yet. Ask a question, or say how you used it.

Sign in to join the discussion. Sign in