Attacks Part 4 of 10

Evasion Attacks and the Geometry of Adversarial Examples

Add a perturbation smaller than one grey level to an image and a state-of-the-art classifier flips its answer with 99% confidence. Twelve years on, the best defenses on CIFAR-10 hold at about 74% under attack. Here is what happened in between, with the numbers.

The robustness frontier on CIFAR-10 (L∞, ε = 8/255, AutoAttack) Each point is a published model: clean test accuracy against accuracy under attack. Six years moved the frontier up ~30 points. Standard training 2018 (PGD adversarial training) 2023 (diffusion-generated data) 2024 (scaling laws, mixed classifiers) 0% 20% 40% 60% 80% Robust accuracy under AutoAttack (%) 84% 86% 88% 90% 92% 94% 96% Clean accuracy (%) WRN-28-10, no defense Madry et al. 2018 Bartoldson et al. 2024, WRN-94-16 MixedNUTS Wang et al. 2023 Source: Madry et al. 2018; Croce & Hein 2020; RobustBench leaderboard (Nov 2026); Bartoldson et al. 2024
Published CIFAR-10 models plotted by clean accuracy and accuracy under AutoAttack at ε = 8/255. The standard model in the bottom right has 0% robust accuracy; the 2018 adversarially-trained baseline paid eight points of clean accuracy for 44%; the 2023–24 models recovered almost all of the clean accuracy and pushed robustness past 70%. Data from [4, 13], [22, 24].

In December 2013, Szegedy and colleagues posted a paper with a deliberately understated title, Intriguing properties of neural networks [1]. One of the properties was this: take an image a network classifies correctly, solve a small optimisation problem to find the nearest input it classifies as something else, and the result is indistinguishable from the original to a person. The perturbation was not noise. Gaussian noise of a larger magnitude barely moved the predictions; the optimised perturbation moved them completely. Worse, the same perturbation often fooled a different network, trained on different data.

That second observation, transferability, is the one that turned an intriguing property into a security problem. It meant you did not need the model to attack the model. Most of what has happened since, from the fast attacks of 2015 to the adaptive-evaluation crisis of 2018 to the 74%-robust CIFAR-10 models of today, follows from trying to understand why these inputs exist and how much it costs to remove them.

The panda, at ε = 0.007

The canonical example comes from Goodfellow, Shlens and Szegedy’s follow-up [2]. A GoogLeNet classifies an image as “panda” with 57.7% confidence. Add a perturbation of magnitude ε = 0.007 per pixel, which the authors note is below the smallest step of an 8-bit image encoding, and the same network reports “gibbon” at 99.3%. The perturbation looks like static. The classification is not merely wrong; it is wrong with more confidence than the correct answer had.

The paper’s main contribution, though, was an explanation. Szegedy et al. had suggested the phenomenon came from the networks being too non-linear, with small “pockets” of misclassification scattered through input space. Goodfellow et al. argued the opposite. Consider a linear model with weights w acting on an input x, and perturb it by η = ε·sign(w). Each coordinate of η is tiny, bounded by ε, but the dot product w·η sums over all m input dimensions and grows as ε·m·avg wᵢ . In a 150,000-dimensional image, a per-pixel change that no one can see produces a change in the pre-activation that dominates everything else. Deep networks, which are built from near-linear pieces and are deliberately trained to behave linearly for optimisation’s sake, inherit this property. This is the linearity hypothesis, and it is still the standard first explanation.
In input space: a step of size ε predicted “panda” predicted “gibbon” x + ε·sign(∇ₓL) x + η ‖η‖∞ = ε = 0.007 for the GoogLeNet panda In logit space: the same step, summed over m dimensions input dimension m logit shift w·η ε · m · avg|wᵢ| random noise: ~ ε·√m η = ε·sign(w) is tiny per pixel, large in total
Figure 1. Two views of the same step. Left: in input space the perturbation η is a nudge of size ε per pixel, just enough to cross the decision boundary. Right: under the linearity hypothesis the effect on the logit scales with the dimension m, whereas random noise of the same per-pixel size only scales with √m. Redrawn from the argument in [2].

The hypothesis also yields an attack. If the model is locally linear, then the direction that increases the loss fastest under an L∞ budget is simply the sign of the gradient:

Fast Gradient Sign Method (FGSM), Goodfellow et al. 2015
x_adv = x + ε · sign(∇ₓ L(θ, x, y))

