Skip to main content
QUICK REVIEW

[论文解读] Unsafe Diffusion: On the Generation of Unsafe Images and Hateful Memes From Text-To-Image Models

Yiting Qu, Xinyue Shen|arXiv (Cornell University)|May 23, 2023
Generative Adversarial Networks and Image SynthesisComputer Science被引用 3
一句话总结

本文研究了使用文本到图像模型生成不安全图像和仇恨表情包的情况,发现四种模型生成的图像中14.56%为不安全内容,其中Stable Diffusion的不安全内容占比高达18.92%。通过DreamBooth技术,24%的编辑后图像转化为仇恨表情包变体,表明存在大规模滥用的高风险。

ABSTRACT

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生成有害内容风险的认识,并倡导在扩散模型中加强安全防护措施。

提出的方法

  • 构建了五类不安全图像的分类体系:性暴露、暴力、令人不安、仇恨及政治类。
  • 使用来自4chan、Lexica以及自定义模板数据集的三个高风险提示数据集,评估了四种开源文本到图像模型——Stable Diffusion、Latent Diffusion、DALL·E 2-demo和DALL·E mini。
  • 应用三种图像编辑方法——DreamBooth、Textual Inversion和SDEdit——对Stable Diffusion进行微调,以生成仇恨表情包。
  • 通过人工标注对生成的图像进行分类,优先考虑伦理安全,避免第三方接触。
  • 测量不同模型和提示数据集下不安全图像及仇恨表情包变体的比例,以评估风险水平。
  • 通过定性与对比分析,评估AI生成的仇恨表情包与真实世界变体在真实感和相似度方面的表现。

实验结果

研究问题

  • RQ1RQ1:当使用有害文本提示时,文本到图像模型在生成不安全内容方面的易感性如何?不同模型和提示数据集之间有何差异?
  • RQ2RQ2:攻击者是否可利用微调技术从文本到图像模型中自动生成逼真的仇恨表情包变体?
  • RQ3RQ3:扩散模型中不安全图像生成的根本原因是什么?能否通过数据筛选、提示监管或安全过滤机制加以缓解?

主要发现

  • 在四种文本到图像模型和四个提示数据集中,所有生成图像中14.56%被归类为不安全内容。
  • Stable Diffusion表现出最高风险,其所有输出中18.92%为不安全内容。
  • 通过DreamBooth技术,24%的生成图像被识别为仇恨表情包变体,且保留了真实世界仇恨表情包的关键特征。
  • 研究发现,即使使用安全的文本提示,模型仍可能生成不安全内容,表明存在固有漏洞。
  • 图像编辑方法如DreamBooth可使攻击者有效微调模型,大规模生成逼真且有针对性的仇恨表情包。
  • 研究结果凸显了迫切需要改进安全过滤机制、伦理数据筛选以及检测工具,以应对AI生成的有害内容。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。