arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2109.04176cs.CVcs.AI
收藏

对视觉Transformer的可转移对抗攻击

Towards Transferable Adversarial Attacks on Vision Transformers

Shanghai Key Lab of Intelligent Information Processing, School of Computer Science, Fudan University(复旦大学计算机科学技术学院上海市智能信息处理重点实验室);Shanghai Collaborative Innovation Center on Intelligent Visual Computing(上海智能视觉计算协同创新中心);Department of Computer Science, University of Maryland(马里兰大学计算机科学系)

Zhipeng Wei, Jingjing Chen, Micah Goldblum, Zuxuan Wu, Tom Goldstein, Yu-Gang Jiang

摘要:

视觉Transformer(ViTs)在一系列计算机视觉任务中表现出令人印象深刻的性能,但它们仍然受到对抗性示例的影响。%以与CNN类似的方式制作。在本文中,我们认为,对抗攻击Transformers应专门为他们的架构,共同考虑补丁和自我注意,以实现高的可转移性。更具体地说,我们引入了一个双重攻击框架,其中包含一个不注意(PNA)攻击和一个PatchOut攻击,以提高对抗样本在不同ViT之间的可转移性。我们表明,在反向传播过程中跳过注意力梯度可以生成具有高可移植性的对抗性示例。此外,通过在每次迭代中优化补丁的随机采样子集生成的对抗性扰动比使用所有补丁的攻击获得更高的攻击成功率。我们评估了对最先进的ViTs,CNN和经过鲁棒训练的CNN的攻击的可转移性。这些实验的结果表明,所提出的双重攻击可以大大提高ViTs之间以及从ViTs到CNN的可转移性。此外,该方法可以很容易地与现有的传输方法相结合,以提高性能。代码可在https://github.com/zhipeng-wei/PNA-PatchOut上获得。

英文摘要:

Vision transformers (ViTs) have demonstrated impressive performance on a series of computer vision tasks, yet they still suffer from adversarial examples. % crafted in a similar fashion as CNNs. In this paper, we posit that adversarial attacks on transformers should be specially tailored for their architecture, jointly considering both patches and self-attention, in order to achieve high transferability. More specifically, we introduce a dual attack framework, which contains a Pay No Attention (PNA) attack and a PatchOut attack, to improve the transferability of adversarial samples across different ViTs. We show that skipping the gradients of attention during backpropagation can generate adversarial examples with high transferability. In addition, adversarial perturbations generated by optimizing randomly sampled subsets of patches at each iteration achieve higher attack success rates than attacks using all patches. We evaluate the transferability of attacks on state-of-the-art ViTs, CNNs and robustly trained CNNs. The results of these experiments demonstrate that the proposed dual attack can greatly boost transferability between ViTs and from ViTs to CNNs. In addition, the proposed method can easily be combined with existing transfer methods to boost performance. Code is available at https://github.com/zhipeng-wei/PNA-PatchOut.

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

↑