arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.17538cs.LGcs.AIcs.CL
收藏

LoRA通过随机草图实现差分隐私

LoRA Provides Differential Privacy by Design via Random Sketching

Mila - Quebec AI Institute, Montreal, Canada(魁北克人工智能研究所);School of Computer Science, McGill University(麦吉尔大学计算机学院)

Saber Malekmohammadi, Golnoosh Farnadi

AI总结:

LoRA通过随机草图机制在设计上实现差分隐私,其低秩适应等效于使用噪声梯度微调适配器,隐私水平受适应秩和批量大小影响。

摘要:

低秩适应语言模型已被提出以减少微调预训练语言模型的计算和内存开销。LoRA在预训练模型的一些参数中加入可训练的低秩矩阵,称为适配器。在本文中,我们理论证明LoRA的低秩适应机制等同于使用噪声小批量梯度微调适配器,其中噪声方差是适应秩(r)的递减函数。受这一理解的启发,我们证明当适应矩阵A_ℓ固定时,LoRA具有内在的差分隐私。我们展示了各种因素,例如适应秩和批量大小,会影响保证的隐私级别。我们的发现为LoRA提供了有用的见解,并揭示了使用LoRA微调的模型对隐私攻击的鲁棒性的原因。

英文摘要:

Low-rank adaptation of language models has been proposed to reduce the computational and memory overhead of fine-tuning pre-trained language models. LoRA incorporates trainable low-rank matrices into some parameters of the pre-trained model, called adapters. In this work, we show theoretically that the low-rank adaptation mechanism of LoRA is equivalent to fine-tuning adapters with noisy batch gradients, with the noise variance being a decreasing function of adaptation rank ($r$). Motivated by this understanding, we prove inherent differential privacy for LoRA when adaptation matrices $A_\ell$ are frozen. We show that various factors, e.g., the adaptation rank and batch size, affect the guaranteed privacy level. Our findings provide useful insights into LoRA and uncovers the reason behind the robustness of models fine-tuned with LoRA to privacy attacks.

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

↑