Towards Efficient Adversarial Training on Vision Transformers
Not on the map. Why?
Abstract (arXiv)
Vision Transformer (ViT), as a powerful alternative to Convolutional Neural Network (CNN), has received much attention. Recent work showed that ViTs are also vulnerable to adversarial examples like CNNs. To build robust ViTs, an intuitive way is to apply adversarial training since it has been shown as one of the most effective ways to accomplish robust CNNs. However, one major limitation of adversarial training is its heavy computational cost. The self-attention mechanism adopted by ViTs is a computationally intense operation whose expense increases quadratically with the number of input patches, making adversarial training on ViTs even more time-consuming. In this work, we first comprehensively study fast adversarial training on a variety of vision transformers and illustrate the relationship between the efficiency and robustness. Then, to expediate adversarial training on ViTs, we propose an efficient Attention Guided Adversarial Training mechanism. Specifically, relying on the specialty of self-attention, we actively remove certain patch embeddings of each layer with an attention-guided dropping strategy during adversarial training. The slimmed self-attention modules accelerate the adversarial training on ViTs significantly. With only 65% of the fast adversarial training time, we match the state-of-the-art results on the challenging ImageNet benchmark.
Key facts. Cited by 30 papers in the map (data through 14 Oct 2026). Builds on 65 of its 73 references that are in the map. First posted on arXiv 21 Jul 2022.
Builds on
65 of 73 references.
References · 65
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2017Graph Attention Networkscited by 8,923
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
38 more
- 2013Intriguing properties of neural networkscited by 5,155
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
- 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,451
- 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,268
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
- 2021Going deeper with Image Transformerscited by 764
- 2020Fast is better than free: Revisiting adversarial trainingcited by 727
- 2019Square Attack: a query-efficient black-box adversarial attack via random searchcited by 685
- 2019Adversarial Training for Free!cited by 643
- 2017Countering Adversarial Images using Input Transformationscited by 520
- 2020Overfitting in adversarially robust deep learningcited by 506
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2017Mitigating Adversarial Effects Through Randomizationcited by 383
- 2018Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Modelscited by 362
- 2017Defense against Adversarial Attacks Using High-Level Representation Guided Denoisercited by 329
- 2017MagNet: a Two-Pronged Defense against Adversarial Examplescited by 269
- 2021Understanding Robustness of Transformers for Image Classificationcited by 249
- 2017PixelDefend: Leveraging Generative Models to Understand and Defend against Adversarial Examplescited by 244
- 2020Understanding and Improving Fast Adversarial Trainingcited by 214
- 2021Vision Transformers are Robust Learnerscited by 207
- 2021Are Transformers More Robust Than CNNs?cited by 187
- 2021Chasing Sparsity in Vision Transformers: An End-to-End Explorationcited by 183
- 2021Evo-ViT: Slow-Fast Token Evolution for Dynamic Vision Transformercited by 177
- 2018Stochastic Activation Pruning for Robust Adversarial Defensecited by 171
- 2021On the Robustness of Vision Transformers to Adversarial Examplescited by 167
- 2019Adversarial Robustness through Local Linearizationcited by 146
- 2021CrossFormer: A Versatile Vision Transformer Hinging on Cross-scale Attentioncited by 139
- 2021Towards Robust Vision Transformercited by 137
- 2021Patch Slimming for Efficient Vision Transformerscited by 133
- 2021IA-RED2: Interpretability-Aware Redundancy Reduction for Vision Transformerscited by 127
- 2018Transferable Adversarial Attacks for Image and Video Object Detectioncited by 109
- 2022LAS-AT: Adversarial Training with Learnable Attack Strategycited by 95
- 2021ResT: An Efficient Transformer for Visual Recognitioncited by 79
- 2021RobustART: Benchmarking Robustness on Architecture Design and Training Techniquescited by 79
- 2022Parallel Rectangle Flip Attack: A Query-based Black-box Attack against Object Detectioncited by 79
50 most cited of 65 All 65 (JSON)
Built on by
Citing papers per year: 2022: 1; 2023: 13; 2024: 12; 2025: 2; 2026: 2.
30 papers.
Sort:
By area:
- 2022A Light Recipe to Train Robust Vision Transformerscited by 64
- 2024An Image Is Worth 1000 Lies: Adversarial Transferability across Prompts on Vision-Language Modelscited by 45
- 2023A Survey on Transferability of Adversarial Examples across Deep Neural Networkscited by 44
- 2023Backdoor Defense via Adaptively Splitting Poisoned Datasetcited by 43
- 2024Few-Shot Adversarial Prompt Learning on Vision-Language Modelscited by 39
- 2023Improving Fast Adversarial Training with Prior-Guided Knowledgecited by 35
- 2023Benchmarking Robustness of Adaptation Methods on Pre-trained Vision-Language Modelscited by 31
- 2024Which Model Generated This Image? A Model-Agnostic Approach for Origin Attributioncited by 16
- 2023Reliable Evaluation of Adversarial Transferabilitycited by 13
- 2024Object Detectors in the Open Environment: Challenges, Solutions, and Outlookcited by 13
- 2023MIMIR: Masked Image Modeling for Mutual Information-based Adversarial Robustnesscited by 12
- 2024FullLoRA: Efficiently Boosting the Robustness of Pretrained Vision Transformerscited by 9
18 more
- 2023Towards Robust Prompts on Vision-Language Modelscited by 7
- 2023Efficiency 360: Efficient Vision Transformerscited by 6
- 2024Adversarial Training: A Surveycited by 6
- 2023Influencer Backdoor Attack on Semantic Segmentationcited by 5
- 2024Catastrophic Overfitting: A Potential Blessing in Disguisecited by 4
- 2024Enhancing Cross-Prompt Transferability in Vision-Language Models through Contextual Injection of Target Tokenscited by 4
- 2025Adversarially Pretrained Transformers May Be Universally Robust In-Context Learnerscited by 3
- 2024Towards Robust Semantic Segmentation against Patch-based Attack via Attention Refinementcited by 2
- 2023Exploring Non-additive Randomness on ViT against Query-Based Black-Box Attackscited by 1
- 2023Blacksmith: Fast Adversarial Training of Vision Transformers via a Mixture of Single-step and Multi-step Methodscited by 1
- 2024ZeroPur: Succinct Training-Free Adversarial Purificationcited by 1
- 2024Frontiers of Deep Learning: From Novel Application to Real-World Deploymentcited by 1
- 2023Explainability and Robustness of Deep Visual Classification Modelscited by 0
- 2023SEDA: Self-Ensembling ViT with Defensive Distillation and Adversarial Training for robust Chest X-rays Classificationcited by 0
- 2024Improving Fast Adversarial Training Paradigm: An Example Taxonomy Perspectivecited by 0
- 2025Are Fast Methods Stable in Adversarially Robust Transfer Learning?cited by 0
- 2026Unveiling the Backdoor Mechanism Hidden Behind Catastrophic Overfitting in Fast Adversarial Trainingcited by 0
- 2026SORA: Free Second-Order Attacks in Fast Adversarial Trainingcited by 0
- 2026SORA: Free Second-Order Attacks in Fast Adversarial Training30 May 2026
- 2026Unveiling the Backdoor Mechanism Hidden Behind Catastrophic Overfitting in Fast Adversarial Training27 Apr 2026
- 2025Are Fast Methods Stable in Adversarially Robust Transfer Learning?27 Jun 2025
- 2025Adversarially Pretrained Transformers May Be Universally Robust In-Context Learners20 May 2025
- 2024Adversarial Training: A Survey19 Oct 2024
- 2024Improving Fast Adversarial Training Paradigm: An Example Taxonomy Perspective22 Jul 2024
- 2024Frontiers of Deep Learning: From Novel Application to Real-World Deployment19 Jul 2024
- 2024Enhancing Cross-Prompt Transferability in Vision-Language Models through Contextual Injection of Target Tokens19 Jun 2024
- 2024ZeroPur: Succinct Training-Free Adversarial Purification5 Jun 2024
- 2024Which Model Generated This Image? A Model-Agnostic Approach for Origin Attribution3 Apr 2024
- 2024Object Detectors in the Open Environment: Challenges, Solutions, and Outlook24 Mar 2024
- 2024Few-Shot Adversarial Prompt Learning on Vision-Language Models21 Mar 2024
18 more
- 2024An Image Is Worth 1000 Lies: Adversarial Transferability across Prompts on Vision-Language Models14 Mar 2024
- 2024Catastrophic Overfitting: A Potential Blessing in Disguise28 Feb 2024
- 2024FullLoRA: Efficiently Boosting the Robustness of Pretrained Vision Transformers3 Jan 2024
- 2024Towards Robust Semantic Segmentation against Patch-based Attack via Attention Refinement3 Jan 2024
- 2023MIMIR: Masked Image Modeling for Mutual Information-based Adversarial Robustness8 Dec 2023
- 2023Blacksmith: Fast Adversarial Training of Vision Transformers via a Mixture of Single-step and Multi-step Methods29 Oct 2023
- 2023A Survey on Transferability of Adversarial Examples across Deep Neural Networks26 Oct 2023
- 2023Exploring Non-additive Randomness on ViT against Query-Based Black-Box Attacks12 Sep 2023
- 2023SEDA: Self-Ensembling ViT with Defensive Distillation and Adversarial Training for robust Chest X-rays Classification15 Aug 2023
- 2023Reliable Evaluation of Adversarial Transferability14 Jun 2023
- 2023Benchmarking Robustness of Adaptation Methods on Pre-trained Vision-Language Models3 Jun 2023
- 2023Towards Robust Prompts on Vision-Language Models17 Apr 2023
- 2023Improving Fast Adversarial Training with Prior-Guided Knowledge1 Apr 2023
- 2023Backdoor Defense via Adaptively Splitting Poisoned Dataset23 Mar 2023
- 2023Influencer Backdoor Attack on Semantic Segmentation21 Mar 2023
- 2023Efficiency 360: Efficient Vision Transformers16 Feb 2023
- 2023Explainability and Robustness of Deep Visual Classification Models3 Jan 2023
- 2022A Light Recipe to Train Robust Vision Transformers15 Sep 2022
- 2024An Image Is Worth 1000 Lies: Adversarial Transferability across Prompts on Vision-Language Modelscited by 45
- 2024Few-Shot Adversarial Prompt Learning on Vision-Language Modelscited by 39
- 2023Benchmarking Robustness of Adaptation Methods on Pre-trained Vision-Language Modelscited by 31
- 2023MIMIR: Masked Image Modeling for Mutual Information-based Adversarial Robustnesscited by 12
- 2023Towards Robust Prompts on Vision-Language Modelscited by 7
- 2024Enhancing Cross-Prompt Transferability in Vision-Language Models through Contextual Injection of Target Tokenscited by 4
- 2024Enhancing Cross-Prompt Transferability in Vision-Language Models through Contextual Injection of Target Tokens19 Jun 2024
- 2024Few-Shot Adversarial Prompt Learning on Vision-Language Models21 Mar 2024
- 2024An Image Is Worth 1000 Lies: Adversarial Transferability across Prompts on Vision-Language Models14 Mar 2024
- 2023MIMIR: Masked Image Modeling for Mutual Information-based Adversarial Robustness8 Dec 2023
- 2023Benchmarking Robustness of Adaptation Methods on Pre-trained Vision-Language Models3 Jun 2023
- 2023Towards Robust Prompts on Vision-Language Models17 Apr 2023
- 2022A Light Recipe to Train Robust Vision Transformerscited by 64
- 2023A Survey on Transferability of Adversarial Examples across Deep Neural Networkscited by 44
- 2023Backdoor Defense via Adaptively Splitting Poisoned Datasetcited by 43
- 2023Improving Fast Adversarial Training with Prior-Guided Knowledgecited by 35
- 2024Which Model Generated This Image? A Model-Agnostic Approach for Origin Attributioncited by 16
- 2023Reliable Evaluation of Adversarial Transferabilitycited by 13
- 2024Object Detectors in the Open Environment: Challenges, Solutions, and Outlookcited by 13
- 2024FullLoRA: Efficiently Boosting the Robustness of Pretrained Vision Transformerscited by 9
- 2023Efficiency 360: Efficient Vision Transformerscited by 6
- 2024Adversarial Training: A Surveycited by 6
- 2023Influencer Backdoor Attack on Semantic Segmentationcited by 5
- 2024Catastrophic Overfitting: A Potential Blessing in Disguisecited by 4
12 most cited of 24 All 24 (JSON)
- 2026SORA: Free Second-Order Attacks in Fast Adversarial Training30 May 2026
- 2026Unveiling the Backdoor Mechanism Hidden Behind Catastrophic Overfitting in Fast Adversarial Training27 Apr 2026
- 2025Are Fast Methods Stable in Adversarially Robust Transfer Learning?27 Jun 2025
- 2025Adversarially Pretrained Transformers May Be Universally Robust In-Context Learners20 May 2025
- 2024Adversarial Training: A Survey19 Oct 2024
- 2024Improving Fast Adversarial Training Paradigm: An Example Taxonomy Perspective22 Jul 2024
- 2024Frontiers of Deep Learning: From Novel Application to Real-World Deployment19 Jul 2024
- 2024ZeroPur: Succinct Training-Free Adversarial Purification5 Jun 2024
- 2024Which Model Generated This Image? A Model-Agnostic Approach for Origin Attribution3 Apr 2024
- 2024Object Detectors in the Open Environment: Challenges, Solutions, and Outlook24 Mar 2024
- 2024Catastrophic Overfitting: A Potential Blessing in Disguise28 Feb 2024
- 2024FullLoRA: Efficiently Boosting the Robustness of Pretrained Vision Transformers3 Jan 2024
12 newest of 24 All 24 (JSON)