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

基于零阶优化的大型语言模型私有微调

Private Fine-tuning of Large Language Models with Zeroth-order Optimization

Princeton University(普林斯顿大学);Google DeepMind(谷歌DeepMind);FAIR, Meta(Meta FAIR)

Xinyu Tang, Ashwinee Panda, Milad Nasr, Saeed Mahloujifar, Prateek Mittal

AI总结:

提出DP-ZO框架,通过仅私有化零阶优化中的标量步长来实现大型语言模型的隐私微调,在保证隐私-效用权衡的同时显著提升了内存效率。

摘要:

差分隐私随机梯度下降(DP-SGD)允许以保护隐私的方式训练模型,但已被证明难以扩展到基础模型时代。我们提出了DP-ZO,这是一种通过将零阶优化方法私有化,用于大型语言模型的私有微调框架。我们方法设计的一个关键见解是,我们使用的零阶优化中的梯度方向是随机的,且来自训练数据的唯一信息是步长,即一个标量。因此,我们只需将标量步长私有化,这非常节省内存。DP-ZO在不同任务和模型规模上提供了强大的隐私-效用权衡,在$(\varepsilon,\delta)$-DP中与DP-SGD相当。值得注意的是,DP-ZO在内存效率上比DP-SGD具有显著优势,并且在使用拉普拉斯机制时,在$\varepsilon$-DP中获得了更高的效用。

英文摘要:

Differentially private stochastic gradient descent (DP-SGD) allows models to be trained in a privacy-preserving manner, but has proven difficult to scale to the era of foundation models. We introduce DP-ZO, a private fine-tuning framework for large language models by privatizing zeroth order optimization methods. A key insight into the design of our method is that the direction of the gradient in the zeroth-order optimization we use is random and the only information from training data is the step size, i.e., a scalar. Therefore, we only need to privatize the scalar step size, which is memory-efficient. DP-ZO provides a strong privacy-utility trade-off across different tasks, and model sizes that are comparable to DP-SGD in $(\varepsilon,δ)$-DP. Notably, DP-ZO possesses significant advantages over DP-SGD in memory efficiency, and obtains higher utility in $\varepsilon$-DP when using the Laplace mechanism.

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

↑