Gaussian Shading: Provable Performance-Lossless Image Watermarking for Diffusion Models
About
Ethical concerns surrounding copyright protection and inappropriate content generation pose challenges for the practical implementation of diffusion models. One effective solution involves watermarking the generated images. However, existing methods often compromise the model performance or require additional training, which is undesirable for operators and users. To address this issue, we propose Gaussian Shading, a diffusion model watermarking technique that is both performance-lossless and training-free, while serving the dual purpose of copyright protection and tracing of offending content. Our watermark embedding is free of model parameter modifications and thus is plug-and-play. We map the watermark to latent representations following a standard Gaussian distribution, which is indistinguishable from latent representations obtained from the non-watermarked diffusion model. Therefore we can achieve watermark embedding with lossless performance, for which we also provide theoretical proof. Furthermore, since the watermark is intricately linked with image semantics, it exhibits resilience to lossy processing and erasure attempts. The watermark can be extracted by Denoising Diffusion Implicit Models (DDIM) inversion and inverse sampling. We evaluate Gaussian Shading on multiple versions of Stable Diffusion, and the results demonstrate that Gaussian Shading not only is performance-lossless but also outperforms existing methods in terms of robustness.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Watermark Detection | Stable Diffusion-Prompts (SDP) 350 watermarked images | TPR@1%FPR100 | 108 | |
| Image Generation | ImageNet | FID4.87 | 68 | |
| Watermark Detection | ImageNet 2014 (val) | Detection Rate (Level 1)100 | 66 | |
| Imprinting Attack | COCO | Detection Rate86 | 54 | |
| Imprint Forgery Attack | SDP prompt v1 (val) | Detection Rate100 | 48 | |
| Watermark Detection | ImageNet | Robustness - Scaling99.51 | 33 | |
| Image Watermarking | COCO Dataset | ACC100 | 23 | |
| Image Generation | MS-COCO 30k (val) | FID26.27 | 22 | |
| Watermark Generation | COCO | PSNR10.17 | 21 | |
| Image Watermarking | Stable Diffusion V2.1 | -- | 20 |