On the Convergence and Calibration of Deep Learning with Differential Privacy

Zhiqi Bu, Hua Wang, Zongyu Dai, Qi Long
6/15/2021
cs.LGstat.ML

No official code found. Best implementation: woodyx218/private_vision (13 stars, Python, Apache-2.0, PyTorch, last commit 2023-10-02).

Abstract

Differentially private (DP) training preserves the data privacy usually at the cost of slower convergence (and thus lower accuracy), as well as more severe mis-calibration than its non-private counterpart. To analyze the convergence of DP training, we formulate a continuous time analysis through the lens of neural tangent kernel (NTK), which characterizes the per-sample gradient clipping and the noise addition in DP training, for arbitrary network architectures and loss functions.

Show full abstract

Interestingly, we show that the noise addition only affects the privacy risk but not the convergence or calibration, whereas the per-sample gradient clipping (under both flat and layerwise clipping styles) only affects the convergence and calibration. Furthermore, we observe that while DP models trained with small clipping norm usually achieve the best accurate, but are poorly calibrated and thus unreliable. In sharp contrast, DP models trained with large clipping norm enjoy the same privacy guarantee and similar accuracy, but are significantly more \textit{calibrated}. Our code can be found at \url{https://github.com/woodyx218/opacus_global_clipping}.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0
134PythonOct 1, 20223 years agoApache-2.0
deep-learningdifferential-privacyoptimizerpytorch

Similar Papers

Cite this paper

@article{bu2021convergence,
  title  = {On the Convergence and Calibration of Deep Learning with Differential Privacy},
  author = {Zhiqi Bu and Hua Wang and Zongyu Dai and Qi Long},
  year   = {2021},
  eprint = {2106.07830},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.07830}
}

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

Discussion