Gaussian Shading: Provable Performance-Lossless Image Watermarking for Diffusion Models

Zijin Yang, Kai Zeng, Kejiang Chen, Han Fang, Wei Ming Zhang +1 more
2/9/2026

No official code found. Best implementation: bsmhmmlf/Gaussian-Shading (142 stars, MIT, last commit 2024-05-15). 1 more below.

Abstract

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 out-performs existing methods in terms of robustness.

View on arXivView PDF

Code Implementations(2)

MIT

[CVPR 2024] Gaussian Shading: Provable Performance-Lossless Image Watermarking for Diffusion Models

14210Shell, PythonApr 10, 20242 years agoMIT
GPL-3.0

This is an unofficial implementation of the Paper by Kejiang Chen et.al. on Gaussian Shading: Provable Performance-Lossless Image Watermarking for Diffusion Models

383PythonMar 3, 20242 years agoGPL-3.0

Similar Papers

Cite this paper

@article{yang2026gaussian,
  title  = {Gaussian Shading: Provable Performance-Lossless Image Watermarking for Diffusion Models},
  author = {Zijin Yang and Kai Zeng and Kejiang Chen and Han Fang and Wei Ming Zhang and Neng H. Yu},
  year   = {2026},
  eprint = {2404.04956},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2404.04956},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.04956.svg)](https://codeofpaper.com/paper/2404.04956)

Discussion