arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.15385cs.CVcs.AI
收藏

面向鲁棒视觉 Transformer 的掩码自适应集成方法

Towards Robust Vision Transformer via Masked Adaptive Ensemble

University of Delaware(特拉华大学);University of Louisiana at Lafeyette(路易斯安那大学拉斐特分校)

Fudong Lin, Jiadong Lou, Xu Yuan, Nian-Feng Tzeng

AI总结:

本文提出一种基于掩码自适应集成的视觉 Transformer 架构,通过检测器与双编码器分类器结合,在 CIFAR-10 上实现 90.3% 标准准确率和 49.8% 对抗鲁棒性,兼顾精度与鲁棒性。

摘要:

对抗训练(AT)通过有意将对抗样本注入训练数据,有助于提高视觉 Transformer(ViT)对对抗攻击的鲁棒性。然而,这种对抗注入方式不可避免地会在一定程度上导致标准准确率下降,因此需要在标准准确率与鲁棒性之间进行权衡。此外,现有的对抗训练方案仍易受自适应攻击的影响。为解决上述不足,本文提出了一种新颖的 ViT 架构,包括一个检测器和一个分类器,二者通过我们新开发的自适应集成模块相连接。具体而言,我们通过实验发现,利用引导反向传播技术有助于检测对抗样本。基于这一发现,我们引入了一种新颖的多头自注意力(MSA)机制,以增强我们的检测器对对抗样本的识别能力。随后,采用一个具有两个编码器的分类器,分别从干净图像和对抗样本中提取视觉表征,并通过我们的自适应集成模块自适应地调整来自两个编码器的视觉表征比例,以实现准确分类。这种设计使我们的 ViT 架构能够在标准准确率与鲁棒性之间取得更好的权衡。此外,我们的自适应集成技术允许我们对输入数据中的图像块随机子集进行掩码操作,从而增强 ViT 对自适应攻击的鲁棒性,同时保持较高的标准准确率。实验结果表明,在 CIFAR-10 数据集上,我们的 ViT 架构取得了最佳的标准准确率 90.3% 和对抗鲁棒性 49.8%。

英文摘要:

Adversarial training (AT) can help improve the robustness of Vision Transformers (ViT) against adversarial attacks by intentionally injecting adversarial examples into the training data. However, this way of adversarial injection inevitably incurs standard accuracy degradation to some extent, thereby calling for a trade-off between standard accuracy and robustness. Besides, the prominent AT solutions are still vulnerable to adaptive attacks. To tackle such shortcomings, this paper proposes a novel ViT architecture, including a detector and a classifier bridged by our newly developed adaptive ensemble. Specifically, we empirically discover that detecting adversarial examples can benefit from the Guided Backpropagation technique. Driven by this discovery, a novel Multi-head Self-Attention (MSA) mechanism is introduced to enhance our detector to sniff adversarial examples. Then, a classifier with two encoders is employed for extracting visual representations respectively from clean images and adversarial examples, with our adaptive ensemble to adaptively adjust the proportion of visual representations from the two encoders for accurate classification. This design enables our ViT architecture to achieve a better trade-off between standard accuracy and robustness. Besides, our adaptive ensemble technique allows us to mask off a random subset of image patches within input data, boosting our ViT's robustness against adaptive attacks, while maintaining high standard accuracy. Experimental results exhibit that our ViT architecture, on CIFAR-10, achieves the best standard accuracy and adversarial robustness of 90.3% and 49.8%, respectively.

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

↑