arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.13873cs.CVcs.CRcs.CYcs.LGcs.SI
收藏

Unsafe Diffusion:论文本到图像模型生成不安全图像和仇恨梗图的问题

Unsafe Diffusion: On the Generation of Unsafe Images and Hateful Memes From Text-To-Image Models

CISPA Helmholtz Center for Information Security(CISPA亥姆霍兹信息安全中心);Delft University of Technology(代尔夫特理工大学)

Yiting Qu, Xinyue Shen, Xinlei He, Michael Backes, Savvas Zannettou, Yang Zhang

AI总结:

本文系统评估四类文本到图像模型的不安全图像生成风险,并结合 DreamBooth 等编辑方法揭示其生成针对个人或社区的仇恨梗图变体的严重威胁。

摘要:

诸如 Stable Diffusion 和 DALLE·2 等最先进的文本到图像模型正在革新人们生成视觉内容的方式。与此同时,社会严重担忧攻击者会如何利用此类模型生成不安全图像。在本研究中,我们专注于揭示文本到图像模型生成不安全图像和仇恨梗图的机制。我们首先构建了一个包含五个类别的不安全图像类型体系:色情露骨、暴力、令人不安、仇恨和政治类。随后,我们使用四个提示词数据集评估了四个先进文本到图像模型生成不安全图像的比例。我们发现,这些模型能够生成相当大比例的不安全图像;在四个模型和四个提示词数据集中,所有生成图像中有 14.56% 是不安全的。在比较四个模型时,我们发现其风险水平不同,其中 Stable Diffusion 最容易生成不安全内容(其所有生成图像中有 18.92% 是不安全的)。鉴于 Stable Diffusion 倾向于生成更多不安全内容,我们评估了其在被攻击者利用以攻击特定个人或社区时生成仇恨梗图变体的潜力。我们采用了 Stable Diffusion 支持的三种图像编辑方法:DreamBooth、Textual Inversion 和 SDEdit。评估结果表明,使用 DreamBooth 生成的图像中有 24% 是仇恨梗图变体,这些图像呈现出原始仇恨梗图以及目标个人/社区的特征;这些生成图像可与从现实世界收集的仇恨梗图变体相比。总体而言,我们的结果表明,大规模生成不安全图像的危险已迫在眉睫。我们讨论了若干缓解措施,例如筛选训练数据、监管提示词以及部署安全过滤器,并鼓励开发更好的防护工具以防止不安全生成。

英文摘要:

State-of-the-art Text-to-Image models like Stable Diffusion and DALLE$\cdot$2 are revolutionizing how people generate visual content. At the same time, society has serious concerns about how adversaries can exploit such models to generate unsafe images. In this work, we focus on demystifying the generation of unsafe images and hateful memes from Text-to-Image models. We first construct a typology of unsafe images consisting of five categories (sexually explicit, violent, disturbing, hateful, and political). Then, we assess the proportion of unsafe images generated by four advanced Text-to-Image models using four prompt datasets. We find that these models can generate a substantial percentage of unsafe images; across four models and four prompt datasets, 14.56% of all generated images are unsafe. When comparing the four models, we find different risk levels, with Stable Diffusion being the most prone to generating unsafe content (18.92% of all generated images are unsafe). Given Stable Diffusion's tendency to generate more unsafe content, we evaluate its potential to generate hateful meme variants if exploited by an adversary to attack a specific individual or community. We employ three image editing methods, DreamBooth, Textual Inversion, and SDEdit, which are supported by Stable Diffusion. Our evaluation result shows that 24% of the generated images using DreamBooth are hateful meme variants that present the features of the original hateful meme and the target individual/community; these generated images are comparable to hateful meme variants collected from the real world. Overall, our results demonstrate that the danger of large-scale generation of unsafe images is imminent. We discuss several mitigating measures, such as curating training data, regulating prompts, and implementing safety filters, and encourage better safeguard tools to be developed to prevent unsafe generation.

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

↑