When Does Differentially Private Learning Not Suffer in High Dimensions?

Xuechen Li, Daogao Liu, Tatsunori Hashimoto, Huseyin A. Inan, Janardhan Kulkarni +2 more
7/1/2022
65 citations
cs.LGcs.CRstat.ML

Official code: lxuechen/private-transformers (191 stars, Python, Apache-2.0, PyTorch, last commit 2022-12-09).

Abstract

Large pretrained models can be privately fine-tuned to achieve performance approaching that of non-private models. A common theme in these results is the surprising observation that high-dimensional models can achieve favorable privacy-utility trade-offs.

Show full abstract

This seemingly contradicts known results on the model-size dependence of differentially private convex learning and raises the following research question: When does the performance of differentially private learning not degrade with increasing model size? We identify that the magnitudes of gradients projected onto subspaces is a key factor that determines performance. To precisely characterize this for private convex learning, we introduce a condition on the objective that we term \emph{restricted Lipschitz continuity} and derive improved bounds for the excess empirical and population risks that are dimension-independent under additional conditions. We empirically show that in private fine-tuning of large language models, gradients obtained during fine-tuning are mostly controlled by a few principal components. This behavior is similar to conditions under which we obtain dimension-independent bounds in convex settings. Our theoretical and empirical results together provide a possible explanation for recent successes in large-scale private fine-tuning. Code to reproduce our results can be found at \url{https://github.com/lxuechen/private-transformers/tree/main/examples/classification/spectral_analysis}.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

A codebase that makes differentially private training of transformers easy.

19127PythonOct 23, 20213 years agoApache-2.0
deep-learningdifferential-privacyhuggingface-transformersnlppytorch+1 more

Similar Papers

Cite this paper

@article{li2022when,
  title  = {When Does Differentially Private Learning Not Suffer in High Dimensions?},
  author = {Xuechen Li and Daogao Liu and Tatsunori Hashimoto and Huseyin A. Inan and Janardhan Kulkarni and Yin Tat Lee and Abhradeep Guha Thakurta},
  year   = {2022},
  eprint = {2207.00160},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.00160v4}
}

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

Discussion