arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.07044cs.CVcs.LG
收藏

Protego:通过内在能力检测视觉Transformer的对抗样本

Protego: Detecting Adversarial Examples for Vision Transformers via Intrinsic Capabilities

Zhejiang University(浙江大学)

Jialin Wu, Kaikai Pan, Yanjiao Chen, Jiangyi Deng, Shengyuan Pang, Wenyuan Xu

AI总结:

针对视觉Transformer易受对抗样本攻击的问题,提出利用Transformer内在注意力特性的检测框架Protego,在六种对抗攻击下AUC均超0.95,可助力元宇宙安全研究。

摘要:

Transformer模型在自然语言任务中表现出色,这推动了视觉领域探索其在计算机视觉问题中的应用。然而,这类模型仍会受到对抗样本的影响。本文研究了六种常见对抗攻击对三个预训练ViT(视觉Transformer)模型的攻击能力,以揭示ViT模型的脆弱性。为理解并分析输入为对抗样本时神经网络决策的偏差,我们使用了两种可视化技术:attention rollout(注意力展开)和grad attention rollout(梯度注意力展开)。为防御ViT模型遭受对抗攻击,我们提出了Protego——一种利用Transformer内在能力检测ViT模型对抗样本的检测框架。尽管如此,由于攻击者可能采用多样化的攻击策略,这一任务仍具挑战性。受注意力机制启发,我们知道预测token包含输入样本的全部信息;此外,对抗样本的注意力区域与正常样本不同。基于这些要点,我们可以训练出一个性能优于现有检测方法的检测器来识别对抗样本。实验证明了我们检测方法的高效性:针对这六种对抗攻击方法,我们的检测器AUC得分均超过0.95。Protego可能推动元宇宙安全领域的研究。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