Coder Social home page Coder Social logo

landandland / blind-watermark-for-dnn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhenglisec/blind-watermark-for-dnn

0.0 0.0 0.0 2.27 MB

The implement of paper "How to Prove Your Model Belongs to You: A Blind-Watermark based Framework to Protect Intellectual Property of DNN"

Python 100.00%

blind-watermark-for-dnn's Introduction

How to Prove Your Model Belongs to You: A Blind-Watermark based Framework to Protect Intellectual Property of DNN

This is a toy example (on MNIST & CIFAR-10) of how to run our framework presented in https://arxiv.org/abs/1903.01743

Quickstart

  • Configure the environment
Python=3.7
Pytorch=1.2.0
Others are the latest version

Dataset

  • Change args.dataset='mnist or cifar10' to define the dataset. And the dataset will be auto-downloaded into /data.
  • If args.dataset='mnist', the exclusive logo is a sample picked from the mnistdataset randomly.
  • If args.dataset='cifar10', the exclusive logo is in the /data/IEEE/logo. you can also choose other logos.

Host Model

  • If args.dataset='mnist', you can only implement the framework to embed the watermark into lenet1, lenet3, lenet5.
  • If args.dataset='cifar10', you can implement the framework to emded the watermark into vgg11, vgg13, vgg16, vgg19, resnet18, resnet34, resnet101, preactresnet18, preactresnet34, googlenet, dpn26, mobilenetv2.

Results

Test Loss curve (vgg19)

Images (top:origin; middle:watermark; below:logo)

Notes

  • Random initialization and stochastic gradient descent can cause the objective function to find a new local minimum, which means that the result is different each time. Try to change args.seed to start another initialization for optimal results.
  • Hyperparameter optimization is needed for optimal results (and other tweaks like using high capacity networks).

Citation

If you find blind-watermark based IPP framework useful in your research, please consider to cite the papers:

@inproceedings{10.1145/3359789.3359801,
author = {Li, Zheng and Hu, Chengyu and Zhang, Yang and Guo, Shanqing},
title = {How to Prove Your Model Belongs to You: A Blind-Watermark Based Framework to Protect Intellectual Property of DNN},
year = {2019},
isbn = {9781450376280},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3359789.3359801},
doi = {10.1145/3359789.3359801},
booktitle = {Proceedings of the 35th Annual Computer Security Applications Conference},
pages = {126–137},
numpages = {12},
keywords = {intellectual property protection, security and privacy, neural networks, blind watermark},
location = {San Juan, Puerto Rico},
series = {ACSAC ’19}
}

blind-watermark-for-dnn's People

Contributors

zhenglisec avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.