Papers › REFIT: A Unified Watermark Removal Framework For Deep Learning Systems With Limited Data

REFIT: A Unified Watermark Removal Framework For Deep Learning Systems With Limited Data

17 Nov 2019arXiv:1911.07205archive 2025-07-28

Xinyun Chen, Wenxiao Wang, Chris Bender, Yiming Ding, Ruoxi Jia, Bo Li, Dawn Song

Training deep neural networks from scratch could be computationally expensive and requires a lot of training data. Recent work has explored different watermarking techniques to protect the pre-trained deep neural networks from potential copyright infringements. However, these techniques could be vulnerable to watermark removal attacks. In this work, we propose REFIT, a unified watermark removal framework based on fine-tuning, which does not rely on the knowledge of the watermarks, and is effective against a wide range of watermarking schemes. In particular, we conduct a comprehensive study of a realistic attack scenario where the adversary has limited training data, which has not been emphasized in prior work on attacks against watermarking schemes. To effectively remove the watermarks without compromising the model functionality under this weak threat model, we propose two techniques that are incorporated into our fine-tuning framework: (1) an adaption of the elastic weight consolidation (EWC) algorithm, which is originally proposed for mitigating the catastrophic forgetting phenomenon; and (2) unlabeled data augmentation (AU), where we leverage auxiliary unlabeled data from other sources. Our extensive evaluation shows the effectiveness of REFIT against diverse watermark embedding schemes. In particular, both EWC and AU significantly decrease the amount of labeled training data needed for effective watermark removal, and the unlabeled data samples used for AU do not necessarily need to be drawn from the same distribution as the benign data for model evaluation. The experimental results demonstrate that our fine-tuning based watermark removal attacks could pose real threats to the copyright of pre-trained models, and thus highlight the importance of further investigating the watermarking problem and proposing more robust watermark embedding schemes against the attacks.

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

Code

Syntology Ran 4 of 13 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 1 ran · violated contract; 2 ran · our draft was wrong; 1 ran with no contract checked.

By repository: official repository: 13 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.

sunblaze-ucb/REFIT officialmentioned 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; 4 ran; 0 honoured the contract we drafted; 9 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.

1ran · violated contract
2ran · our draft was wrong
1ran
9unverified

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 sunblaze-ucb/REFIT. “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.

is_image_file sunblaze-ucb/REFIT/helpers/ImageFolderCustomClass.py official repository ran · violated contract MIT (permissive) · 89c2cf3b97685684 · report
conv3x3 sunblaze-ucb/REFIT/models/resnet.py official repository ran · our draft was wrong MIT (permissive) · 583f9780bdd00a45 · report
find_classes sunblaze-ucb/REFIT/helpers/ImageFolderCustomClass.py official repository ran MIT (permissive) · 52d10a10fb72fb9f · report
make_layers sunblaze-ucb/REFIT/models/vgg.py official repository ran · our draft was wrong MIT (permissive) · eba3f5bcc6a06d36 · report
CrossEnt sunblaze-ucb/REFIT/trainer.py official repository unverified MIT (permissive) · 5be98d688bd61bb8 · report
EW sunblaze-ucb/REFIT/models/resnet_EW.py official repository unverified MIT (permissive) · 71d1106f4fa83bbf · report
IsInside sunblaze-ucb/REFIT/trainer.py official repository unverified MIT (permissive) · e7a01929bc0117b9 · report
RandomTransform sunblaze-ucb/REFIT/trainer.py official repository unverified MIT (permissive) · 69cbf822514eee69 · report
ResNet18 sunblaze-ucb/REFIT/models/resnet.py official repository unverified MIT (permissive) · ecf0fac9b2121967 · report
ResNet18_Basic sunblaze-ucb/REFIT/models/resnet.py official repository unverified MIT (permissive) · 32995a3e11d321e9 · report
make_dataset sunblaze-ucb/REFIT/helpers/ImageFolderCustomClass.py official repository unverified MIT (permissive) · 195faaace44890e8 · report
unpickle sunblaze-ucb/REFIT/datasets/imagenet32.py official repository unverified MIT (permissive) · d3ce4f9536a5b7a7 · report
vgg16_bn sunblaze-ucb/REFIT/models/vgg.py official repository unverified MIT (permissive) · 03738bb3906b9d93 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

EWC

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