- Home
- Image Attacks Lab
- Data Poisoning Lab
- Evasion Attacks Lab
- Defense Lab
- LLM Red Teaming Lab
- Model Privacy Lab
- Backdoor / Trojan Lab
- Robustness Evaluation Lab
- My experiments
- Scientific references
- Glossary and FAQ
Differential privacy and DP-SGD
Model Privacy Lab · privacy
Level 1: idea and analogy
The idea
Clips each sample's gradient and adds Gaussian noise, bounding any single sample's influence and computing ε for the guarantee.
Analogy
Whisper the answer in enough noise to hide who spoke.
Level 2: how it works and when to use it
Steps
1) Clip each per-sample gradient to C. 2) Sum and add noise σC. 3) Step. 4) Track cost with a Rényi accountant and convert to (ε,δ).
When to use it
Sensitive data that needs an auditable guarantee.
Strengths
A mathematical guarantee for each membership/sample, not just a test.
Level 3: mathematics, assumptions, limits
Mathematical form
\tilde g=\frac1B\Big(\sum_i \mathrm{clip}(g_i,C)+\mathcal N(0,\sigma^2C^2I)\Big);\quad (\varepsilon,\delta)\text{ from the RDP accountant}Assumptions
Sampling at rate q; correct noise and clipping; ε depends on σ, q, steps and δ.
Limitations
A large ε (as in our small settings) means a weak guarantee; accuracy falls with noise.
Metrics
ε at δ, clean accuracy and attack effect.
Defenses
Combine with query limiting and access control.
Level 4: pitfalls and references for researchers
Common pitfalls
Believing a small ε without looking at δ; comparing ε without stating the accounting method and assumptions.
References
- Abadi, M.; Chu, A.; Goodfellow, I.; McMahan, H. B.; Mironov, I.; Talwar, K.; Zhang, L. (2016). Deep Learning with Differential Privacy. ACM CCS 2016, pp. 308-318. doi:10.1145/2976749.2978318
- Mironov, I.; Talwar, K.; Zhang, L. (2019). Rényi Differential Privacy of the Sampled Gaussian Mechanism. arXiv preprint. Link
- Dwork, C.; Roth, A. (2014). The Algorithmic Foundations of Differential Privacy. Foundations and Trends in Theoretical Computer Science 9(3-4), 211-487. doi:10.1561/0400000042
