Skip to main content
QUICK REVIEW

[Paper Review] Exploring the Limits of Differentially Private Deep Learning with Group-wise Clipping

Jiyan He, Xuechen Li|arXiv (Cornell University)|Dec 3, 2022
Privacy-Preserving Technologies in DataComputer Science4 citations
TL;DR

This paper introduces group-wise clipping—specifically per-layer and per-device clipping—to enhance computational efficiency and privacy-utility trade-offs in differentially private deep learning. By applying adaptive thresholds and integrating clipping within backpropagation, the method achieves memory and time efficiency comparable to non-private training while outperforming flat clipping in accuracy under constrained training epochs, and enables private fine-tuning of GPT-3 at ε=1 with superior performance to non-private GPT-2 fine-tuning.

ABSTRACT

Differentially private deep learning has recently witnessed advances in computational efficiency and privacy-utility trade-off. We explore whether further improvements along the two axes are possible and provide affirmative answers leveraging two instantiations of \emph{group-wise clipping}. To reduce the compute time overhead of private learning, we show that \emph{per-layer clipping}, where the gradient of each neural network layer is clipped separately, allows clipping to be performed in conjunction with backpropagation in differentially private optimization. This results in private learning that is as memory-efficient and almost as fast per training update as non-private learning for many workflows of interest. While per-layer clipping with constant thresholds tends to underperform standard flat clipping, per-layer clipping with adaptive thresholds matches or outperforms flat clipping under given training epoch constraints, hence attaining similar or better task performance within less wall time. To explore the limits of scaling (pretrained) models in differentially private deep learning, we privately fine-tune the 175 billion-parameter GPT-3. We bypass scaling challenges associated with clipping gradients that are distributed across multiple devices with \emph{per-device clipping} that clips the gradient of each model piece separately on its host device. Privately fine-tuning GPT-3 with per-device clipping achieves a task performance at $ε=1$ better than what is attainable by non-privately fine-tuning the largest GPT-2 on a summarization task.

Motivation & Objective

  • To investigate whether differentially private deep learning can achieve memory and time efficiency comparable to non-private training.
  • To improve the privacy-utility trade-off in private learning by leveraging larger pretrained models.
  • To address scalability challenges in private fine-tuning of large models like GPT-3 across distributed devices.
  • To demonstrate that adaptive group-wise clipping can match or exceed the performance of standard flat clipping under fixed training epoch constraints.

Proposed method

  • Introduces per-layer clipping, where gradients of each neural network layer are clipped separately during backpropagation, reducing memory and time overhead.
  • Employs adaptive clipping thresholds per layer, estimated during training, to improve privacy-utility trade-off compared to fixed thresholds.
  • Proposes per-device clipping for large-scale models like GPT-3, where each device clips gradients of its local model parameters independently, avoiding cross-device gradient norm communication.
  • Integrates group-wise clipping into DP-SGD by modifying the clipping and noise injection process to operate on grouped gradients (layers or model shards) rather than per-example gradients.
  • Uses a two-pass backpropagation approach to estimate per-example gradient norms for adaptive thresholding, minimizing memory cost while maintaining accuracy.
  • Applies the method to fine-tune large models such as RoBERTa and GPT-3 under differential privacy constraints, evaluating performance across varying privacy budgets (ε).

Experimental results

Research questions

  • RQ1Can differentially private deep learning achieve memory and time efficiency comparable to non-private training?
  • RQ2Can adaptive group-wise clipping improve the privacy-utility trade-off compared to standard flat clipping?
  • RQ3Can per-device clipping enable effective private fine-tuning of extremely large models like GPT-3?
  • RQ4Does scaling to larger pretrained models improve the performance of differentially private fine-tuning?

Key findings

  • Adaptive per-layer clipping matches or outperforms flat clipping in accuracy on the SST-2 dataset under fixed training epoch constraints, achieving higher accuracy at ε=8 with RoBERTa-base and RoBERTa-large.
  • For RoBERTa-base, adaptive per-layer clipping achieves 92.87% accuracy at ε=8 and E=30, surpassing flat clipping’s 92.10% under the same conditions.
  • Per-device clipping enables private fine-tuning of the 175B-parameter GPT-3 model at ε=1, achieving performance better than non-private fine-tuning of the largest GPT-2 model on a summarization task.
  • The proposed per-layer clipping method is as memory-efficient and nearly as fast per update as non-private training for many practical workflows, significantly reducing the computational overhead of DP-SGD.
  • Adaptive per-layer clipping with learned thresholds improves utility without increasing memory or time cost, demonstrating that group-wise clipping with dynamic thresholds can outperform flat clipping.

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.