On the Adversarial Robustness of Vision Transformers
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2017Squeeze-and-Excitation Networkscited by 4,763
38 more
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,827
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
- 2016Wide Residual Networkscited by 3,057
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2016Identity Mappings in Deep Residual Networkscited by 1,960
- 2019Theoretically Principled Trade-off between Robustness and Accuracycited by 1,510
- 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,442
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
- 2016Beyond a Gaussian Denoiser: Residual Learning of Deep CNN for Image Denoisingcited by 1,352
- 2019Certified Adversarial Robustness via Randomized Smoothingcited by 1,324
- 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,259
- 2017ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devicescited by 1,194
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2019Adversarial Examples Are Not Bugs, They Are Featurescited by 950
- 2016Adversarial Machine Learning at Scalecited by 934
- 2020Fast is better than free: Revisiting adversarial trainingcited by 723
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
- 2018Exploring the Limits of Weakly Supervised Pretrainingcited by 604
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
- 2020Hopfield Networks is All You Needcited by 461
- 2019Using Pre-Training Can Improve Model Robustness and Uncertaintycited by 373
- 2019Minimally distorted Adversarial Examples with a Fast Adaptive Boundary Attackcited by 333
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2019High Frequency Component Helps Explain the Generalization of Convolutional Neural Networkscited by 310
- 2019ERNIE: Enhanced Representation through Knowledge Integrationcited by 301
- 2019Billion-scale semi-supervised learning for image classificationcited by 232
- 2016Dense Associative Memory for Pattern Recognitioncited by 230
- 2020Bag of Tricks for Adversarial Trainingcited by 199
- 2020InfoBERT: Improving Robustness of Language Models from An Information Theoretic Perspectivecited by 92
- 2020Robustness Verification for Transformerscited by 76
- 2020SAFER: A Structure-free Approach for Certified Robustness to Adversarial Word Substitutionscited by 72
- 2018Provable Robustness of ReLU networks via Maximization of Linear Regionscited by 51
- 2017Dense Associative Memory is Robust to Adversarial Inputscited by 45
- 2018ADef: an Iterative Algorithm to Construct Adversarial Deformationscited by 38
- 2020On the Robustness of Language Encoders against Grammatical Errorscited by 18
- 2020Transformer-Encoder Detector Module: Using Context to Improve Robustness to Adversarial Attacks on Object Detectioncited by 4
- 2020Toward Few-step Adversarial Training from a Frequency Perspectivecited by 3
Built on by
Citing papers per year: 2021: 2; 2022: 22; 2023: 28; 2024: 27; 2025: 17; 2026: 8.
104 papers.
Sort:
By area:
- 2022How Do Vision Transformers Work?cited by 305
- 2022Understanding The Robustness in Vision Transformerscited by 144
- 2022Towards Adversarial Attack on Vision-Language Pre-training Modelscited by 142
- 20223D Common Corruptions and Data Augmentationcited by 120
- 2023MedViT: A Robust Vision Transformer for Generalized Medical Image Classificationcited by 89
- 2023A Comprehensive Study on Robustness of Image Classification Models: Benchmarking and Rethinkingcited by 85
- 2022A Light Recipe to Train Robust Vision Transformerscited by 64
- 2021Adversarial Robustness Comparison of Vision Transformer and MLP-Mixer to CNNscited by 57
- 2022Teaching Matters: Investigating the Role of Supervision in Vision Transformerscited by 45
- 2023Transferable Adversarial Attacks on Vision Transformers with Token Gradient Regularizationcited by 42
- 2024Arondight: Red Teaming Large Vision Language Models with Auto-generated Multi-modal Jailbreak Promptscited by 39
- 2023What Makes Pre-Trained Visual Representations Successful for Robust Manipulation?cited by 38
38 more
- 2023Why Does Little Robustness Help? A Further Step Towards Understanding Adversarial Transferabilitycited by 32
- 2023Survey on Unsupervised Domain Adaptation for Semantic Segmentation for Visual Perception in Automated Drivingcited by 29
- 2024Boosting Adversarial Transferability across Model Genus by Deformation-Constrained Warpingcited by 18
- 2022Self-Ensembling Vision Transformer (SEViT) for Robust Medical Image Classificationcited by 16
- 2023On the Adversarial Robustness of Camera-based 3D Object Detectioncited by 15
- 2023GraphGPT: Generative Pre-trained Graph Eulerian Transformercited by 15
- 2023Defenses in Adversarial Machine Learning: A Surveycited by 14
- 2024SegStitch: Multidimensional Transformer for Robust and Efficient Medical Imaging Segmentationcited by 13
- 2023Towards Building More Robust Models with Frequency Biascited by 12
- 2023Improving Adversarial Robustness of Masked Autoencoders via Test-time Frequency-domain Promptingcited by 12
- 2024Benchmarking the Robustness of Temporal Action Detection Models Against Temporal Corruptionscited by 12
- 2022Holistic Adversarial Robustness of Deep Learning Modelscited by 11
- 2023On the unreasonable vulnerability of transformers for image restoration -- and an easy fixcited by 11
- 2024PROSAC: Provably Safe Certification for Machine Learning Models under Adversarial Attackscited by 11
- 2024Vision transformers in domain adaptation and domain generalization: a study of robustnesscited by 11
- 2022On Divergence Measures for Bayesian Pseudocoresetscited by 10
- 2023Initialization Matters for Adversarial Transfer Learningcited by 9
- 2024Layer-Aware Analysis of Catastrophic Overfitting: Revealing the Pseudo-Robust Shortcut Dependencycited by 9
- 2022Exploring Adversarial Robustness of Vision Transformers in the Spectral Perspectivecited by 8
- 2022A.I. Robustness: a Human-Centered Perspective on Technological Challenges and Opportunitiescited by 8
- 2023On the Effectiveness of Spectral Discriminators for Perceptual Quality Improvementcited by 8
- 2024Revealing the Dark Secrets of Extremely Large Kernel ConvNets on Robustnesscited by 8
- 2025Adversarial Alignment for LLMs Requires Simpler, Reproducible, and More Measurable Objectivescited by 8
- 2022Towards Improved Input Masking for Convolutional Neural Networkscited by 7
- 2023Beyond Pretrained Features: Noisy Image Modeling Provides Adversarial Defensecited by 7
- 2023RobArch: Designing Robust Architectures against Adversarial Attackscited by 6
- 2023Fairness-aware Vision Transformer via Debiased Self-Attentioncited by 6
- 2023Efficiency 360: Efficient Vision Transformerscited by 6
- 2024UDA-Bench: Revisiting Common Assumptions in Unsupervised Domain Adaptation Using a Standardized Frameworkcited by 6
- 2022Are Transformers More Robust? Towards Exact Robustness Verification for Transformerscited by 5
- 2024SpecFormer: Guarding Vision Transformer Robustness via Maximum Singular Value Penalizationcited by 5
- 2022Exploring Adversarial Attacks and Defenses in Vision Transformers trained with DINOcited by 4
- 2022On the interplay of adversarial robustness and architecture components: patches, convolution and attentioncited by 4
- 2022FG-UAP: Feature-Gathering Universal Adversarial Perturbationcited by 4
- 2025AdvReal: Physical Adversarial Patch Generation Framework for Security Evaluation of Object Detection Systemscited by 4
- 2023RBFormer: Improve Adversarial Robustness of Transformer by Robust Biascited by 3
- 2024Reproducibility Study on Adversarial Attacks Against Robust Transformer Trackerscited by 3
- 2024Unaligning Everything: Or Aligning Any Text to Any Image in Multimodal Modelscited by 3
50 most cited of 104 All 104 (JSON)
- 2026Printability-Constrained Adversarial Decals for Near-Nadir Aerial Perception: Measured Ink Gamuts, Nested Realism Constraints, and a Physical-World Bound27 Sep 2026
- 2026Preprocessing Failure and Adversarial Detection in Depthwise-Separable Edge Vision Systems3 Sep 2026
- 2026Margin-Drop Coordinates for Cross-Budget Robustness Evaluation20 Aug 2026
- 2026Adversarial Decoys: Misdirecting Attention-Based Defenses in ViT8 Jul 2026
- 2026DarkLLM: Learning Language-Driven Adversarial Attacks with Large Language Models15 May 2026
- 2026Fluently Lying: Adversarial Robustness Can Be Substrate-Dependent1 Apr 2026
- 2026In Transformer We Trust? A Perspective on Transformer Architecture Failure Modes15 Feb 2026
- 2026Same Answer, Different Representations: Hidden instability in VLMs6 Feb 2026
- 2025Defense That Attacks: How Robust Models Become Better Attackers2 Dec 2025
- 2025Ensuring Calibration Robustness in Split Conformal Prediction Under Adversarial Attacks23 Nov 2025
- 2025Influence-Guided Concolic Testing of Transformer Robustness28 Sep 2025
- 2025IGAff: Benchmarking Adversarial Iterative and Genetic Affine Algorithms on Deep Neural Networks8 Sep 2025
38 more
- 2025A Guide to Robust Generalization: The Impact of Architecture, Pre-training, and Optimization Strategy12 Aug 2025
- 2025Breaking the Illusion of Security via Interpretation: Interpretable Vision Transformer Systems under Attack18 Jul 2025
- 2025Are Fast Methods Stable in Adversarially Robust Transfer Learning?27 Jun 2025
- 2025ProARD: progressive adversarial robustness distillation: provide wide range of robust students9 Jun 2025
- 2025Boosting Adversarial Transferability via Commonality-Oriented Gradient Optimization8 Jun 2025
- 2025Attacking Attention of Foundation Models Disrupts Downstream Tasks3 Jun 2025
- 2025Targeted Unlearning Using Perturbed Sign Gradient Methods With Applications On Medical Images28 May 2025
- 2025AdvReal: Physical Adversarial Patch Generation Framework for Security Evaluation of Object Detection Systems22 May 2025
- 2025Adversarially Pretrained Transformers May Be Universally Robust In-Context Learners20 May 2025
- 2025LipShiFT: A Certifiably Robust Shift-based Vision Transformer18 Mar 2025
- 2025Examining the Threat Landscape: Foundation Models and Model Stealing25 Feb 2025
- 2025Adversarial Alignment for LLMs Requires Simpler, Reproducible, and More Measurable Objectives17 Feb 2025
- 2025Vision Transformer Neural Architecture Search for Out-of-Distribution Generalization: Benchmark and Insights7 Jan 2025
- 2024Adversarial Robustness for Deep Learning-based Wildfire Prediction Models28 Dec 2024
- 2024Evaluating the Adversarial Robustness of Detection Transformers25 Dec 2024
- 2024ViTmiX: Vision Transformer Explainability Augmented by Mixed Visualization Methods18 Dec 2024
- 2024SATA: Spatial Autocorrelation Token Analysis for Enhancing the Robustness of Vision Transformers30 Sep 2024
- 2024UDA-Bench: Revisiting Common Assumptions in Unsupervised Domain Adaptation Using a Standardized Framework23 Sep 2024
- 2024ViTGuard: Attention-aware Detection against Adversarial Examples for Vision Transformer20 Sep 2024
- 2024Interpreting Global Perturbation Robustness of Image Models using Axiomatic Spectral Importance Decomposition2 Aug 2024
- 2024SegStitch: Multidimensional Transformer for Robust and Efficient Medical Imaging Segmentation1 Aug 2024
- 2024S-E Pipeline: A Vision Transformer (ViT) based Resilient Classification Pipeline for Medical Imaging Against Adversarial Attacks23 Jul 2024
- 2024Arondight: Red Teaming Large Vision Language Models with Auto-generated Multi-modal Jailbreak Prompts21 Jul 2024
- 2024Revealing the Dark Secrets of Extremely Large Kernel ConvNets on Robustness12 Jul 2024
- 2024TrackPGD: Efficient Adversarial Attack using Object Binary Masks against Robust Transformer Trackers4 Jul 2024
- 2024Unaligning Everything: Or Aligning Any Text to Any Image in Multimodal Models1 Jul 2024
- 2024Query-Efficient Hard-Label Black-Box Attack against Vision Transformers29 Jun 2024
- 2024On Evaluating Adversarial Robustness of Volumetric Medical Segmentation Models12 Jun 2024
- 2024Reproducibility Study on Adversarial Attacks Against Robust Transformer Trackers3 Jun 2024
- 2024Layer-Aware Analysis of Catastrophic Overfitting: Revealing the Pseudo-Robust Shortcut Dependency25 May 2024
- 2024Vision transformers in domain adaptation and domain generalization: a study of robustness5 Apr 2024
- 2024On Inherent Adversarial Robustness of Active Vision Systems29 Mar 2024
- 2024Benchmarking the Robustness of Temporal Action Detection Models Against Temporal Corruptions29 Mar 2024
- 2024Approximate Nullspace Augmented Finetuning for Robust Vision Transformers15 Mar 2024
- 2024Multi-Attribute Vision Transformers are Efficient and Robust Learners12 Feb 2024
- 2024Boosting Adversarial Transferability across Model Genus by Deformation-Constrained Warping6 Feb 2024
- 2024PROSAC: Provably Safe Certification for Machine Learning Models under Adversarial Attacks4 Feb 2024
- 2024Delving into Decision-based Black-box Attacks on Semantic Segmentation2 Feb 2024
50 newest of 104 All 104 (JSON)
- 2022How Do Vision Transformers Work?cited by 305
- 2022Understanding The Robustness in Vision Transformerscited by 144
- 20223D Common Corruptions and Data Augmentationcited by 120
- 2023MedViT: A Robust Vision Transformer for Generalized Medical Image Classificationcited by 89
- 2023A Comprehensive Study on Robustness of Image Classification Models: Benchmarking and Rethinkingcited by 85
- 2022A Light Recipe to Train Robust Vision Transformerscited by 64
- 2021Adversarial Robustness Comparison of Vision Transformer and MLP-Mixer to CNNscited by 57
- 2022Teaching Matters: Investigating the Role of Supervision in Vision Transformerscited by 45
- 2023Transferable Adversarial Attacks on Vision Transformers with Token Gradient Regularizationcited by 42
- 2023What Makes Pre-Trained Visual Representations Successful for Robust Manipulation?cited by 38
- 2023Why Does Little Robustness Help? A Further Step Towards Understanding Adversarial Transferabilitycited by 32
- 2023Survey on Unsupervised Domain Adaptation for Semantic Segmentation for Visual Perception in Automated Drivingcited by 29
12 most cited of 99 All 99 (JSON)
- 2026Printability-Constrained Adversarial Decals for Near-Nadir Aerial Perception: Measured Ink Gamuts, Nested Realism Constraints, and a Physical-World Bound27 Sep 2026
- 2026Preprocessing Failure and Adversarial Detection in Depthwise-Separable Edge Vision Systems3 Sep 2026
- 2026Margin-Drop Coordinates for Cross-Budget Robustness Evaluation20 Aug 2026
- 2026Adversarial Decoys: Misdirecting Attention-Based Defenses in ViT8 Jul 2026
- 2026DarkLLM: Learning Language-Driven Adversarial Attacks with Large Language Models15 May 2026
- 2026Fluently Lying: Adversarial Robustness Can Be Substrate-Dependent1 Apr 2026
- 2026In Transformer We Trust? A Perspective on Transformer Architecture Failure Modes15 Feb 2026
- 2025Defense That Attacks: How Robust Models Become Better Attackers2 Dec 2025
- 2025Ensuring Calibration Robustness in Split Conformal Prediction Under Adversarial Attacks23 Nov 2025
- 2025Influence-Guided Concolic Testing of Transformer Robustness28 Sep 2025
- 2025IGAff: Benchmarking Adversarial Iterative and Genetic Affine Algorithms on Deep Neural Networks8 Sep 2025
- 2025A Guide to Robust Generalization: The Impact of Architecture, Pre-training, and Optimization Strategy12 Aug 2025
12 newest of 99 All 99 (JSON)