Finding Private Bugs: Debugging Implementations of Differentially Private Stochastic Gradient Descent
Abstract
It is important to learn with privacy-preserving algorithms when training data contains sensitive information. Differential privacy (DP) proposes to bound the worst-case privacy leakage of a training algorithm. However, the analytic nature of these algorithmic guarantees makes it difficult to verify that an implementation of a differentially private learner is correct. Research in the field focuses on empirically approximating the analytic bound, which only assesses whether an implementation provides the guarantee claimed for a particular dataset or not. It is also typically costly. In this paper, we take a first step towards providing a simple and lightweight methodology for practitioners to identify common implementation mistakes without imposing any changes to their scripts. Our approach stems from measuring distances between models outputted by the training algorithm. We demonstrate that our method successfully identifies specific mistakes made in the implementation of DP-SGD, the de facto algorithm for differentially private deep learning. These mistakes include improper gradient computations or noise miscalibration. Both approaches invalidate assumptions that are essential to obtaining a rigorous privacy guarantee.
BibTeX
@inproceedings{fang2023finding,
author = {Congyu Fang and Hengrui Jia and Ali Shahin Shamsabadi and Nicolas Papernot},
title = {{Finding Private Bugs: Debugging Implementations of Differentially Private Stochastic Gradient Descent}},
booktitle = {International Conference on Learning Representations},
year = {2023},
url = {https://openreview.net/forum?id=gKKUZ4fTEqh},
}Ask Althea to put this paper to the test.
Loading related content...