mlsanityData to 7 Oct 2026

Adversarial Robustness Comparison of Vision Transformer and MLP-Mixer to CNNs

arXiv 2110.02797 ↗First posted 6 Oct 2021cs.CV cs.CR cs.LGcited by 57

Not on the map. Why?

Abstract (arXiv)

Convolutional Neural Networks (CNNs) have become the de facto gold standard in computer vision applications in the past years. Recently, however, new model architectures have been proposed challenging the status quo. The Vision Transformer (ViT) relies solely on attention modules, while the MLP-Mixer architecture substitutes the self-attention modules with Multi-Layer Perceptrons (MLPs). Despite their great success, CNNs have been widely known to be vulnerable to adversarial attacks, causing serious concerns for security-sensitive applications. Thus, it is critical for the community to know whether the newly proposed ViT and MLP-Mixer are also vulnerable to adversarial attacks. To this end, we empirically evaluate their adversarial robustness under several adversarial attack setups and benchmark them against the widely used CNNs. Overall, we find that the two architectures, especially ViT, are more robust than their CNN models. Using a toy example, we also provide empirical evidence that the lower adversarial robustness of CNNs can be partially attributed to their shift-invariant property. Our frequency analysis suggests that the most robust ViT architectures tend to rely more on low-frequency features compared with CNNs. Additionally, we have an intriguing finding that MLP-Mixer is extremely vulnerable to universal adversarial perturbations.

Key facts. Cited by 57 papers in the map (data through 7 Oct 2026). Builds on 73 of its 83 references that are in the map. First posted on arXiv 6 Oct 2021.

Builds on

73 of 83 references.

References · 73

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  6. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  7. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  8. 2013Intriguing properties of neural networkscited by 5,114
  9. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  10. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
  11. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
  12. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
38 more
  1. 2021TransUNet: Transformers Make Strong Encoders for Medical Image Segmentationcited by 1,552
  2. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  3. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
  4. 2015DeepFool: a simple and accurate method to fool deep neural networkscited by 1,315
  5. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  6. 2019Adversarial Examples Are Not Bugs, They Are Featurescited by 950
  7. 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
  8. 2016Adversarial Machine Learning at Scalecited by 934
  9. 2019AugMix: A Simple Data Processing Method to Improve Robustness and Uncertaintycited by 897
  10. 2016Practical Black-Box Attacks against Machine Learningcited by 893
  11. 2017Ensemble Adversarial Training: Attacks and Defensescited by 833
  12. 2016Universal adversarial perturbationscited by 774
  13. 2018Image Transformercited by 770
  14. 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
  15. 2017ZOO: Zeroth Order Optimization based Black-box Attacks to Deep Neural Networks without Training Substitute Modelscited by 656
  16. 2021Transformer in Transformercited by 632
  17. 2018Exploring the Limits of Weakly Supervised Pretrainingcited by 604
  18. 2018Improving Transferability of Adversarial Examples with Input Diversitycited by 591
  19. 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 562
  20. 2019Stand-Alone Self-Attention in Vision Modelscited by 542
  21. 2016Delving into Transferable Adversarial Examples and Black-box Attackscited by 530
  22. 2018Black-box Adversarial Attacks with Limited Queries and Informationcited by 499
  23. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
  24. 2017Decision-Based Adversarial Attacks: Reliable Attacks Against Black-Box Machine Learning Modelscited by 459
  25. 2018Threat of Adversarial Attacks on Deep Learning in Computer Vision: A Surveycited by 459
  26. 2021Intriguing Properties of Vision Transformerscited by 446
  27. 2021TransReID: Transformer-based Object Re-Identificationcited by 432
  28. 2021Conditional Positional Encodings for Vision Transformerscited by 402
  29. 2019Making Convolutional Networks Shift-Invariant Againcited by 390
  30. 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
  31. 2020Pretrained Transformers Improve Out-of-Distribution Robustnesscited by 293
  32. 2019A Fourier Perspective on Model Robustness in Computer Visioncited by 288
  33. 2021Video Transformer Networkcited by 271
  34. 2021Understanding Robustness of Transformers for Image Classificationcited by 250
  35. 2019Simple Black-box Adversarial Attackscited by 249
  36. 2014Understanding image representations by measuring their equivariance and equivalencecited by 240
  37. 2021Gradient-based Adversarial Attacks against Text Transformerscited by 233
  38. 2019Billion-scale semi-supervised learning for image classificationcited by 232

50 most cited of 73 All 73 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 2; 2022: 20; 2023: 22; 2024: 6; 2025: 3; 2026: 4.

57 papers.

Sort:

