Differentially Private Deep Learning with Importance-based Adaptive Gradient Processing

Ping Li, Mingwei Liang, Zhao Jiang, Jun ZhangACML 2024

Training deep learning models on sensitive data—like medical records or personal financial history—is a double-edged sword. While the resulting models are incredibly useful, they risk "memorizing" specific user data, which attackers can later exploit. Differential Privacy (DP) is the gold standard for preventing this, but it usually comes with a "privacy tax": the random noise added to protect data often degrades the model's accuracy and slows down training.

In a new paper presented at ACML 2024, researchers Ping Li and colleagues introduce DP-AdamILG, an algorithm designed to minimize this privacy tax by being smarter about how and where noise is added during training.

TL;DR

DP-AdamILG improves the trade-off between data privacy and model accuracy by dynamically reducing noise as training progresses and tailoring noise levels to the "importance" of individual neural network layers. It achieves higher accuracy and faster convergence than standard private training methods across multiple benchmarks.

What Problem Does This Paper Address?

The standard approach for private deep learning is DP-SGD (Differentially Private Stochastic Gradient Descent). It works by clipping gradients (to limit the influence of any single data point) and adding Gaussian noise. However, DP-SGD has two major inefficiencies:

  1. Uniformity: It often applies the same amount of noise and the same clipping threshold to every layer in a network, ignoring the fact that some layers are more critical for learning than others.
  2. Static Budgeting: Many implementations use a fixed noise scale throughout the entire training process. Early in training, models can handle a lot of noise, but as they converge, they need more precision.

Existing "adaptive" methods try to fix this but are often computationally expensive or too complex to be used as a general-purpose framework.

Methods

The authors propose DP-AdamILG (Importance-based Adaptive Layer-wise Gradient Processing), which introduces three key innovations:

  • Dynamic Privacy Budget Allocation: Instead of a constant noise level, the algorithm uses a time-based decay function. Noise starts high and gradually decreases as the model trains. Crucially, they include a "minimum privacy condition" ($\epsilon_{Lim}$) to ensure the noise never drops so low that privacy is compromised.
  • Importance-Based Layer-wise Processing: The researchers argue that the $L_2$ norm of a layer's gradient is a good proxy for its "importance." Layers with larger gradients contain more information. DP-AdamILG calculates unique clipping thresholds and noise scales for each layer based on these norms, rather than treating the whole network as a single block.
  • Adam Integration: The framework is built on the Adam optimizer, which is better at handling sparse gradients and non-stationary targets than standard SGD.
  • zCDP Accounting: They use zero-mean concentrated differential privacy (zCDP) to provide a more rigorous and efficient way to track the total "privacy loss" over thousands of training steps.

Datasets

The authors evaluated their approach on five standard computer vision benchmarks:

  • MNIST & Fashion-MNIST (FMNIST): Simple grayscale image classification.
  • SVHN: Street View House Numbers.
  • CIFAR-10 & CIFAR-100: More complex color image datasets with 10 and 100 classes, respectively.

Key Insights and Ideas

  • Not All Layers Are Created Equal: By scaling noise based on the $L_2$ norm of gradients, the algorithm effectively "protects" the most informative layers with more tailored noise, preventing the model from being overwhelmed by the uniform noise typically applied in DP-SGD.
  • The "Minimum Privacy" Safety Net: A common pitfall of decaying noise is that it might eventually reach zero, which would be a catastrophic privacy failure. The authors' inclusion of a hard threshold ($\sigma_*$) ensures the model remains DP-compliant even in very long training runs.
  • Efficiency Matters: Unlike some adaptive DP methods that require complex historical gradient tracking, DP-AdamILG is designed to be a "plug-and-play" modification of the standard DP-SGD framework, making it much easier for engineers to implement in existing pipelines.

Key Results

The experimental results show that DP-AdamILG consistently outperforms standard DP-SGD and other recent adaptive methods (like ADADP):

  • Accuracy Boost: On CIFAR-10, DP-AdamILG achieved significantly higher accuracy than competitors while maintaining the same privacy budget.
  • Privacy Efficiency: To reach a target accuracy of 96.5% on MNIST, DP-AdamILG required a privacy cost ($\epsilon$) of only 2.238, compared to 6.885 for DP-SGD (decay)—a reduction in privacy "expenditure" of over 67%.
  • Faster Convergence: The model reached target accuracy levels in far fewer epochs. For example, on CIFAR-10, it hit its target in just 7 epochs, while other methods took between 39 and 81 epochs.
  • Architectural Robustness: The benefits held true across various architectures, including ResNet-18, VGG-19, and GoogLeNet.

Limitations and Future Work

While the results are promising, the authors note a few areas for further exploration:

  • Hyperparameter Sensitivity: The "clipping factor" ($\alpha$) still requires some tuning. For noise-sensitive datasets like CIFAR-10, choosing the wrong $\alpha$ can lead to a noticeable decline in performance.
  • Comparison Scope: While compared against strong baselines, the field of DP is moving fast. Future work could involve benchmarking against even newer techniques like DP-Forward or different types of noise distributions beyond Gaussian.
  • Complexity of "Importance": The $L_2$ norm is a simple metric for importance; exploring more sophisticated ways to rank layer importance could yield even better results.

Summary updated

BibTeX
@inproceedings{li2024differentially,
  author = {Ping Li and Mingwei Liang and Zhao Jiang and Jun Zhang},
  title = {{Differentially Private Deep Learning with Importance-based Adaptive Gradient Processing}},
  booktitle = {ACML},
  year = {2024},
  url = {https://openreview.net/forum?id=JMWJjg0FXe},
}
Figure