STRAP-ViT: Segregated Tokens with Randomized -- Transformations for Defense against Adversarial Patches in ViTs
Not on the map. Why?
Abstract (arXiv)
Adversarial patches are physically realizable localized noise, which are able to hijack Vision Transformers (ViT) self-attention, pulling focus toward a small, high-contrast region and corrupting the class token to force confident misclassifications. In this paper, we claim that the tokens which correspond to the areas of the image that contain the adversarial noise, have different statistical properties when compared to the tokens which do not overlap with the adversarial perturbations. We use this insight to propose a mechanism, called STRAP-ViT, which uses Jensen-Shannon Divergence as a metric for segregating tokens that behave as anomalies in the Detection Phase, and then apply randomized composite transformations on them during the Mitigation Phase to make the adversarial noise ineffective. The minimum number of tokens to transform is a hyper-parameter for the defense mechanism and is chosen such that at least 50% of the patch is covered by the transformed tokens. STRAP-ViT fits as a non-trainable plug-and-play block within the ViT architectures, for inference purposes only, with a minimal computational cost and does not require any additional training cost/effort. STRAP-ViT has been tested on multiple pre-trained vision transformer architectures (ViT-base-16 and DinoV2) and datasets (ImageNet and CalTech-101), across multiple adversarial attacks (Adversarial Patch, LAVAN, GDPA and RP2), and found to provide excellent robust accuracies lying within a 2-3% range of the clean baselines, and outperform the state-of-the-art.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 19 of its 41 references that are in the map. First posted on arXiv 13 Mar 2026.
Builds on
19 of 41 references.
References · 19
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2017Adversarial Patchcited by 514
- 2018LaVAN: Localized and Visible Adversarial Noisecited by 112
- 2020Certified Defenses for Adversarial Patchescited by 100
- 2020(De)Randomized Smoothing for Certifiable Defense against Patch Attackscited by 97
- 2018Local Gradients Smoothing: Defense against localized adversarial attackscited by 85
- 2021PatchCleanser: Certifiably Robust Defense against Adversarial Patches for Any Image Classifiercited by 63
- 2020Adversarial Training against Location-Optimized Adversarial Patchescited by 50
- 2021Certified Patch Robustness via Smoothed Vision Transformerscited by 44
7 more
- 2022Towards Practical Certifiable Patch Defense with Vision Transformercited by 44
- 2023Jedi: Entropy-based Localization and Removal of Adversarial Patchescited by 35
- 2021Generative Dynamic Patch Attackcited by 19
- 2020Vax-a-Net: Training-time Defence Against Adversarial Patch Attackscited by 11
- 2023ODDR: Outlier Detection & Dimension Reduction Based Defense Against Adversarial Patchescited by 6
- 2024Anomaly Unveiled: Securing Image Classification against Adversarial Patch Attackscited by 6
- 2020Spatially Correlated Patterns in Adversarial Imagescited by 1
Built on by
Not cited yet.