Safe Latent Diffusion: Mitigating Inappropriate Degeneration in Diffusion Models
About
Text-conditioned image generation models have recently achieved astonishing results in image quality and text alignment and are consequently employed in a fast-growing number of applications. Since they are highly data-driven, relying on billion-sized datasets randomly scraped from the internet, they also suffer, as we demonstrate, from degenerated and biased human behavior. In turn, they may even reinforce such biases. To help combat these undesired side effects, we present safe latent diffusion (SLD). Specifically, to measure the inappropriate degeneration due to unfiltered and imbalanced training sets, we establish a novel image generation test bed-inappropriate image prompts (I2P)-containing dedicated, real-world image-to-text prompts covering concepts such as nudity and violence. As our exhaustive empirical evaluation demonstrates, the introduced SLD removes and suppresses inappropriate image parts during the diffusion process, with no additional training required and no adverse effect on overall image quality or text alignment.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Text-to-Image Generation | COCO | FID52.11 | 51 | |
| Text-to-Image Generation | MSCOCO 30K | FID17.95 | 42 | |
| Concept Unlearning | UnlearnDiffAtk | UnlearnDiffAtk0.479 | 36 | |
| Text-to-Image Generation | COCO 30k | FID16.9 | 29 | |
| Explicit Content Removal | I2P | Armpits Count47 | 28 | |
| Safe Text-to-Image Generation | CoPro V2 (test) | IP27 | 23 | |
| Safe Text-to-Image Generation | Unsafe Diffusion (UD) | IP Score30 | 23 | |
| Safe Text-to-Image Generation | COCO 3K | FID36.29 | 23 | |
| Safe Text-to-Image Generation | I2P | Inappropriate Probability19 | 23 | |
| Image Generation | MS-COCO 30k (val) | FID16.34 | 22 |