Skip to content
ContentLora

    Tip: press / anywhere to search.

    Explainer

    Adversarial examples: why tiny changes can fool AI

    An adversarial example is an input changed slightly, often imperceptibly to people, so that an AI model gets it wrong.[1] Researchers described the effect in image classifiers in 2013,[2] showed it with stickers on a real stop sign in 2018,[3] and in 2023 extended it to automated jailbreaks of chatbots.[4] Defences such as adversarial training help but cost accuracy, and NIST describes an inherent trade-off between robustness and accuracy.[5]

    Editor reviewedUpdated Explainer11 claims · 27% primaryAI safety and alignment, Cybersecurity, Artificial intelligence
    Reading level: 4 passages differ; the rest is the same for everyone.

    Reading order: How neural networks work first. This page is the robustness foundation for Prompt injection and jailbreaks explained and ai-red-teaming. It explains how attacks work in general terms and gives no step-by-step instructions.

    What an adversarial example is

    Take a photo a model labels correctly. Change some pixels by an amount too small for a person to notice. The model now gives a confident wrong answer. That altered photo is an adversarial example. The US National Institute of Standards and Technology (NIST) calls attacks like this evasion attacks: they change inputs at the moment the model is used, often in ways people cannot see.[1]

    Formally, an adversarial example is an input formed by a small, intentionally worst-case perturbation that makes the model output a wrong answer with high confidence.[6] NIST’s 2025 taxonomy (NIST AI 100-2 E2025) files these under evasion attacks: the perturbed inputs are misclassified while often staying imperceptible to humans.[1]

    Early research

    In 2013 researchers reported that a network could be made to misclassify an image with an imperceptible change, and that the same change could fool a different network trained on different data.[2] A year later another team argued the cause was surprisingly simple: the networks behave too linearly, so many tiny changes add up.[6]

    Szegedy and colleagues found the perturbations by maximising prediction error, and noted their transfer across networks trained on different subsets.[2] Goodfellow and colleagues argued that the main cause is the networks’ linear nature, and derived from it a fast method for generating adversarial examples that they used in adversarial training.[6][7] A later interpretability line of work, the toy models of superposition, reported evidence of a link between superposition and adversarial examples.[8]

    From the lab to the road to chatbots

    Adversarial examples are not limited to digital pixels. In a 2018 study, black and white stickers on a real stop sign made a road-sign classifier misread it in every lab image and in about 85% of video frames from a moving car.[3] In 2023 researchers showed a text version: an automatically found string added to a harmful request made chatbots more likely to comply instead of refusing.[4]

    The physical attack (CVPR 2018) reported targeted misclassification in 100% of lab images and 84.8% of field video frames.[3] For language models, a 2023 attack searched automatically for an adversarial suffix using greedy and gradient-based steps;[4] a suffix optimised on Vicuna-7B and 13B transferred to the public interfaces of ChatGPT, Bard and Claude and to open models such as LLaMA-2-Chat.[9] That result is a preprint and describes the models as tested in 2023. Instruction attacks that hide in content rather than optimised noise are covered in Prompt injection and jailbreaks explained.

    Defences and their costs

    The best-known defence is adversarial training: generate attacks during training and teach the model the right answer for them. It helps, but NIST says it usually costs some accuracy on normal inputs and is expensive to run.[10] NIST also says there is an inherent trade-off between robustness and accuracy.[5]

    Madry and colleagues framed robustness as robust optimisation and trained networks with significantly improved resistance to a wide range of attacks.[11] NIST notes that adversarial training, randomised smoothing and formal methods each have limits: lower accuracy for the first two and computational cost for formal methods.[5] Adversarial training also brings the clean-accuracy and compute costs noted above.[10]

    What is known and what is open

    Known: neural networks across vision and language can be fooled by small, targeted input changes, and some attacks transfer between models.[2][9] Open: whether robustness can be achieved without giving up accuracy, given the trade-off NIST describes.[5] ai-red-teaming is how labs and evaluators probe for these weaknesses before release.

    Next in the crash course

    Prompt injection and jailbreaks explained

    What prompt injection and jailbreaks are, how hidden instructions in web pages and files hijack AI tools, and why security agencies say no fix is complete.

    Questions readers ask

    What is an adversarial example in AI?

    An input deliberately modified so that a model misclassifies it, while the change often stays stealthy and imperceptible to humans. NIST classes these as evasion attacks.[1]

    Can adversarial examples work in the real world?

    Yes, in tests. Researchers put black and white stickers on a real stop sign and caused a road-sign classifier to misread it in 100% of lab images and 84.8% of video frames taken from a moving vehicle.[3]

    Are jailbreaks a kind of adversarial example?

    Some are. A 2023 preprint used automated search to find text suffixes that made aligned chatbots more likely to comply with harmful requests, and reported that they transferred to several commercial chatbots as they stood in 2023.[4][9]

    Can models be made robust to adversarial examples?

    Partly. Adversarial training improves resistance but usually lowers accuracy on clean data and is expensive, and NIST says there is an inherent trade-off between robustness and accuracy.[10][5][11]

    Sources

    · 11 claims from 7 publishers

    Each numbered claim is a statement we checked against the sources listed with it. Tap a number in the text to see its sources in place.

    1. [1]

      NIST's 2025 adversarial machine learning taxonomy says evasion attacks modify test-time inputs to create adversarial examples that are misclassified by the model while often remaining stealthy and imperceptible to humans. confirmedas of 2025-03-24

    2. [2]

      A 2013 paper by Szegedy and colleagues reported that a deep network can be made to misclassify an image by applying an imperceptible perturbation, and that the same perturbation can fool a different network trained on a different subset of the data. reportedas of 2014-02-19

    3. [3]

      In a CVPR 2018 paper, researchers using black and white stickers on a real stop sign caused a road-sign classifier to make a targeted misclassification in 100% of lab images and 84.8% of video frames captured from a moving vehicle. reportedas of 2018-04-10

    4. [4]

      A 2023 preprint by Zou and colleagues described an automated attack that uses greedy and gradient-based search to find an adversarial suffix which, attached to harmful requests, makes aligned language models more likely to comply rather than refuse. reportedas of 2023-12-20

    5. [5]

      NIST says there is an inherent trade-off between robustness and accuracy, and that the main defences against evasion attacks each have limitations, such as lower accuracy for adversarial training and randomised smoothing and computational cost for formal methods. confirmedas of 2025-03-24

    6. [6]

      A 2014 paper by Goodfellow and colleagues defined adversarial examples as inputs formed by small but intentionally worst-case perturbations that make a model give a wrong answer with high confidence, and argued that the main cause of vulnerability is the networks' linear nature. reportedas of 2015-03-20

    7. [7]

      Goodfellow and colleagues said their linear explanation yields a simple and fast method of generating adversarial examples, which they used for adversarial training. reportedas of 2015-03-20

    8. [9]

      The authors reported that a suffix trained on Vicuna-7B and 13B transferred to the public interfaces of ChatGPT, Bard and Claude and to open models such as LLaMA-2-Chat. reportedas of 2023-12-20

    9. [10]

      NIST describes adversarial training, introduced by Goodfellow and colleagues and developed further by Madry and colleagues, as augmenting training data with adversarial examples generated during training with their correct labels, and says it usually costs accuracy on clean data and is expensive. confirmedas of 2025-03-24

    10. [11]

      Madry and colleagues (ICLR 2018) studied adversarial robustness through robust optimisation and trained networks with significantly improved resistance to a wide range of attacks, proposing security against a first-order adversary as a natural guarantee. reportedas of 2019-09-04

    Revision history (1)
    1. Page created.

    Created Nov 22, 2026. Last reviewed by an editor on Nov 22, 2026. Next scheduled review: Jul 12, 2027.

    Cite this page

    "Adversarial examples: why tiny changes can fool AI." ContentLora, updated Nov 22, 2026. https://contentlora.com/explain/adversarial-examples-explained

    Spotted an error? Suggest a correction or emailcorrections@contentlora.com.