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

SpecFormer:通过最大奇异值惩罚保障Vision Transformer的鲁棒性

SpecFormer: Guarding Vision Transformer Robustness via Maximum Singular Value Penalization

City University of Hong Kong(香港城市大学);Microsoft Research Asia(微软亚洲研究院);The Chinese University of Hong Kong (Shenzhen)(香港中文大学(深圳));William & Mary(威廉玛丽学院)

Xixu Hu, Runkai Zheng, Jindong Wang, Cheuk Hang Leung, Qi Wu, Xing Xie

AI总结:

针对ViT易受对抗攻击且现有防御方法缺乏理论支撑的问题,提出带理论依据的SpecFormer,通过推导自注意力层局部Lipschitz界并引入最大奇异值惩罚管控该界,在不降低训练效率的前提下提升鲁棒性,在CIFAR和ImageNet上表现优于SOTA模型。

摘要:

Vision Transformer(ViT)凭借高性能在计算机视觉领域的应用日益广泛,但其易受对抗攻击的问题值得关注。现有方法缺乏坚实的理论基础,主要聚焦于经验性的训练调整。本研究提出专为增强ViT对抗攻击能力设计的SpecFormer,具备理论支撑。我们推导了自注意力层的局部Lipschitz界,并提出最大奇异值惩罚(MSVP)以精准管控这些界。将MSVP融入ViT的注意力层后,我们在不损失训练效率的前提下提升了模型鲁棒性。在CIFAR和ImageNet数据集上的实验证明,所得模型SpecFormer在防御对抗攻击方面优于其他现有最优模型。代码已发布于https://github.com/microsoft/robustlearn。

英文摘要:

Vision Transformers (ViTs) are increasingly used in computer vision due to their high performance, but their vulnerability to adversarial attacks is a concern. Existing methods lack a solid theoretical basis, focusing mainly on empirical training adjustments. This study introduces SpecFormer, tailored to fortify ViTs against adversarial attacks, with theoretical underpinnings. We establish local Lipschitz bounds for the self-attention layer and propose the Maximum Singular Value Penalization (MSVP) to precisely manage these bounds By incorporating MSVP into ViTs' attention layers, we enhance the model's robustness without compromising training efficiency. SpecFormer, the resulting model, outperforms other state-of-the-art models in defending against adversarial attacks, as proven by experiments on CIFAR and ImageNet datasets. Code is released at https://github.com/microsoft/robustlearn.

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

↑