arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2403.15638cs.CRcs.CLcs.LG
收藏

大语言模型的差分隐私下一词元预测

Differentially Private Next-Token Prediction of Large Language Models

University of Southern California(南加州大学)

James Flemings, Meisam Razaviyayn, Murali Annavaram

AI总结:

针对DP-SGD在黑盒场景下高估对手能力的问题,提出模型无关的私有预测协议PMixED,利用下一词元采样的随机性和公共模型实现差分隐私,在隐私预算ε=8下优于DP-SGD。

摘要:

确保大语言模型(LLMs)的隐私正变得越来越重要。实现这一目标最广泛采用的技术是DP-SGD,它通过训练模型来保证差分隐私(DP)。然而,DP-SGD高估了对手拥有对模型的白盒访问权限的能力,因此导致训练时间更长且内存使用量比SGD更大。另一方面,商业LLM部署主要是基于云的;因此,对LLMs的对抗性访问是黑盒的。受这些观察的启发,我们提出了集成分布的私有混合(PMixED):一种用于下一词元预测的私有预测协议,它利用下一词元采样的固有随机性和一个公共模型来实现差分隐私。我们通过引入RD-mollifiers来形式化这一点,这些RD-mollifiers将来自微调LLMs集成的每个模型输出分布投影到公共LLM输出分布周围的一个集合上,然后对投影分布取平均并从中进行采样。与在训练期间需要考虑模型架构的DP-SGD不同,PMixED是模型无关的,这使得PMixED成为当前部署非常具有吸引力的解决方案。我们的结果表明,PMixED实现了比样本级隐私更强的隐私保证,并且在隐私预算ε=8的情况下,在大规模数据集上优于DP-SGD。因此,PMixED为实现强大的生成效用而不妥协隐私提供了一种替代DP训练方法的实用方案。

英文摘要:

Ensuring the privacy of Large Language Models (LLMs) is becoming increasingly important. The most widely adopted technique to accomplish this is DP-SGD, which trains a model to guarantee Differential Privacy (DP). However, DP-SGD overestimates an adversary's capabilities in having white box access to the model and, as a result, causes longer training times and larger memory usage than SGD. On the other hand, commercial LLM deployments are predominantly cloud-based; hence, adversarial access to LLMs is black-box. Motivated by these observations, we present Private Mixing of Ensemble Distributions (PMixED): a private prediction protocol for next-token prediction that utilizes the inherent stochasticity of next-token sampling and a public model to achieve Differential Privacy. We formalize this by introducing RD-mollifers which project each of the model's output distribution from an ensemble of fine-tuned LLMs onto a set around a public LLM's output distribution, then average the projected distributions and sample from it. Unlike DP-SGD which needs to consider the model architecture during training, PMixED is model agnostic, which makes PMixED a very appealing solution for current deployments. Our results show that PMixED achieves a stronger privacy guarantee than sample-level privacy and outperforms DP-SGD for privacy $ε= 8$ on large-scale datasets. Thus, PMixED offers a practical alternative to DP training methods for achieving strong generative utility without compromising privacy.

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

↑