Abstract
While many solutions for privacy-preserving convex empirical risk minimization (ERM) have been developed, privacy-preserving nonconvex ERM remains a challenge. We study nonconvex ERM, which takes the form of minimizing a finite-sum of nonconvex loss functions over a training set. We propose a new differentially private stochastic gradient descent algorithm for nonconvex ERM that achieves strong privacy guarantees efficiently, and provide a tight analysis of its privacy and utility guarantees, as well as its gradient complexity. Our algorithm substantially reduces gradient complexity while matching the best previous utility guarantee given by Wang et al. (2017). We extend our algorithm to the distributed setting using secure multi-party computation, and show it is possible for a distributed algorithm to match the privacy and utility guarantees of a centralized algorithm in this setting. Our experiments on benchmark nonconvex ERM problems demonstrate superior performance in terms of both training cost and utility gains compared with previous differentially private methods using the same privacy budgets.
Introduction
Training machine learning models on sensitive data—such as medical records or financial history—poses a major privacy risk: models can "leak" information about specific individuals in the training set. Differential Privacy (DP) is the gold standard for preventing this, but applying it to nonconvex problems, which encompass the majority of deep learning tasks, is notoriously difficult.
Existing DP algorithms for nonconvex optimization typically suffer from two primary flaws. First, they often incur high computational costs, sometimes requiring full gradient calculations of the entire dataset at every step. Second, they frequently suffer from poor utility; the noise added to gradients to maintain privacy can overwhelm the learning process in complex nonconvex landscapes, leading to significantly degraded model performance. This work introduces an algorithm that is both computationally efficient and provides high utility.
The DP-SRM Algorithm
The core contribution of this research is the DP-SRM (Differentially Private Stochastic Recursive Momentum) algorithm. It integrates three key technical pillars to overcome the limitations of previous methods:
- Stochastic Recursive Momentum: Instead of standard Stochastic Gradient Descent (SGD), the algorithm employs a recursive estimator inspired by the STORM algorithm. This technique reduces the variance of gradient estimates over time without requiring the massive batch sizes typical of other variance-reduction methods.
- Adaptive Step Size: To maintain privacy, the algorithm uses an adaptive step size to mathematically bound the sensitivity of the gradient estimator. By keeping sensitivity low, the algorithm can add less noise while still meeting strict privacy requirements.
- Renyi Differential Privacy (RDP): The theoretical analysis utilizes RDP, which allows for a much tighter accounting of the privacy budget during composition (multiple passes over data) and subsampling.
Key Results and Theoretical Comparison
A primary insight of this work is that variance reduction is essential for privacy. Lower variance leads to more stable gradients, which directly translates to lower sensitivity and reduced noise requirements.
As shown in the table above, DP-SRM achieves a tighter utility bound and lower gradient complexity than previous state-of-the-art methods. Specifically, while previous methods like DP-GD (Wang et al., 2017) had a utility guarantee scaling at $O(n^{-1/2})$, DP-SRM improves this to $O(n^{-2/3})$. This means that as the dataset size $n$ grows, DP-SRM achieves higher accuracy much faster than its predecessors.
Empirical evaluations on benchmark datasets (MNIST, CIFAR-10, a9a, and ijcnn1) support these theoretical findings:
- Efficiency: In CNN experiments on MNIST, DP-SRM reached comparable error rates to standard DP-SGD using only 30% of the iterations and 40% of the training time.
- Accuracy: On the ijcnn1 dataset with a strict privacy budget ($ε = 0.2$), DP-SRM achieved a test error of ~0.25, significantly outperforming DP-GD (~0.31) and RRPSGD (~0.31).
- Scalability: Unlike previous variance-reduced DP algorithms (e.g., DP-SVRG), DP-SRM does not require periodic full gradient computations, making it more suitable for large-scale datasets.
Conclusion and Future Work
DP-SRM represents a significant step forward in private nonconvex optimization, offering superior utility and efficiency. However, challenges remain. The algorithm's performance is sensitive to hyperparameters like the momentum term and clipping constants. Furthermore, while this work improves the upper bound for utility, the theoretical lower bound for private nonconvex optimization remains an open question. Future research should also explore the scalability of these techniques to "industrial-level" models, such as Large Language Models (LLMs), which present unique optimization dynamics.
Summary updated