SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.04247 · 2024

Attack-Resilient Image Watermarking Using Stable Diffusion

arXiv · PDF · Open in the Atlas

Code that ran

6 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 5 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2401.04247.json · badge: /api/ran/2401.04247.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
zhanglijun95/ZoDiac canonical (classifier label)
classifier basis: census
6 ran · 5 no recorded run
FunctionStatusWhere it lives
compute_psnr Ran
ran; our contract draft was wrong, not the code
zhanglijun95/ZoDiac/main/utils.py
pointer only (licence: NONE) · get_code("0577c3beb6756949")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhanglijun95/ZoDiac when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_output_folder Ran
ran; our contract draft was wrong, not the code
zhanglijun95/ZoDiac/main/utils.py
pointer only (licence: NONE) · get_code("00aa681773f9aed4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhanglijun95/ZoDiac when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_window Ran
ran, honoured the contract we drafted
zhanglijun95/ZoDiac/loss/pytorch_ssim.py
pointer only (licence: NONE) · get_code("6154e3744ece5728")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhanglijun95/ZoDiac when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gaussian Ran
ran, honoured the contract we drafted
zhanglijun95/ZoDiac/loss/pytorch_ssim.py
pointer only (licence: NONE) · get_code("c56b7ef16f309a45")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhanglijun95/ZoDiac when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_tensor Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zhanglijun95/ZoDiac/loss/watson_vgg.py
pointer only (licence: NONE) · get_code("0086e76caac76ff6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhanglijun95/ZoDiac when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ssim Ran
ran; our contract draft was wrong, not the code
zhanglijun95/ZoDiac/loss/pytorch_ssim.py
pointer only (licence: NONE) · get_code("9151c793f90473f0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhanglijun95/ZoDiac when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_activation_statistics Not yet run
unverified (harvested, no recorded run)
zhanglijun95/ZoDiac/main/fid.py
pointer only (licence: NONE) · get_code("634f529d3d26e87e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhanglijun95/ZoDiac when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

calculate_frechet_distance Not yet run
unverified (harvested, no recorded run)
zhanglijun95/ZoDiac/main/fid.py
pointer only (licence: NONE) · get_code("0def50a351111624")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhanglijun95/ZoDiac when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_activations Not yet run
unverified (harvested, no recorded run)
zhanglijun95/ZoDiac/main/fid.py
pointer only (licence: NONE) · get_code("ceb163acb8634f88")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhanglijun95/ZoDiac when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_img_tensor Not yet run
unverified (harvested, no recorded run)
zhanglijun95/ZoDiac/main/utils.py
pointer only (licence: NONE) · get_code("3ea2490fe9677271")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhanglijun95/ZoDiac when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

softmax Not yet run
unverified (harvested, no recorded run)
zhanglijun95/ZoDiac/loss/watson_vgg.py
pointer only (licence: NONE); the stored copy get_code serves, from steffenczolbe/perceptualsimilarity, is pointer only (licence: NONE) · get_code("cc287dc402b9202b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhanglijun95/ZoDiac when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 4 the same month, 7 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
gaussian 160 other papers
64 dated earlier, 4 the same month, 91 later, 1 same year, order not determinable · 7 only as an assembly brick
1812.11941 (2018-12)
High Quality Monocular Depth Estimation via Transfer Learning
1904.01538 (2019-04)
Spatial Attentive Single-Image Deraining with a High Quality Real Rain Dataset
1907.11628 (2019-07)
Unsupervised Learning for Optical Flow Estimation Using Pyramid Convolution LSTM
and 157 more not named here
calculate_frechet_distance 74 other papers
51 dated earlier, 1 the same month, 21 later, 1 same year, order not determinable
1610.09585 (2016-10)
Conditional Image Synthesis With Auxiliary Classifier GANs
1706.08500 (2017-06)
GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium
1807.11458 (2018-07)
To learn image super-resolution, use a GAN to learn how to do image degradation first
and 71 more not named here
create_window 52 other papers
27 dated earlier, 2 the same month, 23 later · 5 only as an assembly brick
1904.01538 (2019-04)
Spatial Attentive Single-Image Deraining with a High Quality Real Rain Dataset
1907.11628 (2019-07)
Unsupervised Learning for Optical Flow Estimation Using Pyramid Convolution LSTM
2002.11616 (2020-02)
Zooming Slow-Mo: Fast and Accurate One-Stage Space-Time Video Super-Resolution
and 49 more not named here
ssim 28 other papers
14 dated earlier, 1 the same month, 13 later
1904.01538 (2019-04)
Spatial Attentive Single-Image Deraining with a High Quality Real Rain Dataset
1907.11628 (2019-07)
Unsupervised Learning for Optical Flow Estimation Using Pyramid Convolution LSTM
2002.11616 (2020-02)
Zooming Slow-Mo: Fast and Accurate One-Stage Space-Time Video Super-Resolution
and 25 more not named here
calculate_activation_statistics 10 other papers
4 dated earlier, 6 later
Chou_How_to_Backdoor_Diffusion_Models_CVPR_2023_paper (2023 (year only))
How to Backdoor Diffusion Models?
2305.08192 (2023-05)
Diffusion Models for Imperceptible and Transferable Adversarial Attack
2306.06874 (2023-06)
VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models
and 7 more not named here
softmax 3 other papers
2 dated earlier, 1 later
2006.15057 (2020-06)
A Loss Function for Generative Neural Networks Based on Watson's Perceptual Model
2311.04071 (2023-11)
Energy-Calibrated VAE with Test Time Free Lunch
2412.09492 (2024-12)
Video Seal: Open and Efficient Video Watermarking
normalize_tensor 2 other papers
1 dated earlier, 1 later
2311.04071 (2023-11)
Energy-Calibrated VAE with Test Time Free Lunch
2412.09492 (2024-12)
Video Seal: Open and Efficient Video Watermarking

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2401.04247")
get_code_for_paper("2401.04247")
have("2401.04247")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2401.04247.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2401.04247.svg)](https://syntology.ai/paper/2401.04247)

Connect an agent — have() is free.