PCDP-SGD: Improving the Convergence of Differentially Private SGD via Projection in Advance

Ruixuan LiuarXiv 2023 · DOI

TL;DR

This paper introduces PCDP-SGD, a novel approach to differentially private stochastic gradient descent (DP-SGD) that improves convergence and utility by projecting gradients before clipping. This pre-projection step helps preserve crucial gradient information, leading to better performance in both centralized and federated learning settings, especially under high privacy constraints.

What Problem Does This Paper Address?

Training machine learning models with sensitive data often requires privacy-preserving techniques like Differentially Private Stochastic Gradient Descent (DP-SGD). While DP-SGD offers theoretical privacy guarantees, it typically leads to a significant drop in model utility (accuracy) due to the noise added for privacy and the information loss from gradient clipping. This utility degradation is a major bottleneck for applying DP-SGD in high-stakes applications like medical imaging. Existing methods have focused on improving utility after clipping, but this paper investigates the benefits of a pre-clipping strategy.

Methods

The core innovation is PCDP-SGD, which incorporates a pre-projection step before the standard gradient clipping and noise addition in DP-SGD. Here's how it works:

  • Projection: The algorithm first identifies the "top" components of the gradient (those with the largest eigenvalues) using a public auxiliary dataset. This projection effectively filters out less important "ambient" gradient components.
  • Clipping: The projected gradient is then clipped. By focusing on the more important components, the clipping operation is less likely to discard crucial information.
  • Noise Addition: Finally, Gaussian noise is added to the clipped gradient for differential privacy.

The authors also extend this to a federated learning setting, FedPCDP, which leverages the projection to mitigate challenges like data heterogeneity and reduce communication overhead by only transmitting projected gradients.

Datasets

The paper evaluates PCDP-SGD on the following datasets:

  • MNIST
  • Fashion-MNIST
  • CIFAR-10

Key Insights and Ideas

  • Pre-projection is key: Applying projection before clipping is more effective than post-clipping projection because it preserves the most informative gradient components, making the clipping process less destructive.
  • "Ambient" gradients are noisy: The paper highlights that many gradient dimensions contribute little to optimization but add significant noise when clipped, hindering convergence. PCDP-SGD effectively "weeds out" these ambient components.
  • Improved utility at same privacy: PCDP-SGD achieves better accuracy than existing DP-SGD variants, even under stringent privacy budgets (small epsilon), demonstrating a better utility-privacy trade-off.
  • Federated learning benefits: In federated settings, FedPCDP not only improves accuracy but also significantly reduces communication costs by transmitting compressed gradient information.
  • Robustness to non-IID data: The projection mechanism in FedPCDP helps alleviate issues caused by heterogeneous data distributions across clients.

Key Results

  • Centralized Learning: PCDP-SGD consistently outperforms state-of-the-art DP-SGD variants (DP-SGD, PDP-SGD, RPDP-SGD, RSDP-SGD) in terms of accuracy across MNIST, Fashion-MNIST, and CIFAR-10 datasets, especially under high privacy settings (low epsilon). For example, on MNIST with a privacy budget of $\epsilon=0.31$, PCDP-SGD achieves around 50.51% accuracy, while DP-SGD achieves only 34.43%.
  • Federated Learning: FedPCDP shows superior accuracy compared to other federated learning methods (FedAvg, FedProx, MOON, etc.) under DP guarantees, particularly in extreme non-IID scenarios.
  • Communication Efficiency: FedPCDP significantly reduces communication overhead in federated settings, e.g., by 0.48KB per round for a typical CNN model compared to 25KB for standard methods.

Limitations and Future Work

  • Public Auxiliary Data: The method relies on a public auxiliary dataset for projection. While this doesn't compromise the privacy of the training data itself, it requires access to such data.
  • Projection Dimension (k): The choice of the projection dimension k can impact performance. While the paper provides guidance, finding the optimal k might require tuning.
  • Computational Overhead: While communication is reduced, the projection step itself adds some computational overhead. The paper suggests that this overhead is manageable and can be further optimized.
  • Future Work: The authors suggest exploring more sophisticated projection techniques and further investigating the theoretical properties of PCDP-SGD in various complex scenarios.

Summary updated

BibTeX
@misc{liu2023pcdp,
  author = {Ruixuan Liu},
  title = {{PCDP-SGD: Improving the Convergence of Differentially Private SGD via Projection in Advance}},
  year = {2023},
  eprint = {2312.03792},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.03792},
}
Figure