One gradient evaluation, one step. On MNIST with ε = 0.25, FGSM pushes a shallow softmax classifier to a 99.9% error rate with 79.3% average confidence in the wrong answer, and a maxout network to 89.4% error at 97.6% confidence. On CIFAR-10 with ε = 0.1, a convolutional maxout network is wrong 87.15% of the time [2]. The targeted variant subtracts the gradient of the loss with respect to the desired label instead of adding the gradient of the true one; everything else is the same.

DeepFool [6] made the geometric picture operational in a different way: linearise the classifier around the input, step to the nearest linearised boundary, repeat, and read off a near-minimal L2 perturbation as a robustness measure for the model.

A note on units, because they are a modelling decision rather than a law. The field settled on a handful of threat models: L∞ with ε = 8/255 ≈ 0.031 on CIFAR-10, 4/255 on ImageNet and 0.3 on MNIST, or L2 with ε = 0.5 on CIFAR-10. Carlini and Wagner’s attacks [3] exist in L0, L2 and L∞ versions precisely because the metric changes the answer, and they used them to show that defensive distillation, which had claimed to cut attack success from roughly 95% to 0.5%, provided no robustness at all: their attacks succeeded 100% of the time against distilled and undistilled networks alike.

From one step to the saddle point

FGSM is a single linear step, and a network is not globally linear. The natural improvement, introduced by Kurakin, Goodfellow and Bengio [7], is to take several smaller steps, projecting back onto the ε-ball after each. Madry and colleagues [4] framed this not as an attack but as a training objective:

Robust optimisation (Madry et al. 2018)
min_θ E_(x,y) [ max_{‖δ‖∞ ≤ ε} L(θ, x + δ, y) ]

The inner maximisation is solved approximately by projected gradient descent (PGD) from random starting points inside the ball; the outer minimisation is ordinary training on the resulting worst-case inputs. The empirical observation that justified the whole approach was that PGD runs from many random starts converge to loss values that are tightly concentrated. There did not appear to be much worse adversaries hiding in the ε-ball than the ones PGD finds, which is why the paper calls PGD a “universal first-order adversary.”

The numbers set a reference point that lasted five years. On CIFAR-10 at ε = 8/255, a standard WideResNet reaches 95.2% clean accuracy and 3.5% under a 20-step PGD attack. The PGD-trained version reaches 87.3% clean and 45.8% under the same attack [4]. Adversarial training works, and it costs eight points of clean accuracy.

What adversarial training buys, and what it costs CIFAR-10, WideResNet, L∞ ε = 8/255. Accuracy of a standard model and a PGD-trained model under each attack. Standard training PGD adversarial training 0.0% 25.0% 50.0% 75.0% 100.0% Accuracy (%) No attack FGSM PGD (7 steps) PGD (20 steps) 95.2% 32.7% 4.1% 3.5% 87.3% 56.1% 50.0% 45.8% Source: Madry et al., ICLR 2018, Tables 2 and 5
Figure 2. Adversarial training on CIFAR-10 at ε = 8/255. The standard model collapses under any gradient attack; the PGD-trained model keeps roughly half its accuracy under the strongest attack in the paper, at the price of eight points on clean data. Under the stronger AutoAttack ensemble the same model's robust accuracy is later measured at 44.04% [13]. Data from [4], Tables 2 and 5.

Why should robustness cost clean accuracy? Tsipras et al. [18] gave a clean theoretical account: in a simple Gaussian model, a classifier that is robust must give up weakly predictive features that an adversary can flip, and those features are exactly what standard training exploits for its last few points of accuracy. Ilyas et al. [17] made the complementary empirical argument with a striking experiment. They built a training set consisting only of adversarial perturbations, labelled with the adversarial target class, so that every image looked to a human like the wrong class. A network trained on it generalised to the clean test set. The perturbations carry predictive signal. On this reading adversarial examples are not bugs in the model but features of the data distribution that humans do not perceive, which also explains transferability: every model trained on the same data learns the same non-robust features.

Whether the trade-off is fundamental is a live disagreement, and the lead figure is the reason. The 2023–24 CIFAR-10 leaders sit at 93–95% clean accuracy with 70–74% robust accuracy, far above Madry’s 87.3%. Most of the early gap was data and capacity, not an intrinsic price. I return to this below.

Attacking without the gradient

Everything above assumes white-box access: you can differentiate through the model. The practical question in 2016 was whether a model behind an API was safe. Papernot et al. first showed that transfer is systematic rather than accidental [16], then answered the question directly [5] by training a substitute model on labels obtained by querying the target, crafting adversarial examples against the substitute, and transferring them. Against commercial APIs the results were 84.24% misclassification on MetaMind, 96.19% on Amazon Machine Learning and 88.94% on Google’s prediction service, the latter two using logistic-regression substitutes with a few hundred to a few thousand queries. No gradient access is not a defense.

