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

通过用户级差分隐私微调大语言模型

Fine-Tuning Large Language Models with User-Level Differential Privacy

Google Research(谷歌研究院);IIT Madras(印度马德拉斯理工学院)

Zachary Charles, Arun Ganesh, Ryan McKenna, H. Brendan McMahan, Nicole Mitchell, Krishna Pillutla, Keith Rush

AI总结:

该研究针对大语言模型训练的用户级隐私保护问题,提出适配的DP核算器并对比两种DP-SGD变体,验证了用户级采样方案在强隐私或高计算预算场景下的优势,可支撑大规模模型与用户数据的隐私训练。

摘要:

我们研究了采用用户级差分隐私(DP)训练大语言模型(LLMs)的实用可扩展算法,以可证明地保护每位用户贡献的所有样本。我们研究了DP-SGD的两种变体:(1)样本级采样(ELS)搭配逐样本梯度裁剪,以及(2)用户级采样(ULS)搭配逐用户梯度裁剪。我们提出了一种新型用户级DP核算器,能够为ELS计算可证明的紧致隐私保证。借此我们发现,尽管ELS在特定场景下表现优于ULS,但当每位用户拥有多样化样本集合时,ULS通常能取得更好的结果。我们在固定计算预算下,通过合成均值估计和LLM微调任务的实验验证了上述发现。研究表明,在以下两种场景中ULS的表现显著更优:(1)需要强隐私保证,或(2)计算预算充足。值得注意的是,我们聚焦于兼容LLM的训练算法,因此可扩展至拥有数亿参数的模型和涵盖数十万用户的数据集。

英文摘要:

We investigate practical and scalable algorithms for training large language models (LLMs) with user-level differential privacy (DP) in order to provably safeguard all the examples contributed by each user. We study two variants of DP-SGD with: (1) example-level sampling (ELS) and per-example gradient clipping, and (2) user-level sampling (ULS) and per-user gradient clipping. We derive a novel user-level DP accountant that allows us to compute provably tight privacy guarantees for ELS. Using this, we show that while ELS can outperform ULS in specific settings, ULS generally yields better results when each user has a diverse collection of examples. We validate our findings through experiments in synthetic mean estimation and LLM fine-tuning tasks under fixed compute budgets. We find that ULS is significantly better in settings where either (1) strong privacy guarantees are required, or (2) the compute budget is large. Notably, our focus on LLM-compatible training algorithms allows us to scale to models with hundreds of millions of parameters and datasets with hundreds of thousands of users.

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

↑