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

只需微调两次:大语言模型的选择性差分隐私

Just Fine-tune Twice: Selective Differential Privacy for Large Language Models

Columbia University(哥伦比亚大学);Virginia Tech(弗吉尼亚理工大学);Google Research(谷歌研究院)

Weiyan Shi, Ryan Shea, Si Chen, Chiyuan Zhang, Ruoxi Jia, Zhou Yu

摘要:

随着大语言模型在现实产品中的广泛采用,保护其免受隐私泄露变得越来越重要。然而,应用差分隐私(DP),一个规范的概念与可证明的隐私保证的机器学习模型,这些模型仍然具有挑战性,由于模型效用和隐私损失之间的权衡。利用语言数据中的敏感信息往往是稀疏的这一事实,Shi等人(2021)形式化了一种称为选择性差分隐私(SDP)的DP概念扩展,以仅保护由策略函数定义的敏感令牌。然而,他们的算法只适用于基于RNN的模型。在本文中,我们开发了一种新的框架,Just Fine-tune Twice(JFT),可以为最先进的大型变压器模型实现SDP。我们的方法很容易实现:它首先使用编辑的域内数据微调模型,然后使用私有训练机制使用原始域内数据再次微调模型。此外,我们还研究了策略函数执行不完善而丢失敏感令牌的情况,并开发了系统的方法来处理它。实验表明,与以前的基线相比,我们的方法具有很强的实用性。我们还分析了SDP隐私保证经验与金丝雀插入攻击。

英文摘要:

Protecting large language models from privacy leakage is becoming increasingly crucial with their wide adoption in real-world products. Yet applying differential privacy (DP), a canonical notion with provable privacy guarantees for machine learning models, to those models remains challenging due to the trade-off between model utility and privacy loss. Utilizing the fact that sensitive information in language data tends to be sparse, Shi et al. (2021) formalized a DP notion extension called Selective Differential Privacy (SDP) to protect only the sensitive tokens defined by a policy function. However, their algorithm only works for RNN-based models. In this paper, we develop a novel framework, Just Fine-tune Twice (JFT), that achieves SDP for state-of-the-art large transformer-based models. Our method is easy to implement: it first fine-tunes the model with redacted in-domain data, and then fine-tunes it again with the original in-domain data using a private training mechanism. Furthermore, we study the scenario of imperfect implementation of policy functions that misses sensitive tokens and develop systematic methods to handle it. Experiments show that our method achieves strong utility compared to previous baselines. We also analyze the SDP privacy guarantee empirically with the canary insertion attack.

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

↑