Red-Teaming the Stable Diffusion Safety Filter

By Javier Rando, Daniel Paleka, David Lindner, Lennard Heim, Florian Tramèr. 2022

312 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Generative Models, Safety, Robustness & Interpretability

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. David Bau
  2. Xiao Yang
  3. Yonatan Belinkov
  4. Chao Du
  5. Yanzhu Liu
  6. Adams Wai-Kin Kong
  7. Leyang Li
  8. Zilan Wang

In Computer Vision and Pattern Recognition

  1. David Bau
  2. Yonatan Belinkov
  3. Xiao Yang
  4. Hadas Orgad
  5. Irene Solaiman
  6. Chao Du
  7. Ngai-Man Cheung
  8. Min Lin

In Generative Models

  1. Yonatan Belinkov
  2. Irene Solaiman
  3. David Bau
  4. Chao Du
  5. Min Lin
  6. Tianyu Pang
  7. Yanzhu Liu
  8. Jaden Fiotto-Kaufman

In Safety, Robustness & Interpretability

  1. David Bau
  2. Xiao Yang
  3. Irene Solaiman
  4. Chao Du
  5. Min Lin
  6. Tianyu Pang
  7. Yonatan Belinkov
  8. Michael R Douglas

Citations in the corpus