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

Patch-Fool:Vision Transformers 对对抗扰动是否始终鲁棒?

Patch-Fool: Are Vision Transformers Always Robust Against Adversarial Perturbations?

Rice University(莱斯大学)

Yonggan Fu, Shunyao Zhang, Shang Wu, Cheng Wan, Yingyan Celine Lin

AI总结:

本文提出 Patch-Fool 攻击框架,通过注意力感知的单 patch 优化欺骗自注意力机制,证明 ViTs 并非总比 CNNs 鲁棒,且扰动密度与强度决定二者鲁棒性排序。

摘要:

Vision transformers(ViTs)近期凭借其在多种视觉任务中创纪录的表现,在神经架构设计领域掀起了新一波浪潮。与此同时,为了实现将 ViTs 部署到真实世界视觉应用中的目标,它们面对潜在恶意攻击时的鲁棒性受到越来越多关注。特别是,近期研究表明,与 convolutional neural networks(CNNs)相比,ViTs 对对抗攻击更鲁棒,并推测这是因为 ViTs 更关注捕获不同输入/特征 patch 之间的全局交互,从而提升了其对对抗攻击所施加局部扰动的鲁棒性。在本工作中,我们提出一个有趣的问题:“在哪种扰动下,ViTs 会比 CNNs 成为更脆弱的学习者?”在该问题驱动下,我们首先针对 ViTs 和 CNNs 在多种现有对抗攻击下的鲁棒性开展全面实验,以理解有利于其鲁棒性的根本原因。随后,基于所得洞见,我们提出一个专用攻击框架,称为 Patch-Fool;该框架通过一系列注意力感知优化技术攻击自注意力机制的基本组成部分(即单个 patch),从而欺骗自注意力机制。有趣的是,我们的 Patch-Fool 框架首次表明,ViTs 在对抗扰动面前并不一定比 CNNs 更鲁棒。特别地,我们发现,在面对我们的 Patch-Fool 攻击时,ViTs 相比 CNNs 是更脆弱的学习者,这一点在大量实验中保持一致;同时,来自 Patch-Fool 的两个变体 Sparse/Mild Patch-Fool 的观察揭示了一个有趣洞见:每个 patch 上的扰动密度和强度似乎是影响 ViTs 与 CNNs 之间鲁棒性排序的关键因素。

英文摘要:

Vision transformers (ViTs) have recently set off a new wave in neural architecture design thanks to their record-breaking performance in various vision tasks. In parallel, to fulfill the goal of deploying ViTs into real-world vision applications, their robustness against potential malicious attacks has gained increasing attention. In particular, recent works show that ViTs are more robust against adversarial attacks as compared with convolutional neural networks (CNNs), and conjecture that this is because ViTs focus more on capturing global interactions among different input/feature patches, leading to their improved robustness to local perturbations imposed by adversarial attacks. In this work, we ask an intriguing question: "Under what kinds of perturbations do ViTs become more vulnerable learners compared to CNNs?" Driven by this question, we first conduct a comprehensive experiment regarding the robustness of both ViTs and CNNs under various existing adversarial attacks to understand the underlying reason favoring their robustness. Based on the drawn insights, we then propose a dedicated attack framework, dubbed Patch-Fool, that fools the self-attention mechanism by attacking its basic component (i.e., a single patch) with a series of attention-aware optimization techniques. Interestingly, our Patch-Fool framework shows for the first time that ViTs are not necessarily more robust than CNNs against adversarial perturbations. In particular, we find that ViTs are more vulnerable learners compared with CNNs against our Patch-Fool attack which is consistent across extensive experiments, and the observations from Sparse/Mild Patch-Fool, two variants of Patch-Fool, indicate an intriguing insight that the perturbation density and strength on each patch seem to be the key factors that influence the robustness ranking between ViTs and CNNs.

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

↑