mlsanityData to 7 Oct 2026

On the Robustness of Vision Transformers to Adversarial Examples

arXiv 2104.02610 ↗First posted 31 Mar 2021cs.CV cs.LGcited by 167

Not on the map. Why?

Abstract (arXiv)

Recent advances in attention-based networks have shown that Vision Transformers can achieve state-of-the-art or near state-of-the-art results on many image classification tasks. This puts transformers in the unique position of being a promising alternative to traditional convolutional neural networks (CNNs). While CNNs have been carefully studied with respect to adversarial attacks, the same cannot be said of Vision Transformers. In this paper, we study the robustness of Vision Transformers to adversarial examples. Our analyses of transformer security is divided into three parts. First, we test the transformer under standard white-box and black-box attacks. Second, we study the transferability of adversarial examples between CNNs and transformers. We show that adversarial examples do not readily transfer between CNNs and transformers. Based on this finding, we analyze the security of a simple ensemble defense of CNNs and transformers. By creating a new attack, the self-attention blended gradient attack, we show that such an ensemble is not secure under a white-box adversary. However, under a black-box adversary, we show that an ensemble can achieve unprecedented robustness without sacrificing clean accuracy. Our analysis for this work is done using six types of white-box attacks and two types of black-box attacks. Our study encompasses multiple Vision Transformers, Big Transfer Models and CNN architectures trained on CIFAR-10, CIFAR-100 and ImageNet.

Key facts. Cited by 167 papers in the map (data through 7 Oct 2026). Builds on 30 of its 33 references that are in the map. First posted on arXiv 31 Mar 2021.

Builds on

30 of 33 references.

References · 30

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2020End-to-End Object Detection with Transformerscited by 7,384
  4. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  5. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  6. 2013Intriguing properties of neural networkscited by 5,114
  7. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
  8. 2016Identity Mappings in Deep Residual Networkscited by 1,960
  9. 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,442
  10. 2019Self-training with Noisy Student improves ImageNet classificationcited by 1,304
  11. 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,259
  12. 2016Practical Black-Box Attacks against Machine Learningcited by 893
18 more
  1. 2019Big Transfer (BiT): General Visual Representation Learningcited by 766
  2. 2020Quantifying Attention Flow in Transformerscited by 759
  3. 2020On Adaptive Attacks to Adversarial Example Defensescited by 547
  4. 2016Delving into Transferable Adversarial Examples and Black-box Attackscited by 530
  5. 2017Decision-Based Adversarial Attacks: Reliable Attacks Against Black-Box Machine Learning Modelscited by 459
  6. 2019On Evaluating Adversarial Robustnesscited by 442
  7. 2016Transferability in Machine Learning: from Phenomena to Black-Box Attacks using Adversarial Samplescited by 439
  8. 2020Axial-DeepLab: Stand-Alone Axial-Attention for Panoptic Segmentationcited by 326
  9. 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
  10. 2020Pretrained Transformers Improve Out-of-Distribution Robustnesscited by 293
  11. 2020Attacks Which Do Not Kill Training Make Adversarial Learning Strongercited by 242
  12. 2019Improving Adversarial Robustness via Promoting Ensemble Diversitycited by 213
  13. 2020Self-Attention Attribution: Interpreting Information Interactions Inside Transformercited by 124
  14. 2020RayS: A Ray Searching Method for Hard-label Adversarial Attackcited by 94
  15. 2020Robustness Verification for Transformerscited by 76
  16. 2020Beware the Black-Box: on the Robustness of Recent Defenses to Adversarial Examplescited by 11
  17. 2018MULDEF: Multi-model-based Defense Against Adversarial Examples for Neural Networkscited by 8
  18. 2019BUZz: BUffer Zones for defending adversarial examples in image classificationcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 18; 2022: 35; 2023: 50; 2024: 38; 2025: 15; 2026: 11.

167 papers.

Sort:

By area:

  1. 2021Exploring the Limits of Out-of-Distribution Detectioncited by 283
  2. 2022Transformers in Medical Imaging: A Surveycited by 245
  3. 2021Vision Transformers are Robust Learnerscited by 208
  4. 2021Towards Robust Vision Transformercited by 137
  5. 2024Jailbreaking Attack against Multimodal Large Language Modelcited by 128
  6. 2021Rethinking Architecture Design for Tackling Data Heterogeneity in Federated Learningcited by 111
  7. 2023MedViT: A Robust Vision Transformer for Generalized Medical Image Classificationcited by 89
  8. 2023A Comprehensive Study on Robustness of Image Classification Models: Benchmarking and Rethinkingcited by 85
  9. 2021RobustART: Benchmarking Robustness on Architecture Design and Training Techniquescited by 78
  10. 2021On Improving Adversarial Transferability of Vision Transformerscited by 70
  11. 2023How Deep Learning Sees the World: A Survey on Adversarial Attacks & Defensescited by 65
  12. 2022A Light Recipe to Train Robust Vision Transformerscited by 64
