arXiv · 2409.17538
LoRA Provides Differential Privacy by Design via Random Sketching
Abstract
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.
Explore related subjects
Keep this discovery
Saber Malekmohammadi, Golnoosh Farnadi. 2024-09-26. LoRA Provides Differential Privacy by Design via Random Sketching. https://arxiv.org/abs/2409.17538
Cite the original work for its findings. Save a collection to share your selection of sources.