Abstract
Deep neural networks are known to memorize sensitive information from training datasets, posing significant privacy risks. This paper introduces a framework for training these models with formal differential privacy guarantees. We propose the Differentially Private Stochastic Gradient Descent (DP-SGD) algorithm, which utilizes per-example gradient clipping and noise addition. To track privacy loss efficiently, we develop the "Moments Accountant," a novel accounting technique that provides much tighter privacy bounds than standard composition theorems. Our experiments on MNIST and CIFAR-10 demonstrate that high-performing models can be trained within a strict privacy budget, often benefiting from the regularizing effects of private training.
Introduction
As deep learning increasingly handles sensitive data such as medical records and personal communications, protecting individual privacy has become paramount. Standard training methods do not prevent models from inadvertently encoding specific details of training examples, making them susceptible to membership inference and model-inversion attacks. Differential Privacy (DP) offers a rigorous mathematical standard for privacy, but its application to deep learning has historically faced challenges regarding accuracy loss and the rapid depletion of the privacy budget (epsilon) during iterative optimization.
Methodology
We introduce two key innovations to enable effective private deep learning:
Differentially Private SGD (DP-SGD)
DP-SGD modifies the standard optimization process to ensure that the influence of any single training example is bounded. At each step, we compute individual gradients for every example in the mini-batch, clip their norms to a threshold C, and add Gaussian noise to the average before updating model parameters.
The Moments Accountant
The primary challenge in private training is the accumulation of privacy loss over thousands of iterations. Standard tools like the Strong Composition Theorem provide loose bounds that quickly lead to an impractical privacy budget. Our "Moments Accountant" tracks the distribution of privacy loss more precisely by focusing on its higher moments.
As illustrated in Figure 1, the Moments Accountant allows for a significantly lower epsilon for the same number of training epochs compared to traditional methods, enabling "single-digit" privacy budgets in practice.
Experimental Results
We evaluated our approach on the MNIST and CIFAR-10 datasets. On MNIST, we achieved a test accuracy of 97% with a privacy budget of epsilon = 8 and delta = 1e-5, close to the non-private baseline of 98.3%. For CIFAR-10, we achieved 73% accuracy with epsilon = 8, a substantial advancement for private deep learning on natural images.
Figure 2 displays the training dynamics across different noise levels. We observe that while higher noise (lower epsilon) results in slower convergence, the models still achieve high utility. Furthermore, the noise added for privacy appears to act as a regularizer, narrowing the gap between training and testing accuracy.
Discussion and Conclusion
Our results show that deep learning and differential privacy are compatible. The Moments Accountant is a critical tool for making these guarantees practical. We also found that larger networks are surprisingly tolerant to the noise required for privacy, and that batch size selection is crucial for performance. While a "privacy tax" in the form of reduced accuracy still exists for complex tasks, this work provides a scalable foundation for future research in privacy-preserving machine learning.
Summary updated