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

针对 Stable Diffusion 的无查询对抗攻击的初步研究

A Pilot Study of Query-Free Adversarial Attack against Stable Diffusion

South China University of Technology(华南理工大学);Michigan State University(密歇根州立大学)

Haomin Zhuang, Yihua Zhang, Sijia Liu

AI总结:

本研究提出针对 Stable Diffusion 的无查询对抗攻击方法,通过利用 CLIP 文本编码器的脆弱性和可操纵关键维度,仅用五个字符扰动即可显著改变合成图像内容或精确擦除目标内容。

摘要:

尽管 Stable Diffusion 在文本到图像(T2I)生成方面取得了创纪录的性能,但对其对抗鲁棒性的研究关注较少。在本工作中,我们研究了 Stable Diffusion 的对抗攻击生成问题,并探讨在缺乏端到端模型查询的情况下,是否仍能获得对抗性文本提示。我们将由此产生的问题称为“无查询攻击生成”。为了解决这个问题,我们表明 T2I 模型的脆弱性源于文本编码器缺乏鲁棒性,例如用于攻击 Stable Diffusion 的 CLIP 文本编码器。基于这一洞察,我们提出了无目标和有目标的无查询攻击,前者建立在文本嵌入空间中最具影响力的维度上,我们将其称为可操纵的关键维度。通过利用所提出的攻击,我们实证表明,仅对文本提示进行五个字符的扰动就能导致使用 Stable Diffusion 合成的图像发生显著的内容偏移。此外,我们表明所提出的有目标攻击能够精确地引导扩散模型擦除目标图像内容,而不会对无目标图像内容造成太大改变。我们的代码可在 https://github.com/OPTML-Group/QF-Attack 获取。

英文摘要:

Despite the record-breaking performance in Text-to-Image (T2I) generation by Stable Diffusion, less research attention is paid to its adversarial robustness. In this work, we study the problem of adversarial attack generation for Stable Diffusion and ask if an adversarial text prompt can be obtained even in the absence of end-to-end model queries. We call the resulting problem 'query-free attack generation'. To resolve this problem, we show that the vulnerability of T2I models is rooted in the lack of robustness of text encoders, e.g., the CLIP text encoder used for attacking Stable Diffusion. Based on such insight, we propose both untargeted and targeted query-free attacks, where the former is built on the most influential dimensions in the text embedding space, which we call steerable key dimensions. By leveraging the proposed attacks, we empirically show that only a five-character perturbation to the text prompt is able to cause the significant content shift of synthesized images using Stable Diffusion. Moreover, we show that the proposed target attack can precisely steer the diffusion model to scrub the targeted image content without causing much change in untargeted image content. Our code is available at https://github.com/OPTML-Group/QF-Attack.

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

↑