arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.13828cs.CRcs.AI
收藏

Nightshade:针对文本到图像生成模型的提示词特定投毒攻击

Nightshade: Prompt-Specific Poisoning Attacks on Text-to-Image Generative Models

University of Chicago(芝加哥大学)

Shawn Shan, Wenxin Ding, Josephine Passananti, Stanley Wu, Haitao Zheng, Ben Y. Zhao

AI总结:

提出针对文本到图像生成模型的提示词特定投毒攻击 Nightshade,通过少量视觉隐蔽的投毒样本破坏特定提示词响应并渗透至相关概念,有效削弱模型生成能力,可作为内容创作者对抗违规网络爬虫的最后防线。

摘要:

数据投毒攻击通过操纵训练数据,在训练时向机器学习模型引入意外行为。对于拥有海量训练数据集的文本到图像生成模型,当前对投毒攻击的认知表明,成功的攻击需要向其训练流程中注入数百万个投毒样本。在本文中,我们展示了投毒攻击可以在生成模型上取得成功。我们观察到,这些模型中每个概念的训练数据可能相当有限,使其容易受到提示词特定投毒攻击,这类攻击针对模型响应单个提示词的能力。我们提出了 Nightshade,一种优化的提示词特定投毒攻击,其投毒样本在视觉上与匹配文本提示词的良性图像完全相同。Nightshade 投毒样本还针对效力进行了优化,能在 <100 个投毒样本内破坏 Stable Diffusion SDXL 提示词。Nightshade 的投毒效果会“渗透”到相关概念,并且多次攻击可以在单个提示词中组合使用。令人惊讶的是,我们展示了适量的 Nightshade 攻击可以破坏文本到图像生成模型中的通用特征,从而有效削弱其生成有意义图像的能力。最后,我们提议将 Nightshade 及类似工具作为内容创作者对抗忽略退出/禁止爬取指令的网络爬虫的最后防线,并讨论了对模型训练者和内容创作者的可能影响。

英文摘要:

Data poisoning attacks manipulate training data to introduce unexpected behaviors into machine learning models at training time. For text-to-image generative models with massive training datasets, current understanding of poisoning attacks suggests that a successful attack would require injecting millions of poison samples into their training pipeline. In this paper, we show that poisoning attacks can be successful on generative models. We observe that training data per concept can be quite limited in these models, making them vulnerable to prompt-specific poisoning attacks, which target a model's ability to respond to individual prompts. We introduce Nightshade, an optimized prompt-specific poisoning attack where poison samples look visually identical to benign images with matching text prompts. Nightshade poison samples are also optimized for potency and can corrupt an Stable Diffusion SDXL prompt in <100 poison samples. Nightshade poison effects "bleed through" to related concepts, and multiple attacks can composed together in a single prompt. Surprisingly, we show that a moderate number of Nightshade attacks can destabilize general features in a text-to-image generative model, effectively disabling its ability to generate meaningful images. Finally, we propose the use of Nightshade and similar tools as a last defense for content creators against web scrapers that ignore opt-out/do-not-crawl directives, and discuss possible implications for model trainers and content creators.

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

↑