Papers › Mask Image Watermarking

Mask Image Watermarking

17 Apr 2025arXiv:2504.12739archive 2025-07-28

Runyi Hu, Jie Zhang, Shiqian Zhao, Nils Lukas, Jiwei Li, Qing Guo, Han Qiu, Tianwei Zhang

We present MaskMark, a simple, efficient, and flexible framework for image watermarking. MaskMark has two variants: (1) MaskMark-D, which supports global watermark embedding, watermark localization, and local watermark extraction for applications such as tamper detection; (2) MaskMark-ED, which focuses on local watermark embedding and extraction, offering enhanced robustness in small regions to support fine-grined image protection. MaskMark-D builds on the classical encoder-distortion layer-decoder training paradigm. In MaskMark-D, we introduce a simple masking mechanism during the decoding stage that enables both global and local watermark extraction. During training, the decoder is guided by various types of masks applied to watermarked images before extraction, helping it learn to localize watermarks and extract them from the corresponding local areas. MaskMark-ED extends this design by incorporating the mask into the encoding stage as well, guiding the encoder to embed the watermark in designated local regions, which improves robustness under regional attacks. Extensive experiments show that MaskMark achieves state-of-the-art performance in global and local watermark extraction, watermark localization, and multi-watermark embedding. It outperforms all existing baselines, including the recent leading model WAM for local watermarking, while preserving high visual quality of the watermarked images. In addition, MaskMark is highly efficient and adaptable. It requires only 20 hours of training on a single A6000 GPU, achieving 15x computational efficiency compared to WAM. By simply adjusting the distortion layer, MaskMark can be quickly fine-tuned to meet varying robustness requirements.

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

Code

Syntology Ran 12 of 23 code samples harvested from 2 repositories linked to this paper; 11 have no recorded run. Of those that ran: 5 ran · our draft was wrong; 7 ran with no contract checked.

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

hurunyi/maskmark 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

23 samples harvested; 12 ran; 0 honoured the contract we drafted; 11 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.

5ran · our draft was wrong
7ran
11unverified

Licence: 0 of the 23 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

ConvNormRelu hurunyi/maskmark/models/Network.py official repository ran fingerprinted MIT (permissive) · 1f06faef62e6eba2 · report
DoubleConv hurunyi/maskmark/models/Network.py official repository ran fingerprinted MIT (permissive) · e066873b6a3c1c9c · report
Down hurunyi/maskmark/models/Network.py official repository ran fingerprinted MIT (permissive) · 29d6c8dc33aa60c4 · report
GroupNorm32 hurunyi/maskmark/models/Network.py official repository ran · our draft was wrong MIT (permissive) · 970af1a11b88823e · report
REBNCONV hurunyi/maskmark/models/Network.py official repository ran fingerprinted MIT (permissive) · 12201d6ffa2f0b4d · report
RSU4 hurunyi/maskmark/models/Network.py official repository ran fingerprinted MIT (permissive) · 5f68a0c61f8c216a · report
UNet hurunyi/maskmark/models/Network.py official repository ran MIT (permissive) · 0452d2e25645e27d · report
Up hurunyi/maskmark/models/Network.py official repository ran MIT (permissive) · 65f0d74b6eff8968 · report
normalize hurunyi/maskmark/models/Network.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 37f8b080682479a1 · report
Decoder hurunyi/maskmark/models/Network.py official repository unverified MIT (permissive) · 8d74faed004f7cc6 · report
Encoder hurunyi/maskmark/models/Network.py official repository unverified MIT (permissive) · 073c41c1803af624 · report
JND hurunyi/maskmark/models/Network.py official repository unverified MIT (permissive) · cda4a32b64c7392c · report
MaskWM hurunyi/maskmark/models/Network.py official repository unverified MIT (permissive) · b653f0e6310a39f5 · report
Noise hurunyi/maskmark/models/Network.py official repository unverified MIT (permissive) · 942910e44eb17b71 · report
RSU4F hurunyi/maskmark/models/Network.py official repository unverified MIT (permissive) · 7195700248a991a6 · report
RSU5 hurunyi/maskmark/models/Network.py official repository unverified MIT (permissive) · 50ca52394f8531f9 · report
RSU6 hurunyi/maskmark/models/Network.py official repository unverified MIT (permissive) · b0f104c5c1a11652 · report
RSU7 hurunyi/maskmark/models/Network.py official repository unverified MIT (permissive) · 7958e1bb9c073000 · report
U2NETP hurunyi/maskmark/models/Network.py official repository unverified MIT (permissive) · d4c76d061ef5a0e0 · report
WatermarkModel hurunyi/maskmark/models/Network.py official repository unverified MIT (permissive) · c7987731c99f5e9c · report
calculate_iou_score hurunyi/maskwm/inference.py community ran · our draft was wrong fingerprinted MIT (permissive) · a0b11efc95c79c73 · report
decoded_message_accuracy hurunyi/maskwm/inference.py community ran · our draft was wrong fingerprinted MIT (permissive) · 2978a72a8435838d · report
denormalize hurunyi/maskwm/inference.py community ran · our draft was wrong fingerprinted MIT (permissive) · 2d094cdb029a3669 · report

Tasks

Computational EfficiencyDecoder

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

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