Reliable estimation of differential privacy under selection biasReliable Estimation of Differential Privacy under Selection Bias
The authors point out that selecting the optimal MIA threshold on the same set of scores in DP auditing causes selection bias, and give several valid correction methods; on the Gaussian mechanism the false-positive rate of the invalid method reaches 19.4% (γ=5%).
- Differential privacy auditing uses MIA to estimate a lower bound on the privacy parameter, but many existing implementations select the optimal threshold on the same batch of attack scores, introducing selection bias that makes the lower bound statistically invalid and may falsely report a violation.
- The authors formalize DP auditing as a statistical estimation problem and introduce correction methods from the multiple comparisons literature: Bonferroni union bound, DKW inequality, holdout and K-fold, and extend them to the one-run protocol.
- On the Gaussian mechanism, the invalid Max method has a false-positive rate of up to 19.36% (γ=5%), while all valid methods are below the nominal level; recomputing six existing audits, the valid lower bounds are 5%–93% smaller than the originally reported values.
- The authors point out that all valid methods are conservative, with false-positive rates far below γ, and that only frequentist confidence bounds are considered; empirical coverage is not computed on real models, only the magnitude of the decrease in the lower bound is measured.
- Threat model
- The auditor uses MIA to estimate a lower bound on the privacy parameter of a DP mechanism and tests whether it exceeds the claimed upper bound; the attacker runs the mechanism multiple times under a multi-run protocol (with/without canary), or injects m randomly included canaries into a single training run under a one-run protocol; covering black-box, white-box and hidden state threat models.
- Evaluated models
- two-layer neural networkScatterNet CNNWRN-16-4logistic regression on WRN-28-10 featuressmall fully connected network
- Benchmarks
- Fashion-MNISTCIFAR-10Housing
- Metrics
- empirical miscoverageµ-GDP lower boundε lower bound
The researchers found that many existing differential privacy audit implementations introduce selection bias when running membership inference attacks (MIA), causing the estimated lower bounds on privacy leakage to be statistically invalid and overestimated; because most audits are not tight, this bias had previously gone unnoticed. The paper corrects this bias using tools from the statistics literature, outlines several correction methods and their respective advantages, and reanalyzes the results returned by existing audit implementations: without correction, audits violate the theoretical upper bound of differential privacy at a frequency up to four times the level allowed by their claimed confidence; after applying the correction, the resulting lower bounds regain statistical validity, with violation rates not exceeding the nominal level.
Paper analysis
What problem does this paper attempt to solve?
Existing DP audits select the optimal MIA threshold on the same set of scores, introducing selection bias and leading to statistically invalid lower bounds.
Core problem: many differential privacy (DP) auditing implementations introduce selection bias when running membership inference attacks (MIA), leading to statistically invalid, overestimated lower bounds on privacy parameters.
- Problem setting: Privacy auditing uses the empirical error rate of an MIA to estimate a lower bound on the true privacy parameter of a DP mechanism, and tests whether it exceeds the upper bound of the theoretical guarantee; in regulatory settings it is also used to check whether the deployed privacy guarantee meets the standard.
- Why it matters: The authors argue that flawed statistical evaluation may falsely report a violation for a correct mechanism, or misjudge the tightness of a guarantee; because most audits are not tight (the estimated lower bound is far below the theoretical upper bound), this bias had previously gone unnoticed.
- Shortcomings of existing practice: A common practice is to evaluate the MIA at multiple candidate thresholds and report the lower bound given by the best-performing threshold; the authors point out that choosing the threshold after seeing the attack results without correcting the confidence level is statistically invalid and overestimates the lower bound.
- Core observation: Auditing is essentially a parametric statistical estimation problem—the auditor observes attack results on a finite sample and must estimate a lower bound on the parameter at a specified confidence level; selection bias is exactly the problem that post-selection inference addresses.
- What the paper proposes: The authors adapt correction tools from the multiple comparisons literature (Bonferroni union bound, DKW inequality, holdout, K-fold) to the auditing pipeline, and systematically recompute the lower bounds of existing audits. The authors emphasize that they do not propose stronger attacks, the corrections can be layered on any existing MIA-to-lower-bound pipeline, and they do not derive new statistical results.
- Threat model (audit setting):
- Auditor's goal: estimate a valid lower bound on the mechanism's privacy parameter at confidence level 1−γ, or verify whether the claimed guarantee τ̃ is violated.
- Attack form: threshold-based MIA, which sets a threshold on the canary's score to decide whether it is in the training set.
- Protocols: multi-run (running the mechanism multiple times, with/without canary) and one-run (injecting m randomly included canaries in a single training run).
- Covers black-box, white-box and hidden state threat models.
What related research exists?
Related work is divided into three groups: DP auditing methods, how existing audits choose thresholds, and the multiple comparisons and post-selection inference literature.
DP auditing methods
- Ding et al. [18] were the first to use statistical tests to detect DP violations; Jagielski et al. [14] introduced auditing into machine learning, using MIA to derive empirical lower bounds on privacy parameters.
- One line of work improving audit quality relies on stronger attacks: calibrated-thresholds [19], LiRA [20], RMIA [21], quantile-based MIA [22]; another line improves the way lower bounds are converted, such as Bayesian methods [23] or µ-GDP [24, 25].
- Improving tightness for specific threat models: white-box gradient injection [14], hidden state [27], black-box adversarial initialization [28]; one-run auditing [29] and its f-DP extension [30], federated learning adaptation [31], white-box improvements [32]; zero-run methods [33, 34].
Threshold selection in existing audits
- The paper points out that [23, 25, 27, 28, 35] appear to report the threshold producing the best lower bound without correction; one-run audits [29, 30] select the number of guesses that maximizes the lower bound, with a similar problem.
- [14, 19, 36–39] avoid this problem by selecting the threshold on a separate split of the data; [26, 34, 40] do not clearly state how the threshold is selected; [32, 41] do not involve threshold selection and are unaffected.
Multiple comparisons and post-selection inference
- The statistics literature has long pointed out that selecting the reported quantity from multiple candidates using the same data invalidates inference, and that confidence intervals have nominal coverage only for a pre-fixed parameter [42, 43].
- Bonferroni correction [43] controls the family-wise error rate, requires no assumptions but may be conservative; other methods control the false discovery rate [44] and the false coverage rate [45].
- Post-selection inference generalizes to arbitrary data-driven selection: some methods are simultaneously valid for all possible selections [17], others condition on the selection event [46, 47]; the simplest valid method is data splitting [48], which requires no assumptions but wastes samples.
Baselines and benchmarks: The paper recomputes the lower bounds of six existing audits as comparisons—Jagielski et al. [14] (Fashion-MNIST), Nasr et al. [25] (CIFAR-10), Steinke et al. [29] and Mahloujifar et al. [30] (CIFAR-10), Annamalai & De Cristofaro [28] (CIFAR-10), Cebere et al. [27] (Housing)—and additionally evaluates the empirical false-positive rate of each method on a synthetic Gaussian mechanism.
The authors position this paper as: not proposing stronger attacks and not tightening audits, but applying existing multiple comparisons tools to a previously unused setting to guarantee the statistical validity of lower bounds at the claimed confidence level.
How does the paper address this problem?
DP auditing is formalized as a statistical estimation problem, using multiple-comparison tools to correct for the bias introduced by threshold selection.
Overall approach: formulate DP auditing as a parametric statistical estimation problem—the empirical error rate of the MIA is converted via a confidence upper bound into a lower bound on the privacy parameter; then tools from the multiple comparisons literature are used to ensure that the lower bound remains valid at the claimed confidence level after selection among multiple thresholds.
Auditing framework and formalization
- Adopts the formalization of Annamalai et al. [50]: the auditing algorithm Aud takes as input a mechanism M, hyperparameters Λ and a confidence level 1−γ, and outputs a lower bound on the privacy parameter τ; if the lower bound exceeds the claimed value τ̃, a violation of the guarantee is declared at confidence 1−γ.
- Threshold-based attack Aη(Θ,D,x)=1{s(Θ,D,x)≥η}: a score above threshold η is judged as a member; attack performance is measured by the Type I error rate αη (FPR) and Type II error rate βη (FNR).
- The DP guarantee constrains the (αη, βη) trade-off achievable by any test; auditing takes a confidence 1−γ/2 upper bound on each of the two error rates, combines them via a union bound to obtain overall 1−γ, and then inverts to a lower bound on the privacy parameter. Under µ-GDP, µη = max{Φ⁻¹(1−αη) − Φ⁻¹(βη), 0} converts the error-rate upper bounds into a lower bound on µ (illustrated in Figure 1).
Multi-run protocol
- The mechanism is run independently n0 and n1 times on D0 = D and D1 = D∪{x}, respectively, yielding two sets of scores; the two types of error counts follow Binomial distributions, and the empirical error rates are their Monte-Carlo averages.
- This protocol requires multiple training runs (e.g., DP-SGD) and is computationally expensive.
Existing methods and selection bias
- Fixed threshold + Clopper-Pearson: η is fixed in advance, and a one-sided CP upper bound is used for each error type; statistically valid but may select a suboptimal threshold, giving a looser lower bound.
- Holdout: one part of the data is used to select the optimal threshold and the rest to compute the bound; valid but wastes samples, and the threshold estimate itself is noisy.
- Optimal threshold (invalid): select the threshold that maximizes the lower bound on the same set of scores and directly apply the CP interval; the authors point out that this overfits sampling noise, so the lower bound no longer meets the claimed confidence level, and note that [25, 27–30, 35] use this practice.
Three valid correction methods
- Bonferroni union bound: a grid of m thresholds is fixed in advance, and each threshold uses a CP upper bound at confidence 1−γ/2m; this guarantees simultaneous validity over the whole grid, so a threshold can be chosen afterward. The cost is that the larger the grid, the looser each bound.
- DKW inequality: gives a threshold-independent uniform upper bound on the empirical CDF, αη ≤ α̂η + √(ln(2/γ)/2n0) holding simultaneously for all η∈R; no preset grid is needed and it is distribution-free, but the interval width is independent of η and it is unusable in very low or very high FPR regions (Figures 2, 4).
- K-fold: scores are split into K folds, the threshold is selected on one fold and the bound computed on the remaining K−1 folds, yielding K valid lower bounds, each tested at level γ/K, and the largest is taken; experiments use K=5. The authors state that this method has not previously been used in privacy auditing.
One-run protocol
- m canaries are injected in a single training run, each randomly included with probability Bernoulli(0.5); the attack guesses the k+ largest scores as "in" and the k− smallest as "out" by rank, with a fixed number of guesses rη.
- Because all canaries share the same model, the scores are correlated and the CP bound cannot be applied directly; the bound of Steinke et al. [29] (Proposition 4) does not depend on correlation between scores.
- The same selection bias appears in "choosing the number of guesses afterward"; fixed number of guesses, union bound, holdout and K-fold all apply, while DKW does not apply because it requires independent samples.
What experiments did the paper conduct?
The false-positive rate of each method is measured on the Gaussian mechanism, and the lower bounds of six existing audits are recomputed: the invalid method has a false-positive rate of up to 19.36%, and the valid lower bounds shrink by 5%–93%.
Experimental setup
- Synthetic experiments: Gaussian mechanism, scores follow N(0,1) under H0 and N(µ,1) under H1, the threshold method is the optimal test, and the true parameter is µ; µ∈{0.5,1,2,4}, samples per hypothesis n∈{10²,10³,10⁴}, 10,000 independent audits per cell, confidence level 1−γ=95% (Appendix Table 6 additionally has 99%).
- Recomputing existing audits: the main experiments of six papers are selected, only the lower-bound computation is replaced, and the rest of the audit procedure is kept as is; each result is averaged over 16 seeds, with ± being 1 standard deviation.
- Audits and protocols recomputed: Jagielski et al. [14] (Fashion-MNIST two-layer network, ClipBKD canary, 1−γ=0.99, multi-run); Nasr et al. [25] (CIFAR-10 ScatterNet CNN white-box, 1−γ=0.95); Steinke et al. [29] and Mahloujifar et al. [30] (CIFAR-10 WRN-16-4 white-box one-run, m=5,000 canary); Annamalai & De Cristofaro [28] (CIFAR-10 last-layer fine-tuning black-box, 500 models per hypothesis); Cebere et al. [27] (Housing fully connected network hidden state, AGC-R, 5,000 runs per audit).
- Metrics: empirical false positive rate (the proportion of audits whose lower bound exceeds the true parameter; a valid method should be ≤ γ); privacy parameter lower bound ε or µ.
- Compared methods: Max (invalid post-hoc selection of the optimal threshold/guess count), Fixed, Union (Bonferroni), DKW, Holdout, K-fold (K=5).
Main results
Table 1: Empirical false positive rate (%) of the µ-GDP lower bound on the Gaussian mechanism, 1−γ=95%, 10,000 audits per cell; bold indicates exceeding γ=5%.
Swipe horizontally to read the table
µ n Max (invalid) Fixed Union DKW Holdout K-fold 0.5 10⁴ 13.44 0.29 0.00 0.07 0.37 0.06 1 10⁴ 16.42 0.18 0.00 0.02 0.26 0.06 2 10⁴ 19.36 0.24 0.00 0.00 0.42 0.11 4 10⁴ 15.34 0.15 0.00 0.00 0.32 0.05 - The authors note that the invalid Max exceeds the nominal level γ=5% in almost all settings with n≥10³, and the false positive rate rises as n increases, up to 19.36% (µ=2, n=10⁴), nearly four times the nominal level.
- All valid methods are below the nominal level in all settings; the authors also note that they are far below γ, indicating conservativeness.
- Exception: at n=100, the false positive rate of Max can also be below γ (e.g., 0.00% at µ=4); the authors explain that in this case the lower bound for that particular experiment may still be valid, but validating it requires repeating the experiment many times, which is too costly.
Recomputing multi-run audits (Table 3)
- Jagielski et al. [14]: the original method (holdout variant) was already valid; after switching to K-fold the lower bound improves, from 0.15±0.03 to 0.20±0.04 at εth=1 (+40%), and +16% at εth=8.
- Nasr et al. [25]: the original Max method is invalid; the best valid method (DKW) reduces the lower bound from 0.54±0.62 to 0.01±0.02 at εth=1 (−93%), and −15% at εth=16. The authors state that at low εth a large part of the originally reported lower bound is not supported at the claimed confidence level.
Recomputing one-run and tight black-box audits (Tables 4, 5)
- Steinke et al. [29] (one-run): the best valid method's lower bound is 34% smaller at εth=1 and 13% smaller at εth=8; Mahloujifar et al. [30]: −33% (εth=1) to −15% (εth=8), and after correction its lower bound is still tighter than Steinke et al.'s.
- Annamalai & De Cristofaro [28] (black-box): the best valid method's lower bound is 74% smaller at εth=1 and 12% smaller at εth=10.
- Cebere et al. [27] (hidden state): the correction has a smaller effect, from −32% (εth=1) to −5% (εth=24).
Other ablations and analyses
- Gaussian experiments at confidence level 1−γ=99% (Appendix Table 6): the Max false positive rate is at most 2.97% (µ=2, n=10⁴), still exceeding γ=1%; all valid methods are below the nominal level.
- Trade-offs between methods (Figure 4, µ=2, n0=n1=2000): the upper-bound curve of the invalid Max is below that of the other methods; DKW's upper bound exceeds the random-response curve 1−α in the very low/very high FPR regions and is unusable.
- Full six-method comparison (Appendix Table 7): in multi-run audits DKW and K-fold give the best lower bounds, and in one-run they are Holdout and K-fold (DKW is not applicable).
- The authors state that no single valid method dominates in all experiments; K-fold is the best or second best in each group of experiments, and its variance is lower than holdout's in most settings.
What are some points that can be further explored?
The authors note that all valid methods are conservative and consider only frequentist confidence bounds; tighter valid lower-bound methods are a future direction.
Limitations and future directions noted by the authors
- All valid methods are conservative (Section 7.3): in Table 1, the false positive rates of all valid methods are far below γ, not fully "using" the significance level; the authors state that tighter valid lower bounds exist and new methods could be developed to find them.
- Empirical coverage not computed on real models (Section 7.3): validating coverage requires repeating experiments dozens of times, which is too costly; therefore, for real-model experiments only the magnitude of the lower-bound decrease after applying valid methods is measured.
- Only frequentist confidence bounds considered (Section 7.3): Bayesian credible intervals [23] are left for future work.
- Future directions (Section 8): since all valid methods are conservative, developing tighter lower-bound methods is a natural future direction.
- Practical recommendations (Section 7.2): the authors recommend that future audits select a valid threshold-selection method before seeing the scores and report it explicitly; when the best method for a particular problem is unknown, K-fold is a reasonable default choice.
Experimental coverage
- Synthetic experiments cover only the Gaussian mechanism and the optimal attack, µ∈{0.5,1,2,4}, n∈{10²,10³,10⁴}, confidence levels 95% and 99% (Table 1, Table 6).
- Six existing audits are recomputed, covering multi-run, one-run, tight black-box and hidden state settings, with datasets Fashion-MNIST, CIFAR-10, Housing (Tables 3–5, Appendix A).
- Each recomputed result is averaged over 16 seeds; each cell of the synthetic experiments has 10,000 audits.
- The paper does not report the empirical coverage of each method on real models (the authors state this was not done due to cost).
- The paper does not evaluate Bayesian estimation methods; the authors explicitly leave this for future work.
Summarize the main content of the paper
Selecting the optimal MIA threshold after the fact in DP auditing causes selection bias; the authors correct it with multiple comparisons tools and recompute six existing audits to quantify the impact.
An analysis paper on the statistical validity of differential privacy auditing. The authors find that many existing audits select the MIA threshold (or the number of guesses in one-run) that maximizes the lower bound on the same set of attack scores; this data-driven selection introduces bias, so that the reported lower bound is no longer valid at the claimed confidence level.
- Method: The audit is formalized as a statistical estimation problem, and four valid methods are introduced from the multiple comparisons literature—Bonferroni union bound, DKW inequality, holdout, K-fold (K=5)—which can be layered on any existing MIA-to-lower-bound pipeline; DKW does not apply to the one-run protocol.
- Synthetic experiments: On the Gaussian mechanism under the optimal attack, the empirical false-positive rate of the invalid Max method rises with sample size, reaching up to 19.36% (µ=2, n=10⁴, γ=5%, Table 1), close to four times the nominal level; all valid methods are below γ.
- Recomputing existing audits: The lower bounds of six papers shrink by 5%–93% after correction with valid methods (Tables 3–5); Nasr et al. [25] white-box audit at εth=1 shrinks by 93%, and Annamalai & De Cristofaro [28] black-box audit at εth=1 shrinks by 74%.
- Positive result: For Jagielski et al. [14], which was already valid, switching to K-fold threshold selection can raise the lower bound by up to 40% (εth=1).
- Authors' conclusion: Under invalid selection, a correct implementation may be falsely reported as violating in up to one fifth of audits, rather than the one twentieth implied by the confidence level; existing invalid lower bounds should not be dismissed wholesale—they remain informative leakage estimates but cannot be used as certified lower bounds.
- Authors' recommendation: Auditors should choose a valid selection method before seeing the scores and report it explicitly; K-fold is best or second best in every set of experiments and is a reasonable default. All valid methods are conservative, and tighter valid methods are a direction for future work.
Related papers
- Auditing Private PredictionAnalysis / interpretabilityarXiv
Show 3 more papers
- Explainable Federated Learning via Global-Local Attribution AlignmentAnalysis / interpretabilityICML 2026