paper-with-me

Papers

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

2023-05-23 · Yiting Qu, Xinyue Shen, Xinlei He, Michael Backes, Savvas Zannettou, Yang Zhang

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.

📄 PDF Abstract BibTeX arXiv:2305.13873

Code (1)

yitingqu/unsafe-diffusion 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

Diffusion Diffusion models generate samples by gradually removing noise from a signal, and their training objective can be expressed as a reweighted variational lower-bound…

Similar Papers 제목 키워드 기반

SafeText: Safe Text-to-image Models via Aligning the Text Encoder

2025-02-28 · Yuepeng Hu, Zhengyuan Jiang, Neil Zhenqiang Gong

Text-to-image models can generate harmful images when presented with unsafe prompts, posing significant safety and societal risks. Alignment methods aim to modify these models to ensure they generate only non-harmful ima…

Image Generation

UnsafeBench: Benchmarking Image Safety Classifiers on Real-World and AI-Generated Images

2024-05-06 · Yiting Qu, Xinyue Shen, Yixin Wu, Michael Backes 외

With the advent of text-to-image models and concerns about their misuse, developers are increasingly relying on image safety classifiers to moderate their generated unsafe images. Yet, the performance of current image sa…

Benchmarking

When Understanding Becomes a Risk: Authenticity and Safety Risks in the Emerging Image Generation Paradigm

2026-03-25 · Ye Leng, Junjie Chu, Mingjie Li, Chenhao Lin 외 arxiv

Recently, multimodal large language models (MLLMs) have emerged as a unified paradigm for language and image generation. Compared with diffusion models, MLLMs possess a much stronger capability for semantic understanding…

Image Generation

ShieldDiff: Suppressing Sexual Content Generation from Diffusion Models through Reinforcement Learning

2024-10-04 · Dong Han, Salaheldin Mohamed, Yong Li

With the advance of generative AI, the text-to-image (T2I) model has the ability to generate various contents. However, the generated contents cannot be fully controlled. There is a potential risk that T2I model can gene…

Unified Safe In-context Image Generation in Multimodal Diffusion Transformers via Restricting Unsafe Information Flows

2026-06-05 · Xiang Yang, Feifei Li, Mi Zhang, Geng Hong 외 arxiv

Diffusion transformers (DiTs) equipped with multimodal attention (MM-Attn) have become a dominant paradigm for image generation. However, preventing the generation of harmful content remains a critical challenge, particu…

Image Generation