arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.01624cs.LGcs.CLcs.CR
收藏

大规模差异私有BERT

Large-Scale Differentially Private BERT

Google Research(谷歌研究院);Google Inc(谷歌公司)

Rohan Anil, Badih Ghazi, Vineet Gupta, Ravi Kumar, Pasin Manurangsi

摘要:

在这项工作中,我们研究了BERT-Large的大规模预训练与差分私有SGD(DP-SGD)。我们表明,结合仔细的实现,将批量大小扩展到数百万(即,mega-batches)改进了BERT的DP-SGD步骤的效用;我们还通过使用增加批量大小的时间表来提高其效率。我们的实现建立在[SVK 20]最近的工作基础上,他证明了通过有效使用JAX [BFH+18,FJL 18]原语以及XLA编译器[XLA 17],DP-SGD步骤的开销最小化。我们的实现实现达到了一个掩蔽的语言模型准确率为60.5%,在一个批量大小为2 M,为$ε= 5.36$。为了正确地看待这个数字,非私有BERT模型实现了$\sim$ 70%的准确性。

英文摘要:

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 $ε= 5.36$. To put this number in perspective, non-private BERT models achieve an accuracy of $\sim$70%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