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

重新思考基于迁移的对抗攻击中的模型集成

Rethinking Model Ensemble in Transfer-based Adversarial Attacks

School of Computer Science, Beijing Institute of Technology(北京理工大学计算机学院);RealAI

Huanran Chen, Yichi Zhang, Yinpeng Dong, Xiao Yang, Hang Su, Jun Zhu

AI总结:

本文重新审视迁移对抗攻击中的模型集成,从损失景观平坦性和局部最优邻近性定义共同弱点,并提出CWA以显著提升对抗样本跨模型迁移与黑盒攻击能力。

摘要:

人们普遍认识到,深度学习模型对对抗样本缺乏鲁棒性。对抗样本的一个有趣特性是它们可以在不同模型之间迁移,这使得在不了解受害模型任何信息的情况下进行黑盒攻击成为可能。提高可迁移性的一种有效策略是攻击一组模型的集成。然而,以往的工作只是简单地对不同模型的输出进行平均,缺乏对模型集成方法如何以及为何能够显著提高可迁移性的深入分析。在本文中,我们重新思考对抗攻击中的集成,并通过两个性质定义模型集成的共同弱点:1)损失景观的平坦性;2)接近每个模型的局部最优。我们从实验和理论上证明这两个性质都与可迁移性密切相关,并提出了一种共同弱点攻击(Common Weakness Attack,CWA),通过促进这两个性质来生成更具可迁移性的对抗样本。在图像分类和目标检测任务上的实验结果验证了我们的方法在提高对抗可迁移性方面的有效性,尤其是在攻击经过对抗训练的模型时。我们还成功地将我们的方法应用于攻击一个黑盒大型视觉-语言模型——Google的Bard,展示了实际有效性。代码可在 https://github.com/huanranchen/AdversarialAttacks 获取。

英文摘要:

It is widely recognized that deep learning models lack robustness to adversarial examples. An intriguing property of adversarial examples is that they can transfer across different models, which enables black-box attacks without any knowledge of the victim model. An effective strategy to improve the transferability is attacking an ensemble of models. However, previous works simply average the outputs of different models, lacking an in-depth analysis on how and why model ensemble methods can strongly improve the transferability. In this paper, we rethink the ensemble in adversarial attacks and define the common weakness of model ensemble with two properties: 1) the flatness of loss landscape; and 2) the closeness to the local optimum of each model. We empirically and theoretically show that both properties are strongly correlated with the transferability and propose a Common Weakness Attack (CWA) to generate more transferable adversarial examples by promoting these two properties. Experimental results on both image classification and object detection tasks validate the effectiveness of our approach to improving the adversarial transferability, especially when attacking adversarially trained models. We also successfully apply our method to attack a black-box large vision-language model -- Google's Bard, showing the practical effectiveness. Code is available at \url{https://github.com/huanranchen/AdversarialAttacks}.

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

↑