paper-with-me

Papers

SafeGen: Mitigating Sexually Explicit Content Generation in Text-to-Image Models

2024-04-10 · Xinfeng Li, Yuchen Yang, Jiangyi Deng, Chen Yan, Yanjiao Chen, Xiaoyu Ji, Wenyuan Xu

Text-to-image (T2I) models, such as Stable Diffusion, have exhibited remarkable performance in generating high-quality images from text descriptions in recent years. However, text-to-image models may be tricked into generating not-safe-for-work (NSFW) content, particularly in sexually explicit scenarios. Existing countermeasures mostly focus on filtering inappropriate inputs and outputs, or suppressing improper text embeddings, which can block sexually explicit content (e.g., naked) but may still be vulnerable to adversarial prompts -- inputs that appear innocent but are ill-intended. In this paper, we present SafeGen, a framework to mitigate sexual content generation by text-to-image models in a text-agnostic manner. The key idea is to eliminate explicit visual representations from the model regardless of the text input. In this way, the text-to-image model is resistant to adversarial prompts since such unsafe visual representations are obstructed from within. Extensive experiments conducted on four datasets and large-scale user studies demonstrate SafeGen's effectiveness in mitigating sexually explicit content generation while preserving the high-fidelity of benign images. SafeGen outperforms eight state-of-the-art baseline methods and achieves 99.4% sexual content removal performance. Furthermore, our constructed benchmark of adversarial prompts provides a basis for future development and evaluation of anti-NSFW-generation methods.

📄 PDF Abstract BibTeX arXiv:2404.06666

Code (1)

letterligo/text-agnostic-governance 공식 구현 jax

Methods 이 논문이 사용한 방법론

Focus 설명 없음
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 제목 키워드 기반

SafeGen-Bench: Benchmarking Safety in Image-Conditioned Text-to-Video Generation

2026-05-31 · Yingzi Ma, Xiaogeng Liu, Yawen Zheng, Chaowei Xiao arxiv

With the rapid advancements in text-to-image diffusion models, generative video models (T2V models) like Sora can now produce short synthetic videos from a text prompt or an initial image. However, synthetic video genera…

Text-to-Video GenerationTemporal Sequences

Language models for longitudinal analysis of abusive content in Billboard Music Charts

2025-10-06 · Rohitash Chandra, Yathin Suresh, Divyansh Raj Sinha, Sanchit Jindal arxiv

There is no doubt that there has been a drastic increase in abusive and sexually explicit content in music, particularly in Billboard Music Charts. However, there is a lack of studies that validate the trend for effectiv…

Sentiment Analysis

Beautiful Images, Toxic Words: Understanding and Addressing Offensive Text in Generated Images

2025-02-07 · Aditya Kumar, Tom Blanchard, Adam Dziedzic, Franziska Boenisch

State-of-the-art visual generation models, such as Diffusion Models (DMs) and Vision Auto-Regressive Models (VARs), produce highly realistic images. While prior work has successfully mitigated Not Safe For Work (NSFW) co…

Text Generation

SafeGen: Embedding Ethical Safeguards in Text-to-Image Generation

2025-12-14 · Dang Phuong Nam, Nguyen Kieu, Pham Thanh Hieu arxiv

Generative Artificial Intelligence (AI) has created unprecedented opportunities for creative expression, education, and research. Text-to-image systems such as DALL.E, Stable Diffusion, and Midjourney can now convert ide…

Text-to-Image Generation

What's in the Box? An Analysis of Undesirable Content in the Common Crawl Corpus

2021-08-01 · ACL 2021 5 · Alexandra Luccioni, Joseph Viviano

Whereas much of the success of the current generation of neural language models has been driven by increasingly large training corpora, relatively little research has been dedicated to analyzing these massive sources of …