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

面向对抗鲁棒性的视觉提示(Visual Prompting)

Visual Prompting for Adversarial Robustness

Michigan State University(密歇根州立大学);Fraunhofer ITWM(弗劳恩霍夫工业数学研究所);Fraunhofer Center of Machine Learning(弗劳恩霍夫机器学习中心);IBM Research(IBM研究院)

Aochuan Chen, Peter Lorenz, Yuguang Yao, Pin-Yu Chen, Sijia Liu

AI总结:

针对原始视觉提示方法对抗防御效果差的问题,提出类别级对抗视觉提示方法C-AVP,通过生成类别级提示优化关联提升鲁棒性,准确率与推理速度均显著优于现有方法。

摘要:

在本研究中,我们利用视觉提示(VP,Visual Prompting)在测试阶段提升固定预训练模型的对抗鲁棒性。与传统对抗防御方法相比,VP支持设计通用(即与数据无关)的输入提示模板,这类模板在测试时具备即插即用特性,无需引入大量计算开销即可实现预期的模型性能。尽管VP已被成功应用于提升模型泛化能力,但它能否用于防御对抗攻击、以及如何实现这类防御仍不明确。我们针对该问题展开研究,发现原始VP方法在对抗防御中效果不佳,原因是通用输入提示缺乏针对样本特定对抗扰动的鲁棒学习能力。为解决这一问题,我们提出一种新型VP方法,名为类别级对抗视觉提示(C-AVP,Class-wise Adversarial Visual Prompting),该方法生成类别级视觉提示,既能发挥集成提示的优势,又能优化提示间的相互关联以提升模型鲁棒性。我们的实验表明,C-AVP性能优于传统VP方法,标准准确率提升2.1倍,鲁棒准确率提升2倍。与经典的测试时防御方法相比,C-AVP的推理速度提升了42倍。

英文摘要:

In this work, we leverage visual prompting (VP) to improve adversarial robustness of a fixed, pre-trained model at testing time. Compared to conventional adversarial defenses, VP allows us to design universal (i.e., data-agnostic) input prompting templates, which have plug-and-play capabilities at testing time to achieve desired model performance without introducing much computation overhead. Although VP has been successfully applied to improving model generalization, it remains elusive whether and how it can be used to defend against adversarial attacks. We investigate this problem and show that the vanilla VP approach is not effective in adversarial defense since a universal input prompt lacks the capacity for robust learning against sample-specific adversarial perturbations. To circumvent it, we propose a new VP method, termed Class-wise Adversarial Visual Prompting (C-AVP), to generate class-wise visual prompts so as to not only leverage the strengths of ensemble prompts but also optimize their interrelations to improve model robustness. Our experiments show that C-AVP outperforms the conventional VP method, with 2.1X standard accuracy gain and 2X robust accuracy gain. Compared to classical test-time defenses, C-AVP also yields a 42X inference time speedup.

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

↑