提出STRAP-ViT防御视觉变压器中的对抗补丁攻击
STRAP-ViT: Segregated Tokens with Randomized -- Transformations for Defense against Adversarial Patches in ViTs
- 通过统计差异分离异常令牌,识别对抗噪声区域
- 对异常令牌施加随机复合变换,使攻击失效
- 无需训练、即插即用,适合部署在多种ViT模型
对抗补丁是可物理实现的局部噪声,能劫持视觉变压器(ViT)的自注意力机制,将关注点引向高对比度小区域,导致分类器输出错误结果。本文发现,含对抗噪声区域的图像令牌与正常区域令牌具有不同的统计特性。基于此,提出STRAP-ViT机制:在检测阶段使用杰恩-申农散度区分异常令牌,在缓解阶段对这些令牌施加随机复合变换,使对抗噪声失效。最小变换令牌数为超参数,确保至少50%补丁区域被覆盖。STRAP-ViT作为非训练的即插即用模块,仅用于推理,计算开销极低,无需额外训练。在多个预训练模型(ViT-base-16、DinoV2)和数据集(ImageNet、CalTech-101)上,针对多种攻击(对抗补丁、LAVAN、GDPA、RP2)测试,其鲁棒准确率均维持在干净基线的2%-3%范围内,优于现有最先进方法。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。