Near-Optimal Generalized Private Testing

Anamay Chaturvedi, Monika Henzinger, Jalaj UpadhyayarXiv 2026

TL;DR

This paper introduces the Generalized Thresholding Mechanism (GTM), a near-optimal algorithm for generalized private testing in differential privacy (DP). GTM provides pure privacy guarantees while handling approximate DP inputs and adaptive thresholds, resolving key efficiency and accuracy bottlenecks in prior work. Crucially, the authors leverage GTM to enable the first private optimization algorithms in the continual observation setting by reducing them to standard batch algorithms.

What Problem Does This Paper Address?

Private threshold testing is a cornerstone of differential privacy, traditionally solved by the ubiquitous Sparse Vector Technique (SVT). SVT allows an analyst to privately check a stream of queries and halt when a query exceeds a specific threshold. However, SVT comes with a massive catch: it requires the query functions to have a known, bounded Lipschitz sensitivity (i.e., a strict limit on how much a single user's data can change the query's output).

In many modern machine learning applications—such as hyperparameter optimization (HPO) or testing black-box models—we do not have nice Lipschitz bounds. Instead, we interact with a sequence of randomized, black-box mechanisms that are already privately calibrated ($\varepsilon_t$-DP). This setup is known as generalized private testing.

Prior solutions to this generalized problem suffered from severe limitations: they either required inputs to be pure DP while only providing approximate $(\varepsilon, \delta)$-DP outputs, demanded an excessive number of data samples, or suffered from loose accuracy bounds that scaled poorly with the length of the query stream.

Methods

The authors introduce the Generalized Thresholding Mechanism (GTM) to overcome these challenges using several novel technical insights:

  1. Poissonized Sampling & Thinning: Instead of evaluating a black-box mechanism a fixed number of times, GTM draws the number of evaluations from a Poisson distribution. Thanks to the property of Poisson thinning, the number of successful outcomes also follows a Poisson distribution, which drastically simplifies and tightens the privacy accounting.
  2. Randomizing the Base Rate: To obfuscate the true success probabilities of the black-box mechanisms, GTM perturbs the Poisson mean parameter using a one-sided noise distribution constructed from exponential and Pareto distributions.
  3. The Flipped Variant: Standard threshold testing loses accuracy when the target threshold is close to 1. GTM elegantly solves this by adaptively "flipping" the test to monitor failure rates instead of success rates when thresholds are high, ensuring tight accuracy across the entire $(0,1)$ range.
  4. Purification via Randomized Response: To handle approximate $(\varepsilon_t, \delta_t)$-DP input mechanisms, GTM passes the outputs through a binary symmetric channel (randomized response). This "purifies" approximate DP inputs into pure DP inputs with minimal impact on accuracy.

Datasets

Not discussed in the paper. The work is entirely theoretical and focuses on proving mathematical guarantees and algorithmic reductions rather than evaluating on empirical datasets.

Key Insights and Ideas

  • Stability via DP itself: Instead of relying on data-level Lipschitz sensitivity, GTM exploits the distributional stability already guaranteed by the input mechanisms' own differential privacy properties.
  • Decoupling Stream Length from Privacy Loss: By utilizing a one-sided perturbation strategy, GTM ensures that the privacy loss remains invariant to the number of times a mechanism is evaluated, preventing privacy budgets from melting away on long streams.
  • A Black-Box Bridge from Batch to Continual Observation: The paper provides a meta-algorithm (BATCHTOCO) that uses GTM as a private monitor. This allows any standard batch DP optimization algorithm to be safely deployed in a continual observation (streaming) setting without needing to compute complex sensitivity bounds for the stream.

Key Results

  • Pure Privacy Guarantees: GTM achieves pure $\varepsilon$-DP for the testing mechanism, even when dealing with approximate $(\varepsilon_t, \delta_t)$-DP inputs—a significant upgrade over previous state-of-the-art methods that could only guarantee approximate DP.
  • Near-Optimal Accuracy: GTM avoids the severe accuracy degradation ($\beta/T$ scaling) found in alternative approaches based on correlated random dropping. The authors back this up with matching lower bounds, proving GTM's accuracy is near-optimal.
