Papers › A Recipe for Watermarking Diffusion Models

A Recipe for Watermarking Diffusion Models

17 Mar 2023arXiv:2303.10137archive 2025-07-28

Yunqing Zhao, Tianyu Pang, Chao Du, Xiao Yang, Ngai-Man Cheung, Min Lin

Diffusion models (DMs) have demonstrated advantageous potential on generative tasks. Widespread interest exists in incorporating DMs into downstream applications, such as producing or editing photorealistic images. However, practical deployment and unprecedented power of DMs raise legal issues, including copyright protection and monitoring of generated content. In this regard, watermarking has been a proven solution for copyright protection and content monitoring, but it is underexplored in the DMs literature. Specifically, DMs generate samples from longer tracks and may have newly designed multimodal structures, necessitating the modification of conventional watermarking pipelines. To this end, we conduct comprehensive analyses and derive a recipe for efficiently watermarking state-of-the-art DMs (e.g., Stable Diffusion), via training from scratch or finetuning. Our recipe is straightforward but involves empirically ablated implementation details, providing a foundation for future research on watermarking DMs. The code is available at https://github.com/yunqing-me/WatermarkDM.

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="2303.10137")

Code

Syntology Ran 9 of 13 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 3 ran · honoured contract; 4 ran · our draft was wrong; 1 ran · fixture could not drive it; 1 ran with no contract checked.

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

yunqing-me/watermarkdm officialmentioned in papermentioned on GitHubpytorchMIT 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

13 samples harvested; 9 ran; 3 honoured the contract we drafted; 4 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.

3ran · honoured contract
4ran · our draft was wrong
1ran · fixture could not drive it
1ran
4unverified

Licence: 0 of the 13 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 yunqing-me/watermarkdm. “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.

calculate_fid_from_inception_stats yunqing-me/watermarkdm/edm/fid.py official repository ran · honoured contract MIT (permissive) · 45e941764344e7f3 · report
chunk yunqing-me/watermarkdm/sd_watermark/stable_txt2img.py official repository ran · our draft was wrong MIT (permissive) · 8241c0562bc710fd · report
file_ext yunqing-me/watermarkdm/edm/dataset_tool.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · a2b45afa097b55b6 · report
format_time yunqing-me/watermarkdm/edm/dnnlib/util.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 674eca7b9e1b6439 · report
format_time_brief yunqing-me/watermarkdm/edm/dnnlib/util.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 32af001972a0699f · report
maybe_min yunqing-me/watermarkdm/edm/dataset_tool.py official repository ran · honoured contract MIT (permissive) · dd1dc700e87f36cc · report
parse_int_list yunqing-me/watermarkdm/edm/generate.py official repository ran · honoured contract MIT (permissive) · cacd4f6ec202d9b4 · report
parse_tuple yunqing-me/watermarkdm/edm/dataset_tool.py official repository ran MIT (permissive) · 07b21b35ecb4815c · report
weight_init yunqing-me/watermarkdm/edm/training/networks.py official repository ran · fixture could not drive it MIT (permissive) · d41a4250066bce93 · report
ablation_sampler yunqing-me/watermarkdm/edm/generate.py official repository unverified MIT (permissive) · 9fbf646e18eed1db · report
ask_yes_no yunqing-me/watermarkdm/edm/dnnlib/util.py official repository unverified MIT (permissive) · 9d31d2c4cd16bb2d · report
edm_sampler yunqing-me/watermarkdm/edm/generate.py official repository unverified MIT (permissive) · 8b16b0674af254db · report
generate_random_fingerprints yunqing-me/watermarkdm/string2img/embed_watermark_cifar10.py official repository unverified MIT (permissive) · 6840e76ae36d16b1 · report

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