Differentially Private Optimization for Smooth Nonconvex ERM

Changyu Gao, Stephen J. WrightarXiv 2023 · DOI

Introduction

Empirical Risk Minimization (ERM) is a cornerstone of machine learning, yet its application to nonconvex objectives—typical in deep learning—presents significant challenges. In these landscapes, standard first-order optimization methods often converge to saddle points, where the gradient is zero but the point is not a local minimum. To ensure robust optimization, finding second-order stationary points (SOSPs) is necessary. However, doing so under the constraints of Differential Privacy (DP) introduces a "noise bottleneck": the noise required to protect individual data points can obscure the delicate second-order signals needed to escape saddle points.

This paper introduces a practical and efficient framework for finding approximate second-order solutions in nonconvex optimization while maintaining rigorous DP guarantees. By combining adaptive step sizes with strategic privacy budgeting, the authors develop algorithms that significantly outperform existing methods in both speed and final model quality.

The Challenge of Private Second-Order Optimization

Differential Privacy requires adding calibrated noise to gradients and Hessians to protect the privacy of individual samples in the dataset. In nonconvex settings, this noise can "wash out" the signal needed to find the bottom of a valley or escape a saddle point. Previous private algorithms were often purely theoretical, relying on extremely conservative "short steps" that made them painfully slow in practice, or requiring expensive Hessian computations at every single iteration.

Proposed Methodology

The authors propose a suite of algorithms based on the principle of moving along the gradient when it is large and only utilizing second-order (Hessian) information when the gradient is small. Key innovations include:

Instead of using a fixed, tiny step size, the algorithm tries larger steps and checks if they actually decrease the function. To keep this check private, the authors use the Sparse Vector Technique (SVT). This allows for multiple queries against the data while "paying" very little in the privacy budget, enabling the algorithm to adapt to the local landscape and take much larger steps when the terrain allows.

2. Two-Phase Privacy Budgeting

Theoretical privacy analysis usually requires a pessimistic estimate of the total number of iterations ($T$), which leads to high noise per step. The authors propose a Two-Phase strategy: use a fraction of the privacy budget to try a smaller $T$ first. If the algorithm converges early, the utility is maximized; if not, it falls back to the conservative estimate with the remaining budget. This treats the privacy budget as a strategic resource rather than a static constraint.

3. Computational Efficiency via Lanczos

To avoid the massive cost of calculating a full Hessian matrix ($O(d^2)$ storage and $O(d^3)$ computation), the framework uses the Lanczos method. This approximates only the smallest eigenvalue of the Hessian, which is the only second-order information required to check if the algorithm is at a saddle point.

Experimental Evaluation

The algorithms were evaluated on two standard benchmark datasets: Covertype (a large dataset with over 500k samples) and IJCNN. The researchers compared their methods (OPT-LS and 2OPT) against the state-of-the-art DP-Trust Region (DP-TR) method.

Key Results

  • Speed: In experiments on the Covertype dataset, the proposed algorithms were often 10x to 100x faster than DP-TR.
  • Performance: The algorithms consistently achieved lower final loss than competing methods across various privacy levels ($\epsilon$).
  • Hessian Efficiency: The number of Hessian evaluations was kept remarkably low. While DP-TR requires second-order information at every iteration, the proposed method only queries the Hessian when the gradient is small, sometimes only needing a handful of checks throughout the entire run.
  • Sample Complexity: The authors proved that their method matches the best-known theoretical sample complexity for finding second-order solutions, $O(\alpha^{-2})$, while being significantly more practical to implement.

Limitations and Future Work

While the framework represents a major step forward, some limitations remain. The algorithm still relies on iteration bounds derived from global function properties; if these bounds are too high, the added noise per step remains significant. Additionally, the line search and SVT components introduce hyperparameters that may require tuning for specific problems. Finally, as model dimensionality grows into the millions, extending these private second-order techniques to massive neural networks remains an open frontier in the field.

Summary updated

BibTeX
@misc{gao2023differentially,
  author = {Changyu Gao and Stephen J. Wright},
  title = {{Differentially Private Optimization for Smooth Nonconvex ERM}},
  year = {2023},
  eprint = {2302.04972},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.04972},
}
Figure