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

SD-NAE:利用Stable Diffusion生成自然对抗样本

SD-NAE: Generating Natural Adversarial Examples with Stable Diffusion

Duke Kunshan University(昆山杜克大学);Duke University(杜克大学)

Yueqian Lin, Jingyang Zhang, Yiran Chen, Hai Li

AI总结:

本研究提出SD-NAE方法,利用Stable Diffusion通过扰动指定类别token嵌入、以目标分类器损失梯度引导的方式主动合成自然对抗样本,经实验验证可有效生成实用的NAEs,助力模型鲁棒性评估与漏洞识别。

摘要:

自然对抗样本(Natural Adversarial Examples, NAEs)是从环境中自然产生、能够欺骗分类器的图像,对于鲁棒评估和识别训练后模型的漏洞至关重要。在本研究中,与以往从真实图像中被动收集NAEs的工作不同,我们提出使用最先进的Stable Diffusion主动合成NAEs。具体而言,我们的方法构建了一个受控优化过程,通过扰动与指定类别对应的token嵌入来生成NAEs。该生成过程由目标分类器的损失梯度引导,确保生成的图像高度贴近真实类别,同时能够骗过分类器。我们将这一创新方法命名为SD-NAE(Stable Diffusion for Natural Adversarial Examples),通过精心设计的实验证明,该方法能够有效生成有效且实用的NAEs。代码可在https://github.com/linyueqian/SD-NAE获取。

英文摘要:

Natural Adversarial Examples (NAEs), images arising naturally from the environment and capable of deceiving classifiers, are instrumental in robustly evaluating and identifying vulnerabilities in trained models. In this work, unlike prior works that passively collect NAEs from real images, we propose to actively synthesize NAEs using the state-of-the-art Stable Diffusion. Specifically, our method formulates a controlled optimization process, where we perturb the token embedding that corresponds to a specified class to generate NAEs. This generation process is guided by the gradient of loss from the target classifier, ensuring that the created image closely mimics the ground-truth class yet fools the classifier. Named SD-NAE (Stable Diffusion for Natural Adversarial Examples), our innovative method is effective in producing valid and useful NAEs, which is demonstrated through a meticulously designed experiment. Code is available at https://github.com/linyueqian/SD-NAE.

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

↑