Skip to main content
QUICK REVIEW

[Paper Review] Large Scale Private Learning via Low-rank Reparametrization

Dahua Yu, Huishuai Zhang|arXiv (Cornell University)|Jun 17, 2021
Privacy-Preserving Technologies in DataComputer Science62 references14 citations
TL;DR

This paper proposes Reparametrized Gradient Perturbation (RGP), a low-rank reparametrization method that enables differentially private SGD on large models like BERT by reducing memory usage and breaking the dimensional dependence of noise. RGP achieves 83.9% average accuracy on four NLP tasks with ε=8, within 5% of non-private baselines, while preventing membership inference attacks.

ABSTRACT

We propose a reparametrization scheme to address the challenges of applying differentially private SGD on large neural networks, which are 1) the huge memory cost of storing individual gradients, 2) the added noise suffering notorious dimensional dependence. Specifically, we reparametrize each weight matrix with two \emph{gradient-carrier} matrices of small dimension and a \emph{residual weight} matrix. We argue that such reparametrization keeps the forward/backward process unchanged while enabling us to compute the projected gradient without computing the gradient itself. To learn with differential privacy, we design \emph{reparametrized gradient perturbation (RGP)} that perturbs the gradients on gradient-carrier matrices and reconstructs an update for the original weight from the noisy gradients. Importantly, we use historical updates to find the gradient-carrier matrices, whose optimality is rigorously justified under linear regression and empirically verified with deep learning tasks. RGP significantly reduces the memory cost and improves the utility. For example, we are the first able to apply differential privacy on the BERT model and achieve an average accuracy of $83.9\%$ on four downstream tasks with $ε=8$, which is within $5\%$ loss compared to the non-private baseline but enjoys much lower privacy leakage risk.

Motivation & Objective

  • Address the high memory cost and poor utility of differentially private SGD on large deep neural networks.
  • Overcome the dimensional dependence of noise in gradient perturbation, which degrades model utility as model size increases.
  • Enable privacy-preserving training of large-scale models such as BERT, which was previously infeasible due to memory and noise constraints.
  • Develop a reparametrization scheme that preserves model behavior while enabling efficient, private gradient computation and update.
  • Demonstrate that historical updates can be used to approximate optimal gradient carriers under differential privacy, ensuring utility and privacy.

Proposed method

  • Reparametrize each weight matrix 𝐖 as 𝐖 = 𝐋𝐑 + 𝐖̃, where 𝐋 and 𝐑 are low-rank gradient carriers and 𝐖̃ is a residual weight, preserving forward/backward propagation.
  • Use the gradients on 𝐋 and 𝐑 to compute a projection of the original gradient on 𝐖 without explicitly computing 𝐖’s gradient, saving memory.
  • Apply gradient clipping and noise injection only on the low-dimensional 𝐋 and 𝐑 matrices, reducing total noise intensity.
  • Construct the final weight update from the noisy gradients on 𝐋 and 𝐑, ensuring privacy while maintaining model performance.
  • Use historical model updates (already published) to compute the principal singular vectors for 𝐋 and 𝐑, leveraging post-processing privacy guarantees.
  • Justify the optimality of this approach theoretically under linear regression and empirically in deep learning settings.

Experimental results

Research questions

  • RQ1Can low-rank reparametrization reduce the memory cost of storing individual gradients in differentially private SGD?
  • RQ2Does perturbing gradients on low-rank carriers instead of full weight matrices reduce noise intensity and improve utility in large models?
  • RQ3Can historical model updates be used to approximate optimal gradient carriers without violating differential privacy?
  • RQ4To what extent does RGP preserve model utility when training large models like BERT under DP constraints?
  • RQ5Does RGP effectively prevent membership inference attacks on private models?

Key findings

  • RGP enables the first successful application of differential privacy to the BERT model, achieving 83.9% average accuracy across four downstream NLP tasks with ε=8.
  • The membership inference attack success rate on RGP-trained BERT models is around 50%, indicating no significant privacy leakage, while non-private models show 55–60% attack success.
  • Models trained with low-rank reparametrization alone already show lower membership inference success rates than standard models, indicating inherent privacy benefits.
  • The gradient of each layer in deep networks is empirically found to have low stable rank, validating the low-rank assumption underlying RGP.
  • The use of historical updates to approximate principal gradient subspaces is theoretically justified for linear regression and empirically effective in deep learning.
  • RGP significantly reduces the total noise intensity compared to standard DP-SGD, breaking the notorious dimensional dependence of utility in private learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.