提出利用视觉Transformer内在机制检测对抗样本的新方法
Protego: Detecting Adversarial Examples for Vision Transformers via Intrinsic Capabilities
- 基于注意力机制差异设计检测器,利用预测令牌的信息完整性
- 在6种攻击下AUC均超0.95,显著优于现有方法
- 适合关注ViT模型安全、元宇宙安全的开发者与研究者
Transformer模型在自然语言任务中表现优异,推动了其在计算机视觉中的应用。然而,这些模型仍易受对抗样本影响。本文研究了六种常见对抗攻击对三种预训练ViT模型的影响,揭示了ViT模型的脆弱性。为分析神经网络在对抗输入下的决策偏差,采用注意力传播和梯度注意力传播两种可视化技术。为防御ViT模型的对抗攻击,提出Protego检测框架,利用Transformer的内在特性识别对抗样本。由于攻击策略多样,检测极具挑战。受注意力机制启发,我们发现预测令牌包含输入样本全部信息,且对抗样本的注意力区域与正常样本不同。据此训练的检测器性能优于现有方法。实验表明,针对六种攻击,检测器的AUC均超过0.95。Protego可推动元宇宙安全研究。
原文摘要 · Abstract (English)
Transformer models have excelled in natural language tasks, prompting the vision community to explore their implementation in computer vision problems. However, these models are still influenced by adversarial examples. In this paper, we investigate the attack capabilities of six common adversarial attacks on three pretrained ViT models to reveal the vulnerability of ViT models. To understand and analyse the bias in neural network decisions when the input is adversarial, we use two visualisation techniques that are attention rollout and grad attention rollout. To prevent ViT models from adversarial attack, we propose Protego, a detection framework that leverages the transformer intrinsic capabilities to detection adversarial examples of ViT models. Nonetheless, this is challenging due to a diversity of attack strategies that may be adopted by adversaries. Inspired by the attention mechanism, we know that the token of prediction contains all the information from the input sample. Additionally, the attention region for adversarial examples differs from that of normal examples. Given these points, we can train a detector that achieves superior performance than existing detection methods to identify adversarial examples. Our experiments have demonstrated the high effectiveness of our detection method. For these six adversarial attack methods, our detector's AUC scores all exceed 0.95. Protego may advance investigations in metaverse security.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。