mlsanityData to 7 Oct 2026

PASTA: A Patch-Agnostic Twofold-Stealthy Backdoor Attack on Vision Transformers

arXiv 2604.20047 ↗First posted 21 Apr 2026cs.CV cs.CRcited by 0

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

  1. 2022TrojViT: Trojan Insertion in Vision Transformers27 Aug
  2. 2022Defending Backdoor Attacks on Vision Transformer via Patch Processing24 Jun
  3. 2022Backdoor Attacks on Vision Transformers16 Jun
  4. 2021Rethinking the Backdoor Attacks' Triggers: A Frequency Perspective7 Apr

Other references · 45

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  4. 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,029
  5. 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,617
  6. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  7. 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,360
  8. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
  9. 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,012
  10. 2021Going deeper with Image Transformerscited by 759
  11. 2018Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networkscited by 550
  12. 2019Object Detection in 20 Years: A Surveycited by 528
33 more
  1. 2018Object Detection with Deep Learning: A Reviewcited by 524
  2. 2018Spectral Signatures in Backdoor Attackscited by 457
  3. 2021Intriguing Properties of Vision Transformerscited by 446
  4. 2019STRIP: A Defence Against Trojan Attacks on Deep Neural Networkscited by 437
  5. 2018Detecting Backdoor Attacks on Deep Neural Networks by Activation Clusteringcited by 429
  6. 2019Hidden Trigger Backdoor Attackscited by 359
  7. 2020Reflection Backdoor: A Natural Backdoor Attack on Deep Neural Networkscited by 341
  8. 2020Invisible Backdoor Attack with Sample-Specific Triggerscited by 338
  9. 2021Neural Attention Distillation: Erasing Backdoor Triggers from Deep Neural Networkscited by 313
  10. 2020Input-Aware Dynamic Backdoor Attackcited by 304
  11. 2018Deep Face Recognition: A Surveycited by 275
  12. 2019A new Backdoor Attack in CNNs by training set corruption without label poisoningcited by 237
  13. 2021Adversarial Neuron Pruning Purifies Backdoored Deep Modelscited by 230
  14. 2019Universal Litmus Patterns: Revealing Backdoor Attacks in CNNscited by 143
  15. 2022Narcissus: A Practical Clean-Label Backdoor Attack with Limited Informationcited by 102
  16. 2020Deep Feature Space Trojan Attack of Neural Networks by Controlled Detoxificationcited by 93
  17. 2019Defending Neural Backdoors via Generative Distribution Modelingcited by 82
  18. 2018Low Frequency Adversarial Perturbationcited by 80
  19. 2020Rethinking the Trigger of Backdoor Attackcited by 76
  20. 2020DeepSweep: An Evaluation Framework for Mitigating DNN Backdoor Attacks using Data Augmentationcited by 75
  21. 2021FIBA: Frequency-Injection based Backdoor Attack in Medical Image Analysiscited by 60
  22. 2023Black-box Backdoor Defense via Zero-shot Image Purificationcited by 44
  23. 2023Backdoor Defense via Adaptively Splitting Poisoned Datasetcited by 43
  24. 2023Neural Polarizer: A Lightweight and Effective Backdoor Defense via Purifying Poisoned Featurescited by 35
  25. 2024BadMerging: Backdoor Attacks Against Model Mergingcited by 32
  26. 2022Imperceptible Backdoor Attack: From Input Space to Feature Representationcited by 27
  27. 2023Sneaky Spikes: Uncovering Stealthy Backdoor Attacks in Spiking Neural Networks with Neuromorphic Datacited by 18
  28. 2023FlowMur: A Stealthy and Practical Audio Backdoor Attack with Limited Knowledgecited by 9
  29. 2023Watch Out! Simple Horizontal Class Backdoor Can Trivially Evade Defensecited by 7
  30. 2023BELT: Old-School Backdoor Attacks can Evade the State-of-the-Art Defense with Backdoor Exclusivity Liftingcited by 7
  31. 2024Low-Frequency Black-Box Backdoor Attack via Evolutionary Algorithmcited by 2
  32. 2024LADDER: Multi-objective Backdoor Attack via Evolutionary Algorithmcited by 2
  33. 2025Split Adaptation for Pre-trained Vision Transformerscited by 2

Built on by

Not cited yet.