This repository is a primary version of the source code and models of the paper KeyNet: An Asymmetric Key-Style Framework for Watermarking Deep Learning Models. The repository uses PyTorch to implement the experiments and provides scripts for watermarking neural networks by fine tuning a pre-trained model or by embedding the watermark from scratch.
[KeyNet: An Asymmetric Key-Style Framework forWatermarking Deep Learning Models]
Najeeb Moharram Jebreel1, Josep Domingo-Ferrer1, David Sánchez1, Alberto Blanco-Justicia1
1 Universitat Rovira i Virgili, Department of Computer Engineering and Mathematics, CYBERCAT-Center for
Cybersecurity Research of Catalonia, UNESCO Chair in Data Privacy, Av. Països Catalans 26, 43007 Tarragona,
Catalonia
The repository contains one main jupyter notebook: Experiments.IPYNB
in each data set folder. These notebooks can be used to train (with and without watermark), predict, embed watermarks and fine-tune models.
Additionally, this repo contains some images from different distributions that used to embed the watermarks.
The code supports training and evaluating on CIFAR10 and [FMNIST5] datasets.
The pretrained models can be accessed using this link: https://drive.google.com/file/d/1P7CuPe8lHp_V44_qXalQWeqAmgr0b_o0/view?usp=sharing.
The hyperparameters, the training of the original task, the embedding of the watermark and the performing of the other experiments can be easily done using the jupyter notebook: Experiments.IPYNB
.
If you find our work useful please cite:
Jebreel, N.; Domingo-Ferrer, J.; Sánchez, D.; Blanco-Justicia, A. KeyNet: An Asymmetric Key-Style Framework forWatermarking Deep Learning Models. Appl. Sci. 2021, 11, 999. https://doi.org/10.3390/ app11030999
This research was funded by the European Commission (projects H2020-871042 “SoBigData++” and 603 H2020-101006879 “MobiDataLab”), the Government of Catalonia (ICREA Acadèmia Prizes to J. Domingo-Ferrer 604 and D. Sánchez, FI grant to N. Jebreel and grant 2017 SGR 705), and the Spanish Government (projects 605 RTI2018-095094-B-C21 “Consent” and TIN2016-80250-R “Sec-MCloud”).