SC-Pro: Training-Free Framework for Defending Unsafe Image Synthesis Attack

Junha Park, Jaehui Hwang, Ian Ryu, Hyungkeun Park, Jiyoon Kim +1 more
1/9/2025
cs.CV

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

With advances in diffusion models, image generation has shown significant performance improvements. This raises concerns about the potential abuse of image generation, such as the creation of explicit or violent images, commonly referred to as Not Safe For Work (NSFW) content. To address this, the Stable Diffusion model includes several safety checkers to censor initial text prompts and final output images generated from the model. However, recent research has shown that these safety checkers have vulnerabilities against adversarial attacks, allowing them to generate NSFW images. In this paper, we find that these adversarial attacks are not robust to small changes in text prompts or input latents. Based on this, we propose SC-Pro (Spherical or Circular Probing), a training-free framework that easily defends against adversarial attacks generating NSFW images. Moreover, we develop an approach that utilizes one-step diffusion models for efficient NSFW detection (SC-Pro-o), further reducing computational resources. We demonstrate the superiority of our method in terms of performance and applicability.

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. 1 weaker match is 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{park2025scpro,
  title  = {SC-Pro: Training-Free Framework for Defending Unsafe Image Synthesis Attack},
  author = {Junha Park and Jaehui Hwang and Ian Ryu and Hyungkeun Park and Jiyoon Kim and Jong-Seok Lee},
  year   = {2025},
  eprint = {2501.05359},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.05359v2}
}

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

Discussion