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

通过合成文本生成实现差分隐私的知识蒸馏

Differentially Private Knowledge Distillation via Synthetic Text Generation

University of Southern California(南加州大学)

James Flemings, Murali Annavaram

AI总结:

DistilDP通过合成文本生成实现差分隐私的知识蒸馏,提升LLMs的实用性和隐私保护性能。

摘要:

大型语言模型(LLMs)在许多不同的下游任务中实现了最先进的性能。然而,随着数据隐私需求的增加,从业者需要在私有数据上使用差分隐私(DP)训练LLMs。同时,LLMs参数规模的指数增长需要在资源受限的设备或延迟敏感的应用中部署前进行模型压缩。差分隐私和模型压缩通常必须在实用损失上进行权衡以达到其目标。此外,同时应用这两种方案会加剧实用退化。为此,我们提出了DistilDP:一种新颖的差分隐私知识蒸馏算法,该算法利用由差分隐私教师LLM生成的合成数据。教师LLM的知识通过两种方式转移到学生:一种方式是合成数据本身——硬标签,另一种方式是教师在合成数据上评估的输出分布——软标签。此外,如果教师和学生具有相似的架构结构,我们可以通过对齐两者之间的隐藏表示进一步蒸馏知识。我们的实验结果表明,DistilDP在现有基线上显著提高了实用性,至少在Big Patent数据集上实现了9.0 PPL的改进,使用强隐私参数,ε=2。这些有希望的结果推进了隐私保护的自回归LLMs压缩。我们的代码可以在这里访问:https://github.com/james-flemings/dp_compress。

英文摘要:

Large Language models (LLMs) are achieving state-of-the-art performance in many different downstream tasks. However, the increasing urgency of data privacy puts pressure on practitioners to train LLMs with Differential Privacy (DP) on private data. Concurrently, the exponential growth in parameter size of LLMs necessitates model compression before deployment of LLMs on resource-constrained devices or latency-sensitive applications. Differential privacy and model compression generally must trade off utility loss to achieve their objectives. Moreover, simultaneously applying both schemes can compound the utility degradation. To this end, we propose DistilDP: a novel differentially private knowledge distillation algorithm that exploits synthetic data generated by a differentially private teacher LLM. The knowledge of a teacher LLM is transferred onto the student in two ways: one way from the synthetic data itself -- the hard labels, and the other way by the output distribution of the teacher evaluated on the synthetic data -- the soft labels. Furthermore, if the teacher and student share a similar architectural structure, we can further distill knowledge by aligning the hidden representations between both. Our experimental results demonstrate that DistilDP can substantially improve the utility over existing baselines, at least $9.0$ PPL on the Big Patent dataset, with strong privacy parameters, $ε=2$. These promising results progress privacy-preserving compression of autoregressive LLMs. Our code can be accessed here: https://github.com/james-flemings/dp_compress.

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

↑