Reveal of Vision Transformers Robustness against Adversarial Attacks
Not on the map. Why?
Abstract (arXiv)
The major part of the vanilla vision transformer (ViT) is the attention block that brings the power of mimicking the global context of the input image. For better performance, ViT needs large-scale training data. To overcome this data hunger limitation, many ViT-based networks, or hybrid-ViT, have been proposed to include local context during the training. The robustness of ViTs and its variants against adversarial attacks has not been widely investigated in the literature like CNNs. This work studies the robustness of ViT variants 1) against different Lp-based adversarial attacks in comparison with CNNs, 2) under adversarial examples (AEs) after applying preprocessing defense methods and 3) under the adaptive attacks using expectation over transformation (EOT) framework. To that end, we run a set of experiments on 1000 images from ImageNet-1k and then provide an analysis that reveals that vanilla ViT or hybrid-ViT are more robust than CNNs. For instance, we found that 1) Vanilla ViTs or hybrid-ViTs are more robust than CNNs under Lp-based attacks and under adaptive attacks. 2) Unlike hybrid-ViTs, Vanilla ViTs are not responding to preprocessing defenses that mainly reduce the high frequency components. Furthermore, feature maps, attention maps, and Grad-CAM visualization jointly with image quality measures, and perturbations' energy spectrum are provided for an insight understanding of attention-based models.
Key facts. Cited by 43 papers in the map (data through 14 Oct 2026). Builds on 54 of its 77 references that are in the map. First posted on arXiv 7 Jun 2021.
Builds on
54 of 77 references.
References · 54
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
- 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,639
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
- 2013Intriguing properties of neural networkscited by 5,155
- 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,845
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
38 more
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
- 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,546
- 2016Adversarial examples in the physical worldcited by 1,769
- 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,451
- 2015DeepFool: a simple and accurate method to fool deep neural networkscited by 1,318
- 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,268
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
- 2019Adversarial Examples Are Not Bugs, They Are Featurescited by 953
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
- 2017Revisiting Unreasonable Effectiveness of Data in Deep Learning Eracited by 919
- 2015The Limitations of Deep Learning in Adversarial Settingscited by 790
- 2016Universal adversarial perturbationscited by 784
- 2019Big Transfer (BiT): General Visual Representation Learningcited by 769
- 2019Square Attack: a query-efficient black-box adversarial attack via random searchcited by 685
- 2015Distillation as a Defense to Adversarial Perturbations against Deep Neural Networkscited by 678
- 2021Transformer in Transformercited by 633
- 2017Adversarial Examples Are Not Easily Detected: Bypassing Ten Detection Methodscited by 546
- 2017Countering Adversarial Images using Input Transformationscited by 520
- 2017Feature Squeezing: Detecting Adversarial Examples in Deep Neural Networkscited by 486
- 2018Threat of Adversarial Attacks on Deep Learning in Computer Vision: A Surveycited by 460
- 2020A Survey of Convolutional Neural Networks: Analysis, Applications, and Prospectscited by 397
- 2018Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Modelscited by 362
- 2017Adversarial Examples: Attacks and Defenses for Deep Learningcited by 351
- 2019Minimally distorted Adversarial Examples with a Fast Adaptive Boundary Attackcited by 334
- 2018Adversarial Attacks and Defences: A Surveycited by 259
- 2021Understanding Robustness of Transformers for Image Classificationcited by 249
- 2017PixelDefend: Leveraging Generative Models to Understand and Defend against Adversarial Examplescited by 244
- 2019Adversarial Attacks and Defenses in Images, Graphs and Text: A Reviewcited by 237
- 2021Vision Transformers are Robust Learnerscited by 207
- 2016A study of the effect of JPG compression on adversarial imagescited by 197
- 2021On the Robustness of Vision Transformers to Adversarial Examplescited by 167
- 2018Constructing Unrestricted Adversarial Examples with Generative Modelscited by 135
- 2020RayS: A Ray Searching Method for Hard-label Adversarial Attackcited by 96
- 2017Keeping the Bad Guys Out: Protecting and Vaccinating Deep Learning with JPEG Compressioncited by 87
- 2019On the Effectiveness of Low Frequency Perturbationscited by 56
- 2020Hold me tight! Influence of discriminative features on deep network boundariescited by 31
- 2019PuVAE: A Variational Autoencoder to Purify Adversarial Examplescited by 28
- 2018Resisting Adversarial Attacks using Gaussian Mixture Variational Autoencoderscited by 26
50 most cited of 54 All 54 (JSON)
Built on by
Citing papers per year: 2021: 8; 2022: 11; 2023: 12; 2024: 3; 2025: 8; 2026: 1.
43 papers.
Sort:
By area:
- 2023How Many Unicorns Are in This Image? A Safety Evaluation Benchmark for Vision LLMscited by 108
- 2023A Comprehensive Study on Robustness of Image Classification Models: Benchmarking and Rethinkingcited by 85
- 2021RobustART: Benchmarking Robustness on Architecture Design and Training Techniquescited by 79
- 2023How Deep Learning Sees the World: A Survey on Adversarial Attacks & Defensescited by 66
- 2022A Light Recipe to Train Robust Vision Transformerscited by 64
- 2022When Adversarial Training Meets Vision Transformers: Recipes from Training to Architecturecited by 64
- 2021Are we ready for a new paradigm shift? A Survey on Visual Deep MLPcited by 63
- 2021Adversarial Robustness Comparison of Vision Transformer and MLP-Mixer to CNNscited by 57
- 2022Patch-Fool: Are Vision Transformers Always Robust Against Adversarial Perturbations?cited by 49
- 2021Are Vision Transformers Robust to Patch Perturbations?cited by 39
- 2023ACTIVE: Towards Highly Transferable 3D Physical Camouflage for Universal and Robust Vehicle Evasioncited by 31
- 2022Towards Efficient Adversarial Training on Vision Transformerscited by 30
31 more
- 2022Give Me Your Attention: Dot-Product Attention Considered Harmful for Adversarial Patch Robustnesscited by 23
- 2021Decision-based Black-box Attack Against Vision Transformers via Patch-wise Adversarial Removalcited by 16
- 2023MIMIR: Masked Image Modeling for Mutual Information-based Adversarial Robustnesscited by 12
- 2021DBIA: Data-free Backdoor Injection Attack against Transformer Networkscited by 9
- 2022Exploring Adversarial Robustness of Vision Transformers in the Spectral Perspectivecited by 8
- 2022Curved Representation Space of Vision Transformerscited by 8
- 2022Finding Differences Between Transformers and ConvNets Using Counterfactual Simulation Testingcited by 6
- 2022Exploring Adversarial Attacks and Defenses in Vision Transformers trained with DINOcited by 4
- 2022Understanding Adversarial Robustness of Vision Transformers via Cauchy Problemcited by 4
- 2022FG-UAP: Feature-Gathering Universal Adversarial Perturbationcited by 4
- 2021On Adversarial Robustness of Point Cloud Semantic Segmentationcited by 3
- 2025Adversarially Pretrained Transformers May Be Universally Robust In-Context Learnerscited by 3
- 2025Stable Vision Concept Transformers for Medical Diagnosiscited by 3
- 2023Mitigating Adversarial Attacks in Federated Learning with Trusted Execution Environmentscited by 2
- 2023Vulnerability Analysis of Transformer-based Optical Character Recognition to Adversarial Attackscited by 2
- 2024ViTGuard: Attention-aware Detection against Adversarial Examples for Vision Transformercited by 2
- 2025Attacking Attention of Foundation Models Disrupts Downstream Taskscited by 2
- 2023Latent Magic: An Investigation into Adversarial Examples Crafted in the Semantic Latent Spacecited by 1
- 2023Pelta: Shielding Transformers to Mitigate Evasion Attacks in Federated Learningcited by 1
- 2023Attention Deficit is Ordered! Fooling Deformable Vision Transformers with Collaborative Adversarial Patchescited by 1
- 2024S-E Pipeline: A Vision Transformer (ViT) based Resilient Classification Pipeline for Medical Imaging Against Adversarial Attackscited by 1
- 2025Quaternion-Hadamard Network: A Novel Defense Against Adversarial Attacks with a New Datasetcited by 1
- 2025Model Hemorrhage and the Robustness Limits of Large Language Modelscited by 1
- 2025Exploring Kolmogorov-Arnold Network Expansions in Vision Transformers for Mitigating Catastrophic Forgetting in Continual Learningcited by 1
- 2021Semantic Image Fusioncited by 0
- 2023Global-Local Processing in Convolutional Neural Networkscited by 0
- 2023Investigating the Robustness and Properties of Detection Transformers (DETR) Toward Difficult Imagescited by 0
- 2024One Pixel is All I Needcited by 0
- 2025Preventing Adversarial AI Attacks Against Autonomous Situational Awareness: A Maritime Case Studycited by 0
- 2025Ensuring Calibration Robustness in Split Conformal Prediction Under Adversarial Attackscited by 0
- 2026Adversarial Decoys: Misdirecting Attention-Based Defenses in ViTcited by 0
- 2026Adversarial Decoys: Misdirecting Attention-Based Defenses in ViT8 Jul 2026
- 2025Ensuring Calibration Robustness in Split Conformal Prediction Under Adversarial Attacks23 Nov 2025
- 2025Exploring Kolmogorov-Arnold Network Expansions in Vision Transformers for Mitigating Catastrophic Forgetting in Continual Learning5 Jul 2025
- 2025Stable Vision Concept Transformers for Medical Diagnosis5 Jun 2025
- 2025Attacking Attention of Foundation Models Disrupts Downstream Tasks3 Jun 2025
- 2025Preventing Adversarial AI Attacks Against Autonomous Situational Awareness: A Maritime Case Study27 May 2025
- 2025Adversarially Pretrained Transformers May Be Universally Robust In-Context Learners20 May 2025
- 2025Model Hemorrhage and the Robustness Limits of Large Language Models31 Mar 2025
- 2025Quaternion-Hadamard Network: A Novel Defense Against Adversarial Attacks with a New Dataset12 Feb 2025
- 2024One Pixel is All I Need14 Dec 2024
- 2024ViTGuard: Attention-aware Detection against Adversarial Examples for Vision Transformer20 Sep 2024
- 2024S-E Pipeline: A Vision Transformer (ViT) based Resilient Classification Pipeline for Medical Imaging Against Adversarial Attacks23 Jul 2024
31 more
- 2023MIMIR: Masked Image Modeling for Mutual Information-based Adversarial Robustness8 Dec 2023
- 2023Vulnerability Analysis of Transformer-based Optical Character Recognition to Adversarial Attacks28 Nov 2023
- 2023How Many Unicorns Are in This Image? A Safety Evaluation Benchmark for Vision LLMs27 Nov 2023
- 2023Attention Deficit is Ordered! Fooling Deformable Vision Transformers with Collaborative Adversarial Patches21 Nov 2023
- 2023Investigating the Robustness and Properties of Detection Transformers (DETR) Toward Difficult Images12 Oct 2023
- 2023Mitigating Adversarial Attacks in Federated Learning with Trusted Execution Environments13 Sep 2023
- 2023ACTIVE: Towards Highly Transferable 3D Physical Camouflage for Universal and Robust Vehicle Evasion14 Aug 2023
- 2023Pelta: Shielding Transformers to Mitigate Evasion Attacks in Federated Learning8 Aug 2023
- 2023Global-Local Processing in Convolutional Neural Networks14 Jun 2023
- 2023Latent Magic: An Investigation into Adversarial Examples Crafted in the Semantic Latent Space22 May 2023
- 2023How Deep Learning Sees the World: A Survey on Adversarial Attacks & Defenses18 May 2023
- 2023A Comprehensive Study on Robustness of Image Classification Models: Benchmarking and Rethinking28 Feb 2023
- 2022Finding Differences Between Transformers and ConvNets Using Counterfactual Simulation Testing29 Nov 2022
- 2022When Adversarial Training Meets Vision Transformers: Recipes from Training to Architecture14 Oct 2022
- 2022Curved Representation Space of Vision Transformers11 Oct 2022
- 2022FG-UAP: Feature-Gathering Universal Adversarial Perturbation27 Sep 2022
- 2022A Light Recipe to Train Robust Vision Transformers15 Sep 2022
- 2022Exploring Adversarial Robustness of Vision Transformers in the Spectral Perspective20 Aug 2022
- 2022Understanding Adversarial Robustness of Vision Transformers via Cauchy Problem1 Aug 2022
- 2022Towards Efficient Adversarial Training on Vision Transformers21 Jul 2022
- 2022Exploring Adversarial Attacks and Defenses in Vision Transformers trained with DINO14 Jun 2022
- 2022Give Me Your Attention: Dot-Product Attention Considered Harmful for Adversarial Patch Robustness25 Mar 2022
- 2022Patch-Fool: Are Vision Transformers Always Robust Against Adversarial Perturbations?16 Mar 2022
- 2021On Adversarial Robustness of Point Cloud Semantic Segmentation11 Dec 2021
- 2021Decision-based Black-box Attack Against Vision Transformers via Patch-wise Adversarial Removal7 Dec 2021
- 2021DBIA: Data-free Backdoor Injection Attack against Transformer Networks22 Nov 2021
- 2021Are Vision Transformers Robust to Patch Perturbations?20 Nov 2021
- 2021Are we ready for a new paradigm shift? A Survey on Visual Deep MLP7 Nov 2021
- 2021Semantic Image Fusion13 Oct 2021
- 2021Adversarial Robustness Comparison of Vision Transformer and MLP-Mixer to CNNs6 Oct 2021
- 2021RobustART: Benchmarking Robustness on Architecture Design and Training Techniques11 Sep 2021
- 2021DBIA: Data-free Backdoor Injection Attack against Transformer Networkscited by 9
- 2024One Pixel is All I Needcited by 0
- 2024One Pixel is All I Need14 Dec 2024
- 2021DBIA: Data-free Backdoor Injection Attack against Transformer Networks22 Nov 2021
- 2023A Comprehensive Study on Robustness of Image Classification Models: Benchmarking and Rethinkingcited by 85
- 2021RobustART: Benchmarking Robustness on Architecture Design and Training Techniquescited by 79
- 2023How Deep Learning Sees the World: A Survey on Adversarial Attacks & Defensescited by 66
- 2022A Light Recipe to Train Robust Vision Transformerscited by 64
- 2022When Adversarial Training Meets Vision Transformers: Recipes from Training to Architecturecited by 64
- 2021Are we ready for a new paradigm shift? A Survey on Visual Deep MLPcited by 63
- 2021Adversarial Robustness Comparison of Vision Transformer and MLP-Mixer to CNNscited by 57
- 2022Patch-Fool: Are Vision Transformers Always Robust Against Adversarial Perturbations?cited by 49
- 2021Are Vision Transformers Robust to Patch Perturbations?cited by 39
- 2023ACTIVE: Towards Highly Transferable 3D Physical Camouflage for Universal and Robust Vehicle Evasioncited by 31
- 2022Towards Efficient Adversarial Training on Vision Transformerscited by 30
- 2022Give Me Your Attention: Dot-Product Attention Considered Harmful for Adversarial Patch Robustnesscited by 23
12 most cited of 39 All 39 (JSON)
- 2026Adversarial Decoys: Misdirecting Attention-Based Defenses in ViT8 Jul 2026
- 2025Ensuring Calibration Robustness in Split Conformal Prediction Under Adversarial Attacks23 Nov 2025
- 2025Exploring Kolmogorov-Arnold Network Expansions in Vision Transformers for Mitigating Catastrophic Forgetting in Continual Learning5 Jul 2025
- 2025Stable Vision Concept Transformers for Medical Diagnosis5 Jun 2025
- 2025Attacking Attention of Foundation Models Disrupts Downstream Tasks3 Jun 2025
- 2025Preventing Adversarial AI Attacks Against Autonomous Situational Awareness: A Maritime Case Study27 May 2025
- 2025Adversarially Pretrained Transformers May Be Universally Robust In-Context Learners20 May 2025
- 2025Model Hemorrhage and the Robustness Limits of Large Language Models31 Mar 2025
- 2025Quaternion-Hadamard Network: A Novel Defense Against Adversarial Attacks with a New Dataset12 Feb 2025
- 2024ViTGuard: Attention-aware Detection against Adversarial Examples for Vision Transformer20 Sep 2024
- 2024S-E Pipeline: A Vision Transformer (ViT) based Resilient Classification Pipeline for Medical Imaging Against Adversarial Attacks23 Jul 2024
- 2023Vulnerability Analysis of Transformer-based Optical Character Recognition to Adversarial Attacks28 Nov 2023
12 newest of 39 All 39 (JSON)