STRAP-ViT: Segregated Tokens with Randomized -- Transformations for Defense against Adversarial Patches in ViTs
Nandish Chattopadhyay, Anadi Goyal, Chandan Karfa, Anupam Chattopadhyay

TL;DR
This paper introduces STRAP-ViT, a plug-and-play defense mechanism for Vision Transformers that detects and mitigates adversarial patches by segregating anomalous tokens and applying randomized transformations, significantly improving robustness.
Contribution
STRAP-ViT is a non-trainable, inference-only module that effectively defends against adversarial patches with minimal computational overhead and no additional training.
Findings
Achieves 2-3% robust accuracy loss compared to clean baseline.
Outperforms state-of-the-art defenses across multiple architectures and attacks.
Works efficiently as a plug-and-play module without retraining.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdversarial Robustness in Machine Learning · Digital Media Forensic Detection · Generative Adversarial Networks and Image Synthesis
