mlsanityData to 7 Oct 2026

On the Adversarial Robustness of Vision Transformers

arXiv 2103.15670 ↗First posted 29 Mar 2021cs.CV cs.AI cs.LGcited by 104

Not on the map. Why?

Abstract (arXiv)

Following the success in advancing natural language processing and understanding, transformers are expected to bring revolutionary changes to computer vision. This work provides a comprehensive study on the robustness of vision transformers (ViTs) against adversarial perturbations. Tested on various white-box and transfer attack settings, we find that ViTs possess better adversarial robustness when compared with MLP-Mixer and convolutional neural networks (CNNs) including ConvNeXt, and this observation also holds for certified robustness. Through frequency analysis and feature visualization, we summarize the following main observations contributing to the improved robustness of ViTs: 1) Features learned by ViTs contain less high-frequency patterns that have spurious correlation, which helps explain why ViTs are less sensitive to high-frequency perturbations than CNNs and MLP-Mixer, and there is a high correlation between how much the model learns high-frequency features and its robustness against different frequency-based perturbations. 2) Introducing convolutional or tokens-to-token blocks for learning high-frequency features in ViTs can improve classification accuracy but at the cost of adversarial robustness. 3) Modern CNN designs that borrow techniques from ViTs including activation function, layer norm, larger kernel size to imitate the global attention, and patchify the images as inputs, etc., could help bridge the performance gap between ViTs and CNNs not only in terms of performance, but also certified and empirical adversarial robustness. Moreover, we show adversarial training is also applicable to ViT for training robust models, and sharpness-aware minimization can also help improve robustness, while pre-training with clean images on larger datasets does not significantly improve adversarial robustness.

Key facts. Cited by 104 papers in the map (data through 7 Oct 2026). Builds on 50 of its 78 references that are in the map. First posted on arXiv 29 Mar 2021.

Builds on

50 of 78 references.

References · 50

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  6. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
  7. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  8. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  9. 2020End-to-End Object Detection with Transformerscited by 7,384
  10. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  11. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  12. 2017Squeeze-and-Excitation Networkscited by 4,763
38 more
  1. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  2. 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,827
  3. 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
  4. 2016Wide Residual Networkscited by 3,057
  5. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  6. 2016Identity Mappings in Deep Residual Networkscited by 1,960
  7. 2019Theoretically Principled Trade-off between Robustness and Accuracycited by 1,510
  8. 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,442
  9. 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
  10. 2016Beyond a Gaussian Denoiser: Residual Learning of Deep CNN for Image Denoisingcited by 1,352
  11. 2019Certified Adversarial Robustness via Randomized Smoothingcited by 1,324
  12. 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,259
  13. 2017ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devicescited by 1,194
  14. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  15. 2019Adversarial Examples Are Not Bugs, They Are Featurescited by 950
  16. 2016Adversarial Machine Learning at Scalecited by 934
  17. 2020Fast is better than free: Revisiting adversarial trainingcited by 723
  18. 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
  19. 2018Exploring the Limits of Weakly Supervised Pretrainingcited by 604
  20. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
  21. 2020Hopfield Networks is All You Needcited by 461
  22. 2019Using Pre-Training Can Improve Model Robustness and Uncertaintycited by 373
  23. 2019Minimally distorted Adversarial Examples with a Fast Adaptive Boundary Attackcited by 333
  24. 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
  25. 2019High Frequency Component Helps Explain the Generalization of Convolutional Neural Networkscited by 310
  26. 2019ERNIE: Enhanced Representation through Knowledge Integrationcited by 301
  27. 2019Billion-scale semi-supervised learning for image classificationcited by 232
  28. 2016Dense Associative Memory for Pattern Recognitioncited by 230
  29. 2020Bag of Tricks for Adversarial Trainingcited by 199
  30. 2020InfoBERT: Improving Robustness of Language Models from An Information Theoretic Perspectivecited by 92
  31. 2020Robustness Verification for Transformerscited by 76
  32. 2020SAFER: A Structure-free Approach for Certified Robustness to Adversarial Word Substitutionscited by 72
  33. 2018Provable Robustness of ReLU networks via Maximization of Linear Regionscited by 51
  34. 2017Dense Associative Memory is Robust to Adversarial Inputscited by 45
  35. 2018ADef: an Iterative Algorithm to Construct Adversarial Deformationscited by 38
  36. 2020On the Robustness of Language Encoders against Grammatical Errorscited by 18
  37. 2020Transformer-Encoder Detector Module: Using Context to Improve Robustness to Adversarial Attacks on Object Detectioncited by 4
  38. 2020Toward Few-step Adversarial Training from a Frequency Perspectivecited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 2; 2022: 22; 2023: 28; 2024: 27; 2025: 17; 2026: 8.

104 papers.

Sort:

