PASTA: A Patch-Agnostic Twofold-Stealthy Backdoor Attack on Vision Transformers
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Vision Transformers (ViTs) have achieved remarkable success across vision tasks, yet recent studies show they remain vulnerable to backdoor attacks. Existing patch-wise attacks typically assume a single fixed trigger location during inference to maximize trigger attention. However, they overlook the self-attention mechanism in ViTs, which captures long-range dependencies across patches. In this work, we observe that a patch-wise trigger can achieve high attack effectiveness when activating backdoors across neighboring patches, a phenomenon we term the Trigger Radiating Effect (TRE). We further find that inter-patch trigger insertion during training can synergistically enhance TRE compared to single-patch insertion. Prior ViT-specific attacks that maximize trigger attention often sacrifice visual and attention stealthiness, making them detectable. Based on these insights, we propose PASTA, a twofold stealthy patch-wise backdoor attack in both pixel and attention domains. PASTA enables backdoor activation when the trigger is placed at arbitrary patches during inference. To achieve this, we introduce a multi-location trigger insertion strategy to enhance TRE. However, preserving stealthiness while maintaining strong TRE is challenging, as TRE is weakened under stealthy constraints. We therefore formulate a bi-level optimization problem and propose an adaptive backdoor learning framework, where the model and trigger iteratively adapt to each other to avoid local optima. Extensive experiments show that PASTA achieves 99.13% attack success rate across arbitrary patches on average, while significantly improving visual and attention stealthiness (144.43x and 18.68x) and robustness (2.79x) against state-of-the-art ViT defenses across four datasets, outperforming CNN- and ViT-based baselines.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 49 of its 73 references that are in the map. First posted on arXiv 21 Apr 2026.
Builds on
49 of 73 references.
Closest ancestors · 4
Same direction, newest first
- 2022TrojViT: Trojan Insertion in Vision Transformers27 Aug
- 2022Defending Backdoor Attacks on Vision Transformer via Patch Processing24 Jun
- 2022Backdoor Attacks on Vision Transformers16 Jun
- 2021Rethinking the Backdoor Attacks' Triggers: A Frequency Perspective7 Apr
Other references · 45
- 2017Attention Is All You Needcited by 59,932
- 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
- 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,029
- 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,617
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,360
- 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
- 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,012
- 2021Going deeper with Image Transformerscited by 759
- 2018Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networkscited by 550
- 2019Object Detection in 20 Years: A Surveycited by 528
33 more
- 2018Object Detection with Deep Learning: A Reviewcited by 524
- 2018Spectral Signatures in Backdoor Attackscited by 457
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2019STRIP: A Defence Against Trojan Attacks on Deep Neural Networkscited by 437
- 2018Detecting Backdoor Attacks on Deep Neural Networks by Activation Clusteringcited by 429
- 2019Hidden Trigger Backdoor Attackscited by 359
- 2020Reflection Backdoor: A Natural Backdoor Attack on Deep Neural Networkscited by 341
- 2020Invisible Backdoor Attack with Sample-Specific Triggerscited by 338
- 2021Neural Attention Distillation: Erasing Backdoor Triggers from Deep Neural Networkscited by 313
- 2020Input-Aware Dynamic Backdoor Attackcited by 304
- 2018Deep Face Recognition: A Surveycited by 275
- 2019A new Backdoor Attack in CNNs by training set corruption without label poisoningcited by 237
- 2021Adversarial Neuron Pruning Purifies Backdoored Deep Modelscited by 230
- 2019Universal Litmus Patterns: Revealing Backdoor Attacks in CNNscited by 143
- 2022Narcissus: A Practical Clean-Label Backdoor Attack with Limited Informationcited by 102
- 2020Deep Feature Space Trojan Attack of Neural Networks by Controlled Detoxificationcited by 93
- 2019Defending Neural Backdoors via Generative Distribution Modelingcited by 82
- 2018Low Frequency Adversarial Perturbationcited by 80
- 2020Rethinking the Trigger of Backdoor Attackcited by 76
- 2020DeepSweep: An Evaluation Framework for Mitigating DNN Backdoor Attacks using Data Augmentationcited by 75
- 2021FIBA: Frequency-Injection based Backdoor Attack in Medical Image Analysiscited by 60
- 2023Black-box Backdoor Defense via Zero-shot Image Purificationcited by 44
- 2023Backdoor Defense via Adaptively Splitting Poisoned Datasetcited by 43
- 2023Neural Polarizer: A Lightweight and Effective Backdoor Defense via Purifying Poisoned Featurescited by 35
- 2024BadMerging: Backdoor Attacks Against Model Mergingcited by 32
- 2022Imperceptible Backdoor Attack: From Input Space to Feature Representationcited by 27
- 2023Sneaky Spikes: Uncovering Stealthy Backdoor Attacks in Spiking Neural Networks with Neuromorphic Datacited by 18
- 2023FlowMur: A Stealthy and Practical Audio Backdoor Attack with Limited Knowledgecited by 9
- 2023Watch Out! Simple Horizontal Class Backdoor Can Trivially Evade Defensecited by 7
- 2023BELT: Old-School Backdoor Attacks can Evade the State-of-the-Art Defense with Backdoor Exclusivity Liftingcited by 7
- 2024Low-Frequency Black-Box Backdoor Attack via Evolutionary Algorithmcited by 2
- 2024LADDER: Multi-objective Backdoor Attack via Evolutionary Algorithmcited by 2
- 2025Split Adaptation for Pre-trained Vision Transformerscited by 2
Built on by
Not cited yet.