A second family skips the substitute and estimates gradients directly from the target’s outputs. ZOO [8] uses coordinate-wise finite differences on confidence scores and matches white-box Carlini–Wagner attacks. Ilyas et al. [9] used natural evolution strategies and formalised three realistic threat models, with query costs for targeted attacks on an ImageNet InceptionV3 that are worth remembering: a median of 11,550 queries when the full score vector is available, 49,624 when only the top-k scores are, and 2.7 million when only the label is. A third family needs nothing but the top label. The Boundary Attack [10] starts from an input that is already adversarial and random-walks along the decision boundary toward the original; HopSkipJump [11] adds a Monte Carlo estimate of the boundary’s normal and needs far fewer queries.

The surprise of 2020 was that the best black-box attack was none of these. Square Attack [12] is random search with localised square-shaped updates, and on ImageNet at ε = 0.05 it fails on 0.3%, 0.0% and 0.0% of images against Inception-v3, ResNet-50 and VGG-16 with median query counts of 24, 11 and 1. A single query. It also has a property that turned out to matter more than its efficiency: because it uses no gradient at all, it is immune to the family of defenses discussed next.

Attack Information needed Targeted ImageNet, median queries
NES, query-limited [9] full score vector 11,550
NES, partial information [9] top-k scores 49,624
NES, label-only [9] top label 2,700,000
Square Attack (untargeted) [12] top label / score 1–24

Query costs of black-box attacks against ImageNet classifiers. The NES rows are targeted attacks under three threat models; the Square Attack row is untargeted. The table is about orders of magnitude, not a head-to-head.

The evaluation crisis

Between 2016 and 2018 dozens of defenses were published, many at top venues, most of them broken within months. Athalye, Carlini and Wagner [14] examined the nine defenses accepted at ICLR 2018 and found that seven of them relied on obfuscated gradients: the defense made the gradient useless to an attacker without making the model robust. They identified three mechanisms. Shattered gradients come from non-differentiable preprocessing such as thermometer encoding or JPEG compression. Stochastic gradients come from test-time randomness. Vanishing or exploding gradients come from very deep unrolled computations such as a generative model run to convergence. For each they gave a fix: approximate the non-differentiable step with the identity on the backward pass (BPDA), optimise the expectation over the randomness (EOT), or reparameterise. Six of the seven defenses were broken completely and one partially. The two that survived were both forms of adversarial training.

Seven of nine ICLR 2018 defenses relied on obfuscated gradients Robust accuracy each defense claimed, and what remained after an adaptive attack (BPDA / EOT). Only the two adversarial-training entries survived. Claimed After adaptive attack 0% 20% 40% 60% 80% 100% Thermometer encoding Input transformations PixelDefend LID detection Stochastic activation pruning Randomization Defense-GAN Cascade adv. training (not broken) Madry adv. training (not broken) Robust accuracy (%) 80% 60% 46% 16% 47% 0% 0% 9% 5% 0% 0% 55% 15% 47% Source: Athalye, Carlini & Wagner, ICML 2018, Table 1. Blank = the paper reports only the post-attack value.
Figure 3. Claimed robust accuracy of the ICLR 2018 defenses against what remained after Athalye et al.'s adaptive attacks. Where the original paper combined a defense with adversarial training, the table reports the defense alone. Defense-GAN's 55% is the practical result; the authors argue it is 0% in principle. Data from [14], Table 1.

The lesson was supposed to be “evaluate against adaptive attacks,” and papers duly started including a section with that heading. Two years later Tramèr, Carlini, Brendel and Madry [15] broke thirteen defenses from ICLR, ICML and NeurIPS that had already claimed adaptive evaluations. Their conclusion is methodological rather than technical: an adaptive attack has to be designed for the specific defense, usually by simplifying the defense until the attack works and then adding complexity back, and a failed attack is evidence about the attack, not the defense.

The field’s response was standardisation. AutoAttack [13] is a parameter-free ensemble of two PGD variants with better loss functions, a boundary attack and Square Attack. Run on 50 models from 35 papers, it lowered the reported robust accuracy of all but one, by more than ten points for thirteen models and more than thirty for eight. Some examples at CIFAR-10 ε = 8/255: Madry et al.’s 47.04% became 44.04%; TRADES’s 56.43% became 53.08%; one ICLR 2020 defense fell from 68.7% to 36.45%, and another from 31.4% to 0.00%. RobustBench [22] turned AutoAttack into a leaderboard with admission rules: deterministic forward pass, non-zero gradients, no test-time optimisation, and a flag on any model where the gradient-free Square Attack beats the gradient-based attacks, since that pattern is the signature of gradient masking.

