mlsanityData to 7 Oct 2026

Patch-Fool: Are Vision Transformers Always Robust Against Adversarial Perturbations?

arXiv 2203.08392 ↗First posted 16 Mar 2022cs.CVcited by 47

Not on the map. Why?

Abstract (arXiv)

Vision transformers (ViTs) have recently set off a new wave in neural architecture design thanks to their record-breaking performance in various vision tasks. In parallel, to fulfill the goal of deploying ViTs into real-world vision applications, their robustness against potential malicious attacks has gained increasing attention. In particular, recent works show that ViTs are more robust against adversarial attacks as compared with convolutional neural networks (CNNs), and conjecture that this is because ViTs focus more on capturing global interactions among different input/feature patches, leading to their improved robustness to local perturbations imposed by adversarial attacks. In this work, we ask an intriguing question: "Under what kinds of perturbations do ViTs become more vulnerable learners compared to CNNs?" Driven by this question, we first conduct a comprehensive experiment regarding the robustness of both ViTs and CNNs under various existing adversarial attacks to understand the underlying reason favoring their robustness. Based on the drawn insights, we then propose a dedicated attack framework, dubbed Patch-Fool, that fools the self-attention mechanism by attacking its basic component (i.e., a single patch) with a series of attention-aware optimization techniques. Interestingly, our Patch-Fool framework shows for the first time that ViTs are not necessarily more robust than CNNs against adversarial perturbations. In particular, we find that ViTs are more vulnerable learners compared with CNNs against our Patch-Fool attack which is consistent across extensive experiments, and the observations from Sparse/Mild Patch-Fool, two variants of Patch-Fool, indicate an intriguing insight that the perturbation density and strength on each patch seem to be the key factors that influence the robustness ranking between ViTs and CNNs.

Key facts. Cited by 47 papers in the map (data through 7 Oct 2026). Builds on 69 of its 81 references that are in the map. First posted on arXiv 16 Mar 2022.

Builds on

69 of 81 references.

References · 69

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
  6. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  7. 2020End-to-End Object Detection with Transformerscited by 7,384
  8. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  9. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
  10. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  11. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  12. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
38 more
  1. 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,348
  2. 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
  3. 2021SwinIR: Image Restoration Using Swin Transformercited by 1,869
  4. 2021ViViT: A Video Vision Transformercited by 1,610
  5. 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,610
  6. 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,442
  7. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
  8. 2019Certified Adversarial Robustness via Randomized Smoothingcited by 1,324
  9. 2015DeepFool: a simple and accurate method to fool deep neural networkscited by 1,315
  10. 2020Gradient Surgery for Multi-Task Learningcited by 1,210
  11. 2021Video Swin Transformercited by 1,090
  12. 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
  13. 2021Multiscale Vision Transformerscited by 896
  14. 2021Segmenter: Transformer for Semantic Segmentationcited by 855
  15. 2015The Limitations of Deep Learning in Adversarial Settingscited by 784
  16. 2020Fast is better than free: Revisiting adversarial trainingcited by 723
  17. 2019Square Attack: a query-efficient black-box adversarial attack via random searchcited by 682
  18. 2017ZOO: Zeroth Order Optimization based Black-box Attacks to Deep Neural Networks without Training Substitute Modelscited by 656
  19. 2019Adversarial Training for Free!cited by 638
  20. 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
  21. 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 526
  22. 2017Countering Adversarial Images using Input Transformationscited by 517
  23. 2017Adversarial Patchcited by 514
  24. 2018Black-box Adversarial Attacks with Limited Queries and Informationcited by 499
  25. 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
  26. 2018Threat of Adversarial Attacks on Deep Learning in Computer Vision: A Surveycited by 459
  27. 2020End-to-End Video Instance Segmentation with Transformerscited by 443
  28. 2018Generating Natural Language Adversarial Examplescited by 422
  29. 2021Early Convolutions Help Transformers See Bettercited by 395
  30. 2017Mitigating Adversarial Effects Through Randomizationcited by 382
  31. 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 286
  32. 2018Adversarial Attacks and Defences: A Surveycited by 259
  33. 2021Understanding Robustness of Transformers for Image Classificationcited by 250
  34. 2019Simple Black-box Adversarial Attackscited by 249
  35. 2017Detecting Adversarial Samples from Artifactscited by 244
  36. 2019What's Hidden in a Randomly Weighted Neural Network?cited by 236
  37. 2017On Detecting Adversarial Perturbationscited by 232
  38. 2021On the Robustness of Vision Transformers to Adversarial Examplescited by 167

50 most cited of 69 All 69 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 8; 2023: 13; 2024: 13; 2025: 8; 2026: 5.

47 papers.

Sort:

