Papers › Spy-Watermark: Robust Invisible Watermarking for Backdoor Attack

Spy-Watermark: Robust Invisible Watermarking for Backdoor Attack

4 Jan 2024arXiv:2401.02031archive 2025-07-28

Ruofei Wang, Renjie Wan, Zongyu Guo, Qing Guo, Rui Huang

Backdoor attack aims to deceive a victim model when facing backdoor instances while maintaining its performance on benign data. Current methods use manual patterns or special perturbations as triggers, while they often overlook the robustness against data corruption, making backdoor attacks easy to defend in practice. To address this issue, we propose a novel backdoor attack method named Spy-Watermark, which remains effective when facing data collapse and backdoor defense. Therein, we introduce a learnable watermark embedded in the latent domain of images, serving as the trigger. Then, we search for a watermark that can withstand collapse during image decoding, cooperating with several anti-collapse operations to further enhance the resilience of our trigger against data corruption. Extensive experiments are conducted on CIFAR10, GTSRB, and ImageNet datasets, demonstrating that Spy-Watermark overtakes ten state-of-the-art methods in terms of robustness and stealthiness.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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.02031")

Code

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

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

rfww/spy-watermark officialpytorch 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

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

5ran
4unverified

Licence: 9 of the 9 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 rfww/spy-watermark. “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.

Get_loss_func rfww/spy-watermark/loss.py official repository ran no licence file found · pointer only · c447b70e0c6bc034 · report
Get_loss_func rfww/spy-watermark/optimizer.py official repository ran no licence file found · pointer only · f085d3a1f8f83a06 · report
Get_optimizers rfww/spy-watermark/optimizer.py official repository ran no licence file found · pointer only · 186c2b5c3a2921c8 · report
PSNR rfww/spy-watermark/utils.py official repository ran fingerprinted no licence file found · pointer only · c898fb896cfeaece · report
crop rfww/spy-watermark/functional.py official repository ran no licence file found · pointer only · 29362ecc361d2231 · report
Get_dataloader_test rfww/spy-watermark/datasets.py official repository unverified no licence file found · pointer only · f9cc801a4279902a · report
get_1d_sincos_pos_embed_from_grid rfww/spy-watermark/models/pos_embed.py official repository unverified no licence file found · pointer only · 12035a2f77d8016c · report
get_2d_sincos_pos_embed rfww/spy-watermark/models/pos_embed.py official repository unverified no licence file found · pointer only · 3185afc3e87293ed · report
get_2d_sincos_pos_embed_from_grid rfww/spy-watermark/models/pos_embed.py official repository unverified no licence file found · pointer only · f10004e059714d42 · report

Tasks

Backdoor Attackbackdoor defense

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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