arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2210.00038cs.LGcs.CLcs.CRcs.CV
收藏

以较小成本在大模型上进行差分隐私优化

Differentially Private Optimization on Large Model at Small Cost

Amazon Web Services(亚马逊云科技);University of California, Santa Barbara(加州大学圣巴巴拉分校)

Zhiqi Bu, Yu-Xiang Wang, Sheng Zha, George Karypis

AI总结:

本文提出簿记(BK)技术,以接近标准训练的时空成本实现大模型差分隐私优化,在 GPT2 上达到 SOTA 精度并显著降低 DP 训练开销。

摘要:

差分隐私(DP)优化是学习既准确又保护隐私的大型神经网络的标准范式。然而,由于逐样本梯度裁剪,DP 深度学习的计算成本众所周知地沉重。现有 DP 实现在时间和空间复杂度上比标准(非隐私)训练高 2-1000 倍。在这项工作中,我们开发了一种新颖的簿记(Book-Keeping,BK)技术,用于实现现有 DP 优化器(从而获得相同的准确率),并大幅改善计算成本。具体来说,BK 使大模型和高维数据上的 DP 训练在速度和内存节省方面大致与标准训练相当,而以往的 DP 算法可能效率低下或因内存错误而无法训练。BK 的计算优势得到了复杂度分析以及在视觉和语言任务上的大量实验的支持。我们的实现以非常小的额外成本达到了最先进(SOTA)的准确率:在 GPT2 上,以几乎相同的内存成本(<1% 开销),BK 的时间复杂度是标准训练的 1.03 倍(实际训练速度为 0.83 倍),并且是最有效 DP 实现时间复杂度的 0.61 倍(实际训练速度为 1.36 倍)。我们在 FastDP 库(https://github.com/awslabs/fast-differential-privacy)中开源了 BK 算法的代码库。

英文摘要:

Differentially private (DP) optimization is the standard paradigm to learn large neural networks that are accurate and privacy-preserving. The computational cost for DP deep learning, however, is notoriously heavy due to the per-sample gradient clipping. Existing DP implementations are 2-1000X more costly in time and space complexity than the standard (non-private) training. In this work, we develop a novel Book-Keeping (BK) technique that implements existing DP optimizers (thus achieving the same accuracy), with a substantial improvement on the computational cost. Specifically, BK enables DP training on large models and high dimensional data to be roughly as fast and memory-saving as the standard training, whereas previous DP algorithms can be inefficient or incapable of training due to memory error. The computational advantage of BK is supported by the complexity analysis as well as extensive experiments on vision and language tasks. Our implementation achieves state-of-the-art (SOTA) accuracy with very small extra cost: on GPT2 and at almost the same memory cost (<1% overhead), BK has 1.03X the time complexity of the standard training (0.83X training speed in practice), and 0.61X the time complexity of the most efficient DP implementation (1.36X training speed in practice). We open-source the codebase for the BK algorithm at the FastDP library (https://github.com/awslabs/fast-differential-privacy).

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

↑