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

Die Chen, Zhiwen Li, Cen Chen, Xiaodan Li, Jinyan Ye
2/18/2025
cs.CV

No confident code implementation found for this paper. 2 possible matches can be shown below.

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. 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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — 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 Zhiwen Li and Cen Chen and Xiaodan Li and Jinyan Ye},
  year   = {2025},
  eprint = {2502.12527},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.12527v1}
}

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/2502.12527.svg)](https://codeofpaper.com/paper/2502.12527)

Discussion