arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.03734cs.CV
收藏

视觉Transformer对抗攻击鲁棒性的揭示

Reveal of Vision Transformers Robustness against Adversarial Attacks

INSA Rennes(雷恩国立应用科学学院);CNRS(法国国家科学研究中心);IETR(电子与电信研究院);University of Rennes(雷恩大学)

Ahmed Aldahdooh, Wassim Hamidouche, Olivier Deforges

AI总结:

该研究针对ViT及其变体对抗攻击鲁棒性研究不足的问题,从三类攻击场景对比其与CNN的鲁棒性,通过ImageNet-1k子集实验验证ViT系列鲁棒性更优,并结合可视化与指标分析注意力模型特性。

摘要:

普通视觉Transformer(ViT)的核心组成部分是注意力块,它赋予了模型模拟输入图像全局上下文的能力。为获得更优性能,ViT需要大规模训练数据。为克服这一数据饥渴的局限性,研究人员提出了许多基于ViT的网络(即混合ViT),在训练过程中引入局部上下文信息。与卷积神经网络(CNN)相比,ViT及其变体对抗攻击的鲁棒性在现有文献中尚未得到广泛研究。本研究从三个维度探究ViT变体的鲁棒性:1)与CNN相比,其对不同基于Lp的对抗攻击的抵御能力;2)应用预处理防御方法后,其在对抗样本(AEs)下的表现;3)在采用变换期望(EOT)框架的自适应攻击下的性能。为此,我们在ImageNet-1k的1000张图像上开展了一系列实验,分析结果表明,普通ViT和混合ViT的鲁棒性均优于CNN。例如,我们发现:1)在基于Lp的攻击和自适应攻击下,普通ViT或混合ViT的鲁棒性均优于CNN。2)与混合ViT不同,普通ViT对主要降低高频分量的预处理防御没有响应。此外,本文还提供了特征图、注意力图和Grad-CAM可视化结果,结合图像质量指标和扰动能谱,以深入理解基于注意力的模型。

英文摘要:

The major part of the vanilla vision transformer (ViT) is the attention block that brings the power of mimicking the global context of the input image. For better performance, ViT needs large-scale training data. To overcome this data hunger limitation, many ViT-based networks, or hybrid-ViT, have been proposed to include local context during the training. The robustness of ViTs and its variants against adversarial attacks has not been widely investigated in the literature like CNNs. This work studies the robustness of ViT variants 1) against different Lp-based adversarial attacks in comparison with CNNs, 2) under adversarial examples (AEs) after applying preprocessing defense methods and 3) under the adaptive attacks using expectation over transformation (EOT) framework. To that end, we run a set of experiments on 1000 images from ImageNet-1k and then provide an analysis that reveals that vanilla ViT or hybrid-ViT are more robust than CNNs. For instance, we found that 1) Vanilla ViTs or hybrid-ViTs are more robust than CNNs under Lp-based attacks and under adaptive attacks. 2) Unlike hybrid-ViTs, Vanilla ViTs are not responding to preprocessing defenses that mainly reduce the high frequency components. Furthermore, feature maps, attention maps, and Grad-CAM visualization jointly with image quality measures, and perturbations' energy spectrum are provided for an insight understanding of attention-based models.

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

↑