Papers › Attack-Resilient Image Watermarking Using Stable Diffusion

Attack-Resilient Image Watermarking Using Stable Diffusion

8 Jan 2024arXiv:2401.04247archive 2025-07-28

Lijun Zhang, Xiao Liu, Antoni Viros Martin, Cindy Xiong Bearfield, Yuriy Brun, Hui Guan

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2401.04247")

Code

Syntology Ran 4 of 11 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 2 ran · honoured contract; 2 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zhanglijun95/ZoDiac officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 4 ran; 2 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
2ran
7unverified

Licence: 11 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from zhanglijun95/ZoDiac. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

compute_psnr zhanglijun95/ZoDiac/main/utils.py official repository ran fingerprinted no licence file found · pointer only · 0577c3beb6756949 · report
create_output_folder zhanglijun95/ZoDiac/main/utils.py official repository ran no licence file found · pointer only · 00aa681773f9aed4 · report
create_window zhanglijun95/ZoDiac/loss/pytorch_ssim.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · 6154e3744ece5728 · report
gaussian zhanglijun95/ZoDiac/loss/pytorch_ssim.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · c56b7ef16f309a45 · report
calculate_activation_statistics zhanglijun95/ZoDiac/main/fid.py official repository unverified no licence file found · pointer only · 634f529d3d26e87e · report
calculate_frechet_distance zhanglijun95/ZoDiac/main/fid.py official repository unverified no licence file found · pointer only · 0def50a351111624 · report
get_activations zhanglijun95/ZoDiac/main/fid.py official repository unverified no licence file found · pointer only · ceb163acb8634f88 · report
get_img_tensor zhanglijun95/ZoDiac/main/utils.py official repository unverified no licence file found · pointer only · 3ea2490fe9677271 · report
normalize_tensor zhanglijun95/ZoDiac/loss/watson_vgg.py official repository unverified no licence file found · pointer only · 0086e76caac76ff6 · report
softmax zhanglijun95/ZoDiac/loss/watson_vgg.py official repository unverified no licence file found · pointer only · cc287dc402b9202b · report
ssim zhanglijun95/ZoDiac/loss/pytorch_ssim.py official repository unverified no licence file found · pointer only · 9151c793f90473f0 · report

Tasks

Denoising

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections