paper-with-me

Papers

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 generate unsafe images with uncomfortable contents. In our work, we focus on eliminating the NSFW (not safe for work) content generation from T2I model while maintaining the high quality of generated images by fine-tuning the pre-trained diffusion model via reinforcement learning by optimizing the well-designed content-safe reward function. The proposed method leverages a customized reward function consisting of the CLIP (Contrastive Language-Image Pre-training) and nudity rewards to prune the nudity contents that adhere to the pret-rained model and keep the corresponding semantic meaning on the safe side. In this way, the T2I model is robust to unsafe adversarial prompts since unsafe visual representations are mitigated from latent space. Extensive experiments conducted on different datasets demonstrate the effectiveness of the proposed method in alleviating unsafe content generation while preserving the high-fidelity of benign images as well as images generated by unsafe prompts. We compare with five existing state-of-the-art (SOTA) methods and achieve competitive performance on sexual content removal and image quality retention. In terms of robustness, our method outperforms counterparts under the SOTA black-box attacking model. Furthermore, our constructed method can be a benchmark for anti-NSFW generation with semantically-relevant safe alignment.

📄 PDF Abstract BibTeX arXiv:2410.05309

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

CLIP Contrastive Language-Image Pre-training (CLIP), consisting of a simplified version of ConVIRT trained from scratch, is an efficient method of image representation learning…
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: Mitigating Sexually Explicit Content Generation in Text-to-Image Models

2024-04-10 · Xinfeng Li, Yuchen Yang, Jiangyi Deng, Chen Yan 외

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 gene…

NDM: A Noise-driven Detection and Mitigation Framework against Implicit Sexual Intentions in Text-to-Image Generation

2025-10-17 · Yitong Sun, Yao Huang, Ruochen Zhang, Huanran Chen 외 arxiv

Despite the impressive generative capabilities of text-to-image (T2I) diffusion models, they remain vulnerable to generating inappropriate content, especially when confronted with implicit sexual prompts. Unlike explicit…

Text-to-Image Generation

What Concepts Lie Within? Detecting and Suppressing Risky Content in Diffusion Transformers

2026-05-11 · Chenyu Zhang arxiv

The rise of text-to-image (T2I) models has increasingly raised concerns regarding the generation of risky content, such as sexual, violent, and copyright-protected images, highlighting the need for effective safeguards w…

Image Generation

Red-Teaming the Stable Diffusion Safety Filter

2022-10-03 · Javier Rando, Daniel Paleka, David Lindner, Lennart Heim 외

Stable Diffusion is a recent open-source image generation model comparable to proprietary models such as DALLE, Imagen, or Parti. Stable Diffusion comes with a safety filter that aims to prevent generating explicit image…

Image GenerationRed Teaming

Efficient Fine-Tuning and Concept Suppression for Pruned Diffusion Models

2024-12-19 · CVPR 2025 1 · Reza Shirkavand, Peiran Yu, Shangqian Gao, Gowthami Somepalli 외

Recent advances in diffusion generative models have yielded remarkable progress. While the quality of generated content continues to improve, these models have grown considerably in size and complexity. This increasing c…

Bilevel OptimizationKnowledge DistillationStyle Transfer