By area:

  1. 2022How Do Vision Transformers Work?cited by 305
  2. 2022Understanding The Robustness in Vision Transformerscited by 144
  3. 2022Towards Adversarial Attack on Vision-Language Pre-training Modelscited by 142
  4. 20223D Common Corruptions and Data Augmentationcited by 120
  5. 2023MedViT: A Robust Vision Transformer for Generalized Medical Image Classificationcited by 89
  6. 2023A Comprehensive Study on Robustness of Image Classification Models: Benchmarking and Rethinkingcited by 85
  7. 2022A Light Recipe to Train Robust Vision Transformerscited by 64
  8. 2021Adversarial Robustness Comparison of Vision Transformer and MLP-Mixer to CNNscited by 57
  9. 2022Teaching Matters: Investigating the Role of Supervision in Vision Transformerscited by 45
  10. 2023Transferable Adversarial Attacks on Vision Transformers with Token Gradient Regularizationcited by 42
  11. 2024Arondight: Red Teaming Large Vision Language Models with Auto-generated Multi-modal Jailbreak Promptscited by 39
  12. 2023What Makes Pre-Trained Visual Representations Successful for Robust Manipulation?cited by 38
38 more
  1. 2023Why Does Little Robustness Help? A Further Step Towards Understanding Adversarial Transferabilitycited by 32
  2. 2023Survey on Unsupervised Domain Adaptation for Semantic Segmentation for Visual Perception in Automated Drivingcited by 29
  3. 2024Boosting Adversarial Transferability across Model Genus by Deformation-Constrained Warpingcited by 18
  4. 2022Self-Ensembling Vision Transformer (SEViT) for Robust Medical Image Classificationcited by 16
  5. 2023On the Adversarial Robustness of Camera-based 3D Object Detectioncited by 15
  6. 2023GraphGPT: Generative Pre-trained Graph Eulerian Transformercited by 15
  7. 2023Defenses in Adversarial Machine Learning: A Surveycited by 14
  8. 2024SegStitch: Multidimensional Transformer for Robust and Efficient Medical Imaging Segmentationcited by 13
  9. 2023Towards Building More Robust Models with Frequency Biascited by 12
  10. 2023Improving Adversarial Robustness of Masked Autoencoders via Test-time Frequency-domain Promptingcited by 12
  11. 2024Benchmarking the Robustness of Temporal Action Detection Models Against Temporal Corruptionscited by 12
  12. 2022Holistic Adversarial Robustness of Deep Learning Modelscited by 11
  13. 2023On the unreasonable vulnerability of transformers for image restoration -- and an easy fixcited by 11
  14. 2024PROSAC: Provably Safe Certification for Machine Learning Models under Adversarial Attackscited by 11
  15. 2024Vision transformers in domain adaptation and domain generalization: a study of robustnesscited by 11
  16. 2022On Divergence Measures for Bayesian Pseudocoresetscited by 10
  17. 2023Initialization Matters for Adversarial Transfer Learningcited by 9
  18. 2024Layer-Aware Analysis of Catastrophic Overfitting: Revealing the Pseudo-Robust Shortcut Dependencycited by 9
  19. 2022Exploring Adversarial Robustness of Vision Transformers in the Spectral Perspectivecited by 8
  20. 2022A.I. Robustness: a Human-Centered Perspective on Technological Challenges and Opportunitiescited by 8
  21. 2023On the Effectiveness of Spectral Discriminators for Perceptual Quality Improvementcited by 8
  22. 2024Revealing the Dark Secrets of Extremely Large Kernel ConvNets on Robustnesscited by 8
  23. 2025Adversarial Alignment for LLMs Requires Simpler, Reproducible, and More Measurable Objectivescited by 8
  24. 2022Towards Improved Input Masking for Convolutional Neural Networkscited by 7
  25. 2023Beyond Pretrained Features: Noisy Image Modeling Provides Adversarial Defensecited by 7
  26. 2023RobArch: Designing Robust Architectures against Adversarial Attackscited by 6
  27. 2023Fairness-aware Vision Transformer via Debiased Self-Attentioncited by 6
  28. 2023Efficiency 360: Efficient Vision Transformerscited by 6
  29. 2024UDA-Bench: Revisiting Common Assumptions in Unsupervised Domain Adaptation Using a Standardized Frameworkcited by 6
  30. 2022Are Transformers More Robust? Towards Exact Robustness Verification for Transformerscited by 5
  31. 2024SpecFormer: Guarding Vision Transformer Robustness via Maximum Singular Value Penalizationcited by 5
  32. 2022Exploring Adversarial Attacks and Defenses in Vision Transformers trained with DINOcited by 4
  33. 2022On the interplay of adversarial robustness and architecture components: patches, convolution and attentioncited by 4
  34. 2022FG-UAP: Feature-Gathering Universal Adversarial Perturbationcited by 4
  35. 2025AdvReal: Physical Adversarial Patch Generation Framework for Security Evaluation of Object Detection Systemscited by 4
  36. 2023RBFormer: Improve Adversarial Robustness of Transformer by Robust Biascited by 3
  37. 2024Reproducibility Study on Adversarial Attacks Against Robust Transformer Trackerscited by 3
  38. 2024Unaligning Everything: Or Aligning Any Text to Any Image in Multimodal Modelscited by 3

50 most cited of 104 All 104 (JSON)