Abstract
We study the application of differential privacy in hyper-parameter tuning, a crucial process in machine learning involving selecting the best hyper-parameter from several candidates. Unlike many private learning algorithms, including the prevalent DP-SGD, the privacy implications of tuning remain insufficiently understood or often totally ignored. Recent works propose a generic private selection solution for the tuning process, yet a fundamental question persists: is this privacy bound tight? This paper provides an in-depth examination of this question. Initially, we provide studies affirming the current privacy analysis for private selection is indeed tight in general. However, when we specifically study the hyper-parameter tuning problem in a white-box setting, such tightness no longer holds. This is first demonstrated by applying privacy audit on the tuning process. Our findings underscore a substantial gap between current theoretical privacy bound and the empirical bound derived even under strong audit setups. This gap motivates our subsequent investigations. Our further study provides improved privacy results for private hyper-parameter tuning due to its distinct properties. Our results demonstrate broader applicability compared to prior analyses, which are limited to specific parameter configurations.
Introduction
In Differentially Private (DP) machine learning, hyper-parameter tuning (HPT) is essential for achieving high model utility. Typically, this involves running a base algorithm, such as DP-SGD, across a range of hyper-parameters and selecting the candidate with the best validation performance. However, each run consumes a portion of the privacy budget ($\epsilon$). While recent "private selection" methods have improved upon naive composition, an open question remains: are these theoretical bounds truly tight? This paper investigates the gap between theoretical privacy guarantees and empirical leakage, particularly in "white-box" settings where the internal mechanics of the base algorithm are known.
Methodology
Privacy Auditing Framework
To measure the actual information leakage during HPT, the authors developed a game-based privacy audit. This framework uses "gradient canaries"—specifically crafted data points—to test if an adversary can distinguish whether a specific individual was included in the training set based on the final selected model and its validation score.
The $f$-DP Framework and White-Box Analysis
Standard $(\epsilon, \delta)$-DP analysis often provides loose bounds because it simplifies complex privacy curves. The authors instead utilize $f$-Differential Privacy ($f$-DP), which employs a trade-off function to describe the full spectrum of false positives and false negatives for an adversary. By leveraging the fact that DP-SGD is asymptotically $\mu$-Gaussian Differential Privacy ($\mu$-GDP), the authors derived a new, tighter accountant for private selection that avoids the lossy conversions of previous methods.
Key Insights
- Generic vs. Specific Tightness: While existing bounds are tight for general "black-box" algorithms, they are overly pessimistic for specific mechanisms like DP-SGD.
- The "Selection" Penalty: Empirical auditing reveals that in practical training scenarios, the additional privacy leaked by selecting the best model is often negligible compared to the cost of a single training run.
- Worst-Case Scoring: The paper proves that a "one-to-one" score function (where every model output maps to a unique validation score) represents the most privacy-leaking scenario. Functions that "collapse" different models to the same score preserve more privacy.
Results
The authors evaluated their approach on standard benchmarks including MNIST, CIFAR10, and SVHN. The results demonstrate a significant tightening of privacy bounds. For example, in one configuration, previous methods estimated a privacy cost of $\epsilon \approx 16.5$, while the new $f$-DP analysis revealed a true bound of $\epsilon \approx 3.3$.
These tighter bounds translate directly into better model utility. On the CIFAR10 dataset, the improved analysis allowed for more tuning trials within the same privacy budget, increasing test accuracy from 41.2% to 44.8%.
Conclusion and Future Work
This work highlights a substantial gap between current theoretical privacy bounds and empirical leakage in hyper-parameter tuning. By adopting the $f$-DP framework and white-box analysis, researchers can significantly reduce the "privacy tax" of HPT. Future research remains to be done on optimizing scoring functions to minimize leakage and extending these Gaussian-based results to other private mechanisms, such as those employing Laplace noise.
Summary updated