Skip to content

DP-Forward: Fine-Tuning and Inference of Language Models with Differential Privacy in Forward PropagationDP-Forward: Fine-tuning and Inference on Language Models with Differential Privacy in Forward Pass

arXiv· arXiv:2309.06746· CCS 2023· Minxin Du, Xiang Yue, Sherman S. M. Chow, Tianhao Wang, Chenyu Huang, Huan Sun·Indexed by this site · 24 days ago· Originally publishedDefenses
AI summary

The researchers propose DP-Forward, which provides rigorous local differential privacy protection for training and inference data by directly perturbing the embedding matrix during the forward propagation of language models. To address the problems that differentially private stochastic gradient descent (DP-SGD) only adds noise to gradients in backpropagation, cannot cover inference-time threats such as embedding inversion and sensitive attribute inference, and has high storage and computation costs when fine-tuning large language models, the authors design the analytic matrix Gaussian mechanism (aMGM), which draws possibly non-i.i.d. noise from a matrix Gaussian distribution, and study the effect of using it to perturb the outputs of different hidden (sub)layers of language models. On three typical tasks, the method's utility nearly reaches the non-private baseline, exceeds DP-SGD by up to 7.7 percentage points at medium privacy levels, and saves 3× time and memory overhead compared with DP-SGD using the latest high-speed library. The authors report that DP-Forward reduces the average success rates of embedding inversion and sensitive attribute inference by up to 88 and 41 percentage points, respectively, whereas DP-SGD is ineffective against these.

Read originalCCS 2023