Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Red-Teaming the Stable Diffusion Safety Filter

About

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 images. Unfortunately, the filter is obfuscated and poorly documented. This makes it hard for users to prevent misuse in their applications, and to understand the filter's limitations and improve it. We first show that it is easy to generate disturbing content that bypasses the safety filter. We then reverse-engineer the filter and find that while it aims to prevent sexual content, it ignores violence, gore, and other similarly disturbing content. Based on our analysis, we argue safety measures in future model releases should strive to be fully open and properly documented to stimulate security contributions from the community.

Javier Rando, Daniel Paleka, David Lindner, Lennart Heim, Florian Tram\`er• 2022

Related benchmarks

TaskDatasetResultRank
Safety EvaluationUnsafeDiff (test)
F1 Score35.8
11
Safety EvaluationSMID (test)
F1 Score26.3
11
Safety EvaluationUnsafeBench (test)
F1 Score32
11
Safety ClassificationOS Bench
Recall0.264
8
NSFW ClassificationMixed NSFW
Accuracy0.778
6
NSFW ClassificationNudeNet 1,000-image
Accuracy86.4
6
Showing 6 of 6 rows

Other info

Follow for update