Abstract
Hyperparameter selection in differentially private (DP) machine learning often overlooks the privacy cost of the tuning process itself. This paper investigates "honest" hyperparameter selection, where the total privacy budget accounts for both tuning and training. We demonstrate that adaptive optimizers, specifically DPAdam, are significantly more robust to the coupling of learning rate and clipping norm compared to non-adaptive optimizers like DPSGD. This robustness allows for a reduced search space, effectively lowering the privacy overhead of hyperparameter selection. We also introduce DPAdamWOSM, a simplified adaptive optimizer that maintains performance while reducing computational complexity in high-noise regimes.
Introduction
Training models with Differential Privacy (DP) introduces unique challenges, primarily the need to clip gradients to a norm $C$ and add noise. These operations introduce hyperparameters that are notoriously difficult to tune. In "honest" DP, every evaluation of a hyperparameter candidate consumes part of the privacy budget $\epsilon$. This creates a catch-22: a wider search might find better parameters but leaves less budget for training, while a narrow search might result in suboptimal parameters. Most prior work ignores this cost, assuming optimal parameters are known a priori.
Methods
The study evaluates several strategies to minimize tuning overhead across diverse datasets, including ENRON, Adult, Gisette, and MNIST. The models tested include Logistic Regression (LR) and Two-Layer Neural Networks (TLNN). The investigation focuses on:
- Tuning Algorithms: Comparing specialized algorithms like Random Stopping (LT) against standard Moments Accountant (MA) composition.
- Theoretical Coupling: Analyzing the inverse relationship between learning rate ($\alpha$) and clipping norm ($C$) in non-adaptive optimizers.
- Optimizer Robustness: Evaluating how DPSGD, DPMomentum, and DPAdam behave across a grid of ($\alpha, C$) values.
- DPAdamWOSM: Introducing a simplified version of Adam without second moments, optimized for high-noise DP settings where the second-moment term stabilizes.
Key Insights
The Hidden Cost of Selection
Specialized selection algorithms like the LT algorithm incur a high "entry fee," often resulting in a 5x–7x blowup in $\epsilon$ compared to standard composition for a small number of candidates. However, once this fee is paid, testing additional candidates becomes relatively inexpensive. For very small candidate sets, standard MA composition remains more efficient.
Adaptive Optimizers as a Search Space Reducer
In non-adaptive optimizers like DPSGD, the learning rate and clipping norm are intrinsically coupled. A suboptimal choice in one cannot be compensated for by the other, necessitating a dense 2D grid search. Adaptive optimizers like DPAdam effectively "self-tune" the learning rate relative to the clipping norm, collapsing the search space from a 2D grid to a 1D line (tuning only $C$).
Results
DPAdam achieves accuracy comparable to perfectly tuned DPSGD but at a significantly lower total privacy cost. For example, on the Adult dataset, DPAdam reached peak accuracy with an $\epsilon \approx 1.9$, while an "honestly" tuned DPSGD required $\epsilon \approx 5.0$. Furthermore, DPAdam is robust across a wide range of clipping norms, maintaining high accuracy where DPSGD performance would fail. The proposed DPAdamWOSM matched the performance of the full DPAdam, confirming that the effective step size is the primary driver of Adam's success in DP.
Conclusion
Adaptive optimizers are essential for practical, honest private machine learning. By reducing sensitivity to hyperparameter coupling, they enable high-performance models with minimal privacy leakage during the tuning phase. While this study focused on smaller models, future work will explore these behaviors in larger architectures, moving toward the goal of "tuning-free" private optimization.
Summary updated