Giter VIP home page Giter VIP logo

dp-cl's Introduction

DP-CL(Continual Learning with Differential Privacy)

This is the official implementation of the Continual Learning with Differential Privacy.

If you use this code or our results in your research, please cite as appropriate:

@article{desai2021continual,
  title={Continual Learning with Differential Privacy},
  author={Pradnya, Desai and Lai, Phung and Phan, NhatHai and Thai, My},
  journal={International Conference on Neural Information Processing},
  year={2021}
}

Software Requirements

Python 3.7 is used for the current codebase.

Tensorflow 2.5

Model configurations

In the permuted MNIST dataset, we use a fully connected network with two hidden layers of 256 hidden neurons. Given a stream of 17 tasks, the model is optimized via stochastic gradient descent with a learning rate \alpha = 0.1. In computing g_{ref}, the batch-size is set to 100 for each training task and 50 for the mini-memory block. The number of runs for each experiment is 3. The noise scale \sigma = 1 and the gradient clipping bound \beta = 0.1. In the Split CIFAR dataset, a reduced ResNet-18 with 3 times less feature maps across all the layers. The network has a final linear classifier for prediction in the Split CIFAR dataset. The batch-size is set to 10 in each training task. Other hyperparameters, e.g., learning rate, noise scale, gradient clipping bound, etc., are the same as in the permuted MNIST dataset experiment. The number of runs for each experiment is 5.

Experiments

The repository comes with instructions to reproduce the results in the paper or to train the model from scratch:

To reproduce the results:

  • Clone or download the folder from this repository.

  • Please find dataset on Google Drive folder.

  • Go to folder DP-CL/ and Run ./replicate_results_xx.sh xx 3 where xx is the name of dataset and task that you'd like to run. For example: ./replicate_results_mnist.sh MNIST 3 for MNIST, ./replicate_results_cifar100.sh CIFAR 3 for CIFAR-100, ./replicate_results_cifar10.sh CIFAR 3 for CIFAR-10.

Potential issues

If you have any issues while running the code or further information, please send email directly to the first authors of this paper ([email protected] or [email protected]).

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.