TL;DR
This paper introduces DP-SGLD, a novel differentially private algorithm for training machine learning models using stochastic gradient descent. It offers stronger privacy guarantees and improved utility (accuracy) compared to existing methods, especially for smooth and strongly convex objectives, by leveraging Langevin diffusion dynamics.
What Problem Does This Paper Address?
Training machine learning models on sensitive data raises privacy concerns. Differential Privacy (DP) offers a rigorous framework to protect individual data, but applying it to popular training algorithms like Stochastic Gradient Descent (SGD) often leads to a significant drop in model accuracy (utility), especially when many training iterations are needed. Existing DP-SGD methods, while widely adopted, suffer from privacy bounds that grow with the number of iterations, making them impractical for deep learning. This paper aims to bridge this gap by developing a DP-SGD variant that provides better utility while maintaining strong privacy guarantees, even with extensive training.
Methods
The core of this work is the development and analysis of DP-SGLD (Differentially Private Stochastic Gradient Langevin Dynamics). The authors model the privacy leakage of DP-SGD as a Rényi divergence dynamics, inspired by Langevin diffusion. This allows them to:
- Analyze Privacy Erosion: They trace the evolution of privacy loss over time, showing that DP-SGLD can achieve exponentially fast convergence of privacy bounds for smooth and strongly convex objectives, a significant improvement over previous DP-SGD analyses.
- Handle Varying Step Sizes: The analysis is extended to arbitrary sequences of varying step sizes, which is more realistic for practical training.
- Theoretical Guarantees: They derive new Rényi differential privacy (RDP) and standard $(\epsilon, \delta)$-differential privacy guarantees for DP-SGLD, along with corresponding utility bounds (measuring model accuracy).
- Implementation and Experiments: They propose an implementation of DP-SGLD and empirically demonstrate its practical utility.
The key novelty lies in adapting the Langevin diffusion framework, previously used for full gradient descent (DP-GLD), to the stochastic setting of DP-SGLD, and providing theoretical analysis for both constant and decreasing step sizes.
Datasets
The paper uses the following datasets for experiments:
- CIFAR-10: A standard image classification dataset with 10 classes.
- CIFAR-100: A larger version of CIFAR-10 with 100 classes.
- Pneumonia: A healthcare dataset of chest X-ray images, used to mimic training on sensitive data.
The experiments involve pre-training models (AlexNet and ResNet18) on CIFAR-100 or ImageNet (for Pneumonia) and then retraining only the last layer using logistic regression on the target datasets.
Key Insights and Ideas
- Langevin Diffusion for Privacy: Applying Langevin diffusion dynamics to analyze DP-SGD reveals that privacy loss can converge much faster than previously thought, especially for well-behaved loss functions.
- Exponential Privacy Convergence: For smooth and strongly convex objectives, DP-SGLD's privacy loss can decrease exponentially with the number of iterations, effectively removing the "prohibitive privacy bound" issue of standard DP-SGD for long training.
- Utility-Privacy Trade-off: DP-SGLD significantly narrows the gap in accuracy between differentially private training and non-private training, particularly for tasks that are smooth and strongly convex.
- Deeper Networks Challenge: For standard DP-SGD, training deeper networks on sensitive data doesn't necessarily improve accuracy and can even degrade it, suggesting that simpler models or different DP approaches might be more suitable for complex architectures.
Key Results
- Improved Privacy Bounds: DP-SGLD achieves exponentially fast convergence of privacy loss for smooth and strongly convex objectives, a significant improvement over previous DP-SGD analyses.
- Competitive Utility: Experiments show DP-SGLD achieves higher accuracy than standard DP-SGD on logistic regression tasks, significantly reducing the accuracy gap compared to non-private training. For example, on CIFAR10 with ResNet18 and constant step size, DP-SGLD achieved 70.3% accuracy compared to DP-SGD's 68.0%.
- Effectiveness on Sensitive Data: The method shows promise on the Pneumonia dataset, achieving 58.8% accuracy with DP-SGLD, comparable to non-private methods.
- Impact of Model Depth: For DP-SGD, fine-tuning deeper layers of ResNet18 on CIFAR10 did not improve accuracy, highlighting the challenges of applying DP to complex models.
Limitations and Future Work
- Smoothness and Strong Convexity: The theoretical guarantees and strong empirical results are primarily derived under the assumption of smooth and strongly convex loss functions. Relaxing these hypotheses to cover more general deep learning scenarios remains an open challenge.
- General Deep Learning Architectures: While experiments show promise, the paper focuses on logistic regression as a proxy for more complex deep learning tasks. Further research is needed to validate DP-SGLD's effectiveness on a wider range of deep neural networks.
- Hyperparameter Tuning: Like most DP algorithms, DP-SGLD's performance can be sensitive to hyperparameter choices, and further work on robust tuning strategies would be beneficial.
Summary updated