By area:

  1. 2024Jailbreaking Attack against Multimodal Large Language Modelcited by 128
  2. 2023Revisiting Adversarial Training for ImageNet: Architectures, Training and Generalization across Threat Modelscited by 79
  3. 2023How Deep Learning Sees the World: A Survey on Adversarial Attacks & Defensescited by 65
  4. 2023What Makes Pre-Trained Visual Representations Successful for Robust Manipulation?cited by 38
  5. 2024Revisiting Adversarial Training at Scalecited by 33
  6. 2022Towards Efficient Adversarial Training on Vision Transformerscited by 29
  7. 2022Give Me Your Attention: Dot-Product Attention Considered Harmful for Adversarial Patch Robustnesscited by 23
  8. 2023Generative Watermarking Against Unauthorized Subject-Driven Image Synthesiscited by 21
  9. 2023Robustifying Token Attention for Vision Transformerscited by 19
  10. 2022Self-Ensembling Vision Transformer (SEViT) for Robust Medical Image Classificationcited by 16
  11. 2024Understanding Robustness of Visual State Space Models for Image Classificationcited by 12
  12. 2024FullLoRA: Efficiently Boosting the Robustness of Pretrained Vision Transformerscited by 9
35 more
  1. 2022Exploring Adversarial Robustness of Vision Transformers in the Spectral Perspectivecited by 8
  2. 2023Fairness-aware Vision Transformer via Debiased Self-Attentioncited by 6
  3. 2022Are All Vision Models Created Equal? A Study of the Open-Loop to Closed-Loop Causality Gapcited by 5
  4. 2024SpecFormer: Guarding Vision Transformer Robustness via Maximum Singular Value Penalizationcited by 5
  5. 2024ObjectCompose: Evaluating Resilience of Vision-Based Models on Object-to-Background Compositional Changescited by 5
  6. 2025Don't Lag, RAG: Training-Free Adversarial Detection Using RAGcited by 5
  7. 2022On the interplay of adversarial robustness and architecture components: patches, convolution and attentioncited by 4
  8. 2022Audit and Improve Robustness of Private Neural Networks on Encrypted Datacited by 4
  9. 2022Similarity of Neural Architectures using Adversarial Attack Transferabilitycited by 4
  10. 2023SlowFormer: Universal Adversarial Patch for Attack on Compute and Energy Efficiency of Inference Efficient Vision Transformerscited by 3
  11. 2024Attacking Transformers with Feature Diversity Adversarial Perturbationcited by 3
  12. 2023Hint-Aug: Drawing Hints from Foundation Vision Transformers Towards Boosted Few-Shot Parameter-Efficient Tuningcited by 2
  13. 2023Random Position Adversarial Patch for Vision Transformerscited by 2
  14. 2024Towards Robust Semantic Segmentation against Patch-based Attack via Attention Refinementcited by 2
  15. 2024Query-Efficient Hard-Label Black-Box Attack against Vision Transformerscited by 2
  16. 2024ViTGuard: Attention-aware Detection against Adversarial Examples for Vision Transformercited by 2
  17. 2025Attacking Attention of Foundation Models Disrupts Downstream Taskscited by 2
  18. 2025Vision Transformer with Adversarial Indicator Token against Adversarial Attacks in Radio Signal Classificationscited by 2
  19. 2025Seeing Isn't Believing: Context-Aware Adversarial Patch Synthesis via Conditional GANcited by 2
  20. 2025Universal and Transferable Attacks on Pathology Foundation Modelscited by 2
  21. 2023Attention Deficit is Ordered! Fooling Deformable Vision Transformers with Collaborative Adversarial Patchescited by 1
  22. 2023Inference Time Evidences of Adversarial Attacks for Forensic on Transformerscited by 0
  23. 2023Is Attentional Channel Processing Design Required? Comprehensive Analysis Of Robustness Between Vision Transformers And Fully Attentional Networkscited by 0
  24. 2023Investigating the Robustness and Properties of Detection Transformers (DETR) Toward Difficult Imagescited by 0
  25. 2024Multi-Attribute Vision Transformers are Efficient and Robust Learnerscited by 0
  26. 2024Approximate Nullspace Augmented Finetuning for Robust Vision Transformerscited by 0
  27. 2024Adversarial Robustness for Deep Learning-based Wildfire Prediction Modelscited by 0
  28. 2025Preventing Adversarial AI Attacks Against Autonomous Situational Awareness: A Maritime Case Studycited by 0
  29. 2025Understanding Sensitivity of Differential Attention through the Lens of Adversarial Robustnesscited by 0
  30. 2025Deep Edge Filter: Return of the Human-Crafted Layer in Deep Learningcited by 0
  31. 2026OmniPatch: A Universal Adversarial Patch for ViT-CNN Cross-Architecture Transfer in Semantic Segmentationcited by 0
  32. 2026Test-time Adversarial Takeover: A Real-time Hijacking Interface against Robotic Diffusion Policiescited by 0
  33. 2026Adversarial Decoys: Misdirecting Attention-Based Defenses in ViTcited by 0
  34. 2026Corrupting Attention: Evasion-Based Adversarial Attacks on Encoder Attention in Detection Transformerscited by 0
  35. 2026Printability-Constrained Adversarial Decals for Near-Nadir Aerial Perception: Measured Ink Gamuts, Nested Realism Constraints, and a Physical-World Boundcited by 0