Red-Teaming the Stable Diffusion Safety Filter

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.

Paper

References (20)

08Twitter post by @_adamhowell2022 · https://twitter.com/_adamhowell/status/ 1563198881479168000,
09Offensive/profane word list2022
10GitHub Merge: [Safety Checker2022 · Add Safety Checker Module. https://github.com/CompVis/stable-diffusion/commit/ d0c714ae4afa1c011269a956d6f260f84f77025e,
11Davaadorj. Diffusers: State-of-the-art diffusion models2022 · https://github.com/huggingface/diffusers/ blob/8d9c4a531ba48d19b96d7bf38786b560f32298df/src/diffusers/pipelines/
12Github repository: 10,000 most common english words2021 · https://github.com/ first20hours/google-10000-english,

Scroll for more · 8 remaining

Similar papers

© 2026 NYSGPT2525 LLC