mlsanityData to 14 Oct 2026

Towards Efficient Adversarial Training on Vision Transformers

arXiv 2207.10498 ↗First posted 21 Jul 2022cs.CVcited by 30

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  4. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  5. 2020Language Models are Few-Shot Learnerscited by 32,419
  6. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  7. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  8. 2017Graph Attention Networkscited by 8,923
  9. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
  10. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  11. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
  12. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
38 more
  1. 2013Intriguing properties of neural networkscited by 5,155
  2. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  3. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
  4. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
  5. 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,451
  6. 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,268
  7. 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
  8. 2021Going deeper with Image Transformerscited by 764
  9. 2020Fast is better than free: Revisiting adversarial trainingcited by 727
  10. 2019Square Attack: a query-efficient black-box adversarial attack via random searchcited by 685
  11. 2019Adversarial Training for Free!cited by 643
  12. 2017Countering Adversarial Images using Input Transformationscited by 520
  13. 2020Overfitting in adversarially robust deep learningcited by 506
  14. 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
  15. 2021Intriguing Properties of Vision Transformerscited by 446
  16. 2017Mitigating Adversarial Effects Through Randomizationcited by 383
  17. 2018Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Modelscited by 362
  18. 2017Defense against Adversarial Attacks Using High-Level Representation Guided Denoisercited by 329
  19. 2017MagNet: a Two-Pronged Defense against Adversarial Examplescited by 269
  20. 2021Understanding Robustness of Transformers for Image Classificationcited by 249
  21. 2017PixelDefend: Leveraging Generative Models to Understand and Defend against Adversarial Examplescited by 244
  22. 2020Understanding and Improving Fast Adversarial Trainingcited by 214
  23. 2021Vision Transformers are Robust Learnerscited by 207
  24. 2021Are Transformers More Robust Than CNNs?cited by 187
  25. 2021Chasing Sparsity in Vision Transformers: An End-to-End Explorationcited by 183
  26. 2021Evo-ViT: Slow-Fast Token Evolution for Dynamic Vision Transformercited by 177
  27. 2018Stochastic Activation Pruning for Robust Adversarial Defensecited by 171
  28. 2021On the Robustness of Vision Transformers to Adversarial Examplescited by 167
  29. 2019Adversarial Robustness through Local Linearizationcited by 146
  30. 2021CrossFormer: A Versatile Vision Transformer Hinging on Cross-scale Attentioncited by 139
  31. 2021Towards Robust Vision Transformercited by 137
  32. 2021Patch Slimming for Efficient Vision Transformerscited by 133
  33. 2021IA-RED2: Interpretability-Aware Redundancy Reduction for Vision Transformerscited by 127
  34. 2018Transferable Adversarial Attacks for Image and Video Object Detectioncited by 109
  35. 2022LAS-AT: Adversarial Training with Learnable Attack Strategycited by 95
  36. 2021ResT: An Efficient Transformer for Visual Recognitioncited by 79
  37. 2021RobustART: Benchmarking Robustness on Architecture Design and Training Techniquescited by 79
  38. 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

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 1; 2023: 13; 2024: 12; 2025: 2; 2026: 2.

30 papers.

Sort:

By area:

  1. 2022A Light Recipe to Train Robust Vision Transformerscited by 64
  2. 2024An Image Is Worth 1000 Lies: Adversarial Transferability across Prompts on Vision-Language Modelscited by 45
  3. 2023A Survey on Transferability of Adversarial Examples across Deep Neural Networkscited by 44
  4. 2023Backdoor Defense via Adaptively Splitting Poisoned Datasetcited by 43
  5. 2024Few-Shot Adversarial Prompt Learning on Vision-Language Modelscited by 39
  6. 2023Improving Fast Adversarial Training with Prior-Guided Knowledgecited by 35
  7. 2023Benchmarking Robustness of Adaptation Methods on Pre-trained Vision-Language Modelscited by 31
  8. 2024Which Model Generated This Image? A Model-Agnostic Approach for Origin Attributioncited by 16
  9. 2023Reliable Evaluation of Adversarial Transferabilitycited by 13
  10. 2024Object Detectors in the Open Environment: Challenges, Solutions, and Outlookcited by 13
  11. 2023MIMIR: Masked Image Modeling for Mutual Information-based Adversarial Robustnesscited by 12
  12. 2024FullLoRA: Efficiently Boosting the Robustness of Pretrained Vision Transformerscited by 9
18 more
  1. 2023Towards Robust Prompts on Vision-Language Modelscited by 7
  2. 2023Efficiency 360: Efficient Vision Transformerscited by 6
  3. 2024Adversarial Training: A Surveycited by 6
  4. 2023Influencer Backdoor Attack on Semantic Segmentationcited by 5
  5. 2024Catastrophic Overfitting: A Potential Blessing in Disguisecited by 4
  6. 2024Enhancing Cross-Prompt Transferability in Vision-Language Models through Contextual Injection of Target Tokenscited by 4
  7. 2025Adversarially Pretrained Transformers May Be Universally Robust In-Context Learnerscited by 3
  8. 2024Towards Robust Semantic Segmentation against Patch-based Attack via Attention Refinementcited by 2
  9. 2023Exploring Non-additive Randomness on ViT against Query-Based Black-Box Attackscited by 1
  10. 2023Blacksmith: Fast Adversarial Training of Vision Transformers via a Mixture of Single-step and Multi-step Methodscited by 1
  11. 2024ZeroPur: Succinct Training-Free Adversarial Purificationcited by 1
  12. 2024Frontiers of Deep Learning: From Novel Application to Real-World Deploymentcited by 1
  13. 2023Explainability and Robustness of Deep Visual Classification Modelscited by 0
  14. 2023SEDA: Self-Ensembling ViT with Defensive Distillation and Adversarial Training for robust Chest X-rays Classificationcited by 0
  15. 2024Improving Fast Adversarial Training Paradigm: An Example Taxonomy Perspectivecited by 0
  16. 2025Are Fast Methods Stable in Adversarially Robust Transfer Learning?cited by 0
  17. 2026Unveiling the Backdoor Mechanism Hidden Behind Catastrophic Overfitting in Fast Adversarial Trainingcited by 0
  18. 2026SORA: Free Second-Order Attacks in Fast Adversarial Trainingcited by 0