illidanlab / dpgan

Source code of paper "Differentially Private Generative Adversarial Network"
67 stars 29 forks source link

Algorithm Issue #4

Open astorfi opened 4 years ago

astorfi commented 4 years ago

Hi,

Thanks for releasing the code of your paper. In the algorithm 1 of your paper, you first add noise to the gradients and then clip the gradient. According to definitions in The Algorithmic Foundations of Differential Privacy and Deep Learning with Differential Privacy we MUST clip the gradients first to limit and control the sensitivity. Then, we can add noise to the gradients. So your algorithm is apparently inconsistent with those definitions.

Is that correct? Thanks

MiaoXiong2320 commented 4 years ago

I guess they have proved that we can clip the weight directly instead of clipping the gradients in the paper.

astorfi commented 4 years ago

@Emma0120 Thank you for your clarification. Yes, that what they claim. But even if clipping the weights is the right choice, still, I think it should be done before adding noise to bound sensitivity. Doing it after adding noise means the effect of noise is enforced on the clipped weights which is NOT correct.

jcForDream commented 1 year ago

@Emma0120 Thank you for your clarification. Yes, that what they claim. But even if clipping the weights is the right choice, still, I think it should be done before adding noise to bound sensitivity. Doing it after adding noise means the effect of noise is enforced on the clipped weights which is NOT correct.

Hi. Did you run through the author's code? If it did, how did you do it?