Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Mnist with Differential Privacy #3

Merged
merged 23 commits into from
Sep 10, 2020
Merged

Conversation

Fabien-GELUS
Copy link
Contributor

@Fabien-GELUS Fabien-GELUS commented Aug 6, 2020

This example is a Substra implementation of on the Classification_Privacy tutorial from Tensorflow_Privacy.
The structure of this example is inspired from my previous MNIST example, I simply tweaked the model and the train method.

This tutorial uses tf.keras to train a CNN to recognize handwritten digits with the DP-SGD optimizer provided by the TensorFlow Privacy library. TensorFlow Privacy provides code that wraps an existing TensorFlow optimizer to create a variant that implements DP-SGD.
The algorithm also measure the differential privacy guarantee after training the model: You will see in the console the value Epsilon (ϵ) - This is the privacy budget.

mnist-dp/README.md Outdated Show resolved Hide resolved
Copy link

@RomainGoussault RomainGoussault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @Fabien-GELUS 👍 !

mnist-dp/assets/algo_cnn_dp/algo.py Show resolved Hide resolved
mnist-dp/scripts/requirements.txt Show resolved Hide resolved
Copy link
Collaborator

@natct10 natct10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! We tested it with a 0.8038 perf!

@bowni
Copy link
Collaborator

bowni commented Sep 9, 2020

Hey there - is there anything preventing from merging? @natct10 @RomainGoussault
I'd say let's move forward, it is good for the morale 😃

Copy link
Collaborator

@bowni bowni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice job @Fabien-GELUS 💪 It feels really great so see an example, even very simple, of remotely training a model via Substra with using differential privacy to enhance the privacy-preserving promise!
(cc @RomainBey @RomainGoussault @natct10 @mattthieu @camillemarini @ClementMayer)

@bowni bowni merged commit 08e1c3e into Substra:master Sep 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants