Large Language Models Can Be Strong Differentially Private Learners

By Xuechen Li, Florian Tramèr, Percy Liang, Tatsunori B. Hashimoto. 2021

533 citations recorded by the source corpus.

Differentially Private (DP) learning has seen limited success for building large deep learning models of text, and straightforward attempts at applying Differentially Private Stochastic Gradient Descent (DP-SGD) to NLP tasks have resulted in large performance drops and high computational overhead. We show that this performance drop can be mitigated with (1) the use of large pretrained language models; (2) non-standard hyperparameters that suit DP optimization; and (3) fine-tuning objectives which are aligned with the pretraining procedure. With the above, we obtain NLP models that outperform state-of-the-art DP-trained models under the same privacy budget and strong non-private baselines -- by directly fine-tuning pretrained models with DP optimization on moderately-sized corpora. To address the computational challenge of running DP-SGD with large Transformers, we propose a memory saving technique that allows clipping in DP-SGD to run without instantiating per-example gradients for any linear layer in the model. The technique enables privately training Transformers with almost the same memory cost as non-private training at a modest run-time overhead. Contrary to conventional wisdom that DP optimization fails at learning high-dimensional models (due to noise that scales with dimension) empirical results reveal that private learning with pretrained language models doesn't tend to suffer from dimension-dependent performance degradation. Code to reproduce results can be found at https://github.com/lxuechen/private-transformers.

Subfields: Artificial Intelligence, Large Language Models, Safety, Robustness & Interpretability

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Percy Liang
  2. Mohit Bansal
  3. Luke S. Zettlemoyer
  4. Quoc V. Le
  5. Graham Neubig
  6. Jianfeng Gao
  7. Yejin Choi
  8. Noah A. Smith

In Large Language Models

  1. Luke S. Zettlemoyer
  2. Percy Liang
  3. Jie Huang
  4. Kevin Chen-Chuan Chang
  5. Armen Aghajanyan
  6. Florian Tramèr
  7. Yulia Tsvetkov
  8. Hanyin Shao

In Safety, Robustness & Interpretability

  1. Florian Tramèr
  2. Percy Liang
  3. Nicholas Carlini
  4. Yulia Tsvetkov
  5. Reza Shokri
  6. Jamie Hayes
  7. Shruti Tople
  8. James Y. Zou

Citations in the corpus