Private Hyperparameter Tuning with Ex-Post Guarantee

Badih Ghazi, Pritish Kamath, Alexander Knop, Ravi Kumar, Pasin Manurangsi, Chiyuan Zhang

Abstract

Traditional Differential Privacy (DP) often prioritizes a fixed privacy budget over utility, which can be problematic in real-world applications requiring specific performance thresholds. This paper introduces a "utility-first" framework for hyperparameter tuning that provides ex-post privacy guarantees. By leveraging correlated randomness and a novel selection mechanism, the authors demonstrate that the privacy cost of finding an optimal model is at most double the cost of running that model alone, regardless of the number of candidates.

Introduction

In standard DP, practitioners typically follow a "privacy-first" approach: they set a fixed privacy budget ($\epsilon$), run their algorithm, and hope the resulting model is useful. However, industrial requirements often demand a "utility-first" approach, where a model must meet a specific performance target (e.g., 90% accuracy) before it can be deployed.

A major challenge in hyperparameter tuning under DP is composition: every candidate configuration tested consumes a portion of the privacy budget. Standard methods to handle this either lead to excessive privacy leakage or are restricted to very simple algorithms. This work addresses these limitations by proposing a framework that works with complex pipelines like DP-SGD and provides a "privacy bill" calculated only after the results are obtained, rather than upfront.

Methodology

The central contribution of this work is a hyperparameter tuning mechanism that utilizes correlated randomness to bound privacy loss. Instead of the standard "doubling" method, which iteratively increases the budget and pays for every failed attempt, the proposed approach uses a technique inspired by the Sparse Vector Technique (SVT).

The core mechanism inspired by the Sparse Vector Technique (SVT) for private hyperparameter selection.

The mechanism, referred to as Hyperparameter Tuning with Random Dropping, operates through two key components:

  1. Correlated Randomness: A single threshold noise value $k$ is sampled initially and applied across all candidate configurations. This correlation is key to preventing the privacy cost from scaling linearly with the number of candidates.
  2. Random Dropping: Candidates are evaluated, and a selection is made based on whether they exceed the noisy threshold. This ensures that the privacy loss is dominated by the specific candidate released, rather than the total number of candidates explored.

The authors prove that if the selected model has a privacy cost $\epsilon_i$, the total ex-post cost of the entire tuning process is approximately $2\epsilon_i$. This framework is also extended to Rényi Differential Privacy (RDP), making it applicable to modern deep learning training workflows.

Experimental Evaluation

The authors evaluated the framework across several datasets and tasks to demonstrate its versatility:

  • Synthetic & Analytical: Power-law distributions and Reddit (webis/tldr-17) for user estimation.
  • Machine Learning: Twitter usage for linear regression, MNIST for digit classification, and Gisette for high-dimensional feature selection.

Key Results

  • Privacy Efficiency: On the Twitter dataset, the proposed algorithm achieved target utility with an average $\epsilon$ of 0.28, significantly lower than the doubling method (0.55) and Brownian motion (0.77).
  • Scalability: The algorithm consistently outperformed state-of-the-art tuning methods on MNIST and Gisette, finding models with lower privacy leakage.
  • Analytical Performance: For counting tasks on the Reddit dataset, the mechanism produced more useful estimates before exhausting the total budget compared to traditional noise-reduction methods.

Discussion and Key Insights

The most significant insight is the "free" search property: the privacy cost of high-budget models that are not selected is not fully paid. Because of the way randomness is correlated across candidates, the privacy loss is effectively tied to the outcome—a property derived from the SVT-inspired proof structure. This makes the framework "agnostic," allowing it to wrap around any existing DP mechanism, including DP-SGD.

Limitations and Future Work

While the factor of 2 increase in privacy budget is a significant improvement over standard composition, reaching a $1\times \epsilon$ cost remains an open challenge in the field. Additionally, while the Pure DP version has zero cost for failure, the RDP version incurs a small "null" cost even if no output is released. Future research aims to extend this framework to Zero-Concentrated Differential Privacy (zCDP) to provide even tighter bounds for Gaussian-based analytics.

Conclusion

This work provides a practical path for "utility-first" DP, allowing engineers to prioritize model performance while maintaining rigorous, ex-post privacy guarantees. Its generality ensures compatibility with state-of-the-art machine learning techniques, bridging the gap between theoretical privacy and real-world deployment needs.

Summary updated

BibTeX
@inproceedings{ghazi2025private,
  author = {Badih Ghazi and Pritish Kamath and Alexander Knop and Ravi Kumar and Pasin Manurangsi and Chiyuan Zhang},
  title = {{Private Hyperparameter Tuning with Ex-Post Guarantee}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=zjMd3yfyWv},
}
Figure