Deep Learning with Gaussian Differential Privacy

Zhiqi Bu, Jinshuo Dong, Qi Long, Weijie J. Su
11/26/2019
cs.LGcs.CRstat.ML

Official code: woodyx218/Deep-Learning-with-GDP-Tensorflow (49 stars, last commit 2021-04-29).

Abstract

Deep learning models are often trained on datasets that contain sensitive information such as individuals' shopping transactions, personal contacts, and medical records. An increasingly important line of work therefore has sought to train neural networks subject to privacy constraints that are specified by differential privacy or its divergence-based relaxations. These privacy definitions, however, have weaknesses in handling certain important primitives (composition and subsampling), thereby giving loose or complicated privacy analyses of training neural networks. In this paper, we consider a recently proposed privacy definition termed \textit{$f$-differential privacy} [18] for a refined privacy analysis of training neural networks. Leveraging the appealing properties of $f$-differential privacy in handling composition and subsampling, this paper derives analytically tractable expressions for the privacy guarantees of both stochastic gradient descent and Adam used in training deep neural networks, without the need of developing sophisticated techniques as [3] did. Our results demonstrate that the $f$-differential privacy framework allows for a new privacy analysis that improves on the prior analysis~[3], which in turn suggests tuning certain parameters of neural networks for a better prediction accuracy without violating the privacy budget. These theoretically derived improvements are confirmed by our experiments in a range of tasks in image classification, text classification, and recommender systems. Python code to calculate the privacy cost for these experiments is publicly available in the \texttt{TensorFlow Privacy} library.

View on arXivView PDF

Code Implementations(1)

Code to accompany the paper "Deep Learning with Gaussian Differential Privacy"

4910Python, Jupyter NotebookNov 24, 20195 years ago

Cite this paper

@article{bu2019deep,
  title  = {Deep Learning with Gaussian Differential Privacy},
  author = {Zhiqi Bu and Jinshuo Dong and Qi Long and Weijie J. Su},
  year   = {2019},
  eprint = {1911.11607},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.11607}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1911.11607.svg)](https://codeofpaper.com/paper/1911.11607)

Discussion