Improving Differentially Private SGD via Randomly Sparsified Gradients

Junyi Zhu, Matthew B. Blaschko
12/1/2021
cs.LGcs.CR

Official code: JunyiZhu-AI/RandomSparsification (2 stars, Python, last commit 2023-06-28).

Abstract

Differentially private stochastic gradient descent (DP-SGD) has been widely adopted in deep learning to provide rigorously defined privacy, which requires gradient clipping to bound the maximum norm of individual gradients and additive isotropic Gaussian noise. With analysis of the convergence rate of DP-SGD in a non-convex setting, we identify that randomly sparsifying gradients before clipping and noisification adjusts a trade-off between internal components of the convergence bound and leads to a smaller upper bound when the noise is dominant.

Show full abstract

Additionally, our theoretical analysis and empirical evaluations show that the trade-off is not trivial but possibly a unique property of DP-SGD, as either canceling noisification or gradient clipping eliminates the trade-off in the bound. This observation is indicative, as it implies DP-SGD has special inherent room for (even simply random) gradient compression. To verify the observation and utilize it, we propose an efficient and lightweight extension using random sparsification (RS) to strengthen DP-SGD. Experiments with various DP-SGD frameworks show that RS can improve performance. Additionally, the produced sparse gradients of RS exhibit advantages in reducing communication cost and strengthening privacy against reconstruction attacks, which are also key problems in private machine learning.

View on arXivView PDF

Code Implementations(1)

Improving Differentially Private SGD via Randomly Sparsified Gradients [Accepted by TMLR]

21PythonJun 18, 20233 years ago

Similar Papers

Cite this paper

@article{zhu2021improving,
  title  = {Improving Differentially Private SGD via Randomly Sparsified Gradients},
  author = {Junyi Zhu and Matthew B. Blaschko},
  year   = {2021},
  eprint = {2112.00845},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.00845}
}

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/2112.00845.svg)](https://codeofpaper.com/paper/2112.00845)

Discussion