English

Red-Teaming the Stable Diffusion Safety Filter

Artificial Intelligence 2022-11-11 v5 Cryptography and Security Computer Vision and Pattern Recognition Computers and Society Machine Learning

Abstract

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.

Keywords

Cite

@article{arxiv.2210.04610,
  title  = {Red-Teaming the Stable Diffusion Safety Filter},
  author = {Javier Rando and Daniel Paleka and David Lindner and Lennart Heim and Florian Tramèr},
  journal= {arXiv preprint arXiv:2210.04610},
  year   = {2022}
}

Comments

ML Safety Workshop NeurIPS 2022

R2 v1 2026-06-28T03:08:31.100Z