Where the frontier is in 2026

With evaluation settled, progress became measurable, and it came mostly from data. Carmon et al.’s use of unlabelled data reached 59.53% under AutoAttack in 2019. Wang et al. [23] showed in 2023 that better diffusion models, judged by FID and run for only about twenty sampling steps, generate training images that lift CIFAR-10 robust accuracy to 70.69% at ε = 8/255 and CIFAR-100 to 42.67%, using no external data at all. Bartoldson et al. [24] then fitted scaling laws over model size, data size and generated-data quality, reached 74% with 20% fewer training FLOPs than the previous best, and asked where the curve ends.

Their answer is the most interesting result in the recent literature. The scaling laws predict robust accuracy plateauing near 90%. Separately, they asked people to label the AutoAttack images that fool their best model and found that human accuracy on those images is also about 90%. At ε = 8/255, some “adversarial” images have actually changed class to the human eye. The ceiling is not in the model; it is in the threat model. The L∞ ball was always a proxy for “imperceptible,” and at the current frontier the proxy has started to break.

ImageNet remains harder. At ε = 4/255 the best entries on RobustBench are large vision transformers and ConvNeXts with convolutional stems: 78.62% clean and 59.68% robust for a Swin-L, 81.48% and 58.50% for a mixed ConvNeXtV2-L/Swin-L classifier [22]. Architecture matters as much as recipe here, and no one has yet written the scaling law.

Leaving the ε-ball

Imperceptibility is a convenience for benchmarks, not a constraint on attackers. Sharif et al. [21] printed eyeglass frames for about 22 cents that let three subjects evade a face recogniser between 80% and 100% of the time, and impersonate a specific target 87.87% of the time. Eykholt et al. [19] optimised stickers for a stop sign, over a distribution of viewing angles and lighting, and a classifier misread it as a speed limit in 100% of lab photographs and 84.8% of frames from a moving vehicle. Brown et al.’s adversarial patch [20] drops the pretence entirely: a visible, scene-independent sticker that reliably hijacks the classification of whatever it is placed near. The threat model shifts from “the attacker can nudge every pixel slightly” to “the attacker controls a region,” and most of the ε-ball literature has nothing to say about it.

2024–26: when the output is text

The newest version of the problem sits inside vision-language models. A model like LLaVA takes a frozen CLIP image encoder and feeds its embeddings to a language model; attack the encoder and everything downstream follows. Schlarmann et al. [25] measured it: LLaVA-1.5-7B’s average captioning and visual-question-answering score drops from 76.2 to 2.25 at ε = 2/255 and 1.0 at ε = 4/255. Their fix, FARE, adversarially fine-tunes only the CLIP encoder, without labels and without touching the language model, and recovers 26.3 at ε = 4/255. The price is clean performance, 76.2 down to 65.0, which is the Madry trade-off again in a new setting.

A vision-language model collapses under tiny image perturbations LLaVA-1.5-7B average captioning/VQA score (COCO, Flickr30k, TextVQA, VQAv2) as the L∞ budget on the image grows. Original CLIP encoder FARE⁴ robust encoder TeCoA⁴ robust encoder 0 20 40 60 80 Average score 0 (clean) 2/255 4/255 Perturbation budget ε (L∞) 26.3 24 1 Source: Schlarmann et al., ICML 2024, Tables 1 and 4
Figure 4. The image pathway of a vision-language model is as fragile as any classifier. Replacing the CLIP encoder with an adversarially fine-tuned one restores a usable fraction of performance under attack at a clean-accuracy cost. Data from [25].

Work at NeurIPS 2025 [26] argues that VLMs are in one respect more fragile than classifiers: an image perturbation can steer every generated token, so the same mechanism that flips a label can inject instructions, hijack an agent, or force a long useless output. Evasion, which began as a question about classification margins, has become a question about alignment, and the next two posts in this series pick up exactly there.

What to take away
  1. Adversarial examples are a consequence of high-dimensional, near-linear models trained on data that contains predictive features humans cannot see. They transfer because every model learns those features.
  2. Adversarial training is the only empirical defense that has survived adaptive evaluation, and its clean-accuracy cost has shrunk from eight points to one or two as data and capacity scaled.
  3. Evaluation is adversarial too. Trust AutoAttack numbers; be suspicious of any defense a gradient-free attack beats.
  4. The L∞ ball is a proxy. At the 2024 frontier the proxy breaks, and in physical and multimodal settings it was never the right model.

