Improving Deep Learning with Differential Privacy using Gradient Encoding and Denoising

Milad Nasr, Reza Shokri, Amir HoumansadrarXiv 2020

Abstract

This paper introduces a novel framework for training deep neural networks with Differential Privacy (DP) that significantly preserves model utility compared to standard methods like DPSGD. By encoding gradients into a finite vector space and applying a novel "denoising" post-processing step, the authors achieve state-of-the-art utility-privacy tradeoffs. Notably, the framework reaches 96.1% accuracy on MNIST with a privacy budget of $\epsilon = 3.2$, nearly halving the budget required by previous methods.

Introduction

Deep learning models are susceptible to "memorizing" training data, which exposes them to privacy attacks such as membership inference and model inversion. Differential Privacy (DP) provides a rigorous mathematical framework to mitigate these risks. The standard approach, Differentially Private Stochastic Gradient Descent (DPSGD), involves clipping gradients and adding Gaussian noise. However, this often results in a substantial drop in model accuracy. Furthermore, calculating privacy guarantees for non-Gaussian noise distributions is mathematically challenging, typically restricting the field to a narrow set of noise types that may not be optimal for training.

Methods: Gradient Encoding and Denoising

The proposed framework breaks these limitations through two key innovations:

  1. Gradient Encoding: Instead of processing raw gradients, the framework maps them to a finite set of preselected basis vectors. By discretizing the gradient space, the authors can use numerical techniques to calculate Rényi Differential Privacy (RDP) bounds for any noise distribution, including Student-t, Laplace, and Cauchy. This flexibility allows for the selection of noise distributions that are less disruptive to the learning process.
Distribution of gradient values for CIFAR and MNIST datasets.
  1. Denoising (Error Correction): Leveraging the post-processing property of DP, the authors introduce a denoising step that does not consume additional privacy budget. They scale noisy gradients based on their estimated "usefulness," calculated via the Kolmogorov-Smirnov (KS) distance between the privatized gradient and the noise distribution. This helps the model prioritize reliable updates, leading to faster convergence.

Key Results

The framework was evaluated on the MNIST and CIFAR-10 benchmarks, comparing it directly against standard DPSGD.

Privacy-utility tradeoff comparison between DPSGD and the proposed framework (Algorithm 1) using Gaussian and Student-t noise.

The experimental results demonstrate a consistent and significant improvement in the utility-privacy tradeoff:

  • MNIST: To achieve 96.1% accuracy, DPSGD requires $\epsilon = 6$, whereas the proposed technique reaches the same level at $\epsilon = 3.2$.
  • CIFAR-10: The framework achieved 55.5% accuracy at $\epsilon = 3.6$, a level that requires $\epsilon = 5$ with standard DPSGD.
  • Optimal Noise: A key insight is that the Student-t distribution often provides a superior tradeoff compared to the standard Gaussian noise used in prior work, resulting in lower $L1$ gradient error for the same privacy budget.

Discussion and Conclusion

By transforming a continuous optimization problem into a discrete one via gradient encoding, the authors have enabled the use of more effective noise distributions in DP-ML. The denoising step further enhances utility as a "free" post-processing benefit. While the method shares the computational overhead of per-sample gradient computation common to DP training, its superior convergence and accuracy make it a compelling alternative to DPSGD. Future research will focus on optimizing the selection of basis vectors and scaling the framework to larger architectures like Transformers and datasets like ImageNet.

Summary updated

BibTeX
@misc{nasr2020improving,
  author = {Milad Nasr and Reza Shokri and Amir Houmansadr},
  title = {{Improving Deep Learning with Differential Privacy using Gradient Encoding and Denoising}},
  year = {2020},
  eprint = {2007.11524},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.11524},
}
Figure