Attack-Resilient Image Watermarking Using Stable Diffusion

Lijun Zhang, Xiao Liu, Antoni Viros Martin, Cindy Xiong Bearfield, Yuriy Brun +1 more
2/3/2026

No official code found. Best implementation: zhanglijun95/ZoDiac (59 stars, last commit 2024-12-05). 1 more below.

Abstract

Watermarking images is critical for tracking image provenance and proving ownership. With the advent of generative models, such as stable diffusion, that can create fake but realistic images, watermarking has become particularly important to make human-created images reliably identifiable. Unfortunately, the very same stable diffusion technology can remove watermarks injected using existing methods. To address this problem, we present ZoDiac, which uses a pre-trained stable diffusion model to inject a watermark into the trainable latent space, resulting in watermarks that can be reliably detected in the latent vector even when attacked. We evaluate ZoDiac on three benchmarks, MS-COCO, DiffusionDB, and WikiArt, and find that ZoDiac is robust against state-of-the-art watermark attacks, with a watermark detection rate above 98% and a false positive rate below 6.4%, outperforming state-of-the-art watermarking methods. We hypothesize that the reciprocating denoising process in diffusion models may inherently enhance the robustness of the watermark when faced with strong attacks and validate the hypothesis. Our research demonstrates that stable diffusion is a promising approach to robust watermarking, able to withstand even stable-diffusion--based attack methods. ZoDiac is open-sourced and available at https://github.com/zhanglijun95/ZoDiac.

View on arXivView PDF

Code Implementations(2)

zhanglijun95/ZoDiacCommunity100%

Attack-Resilient Image Watermarking Using Stable Diffusion (NeurIPS2024)

597Python, Jupyter NotebookFeb 19, 20241 years ago
User19779/ZoDiacCommunity75%

Attack-Resilient Image Watermarking Using Stable Diffusion

00Python, Jupyter NotebookFeb 26, 20251 years ago

Similar Papers

Cite this paper

@article{zhang2026attackresilient,
  title  = {Attack-Resilient Image Watermarking Using Stable Diffusion},
  author = {Lijun Zhang and Xiao Liu and Antoni Viros Martin and Cindy Xiong Bearfield and Yuriy Brun and Hui Guan},
  year   = {2026},
  eprint = {2401.04247},
  archivePrefix = {arXiv},
  doi    = {10.52202/079017-1215},
  url    = {https://arxiv.org/abs/2401.04247},
  journal = {NEURIPS 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/2401.04247.svg)](https://codeofpaper.com/paper/2401.04247)

Discussion