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

通过文本到图像扩散模型实现对抗鲁棒化

Adversarial Robustification via Text-to-Image Diffusion Models

Korea Advanced Institute of Science and Technology (KAIST)(韩国科学技术院(KAIST));Korea University(高丽大学)

Daewon Choi, Jongheon Jeong, Huiwon Jang, Jinwoo Shin

AI总结:

本文提出一种无需训练数据的模型无关方法,利用文本到图像扩散模型作为可适应去噪器构建去噪与分类流水线,为预训练CLIP等视觉分类器提供可证明的对抗鲁棒性提升。

摘要:

对抗鲁棒性通常被认为是神经网络难以编码的挑战性属性,需要大量训练数据。然而,在采用现成模型的新范式下,访问其训练数据通常不可行或不切实际,且此类模型最初并非针对对抗鲁棒性进行训练。在本文中,我们开发了一种可扩展且与模型无关的解决方案,无需使用任何数据即可实现对抗鲁棒性。我们的直觉是将最近的文本到图像扩散模型视为“可适应的”去噪器,可对其进行优化以指定目标任务。基于此,我们提出:(a)启动一个去噪与分类流水线,针对对抗攻击提供可证明的保证;(b)利用从文本到图像模型生成的少量合成参考图像,实现新颖的适应方案。实验表明,我们将无数据方案应用于预训练的CLIP,能够提升其多样化零样本分类衍生模型的(可证明的)对抗鲁棒性(同时保持其准确率),显著超越利用完整训练数据的先前方法。不仅适用于CLIP,我们还证明我们的框架可轻松高效地适用于对其他视觉分类器进行鲁棒化。

英文摘要:

Adversarial robustness has been conventionally believed as a challenging property to encode for neural networks, requiring plenty of training data. In the recent paradigm of adopting off-the-shelf models, however, access to their training data is often infeasible or not practical, while most of such models are not originally trained concerning adversarial robustness. In this paper, we develop a scalable and model-agnostic solution to achieve adversarial robustness without using any data. Our intuition is to view recent text-to-image diffusion models as "adaptable" denoisers that can be optimized to specify target tasks. Based on this, we propose: (a) to initiate a denoise-and-classify pipeline that offers provable guarantees against adversarial attacks, and (b) to leverage a few synthetic reference images generated from the text-to-image model that enables novel adaptation schemes. Our experiments show that our data-free scheme applied to the pre-trained CLIP could improve the (provable) adversarial robustness of its diverse zero-shot classification derivatives (while maintaining their accuracy), significantly surpassing prior approaches that utilize the full training data. Not only for CLIP, we also demonstrate that our framework is easily applicable for robustifying other visual classifiers efficiently.

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

↑