Skip to content

SafeGen: Mitigating explicit sexual content generation in text-to-image modelsSafeGen: Mitigating Sexually Explicit Content Generation in Text-to-Image Models

arXiv· arXiv:2404.06666· CCS 2024· Xinfeng Li, Yuchen Yang, Jiangyi Deng, Chen Yan, Yanjiao Chen, Xiaoyu Ji, Wenyuan Xu·Indexed by this site · 24 days ago· Originally publishedDefenses
AI summary

The researchers propose the SafeGen framework, which suppresses the generation of sexually explicit content by text-to-image models such as Stable Diffusion in a text-independent manner. Regardless of the text input, the method eliminates explicit visual representations from within the model, thereby defending against seemingly harmless adversarial prompts. Across four datasets and a large-scale user study, SafeGen outperforms eight state-of-the-art baseline methods, achieving a sexual content removal rate of 99.4% while maintaining high fidelity of benign images, and the authors also built an adversarial prompt benchmark.

Read originalCCS 2024