O&O ConsultingBook a free call

Home / Insights / AI Risk and Governance

Adversarial Examples: Fooling Machines With Tiny Changes

Inputs crafted to mislead a model reveal how differently it perceives the world.

O&O Consulting · · 2 min read

A robot, representing machine perception

In 2013 researchers reported something unsettling: adding a perturbation too slight for people to notice could change a network's classification completely.

How it arises

A model's decision depends on many inputs at once. By nudging each pixel slightly in the direction that most increases the error, an attacker adds up thousands of tiny effects into a large one. Goodfellow and colleagues described a fast method of this kind and argued that the largely linear behaviour of networks in high dimensions helps explain the vulnerability.

How an adversarial example worksIllustrative diagram, not data
Correctly recognised imageAdd a carefully chosen small changeLooks the same to a personModel gives a confident wrong answer
Correctly recognised imageAdd a carefully chosen smallchangeLooks the same to a personModel gives a confident wronganswer

Diagram by O&O Consulting.

Beyond the screen

Researchers showed that stickers placed on a stop sign could cause misclassification under varied viewing conditions. Examples crafted against one model often fool another, so keeping a model secret is not a complete defence.

Defences

Adversarial training includes attacked examples during training and is among the more reliable approaches, at a cost in computation and sometimes in accuracy on clean inputs. Many other proposed defences were later broken by stronger attacks adapted to them. Certified methods offer guarantees within a specified bound, usually for small perturbations.

Threat modelling

Robustness is meaningful only against a stated attacker: what can they change, what do they know, and what do they gain? A spam filter faces constant adaptive adversaries. A system sorting parts on a closed line faces mainly accidents of lighting and dirt.

System-level protection

Combine independent signals, apply sanity rules, limit repeated probing, log unusual inputs and keep a person involved where an error matters. Do not let a single model's output trigger an irreversible action.

Limitations and open questions

Why human perception is robust where these models are not remains an open research question. For language models, analogous attacks use text sequences that bypass safety behaviour, and defences are an ongoing contest.

References

This article is general information, not financial, legal or investment advice. AI research and rules change quickly; check the cited sources for the current position.