Coder Social home page Coder Social logo

sidp's Introduction

SIDP

The PyTorch implementation of 'Robust Differentially Private Training of Deep Neural Networks'. https://arxiv.org/abs/2006.10919

Usage

To run the code on MNIST and CIFAR-10 datasets, execute vision.py with desired parameters:

python vision.py 

For the text classification model based on the AGNews Corpus:

python main_text_class.py [experiment_name] [noise_std] [clip]
python main_text_class.py sidp 0.3 7

Results

MNIST

Privacy epsilon 7 3 1 0.5 0.1 0.05 0.025
DPSGD (LeNet5) 99.2 97 96.34 94.11 91.1 83.0 78.96 31.56
SI-DPSGD (LeNet5) 99.2 98.9 98.9 98.72 99.1 99.0 98.84 90.82
SI-DPSGD (BN-LeNet5) 99.2 99.17 99.17 99.15 99.18 99.14 99.12 98.58

CIFAR-10

Privacy epsilon 8 4 2 1 0.5 0.1 0.05
DPSGD (TF-tutorial) 80.0 73.0 70.0 67.0 NA NA NA NA
SI-DPSGD (TF-tutorial) 80.0 78.10 77.70 76.0 76.05 74.20 73.80 74.05
SI-DPSGD (ResNet-18) 93.50 90.20 90.16 90.26 90.09 89.67 84.88 84.47

AGNews Text Classification

Privacy epsilon 7 3 1 0.5 0.1 0.05
DPSGD (BiLSTM-DL) 88.5 83.9 80.0 81.1 77.9 37.5 31.8
SI-DPSGD (BiLSTM-DL) 88.5 85.9 85.7 83.3 81.2 77.9 56.7
DPSGD (LN-BiLSTM-DL) 88.5 83.5 82.4 82.0 78.9 50.1 31.6
SI-DPSGD (LN-BiLSTM-DL) 88.5 87.8 87.6 85.7 85.4 84.3 80.1

References

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.