Give Me Your Attention: Dot-Product Attention Considered Harmful for Adversarial Patch Robustness
Not on the map. Why?
Abstract (arXiv)
Neural architectures based on attention such as vision transformers are revolutionizing image recognition. Their main benefit is that attention allows reasoning about all parts of a scene jointly. In this paper, we show how the global reasoning of (scaled) dot-product attention can be the source of a major vulnerability when confronted with adversarial patch attacks. We provide a theoretical understanding of this vulnerability and relate it to an adversary's ability to misdirect the attention of all queries to a single key token under the control of the adversarial patch. We propose novel adversarial objectives for crafting adversarial patches which target this vulnerability explicitly. We show the effectiveness of the proposed patch attacks on popular image classification (ViTs and DeiTs) and object detection models (DETR). We find that adversarial patches occupying 0.5% of the input can lead to robust accuracies as low as 0% for ViT on ImageNet, and reduce the mAP of DETR on MS COCO to less than 3%.
Key facts. Cited by 23 papers in the map (data through 14 Oct 2026). Builds on 42 of its 46 references that are in the map. First posted on arXiv 25 Mar 2022.
Builds on
42 of 46 references.
References · 42
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,422
- 2020Taming Transformers for High-Resolution Image Synthesiscited by 3,253
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,940
- 2021SwinIR: Image Restoration Using Swin Transformercited by 1,887
30 more
- 2021Is Space-Time Attention All You Need for Video Understanding?cited by 1,620
- 2021ViViT: A Video Vision Transformercited by 1,620
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,369
- 2021Video Swin Transformercited by 1,091
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,026
- 2020Pre-Trained Image Processing Transformercited by 893
- 2021Uformer: A General U-Shaped Transformer for Image Restorationcited by 866
- 2021Segmenter: Transformer for Semantic Segmentationcited by 855
- 2020Fast is better than free: Revisiting adversarial trainingcited by 727
- 2019VideoBERT: A Joint Model for Video and Language Representation Learningcited by 703
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2020End-to-End Video Instance Segmentation with Transformerscited by 443
- 2020Learning Texture Transformer Network for Image Super-Resolutioncited by 347
- 2021FNet: Mixing Tokens with Fourier Transformscited by 347
- 2018Video Action Transformer Networkcited by 316
- 2021Video Transformer Networkcited by 272
- 2021Understanding Robustness of Transformers for Image Classificationcited by 249
- 2018End-to-End Dense Video Captioning with Masked Transformercited by 214
- 2021On the Robustness of Vision Transformers to Adversarial Examplescited by 167
- 2020SceneFormer: Indoor Scene Generation with Transformerscited by 158
- 2020Toward Transformer-Based Object Detectioncited by 84
- 2021Towards Transferable Adversarial Attacks on Vision Transformerscited by 80
- 2021On Improving Adversarial Transferability of Vision Transformerscited by 70
- 2020Sparse-RS: a versatile framework for query-efficient sparse black-box adversarial attackscited by 65
- 2021Adversarial Robustness Comparison of Vision Transformer and MLP-Mixer to CNNscited by 57
- 2020Parameter Efficient Multimodal Transformers for Video Representation Learningcited by 52
- 2022Patch-Fool: Are Vision Transformers Always Robust Against Adversarial Perturbations?cited by 49
- 2021Reveal of Vision Transformers Robustness against Adversarial Attackscited by 43
- 2021Adversarial Token Attacks on Vision Transformerscited by 11
Built on by
Citing papers per year: 2022: 3; 2023: 3; 2024: 10; 2025: 4; 2026: 3.
23 papers.
Sort:
By area:
- 2022Certified Defences Against Adversarial Patch Attacks on Semantic Segmentationcited by 16
- 2024Benchmarking the Robustness of Temporal Action Detection Models Against Temporal Corruptionscited by 12
- 2023PatchCURE: Improving Certifiable Robustness, Model Utility, and Computation Efficiency of Adversarial Patch Defensescited by 11
- 2025JPS: Jailbreak Multimodal Large Language Models with Collaborative Visual Perturbation and Textual Steeringcited by 11
- 2024FullLoRA: Efficiently Boosting the Robustness of Pretrained Vision Transformerscited by 9
- 2024GenFormer -- Generated Images are All You Need to Improve Robustness of Transformers on Small Datasetscited by 6
- 2023A Comprehensive Study on the Robustness of Image Classification and Object Detection in Remote Sensing: Surveying and Benchmarkingcited by 5
- 2024SpecFormer: Guarding Vision Transformer Robustness via Maximum Singular Value Penalizationcited by 5
- 2022On the interplay of adversarial robustness and architecture components: patches, convolution and attentioncited by 4
- 2025Adversarial Attention Perturbations for Large Object Detection Transformerscited by 4
- 2024Attacking Transformers with Feature Diversity Adversarial Perturbationcited by 3
- 2025Model Science: getting serious about verification, explanation and control of AI systemscited by 3
11 more
- 2026Preference Redirection via Attention Concentration: An Attack on Computer Use Agentscited by 3
- 2024Towards Robust Semantic Segmentation against Patch-based Attack via Attention Refinementcited by 2
- 2024Density Adaptive Attention is All You Need: Robust Parameter-Efficient Fine-Tuning Across Multiple Modalitiescited by 2
- 2024ViTGuard: Attention-aware Detection against Adversarial Examples for Vision Transformercited by 2
- 2025Universal and Transferable Attacks on Pathology Foundation Modelscited by 2
- 2023Attention Deficit is Ordered! Fooling Deformable Vision Transformers with Collaborative Adversarial Patchescited by 1
- 2024Evaluating the Adversarial Robustness of Detection Transformerscited by 1
- 2022Carpet-bombing patch: attacking a deep network without usual requirementscited by 0
- 2024P-MSDiff: Parallel Multi-Scale Diffusion for Remote Sensing Image Segmentationcited by 0
- 2026Adversarial Decoys: Misdirecting Attention-Based Defenses in ViTcited by 0
- 2026Corrupting Attention: Evasion-Based Adversarial Attacks on Encoder Attention in Detection Transformerscited by 0
- 2026Corrupting Attention: Evasion-Based Adversarial Attacks on Encoder Attention in Detection Transformers7 Aug 2026
- 2026Adversarial Decoys: Misdirecting Attention-Based Defenses in ViT8 Jul 2026
- 2026Preference Redirection via Attention Concentration: An Attack on Computer Use Agents9 Apr 2026
- 2025Universal and Transferable Attacks on Pathology Foundation Models18 Oct 2025
- 2025Model Science: getting serious about verification, explanation and control of AI systems27 Aug 2025
- 2025JPS: Jailbreak Multimodal Large Language Models with Collaborative Visual Perturbation and Textual Steering7 Aug 2025
- 2025Adversarial Attention Perturbations for Large Object Detection Transformers5 Aug 2025
- 2024Evaluating the Adversarial Robustness of Detection Transformers25 Dec 2024
- 2024ViTGuard: Attention-aware Detection against Adversarial Examples for Vision Transformer20 Sep 2024
- 2024GenFormer -- Generated Images are All You Need to Improve Robustness of Transformers on Small Datasets26 Aug 2024
- 2024P-MSDiff: Parallel Multi-Scale Diffusion for Remote Sensing Image Segmentation30 May 2024
- 2024Benchmarking the Robustness of Temporal Action Detection Models Against Temporal Corruptions29 Mar 2024
11 more
- 2024Attacking Transformers with Feature Diversity Adversarial Perturbation10 Mar 2024
- 2024Density Adaptive Attention is All You Need: Robust Parameter-Efficient Fine-Tuning Across Multiple Modalities20 Jan 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
- 2024SpecFormer: Guarding Vision Transformer Robustness via Maximum Singular Value Penalization2 Jan 2024
- 2023Attention Deficit is Ordered! Fooling Deformable Vision Transformers with Collaborative Adversarial Patches21 Nov 2023
- 2023PatchCURE: Improving Certifiable Robustness, Model Utility, and Computation Efficiency of Adversarial Patch Defenses19 Oct 2023
- 2023A Comprehensive Study on the Robustness of Image Classification and Object Detection in Remote Sensing: Surveying and Benchmarking21 Jun 2023
- 2022Carpet-bombing patch: attacking a deep network without usual requirements12 Dec 2022
- 2022On the interplay of adversarial robustness and architecture components: patches, convolution and attention14 Sep 2022
- 2022Certified Defences Against Adversarial Patch Attacks on Semantic Segmentation13 Sep 2022
- 2022Certified Defences Against Adversarial Patch Attacks on Semantic Segmentationcited by 16
- 2024Benchmarking the Robustness of Temporal Action Detection Models Against Temporal Corruptionscited by 12
- 2023PatchCURE: Improving Certifiable Robustness, Model Utility, and Computation Efficiency of Adversarial Patch Defensescited by 11
- 2024FullLoRA: Efficiently Boosting the Robustness of Pretrained Vision Transformerscited by 9
- 2024GenFormer -- Generated Images are All You Need to Improve Robustness of Transformers on Small Datasetscited by 6
- 2023A Comprehensive Study on the Robustness of Image Classification and Object Detection in Remote Sensing: Surveying and Benchmarkingcited by 5
- 2024SpecFormer: Guarding Vision Transformer Robustness via Maximum Singular Value Penalizationcited by 5
- 2022On the interplay of adversarial robustness and architecture components: patches, convolution and attentioncited by 4
- 2025Adversarial Attention Perturbations for Large Object Detection Transformerscited by 4
- 2024Attacking Transformers with Feature Diversity Adversarial Perturbationcited by 3
- 2025Model Science: getting serious about verification, explanation and control of AI systemscited by 3
- 2024Towards Robust Semantic Segmentation against Patch-based Attack via Attention Refinementcited by 2
12 most cited of 20 All 20 (JSON)
- 2026Corrupting Attention: Evasion-Based Adversarial Attacks on Encoder Attention in Detection Transformers7 Aug 2026
- 2026Adversarial Decoys: Misdirecting Attention-Based Defenses in ViT8 Jul 2026
- 2025Universal and Transferable Attacks on Pathology Foundation Models18 Oct 2025
- 2025Model Science: getting serious about verification, explanation and control of AI systems27 Aug 2025
- 2025Adversarial Attention Perturbations for Large Object Detection Transformers5 Aug 2025
- 2024Evaluating the Adversarial Robustness of Detection Transformers25 Dec 2024
- 2024ViTGuard: Attention-aware Detection against Adversarial Examples for Vision Transformer20 Sep 2024
- 2024GenFormer -- Generated Images are All You Need to Improve Robustness of Transformers on Small Datasets26 Aug 2024
- 2024Benchmarking the Robustness of Temporal Action Detection Models Against Temporal Corruptions29 Mar 2024
- 2024Attacking Transformers with Feature Diversity Adversarial Perturbation10 Mar 2024
- 2024Density Adaptive Attention is All You Need: Robust Parameter-Efficient Fine-Tuning Across Multiple Modalities20 Jan 2024
- 2024FullLoRA: Efficiently Boosting the Robustness of Pretrained Vision Transformers3 Jan 2024
12 newest of 20 All 20 (JSON)