38 more
  1. 2022When Adversarial Training Meets Vision Transformers: Recipes from Training to Architecturecited by 64
  2. 2021Are we ready for a new paradigm shift? A Survey on Visual Deep MLPcited by 63
  3. 2022Video Transformers: A Surveycited by 63
  4. 2021Adversarial Robustness Comparison of Vision Transformer and MLP-Mixer to CNNscited by 57
  5. 2022Patch-Fool: Are Vision Transformers Always Robust Against Adversarial Perturbations?cited by 47
  6. 2021OOD-CV: A Benchmark for Robustness to Out-of-Distribution Shifts of Individual Nuisances in Natural Imagescited by 46
  7. 2021Reveal of Vision Transformers Robustness against Adversarial Attackscited by 43
  8. 2023Transferable Adversarial Attacks on Vision Transformers with Token Gradient Regularizationcited by 42
  9. 2023A survey on efficient vision transformers: algorithms, techniques, and performance benchmarkingcited by 41
  10. 2021Are Vision Transformers Robust to Patch Perturbations?cited by 39
  11. 2021Pyramid Adversarial Training Improves ViT Performancecited by 39
  12. 2023SA-Attack: Improving Adversarial Transferability of Vision-Language Pre-training Models via Self-Augmentationcited by 39
  13. 2024Few-Shot Adversarial Prompt Learning on Vision-Language Modelscited by 39
  14. 2022Missingness Bias in Model Debuggingcited by 36
  15. 2022FedTune: A Deep Dive into Efficient Federated Fine-Tuning with Pre-trained Transformerscited by 33
  16. 2023Channel Vision Transformers: An Image Is Worth 1 x 16 x 16 Wordscited by 33
  17. 2022A Data-Based Perspective on Transfer Learningcited by 32
  18. 2023Why Does Little Robustness Help? A Further Step Towards Understanding Adversarial Transferabilitycited by 32
  19. 2023ACTIVE: Towards Highly Transferable 3D Physical Camouflage for Universal and Robust Vehicle Evasioncited by 31
  20. 2023Robustness of SAM: Segment Anything Under Corruptions and Beyondcited by 30
  21. 2022Towards Efficient Adversarial Training on Vision Transformerscited by 29
  22. 2024Break the Visual Perception: Adversarial Attacks Targeting Encoded Visual Tokens of Large Vision-Language Modelscited by 27
  23. 2022Give Me Your Attention: Dot-Product Attention Considered Harmful for Adversarial Patch Robustnesscited by 23
  24. 2022Proximal Splitting Adversarial Attacks for Semantic Segmentationcited by 23
  25. 2022Exploring the Relationship between Architecture and Adversarially Robust Generalizationcited by 23
  26. 2021Taxonomy of Machine Learning Safety: A Survey and Primercited by 22
  27. 2024ImageNet-D: Benchmarking Neural Network Robustness on Diffusion Synthetic Objectcited by 22
  28. 2022Jigsaw-ViT: Learning Jigsaw Puzzles in Vision Transformercited by 21
  29. 2022Benchmarking Adversarial Patch Against Aerial Detectioncited by 21
  30. 2021DeepFace-EMD: Re-ranking Using Patch-wise Earth Mover's Distance Improves Out-Of-Distribution Face Identificationcited by 20
  31. 2022Defending Backdoor Attacks on Vision Transformer via Patch Processingcited by 19
  32. 2023Robustifying Token Attention for Vision Transformerscited by 19
  33. 2024Boosting Adversarial Transferability across Model Genus by Deformation-Constrained Warpingcited by 18
  34. 2022Self-Ensembling Vision Transformer (SEViT) for Robust Medical Image Classificationcited by 16
  35. 2022Evaluating Out-of-Distribution Performance on Document Image Classifierscited by 16
  36. 2023Self-attention in Vision Transformers Performs Perceptual Grouping, Not Attentioncited by 15
  37. 2024Transformers Learn Low Sensitivity Functions: Investigations and Implicationscited by 13
  38. 2022Attacking the Spike: On the Transferability and Security of Spiking Neural Networks to Adversarial Examplescited by 12

50 most cited of 167 All 167 (JSON)