Large-Scale Differentially Private BERT

By Rohan Anil, Badih Ghazi, Vineet Gupta, Ravi Kumar, Pasin Manurangsi. 2021

162 citations recorded by the source corpus.

In this work, we study the large-scale pretraining of BERT-Large with differentially private SGD (DP-SGD). We show that combined with a careful implementation, scaling up the batch size to millions (i.e., mega-batches) improves the utility of the DP-SGD step for BERT; we also enhance its efficiency by using an increasing batch size schedule. Our implementation builds on the recent work of [SVK20], who demonstrated that the overhead of a DP-SGD step is minimized with effective use of JAX [BFH+18, FJL18] primitives in conjunction with the XLA compiler [XLA17]. Our implementation achieves a masked language model accuracy of 60.5% at a batch size of 2M, for $\epsilon = 5.36$. To put this number in perspective, non-private BERT models achieve an accuracy of $\sim$70%.

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. Florian Tramèr
  2. Nicholas Carlini
  3. Percy Liang
  4. Luke S. Zettlemoyer
  5. Mohit Bansal
  6. Nicolas Papernot
  7. Quoc V. Le
  8. Jianfeng Gao

In Large Language Models

  1. Daphne Ippolito
  2. Florian Tramèr
  3. Jie Huang
  4. Kevin Chen-Chuan Chang
  5. Nicholas Carlini
  6. Katherine Lee
  7. Matthew Jagielski
  8. Hanyin Shao

In Safety, Robustness & Interpretability

  1. Nicholas Carlini
  2. Florian Tramèr
  3. Nicolas Papernot
  4. Reza Shokri
  5. Percy Liang
  6. Jamie Hayes
  7. Matthew Jagielski
  8. Milad Nasr

Citations in the corpus