References

  1. Szegedy, Zaremba, Sutskever et al. Intriguing properties of neural networks. ICLR 2014. arXiv:1312.6199
  2. Goodfellow, Shlens, Szegedy. Explaining and Harnessing Adversarial Examples. ICLR 2015. arXiv:1412.6572
  3. Carlini, Wagner. Towards Evaluating the Robustness of Neural Networks. IEEE S&P 2017. arXiv:1608.04644
  4. Madry, Makelov, Schmidt, Tsipras, Vladu. Towards Deep Learning Models Resistant to Adversarial Attacks. ICLR 2018. arXiv:1706.06083
  5. Papernot, McDaniel, Goodfellow et al. Practical Black-Box Attacks against Machine Learning. AsiaCCS 2017. arXiv:1602.02697
  6. Moosavi-Dezfooli, Fawzi, Frossard. DeepFool: a simple and accurate method to fool deep neural networks. CVPR 2016. arXiv:1511.04599
  7. Kurakin, Goodfellow, Bengio. Adversarial examples in the physical world. ICLR 2017 Workshop. arXiv:1607.02533
  8. Chen, Zhang, Sharma, Yi, Hsieh. ZOO: Zeroth Order Optimization based Black-box Attacks to Deep Neural Networks without Training Substitute Models. AISec 2017. arXiv:1708.03999
  9. Ilyas, Engstrom, Athalye, Lin. Black-box Adversarial Attacks with Limited Queries and Information. ICML 2018. arXiv:1804.08598
  10. Brendel, Rauber, Bethge. Decision-Based Adversarial Attacks: Reliable Attacks Against Black-Box Machine Learning Models. ICLR 2018. arXiv:1712.04248
  11. Chen, Jordan, Wainwright. HopSkipJumpAttack: A Query-Efficient Decision-Based Attack. IEEE S&P 2020. arXiv:1904.02144
  12. Andriushchenko, Croce, Flammarion, Hein. Square Attack: a query-efficient black-box adversarial attack via random search. ECCV 2020. arXiv:1912.00049
  13. Croce, Hein. Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks. ICML 2020. arXiv:2003.01690
  14. Athalye, Carlini, Wagner. Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examples. ICML 2018. arXiv:1802.00420
  15. Tramèr, Carlini, Brendel, Madry. On Adaptive Attacks to Adversarial Example Defenses. NeurIPS 2020. arXiv:2002.08347
  16. Papernot, McDaniel, Goodfellow. Transferability in Machine Learning: from Phenomena to Black-Box Attacks using Adversarial Samples. arXiv 2016. arXiv:1605.07277
  17. Ilyas, Santurkar, Tsipras, Engstrom, Tran, Madry. Adversarial Examples Are Not Bugs, They Are Features. NeurIPS 2019. arXiv:1905.02175
  18. Tsipras, Santurkar, Engstrom, Turner, Madry. Robustness May Be at Odds with Accuracy. ICLR 2019. arXiv:1805.12152
  19. Eykholt, Evtimov, Fernandes et al. Robust Physical-World Attacks on Deep Learning Visual Classification. CVPR 2018. arXiv:1707.08945
  20. Brown, Mané, Roy, Abadi, Gilmer. Adversarial Patch. NeurIPS 2017 Workshop. arXiv:1712.09665
  21. Sharif, Bhagavatula, Bauer, Reiter. Accessorize to a Crime: Real and Stealthy Attacks on State-of-the-Art Face Recognition. ACM CCS 2016. PDF
  22. Croce, Andriushchenko, Sehwag et al. RobustBench: a standardized adversarial robustness benchmark. NeurIPS 2021 Datasets & Benchmarks. arXiv:2010.09670; leaderboard at robustbench.github.io
  23. Wang, Pang, Du, Lin, Liu, Yan. Better Diffusion Models Further Improve Adversarial Training. ICML 2023. PMLR 202
  24. Bartoldson, Diffenderfer, Parasyris, Kailkhura. Adversarial Robustness Limits via Scaling-Law and Human-Alignment Studies. ICML 2024. arXiv:2404.09349
  25. Schlarmann, Singh, Croce, Hein. Robust CLIP: Unsupervised Adversarial Fine-Tuning of Vision Embeddings for Robust Large Vision-Language Models. ICML 2024. PMLR 235
  26. Wang, Wang, Ge et al. Attention! Your Vision Language Model Could Be Maliciously Manipulated. NeurIPS 2025. NeurIPS proceedings