deep learning with differential privacyachieving dp deep learning • how to achieve dp for deep...

33
Deep Learning With Differential Privacy Presenter: Xiaojun Xu

Upload: others

Post on 26-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Deep Learning With Differential Privacy

Presenter: Xiaojun Xu

Page 2: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Autonomous Driving Gaming

Face Recognition Healthcare

Deep Learning Framework

Page 3: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Deep Learning Framework

Dataset Server Model

Page 4: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Privacy Issues of Training Data

Dataset Server Model

Page 5: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

What information will be leaked from the deep learning model?

Dataset Server Model

Page 6: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Training Privacy Leakage

• Model Inversion Attack

• Membership Inference attack• Infer whether or not a data case is in the training set.

Model inversion attacks that exploit confidence information and basic countermeasures (CCS’15)

Membership inference attacks against machine learning models (Oakland’17)

Page 7: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Protecting Privacy of Training Data

Dataset Server Model

Differential Privacy

Page 8: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Differential Privacy(DP)

• Protect the privacy of individuals while allowing global query.

• e.g.: how many individuals in the database have property P?

Individual Property P?… …Alice YesVictim YesBob No… …

Individual Property P?… …Alice YesBob No… …

Database D Database D’

Output of D and D’ should be similar!

Page 9: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Differential Privacy(DP)

• Solution: randomize the query answer (e.g. by adding random noise !.) Individual Property P?

… …Alice YesVictim YesBob No… …

Individual Property P?… …Alice YesBob No… …

172+!′171+!

Page 10: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Differential Privacy

• Definition: Let A: # → % be a randomized function database domain # to output domain %. Then A is &, ( -differentially private if for any S ⊆ % and any

two databases +, +′ which differs in only one element:

Pr / + ∈ 1 ≤ exp & Pr / +6 ∈ 1 + (

Page 11: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Differentially Private Mechanism

• Take function !(#), add noise %(#) = ! # + (

• Noise level is related with:• ) and *.• The maximal possible difference between !(#) and !(#′)

Page 12: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Differentially Private Mechanism

• Take function !(#), add noise %(#) = ! # + (

• When adding Gaussian noise, the scale should be:

) = 2 ln(1.250 ) Δ2/4

Page 13: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Pr #$ ∈ & ≤ exp + Pr #, ∈ & + .

Deep Learning with DPDataset1 /01

Dataset2 /02

Page 14: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Achieving DP Deep Learning

• How to achieve DP for deep learning model?• Directly adding noise to !.• Not releasing model parameters, and during application,

adding noise to the model output.• Adding noise in the process training.

Page 15: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Training Deep Learning Models

• Model function !"• Training dataset # = %&, (& , … , % * , ( *

• Repeat:• Sample a batch from #.• Learn from the batch by calculating update Δ,.• , ≔ , + Δ,

Page 16: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Deep Learning With DP

Page 17: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Deep Learning With DP

Page 18: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

What is the bound?

• At each step the gradient is !, # -DP w.r.t. the group(batch).• What is the DP guarantee after many steps for the

gradient w.r.t. the dataset?

One step,Within the group

One step,Within the dataset

Many steps,Within the dataset

!, #

Page 19: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Amplification Theorem

• !: dataset size; ": size of each group• # = "/!

• Amplification Theorem: if gradient is &, ( -DP within the group, then it’s ) #& , #( -DP within the dataset.

One step,Within the group

One step,Within the dataset

Many steps,Within the dataset

&, ( )(#&), #(

Page 20: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Basic Composition Theorem

• Applying an !", $" -DP algorithm with an (!&, $&)-DP algorithm together will give an ()

!" + !&, $" +$& -DP algorithm.

• So after ) steps an (!, $)-DP algorithm is ()!, )$)-DP.

One step,Within the group

One step,Within the dataset

Many steps,Within the dataset

!, $ *(+!), +$ * )+! ,)+$

Page 21: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Strong Composition Theorem

• Applying the same (", $)-DP algorithm & times will

give an (O " &log +, , &$)-DP algorithm.

One step,Within the group

One step,Within the dataset

Many steps,Within the dataset

", $ -(."), .$ - ." &log 1/$ ,&.$

Page 22: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Moments Accountant

• One major contribution of the paper!• The noise at each step is Gaussian noise.

One step,Within the group

One step,Within the dataset

Many steps,Within the dataset

!, # $(&!), &# $ &! ( ,#

Page 23: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

ComparisonApproach Overall epsilon Overall deltaBasic Composition ! "#$ "#%Advanced Composition ! #$ "log 1/% "#%Moments Accountant ! #$ " %

Page 24: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Experiments

• MNIST: 70000 gray-level images for hand written digits with size 28×28.

Page 25: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Experiments

• CIFAR10: 60000 colored images of 10 classes with size 32×32.

Page 26: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Experiments

• MNIST: DP-PCA + DP-NeuralNetwork• CIFAR-10: Pretrained Conv Layer + DP-NeuralNetwork

Page 27: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Experiment Results - MNIST

• Acc without DP: 98.3%

Page 28: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Experiment Results – CIFAR10

• Acc without DP: 80%

Page 29: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Effectiveness

• What can DP defend?

• What cannot DP defend?

Page 30: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Training Privacy Leakage

• Model Inversion Attack

• Membership Inference attack• Infer whether or not a data case is in the training set.

Model inversion attacks that exploit confidence information and basic countermeasures (CCS’15)

Membership inference attacks against machine learning models (Oakland’17)

Page 31: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

What can DP protect?

• Privacy of individual data in the dataset.• Membership Inference Attack

• Extracting secrets from language models• My SSN is “xxx-xx-xxxx”

The Secret Sharer: Measuring Unintended Neural Network Memorization & Extracting Secrets (arXiv preprint)

Page 32: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

What can’t DP protect?

• Privacy leakage because of global information of the dataset.

Deep models under the GAN: information leakage from collaborative deep learning (CCS’17)

Page 33: Deep Learning With Differential PrivacyAchieving DP Deep Learning • How to achieve DP for deep learning model? • Directly adding noise to !. • Not releasing model parameters,

Q&A