Code Monkey home page Code Monkey logo

differentially-private-deep-learning's Introduction

Differentially-Private-Deep-Learning

Update 11/18/2021

Update the results of fine-tuning RoBERTa-large with large batchsize and full precision.

Update 09/01/2021

Our code for fine-tuning BERT models with differential privacy now supports loading official RoBERTa checkpoints.

Readme

This repo provides some example code to help you get started with differentially private deep learning.

Our implementation uses Pytorch. We cover several algorithms including Differentially Private SGD [1], Gradient Embedding Perturbation [2], and Reparametrized Gradient Perturbation [3].

In the vision folder, we implement the algorithms in [1,2,3] to train deep ResNets on benchmark vision datasets.

In the language folder, we implement the algorithm in [3] to fine-tune BERT models on four tasks from the GLUE benchrmark.

References

[1]: Deep learning with differential privacy. Martin Abadi, Andy Chu, Ian Goodfellow, H Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. In ACM SIGSAC Conference on Computer and Communications Security, 2016.

[2]: Do Not Let Privacy Overbill Utility: Gradient Embedding Perturbation for Private Learning. Da Yu, Huishuai Zhang, Wei Chen, and Tie-Yan Liu. In International Conference on Learning Representations (ICLR), 2021.

[3]: Large Scale Private Learning via Low-rank Reparametrization. Da Yu, Huishuai Zhang, Wei Chen, Jian Yin, and Tie-Yan Liu. In International Conference on Machine Learning (ICML), 2021.

differentially-private-deep-learning's People

Contributors

dayu11 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.