By area:

  1. 2022Transformers in Medical Imaging: A Surveycited by 245
  2. 2023How Many Unicorns Are in This Image? A Safety Evaluation Benchmark for Vision LLMscited by 103
  3. 2022A Light Recipe to Train Robust Vision Transformerscited by 64
  4. 2022When Adversarial Training Meets Vision Transformers: Recipes from Training to Architecturecited by 64
  5. 2021Are we ready for a new paradigm shift? A Survey on Visual Deep MLPcited by 63
  6. 2022A Comprehensive Study of Image Classification Model Sensitivity to Foregrounds, Backgrounds, and Visual Attributescited by 56
  7. 2021Are Vision Transformers Robust to Patch Perturbations?cited by 39
  8. 2023ACTIVE: Towards Highly Transferable 3D Physical Camouflage for Universal and Robust Vehicle Evasioncited by 31
  9. 2023Robustness of SAM: Segment Anything Under Corruptions and Beyondcited by 30
  10. 2022Towards Efficient Adversarial Training on Vision Transformerscited by 29
  11. 2022Investigating Top-k White-Box and Transferable Black-box Attackcited by 26
  12. 2022Give Me Your Attention: Dot-Product Attention Considered Harmful for Adversarial Patch Robustnesscited by 23
38 more
  1. 2022Defending Backdoor Attacks on Vision Transformer via Patch Processingcited by 19
  2. 2023Robustifying Token Attention for Vision Transformerscited by 19
  3. 2023Robust Transformer with Locality Inductive Bias and Feature Normalizationcited by 12
  4. 2023Reliable Evaluation of Adversarial Transferabilitycited by 12
  5. 2023HybridAugment++: Unified Frequency Spectra Perturbations for Model Robustnesscited by 12
  6. 2023MIMIR: Masked Image Modeling for Mutual Information-based Adversarial Robustnesscited by 12
  7. 2024Benchmarking the Robustness of Temporal Action Detection Models Against Temporal Corruptionscited by 12
  8. 2024Exploring the Adversarial Robustness of CLIP for AI-generated Image Detectioncited by 11
  9. 2022Exploring Adversarial Robustness of Vision Transformers in the Spectral Perspectivecited by 8
  10. 2022Curved Representation Space of Vision Transformerscited by 8
  11. 2023On the Effectiveness of Spectral Discriminators for Perceptual Quality Improvementcited by 8
  12. 2022CLAD: A Contrastive Learning based Approach for Background Debiasingcited by 6
  13. 2022Finding Differences Between Transformers and ConvNets Using Counterfactual Simulation Testingcited by 6
  14. 2023CertViT: Certified Robustness of Pre-Trained Vision Transformerscited by 6
  15. 2023Attack-SAM: Towards Attacking Segment Anything Model With Adversarial Examplescited by 5
  16. 2022Understanding Adversarial Robustness of Vision Transformers via Cauchy Problemcited by 4
  17. 2022Empirical Advocacy of Bio-inspired Models for Robust Image Recognitioncited by 3
  18. 2022Toward Robust Diagnosis: A Contour Attention Preserving Adversarial Defense for COVID-19 Detectioncited by 3
  19. 2023RBFormer: Improve Adversarial Robustness of Transformer by Robust Biascited by 3
  20. 2022Robust Universal Adversarial Perturbationscited by 2
  21. 2023Learning to Generate Training Datasets for Robust Semantic Segmentationcited by 2
  22. 2023Mitigating Adversarial Attacks in Federated Learning with Trusted Execution Environmentscited by 2
  23. 2024Towards Robust Semantic Segmentation against Patch-based Attack via Attention Refinementcited by 2
  24. 2024On Evaluating Adversarial Robustness of Volumetric Medical Segmentation Modelscited by 2
  25. 2025Adversarially Pretrained Transformers May Be Universally Robust In-Context Learnerscited by 2
  26. 2023Frequency-Based Vulnerability Analysis of Deep Learning Models against Image Corruptionscited by 1
  27. 2023Pelta: Shielding Transformers to Mitigate Evasion Attacks in Federated Learningcited by 1
  28. 2023Exploring Non-additive Randomness on ViT against Query-Based Black-Box Attackscited by 1
  29. 2023Tailoring Adversarial Attacks on Deep Neural Networks for Targeted Class Manipulation Using DeepFool Algorithmcited by 1
  30. 2023Attention Deficit is Ordered! Fooling Deformable Vision Transformers with Collaborative Adversarial Patchescited by 1
  31. 2024Impact of Regularization on Calibration and Robustness: from the Representation Space Perspectivecited by 1
  32. 2026PolicyGuard: Towards Test-time and Step-level Adversary (Backdoor) Defense for Reinforcement Learning Agentcited by 1
  33. 2022Boosting Adversarial Transferability of MLP-Mixercited by 0
  34. 2022Adversarial Robustness Assessment of NeuroEvolution Approachescited by 0
  35. 2022Attacking Compressed Vision Transformerscited by 0
  36. 2022Multi-Step Short-Term Wind Speed Prediction with Rank Pooling and Fast Fourier Transformationcited by 0
  37. 2023Inference Time Evidences of Adversarial Attacks for Forensic on Transformerscited by 0
  38. 2023Investigating the Robustness and Properties of Detection Transformers (DETR) Toward Difficult Imagescited by 0

50 most cited of 57 All 57 (JSON)