arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.05679cs.LGcs.CL
收藏

大语言模型可以是强差异化的私人学习者

Large Language Models Can Be Strong Differentially Private Learners

Stanford University(斯坦福大学);Google Research(谷歌研究院)

Xuechen Li, Florian Tramèr, Percy Liang, Tatsunori Hashimoto

摘要:

差分私有(DP)学习在构建大型文本深度学习模型方面取得了有限的成功,直接将差分私有随机梯度下降(DP-SGD)应用于NLP任务的尝试导致了大幅性能下降和高计算开销。我们发现,这种性能下降可以通过以下方式来缓解:(1)使用大型预训练语言模型;(2)适合DP优化的非标准超参数;(3)与预训练过程一致的微调目标。有了上述内容,我们获得了在相同的隐私预算和强大的非私有基线下性能优于最先进的DP训练模型的NLP模型-通过在中等规模的语料库上直接微调DP优化的预训练模型。为了解决使用大型Transformers运行DP-SGD的计算挑战,我们提出了一种节省内存的技术,该技术允许在DP-SGD中运行裁剪,而无需为模型中的任何线性层实例化每个示例的梯度。该技术使私有训练Transformers具有与非私有训练几乎相同的内存成本,并且运行时开销适中。与DP优化在学习高维模型时失败的传统观点相反(由于噪声随维度缩放),经验结果表明,使用预训练的语言模型的私人学习并不倾向于遭受维度相关的性能下降。可以在https://github.com/lxuechen/private-transformers上找到重现结果的代码。

英文摘要:

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.

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

↑