Comprehensive Assessment and Analysis for NSFW Content Erasure in Text-to-Image Diffusion Models

Die Chen, Zhi-Wen Li, Cen Chen, Yue-Xiang Xie, Xiao-Dan Li +3 more
1/1/2025
diffusion-flow

No confident code implementation found for this paper.

Abstract

Text-to-image (T2I) diffusion models have gained widespread application across various domains, demonstrating remarkable creative potential. However, the strong generalization capabilities of these models can inadvertently led they to generate NSFW content even with efforts on filtering NSFW content from the training dataset, posing risks to their safe deployment.

Show full abstract

While several concept erasure methods have been proposed to mitigate this issue, a comprehensive evaluation of their effectiveness remains absent. To bridge this gap, we present the first systematic investigation of concept erasure methods for NSFW content and its sub-themes in text-to-image diffusion models. At the task level, we provide a holistic evaluation of 11 state-of-the-art baseline methods with 14 variants. Specifically, we analyze these methods from six distinct assessment perspectives, including three conventional perspectives, i.e. , erasure proportion, image quality, and semantic alignment, and three new perspectives, i.e. , excessive erasure, the impact of explicit and implicit unsafe prompts, and robustness. At the tool level, we perform a detailed toxicity analysis of NSFW datasets and compare the performance of different NSFW classifiers, offering deeper insights into their performance alongside a compilation of comprehensive evaluation metrics. Our benchmark not only systematically evaluates concept erasure methods, but also delves into the underlying factors influencing their performance at the insight level. By synthesizing insights from various evaluation perspectives, we provide a deeper understanding of the challenges and opportunities in the field, offering actionable guidance and inspiration for advancing research and practical applications in concept erasure.

DOISemantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2025comprehensive,
  title  = {Comprehensive Assessment and Analysis for NSFW Content Erasure in Text-to-Image Diffusion Models},
  author = {Die Chen and Zhi-Wen Li and Cen Chen and Yue-Xiang Xie and Xiao-Dan Li and Jin-Yan Ye and Ying-Da Chen and Ya-Liang Li},
  year   = {2025},
  doi    = {10.48550/arXiv.2502.12527},
  url    = {https://doi.org/10.48550/arXiv.2502.12527},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/56d79838bdf2f0a788ef92ba06a79798b9012abb.svg)](https://codeofpaper.com/paper/56d79838bdf2f0a788ef92ba06a79798b9012abb)

Discussion