The Role of Adaptive Optimizers for Honest Private Hyperparameter Selection

Shubhankar Mohapatra, Sajin Sasy, Xi He, Gautam Kamath, Om Thakkar

Abstract

Training differentially private (DP) machine learning models requires tuning hyperparameters, a process that often consumes a significant portion of the privacy budget. This paper demonstrates that adaptive optimizers, such as DPAdam, drastically reduce the need for extensive hyperparameter searches compared to DP-SGD, thereby preserving the privacy budget. We analyze the intrinsic coupling between learning rate and clipping norm in DP-SGD and introduce DPAdamWOSM, a simplified optimizer that matches DPAdam's performance without the computational overhead of second-moment tracking. Our results across multiple datasets show that adaptive methods enable high-accuracy private modeling with substantially lower privacy loss.

Introduction

Differentially private (DP) training is essential for protecting sensitive data, but it introduces complexities in model optimization. Specifically, the addition of noise and gradient clipping creates a trade-off between privacy and utility. A critical but often overlooked aspect of DP machine learning is "honest" private hyperparameter selection: the privacy cost of searching for optimal parameters must be accounted for in the total budget ($\epsilon$). This paper investigates how the choice of optimizer influences the size of the search space and the resulting privacy expenditure.

Privacy Accounting for Hyperparameter Selection

When selecting hyperparameters privately, researchers must choose an accounting method to track the cumulative privacy loss. We compare the theoretical Liu-Talwar (LT) random stopping algorithm with standard Moments Accountant (MA) composition. While LT is designed for private selection, it incurs a significant initial privacy "blowup." For small to moderate search grids (ranging from 14 to 175 candidates depending on dataset size), standard MA composition provides tighter privacy guarantees than the specialized LT algorithm.

Privacy accounting comparisons: (Left) Final epsilon for LT vs. MA; (Middle) Impact of the gamma parameter; (Right) The candidate threshold where MA composition becomes more efficient than LT.

The Coupling Problem in DP-SGD

A major challenge with DP-SGD is the mathematical coupling between the learning rate ($\alpha$) and the clipping norm ($C$). Our analysis reveals that the optimal learning rate is inversely proportional to the clipping norm ($\alpha_{opt} \propto 1/C$). This dependency necessitates a dense 2D grid search to find the best configuration, which rapidly depletes the privacy budget. The following heatmap illustrates this diagonal trend, highlighting the inefficiency of non-adaptive tuning in private settings.

Heatmap of model performance across learning rates and clipping thresholds, demonstrating the diagonal coupling that necessitates extensive 2D grid searches in DP-SGD.

Adaptive Optimizers as a Solution

Adaptive optimizers like DPAdam mitigate the coupling problem by automatically adjusting the learning rate. We find that standard non-private defaults for DPAdam ($\alpha=0.001, \beta_1=0.9, \beta_2=0.999$) transfer effectively to the DP regime, allowing practitioners to tune only the clipping norm. This reduces the search space from approximately 40 candidates to just 4.

Furthermore, we observe that when DP noise dominates the gradients—a common occurrence as models converge—the second-moment term in DPAdam stabilizes. This insight leads to the proposal of DPAdamWOSM (DPAdam Without Second Moments), a streamlined optimizer that achieves the performance of DPAdam with reduced computational complexity by using a static effective step size.

Results and Discussion

Empirical evaluations on MNIST, Adult, ENRON, and Gisette datasets confirm the superiority of adaptive methods. On the Adult dataset, DPAdam achieved accuracy comparable to DP-SGD while requiring a privacy budget of only $\epsilon = 1.91$, versus $\epsilon = 5.01$ for DP-SGD. Similar trends were observed on MNIST, where DPAdam reached peak accuracy at $\epsilon = 1.14$ compared to $\epsilon = 3.01$ for DP-SGD. DPAdamWOSM consistently matched the performance of standard DPAdam, validating the noise-dominance theory.

Conclusion

Adaptive optimizers are a powerful tool for "honest" private machine learning. By shrinking the required hyperparameter search space, they allow for significant privacy savings without sacrificing model utility. Future work will explore the potential for completely tuning-free private optimizers based on the convergence properties of adaptive methods in high-noise regimes.

Summary updated

BibTeX
@inproceedings{mohapatra2022role,
  author = {Shubhankar Mohapatra and Sajin Sasy and Xi He and Gautam Kamath and Om Thakkar},
  title = {{The Role of Adaptive Optimizers for Honest Private Hyperparameter Selection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i7.20749},
}
Figure