TABLE 1. Comparison of accuracy and sample complexity for generalized private testing. Expressions suppress lower-order terms. For our results, θ > 0 and γ ∈ (1, 2] are free parameters. For [LT19], ε0 ∈(0, 1) is an auxiliary parameter. †[LT19]’s guarantee is conditional on halting at step t and does not guarantee halting at pt = p∗, but at a value somewhat larger than p∗.
  • First-of-its-Kind Streaming Algorithms: Through its batch-to-continual reduction, the paper delivers the first privately sound algorithms under continual observation for fundamental problems like submodular maximization, weighted densest subgraph, and Max-Cut.
TABLE 2. Application of Theorem 42 to batch DP submodular maximization al- gorithms. OPT: batch optimum; OPTt: CO optimum at time t; k: cardinality or matroid rank constraint; κ, η > 0: user-defined parameters; β: failure probability. Monotone/non-monotone refers to argument-monotonicity; our framework addi- tionally requires data-monotonicity. For in-expectation batch guarantees, Corol- lary 44 is applied with small constant c > 0.

Limitations and Future Work

The primary limitation of this work is its purely theoretical nature. While the mathematical bounds prove near-optimality, the practical performance of GTM within real-world machine learning pipelines (like actual hyperparameter tuning loops) remains to be seen.

The authors note that testing the empirical performance of their framework on practical problems—especially those where worst-case theoretical bounds are traditionally pessimistic, such as the Densest $k$-Subgraph problem—is a promising direction for future research.

Summary updated

Abstract

In differential privacy (DP), the generalized private testing problem was introduced by Liu and Talwar (STOC 2019). Given a dataset $X \in \mathcal{X}$ and a sequence of black-box $\varepsilon_t$-DP mechanisms $M_t:\mathcal{X}\to\{+1,-1\}$, the analyst must accept the first mechanism whose success probability $p_t=\Pr[M_t(X)=+1]$ exceeds a given threshold $p^*\in(0,1)$, while achieving DP. Accuracy is measured by the gap between $p^*$ and a rejection threshold $\bar{p}$, such that with probability $1-β$ for all $t\geq1$, if $p_t\leq\bar{p}$, then $M_t$ is rejected, and if $p_t\geq p^*$, then it is accepted. This generalizes the standard private testing problem, whose solution, the Sparse Vector Technique, is ubiquitous in DP. We introduce the Generalized Thresholding Mechanism (GTM) for generalized private testing. For $\varepsilon>0$ and any sequence of $(\varepsilon_t,δ_t)$-DP mechanisms $M_t$, the GTM is pure $\varepsilon$-DP. For $θ>0$, $γ\in(1,2]$, and $β\in(0,1)$, $\bar{p}_t=\max(p^*/γΛ_t, 1 - γΛ_t(1-p^*))-δ_t/\varepsilon_t$ for $Λ_t=(5t\ln^3(t+2))^{(2+θ)\varepsilon_t/\varepsilon}(4/β)^{(3+θ+2/θ)\varepsilon_t/\varepsilon}$. With probability $1-β$, the number of evaluations of $M_t$ is at most $O((\ln(t/β)/(γ-1)^2)\max(Λ_t/p^*,(1-p^*)^{-1}))$ for all $t\geq 1$. Our lower bounds prove near-optimality of our accuracy and sample complexity guarantees. Via the GTM, we give a black-box reduction for DP optimization from the continual observation (CO) setting to the batch setting. This gives us the first DP-CO algorithms for many maximization problems. Further, the GTM permits an adaptive choice of acceptance thresholds $(p^*_t)_{t\geq1}$, addressing a challenge mentioned in prior work on using generalized private testing for hyperparameter optimization (Papernot and Steinke (ICLR 2022)).
BibTeX
@misc{chaturvedi2026near,
  author = {Anamay Chaturvedi and Monika Henzinger and Jalaj Upadhyay},
  title = {{Near-Optimal Generalized Private Testing}},
  year = {2026},
  eprint = {2605.21601},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.21601},
}
Figure