Report Noisy Max Mechanism
- The paper introduces Report Noisy Max, a mechanism that adds Laplace or exponential noise to select the highest query result while ensuring ε-differential privacy.
- It extends traditional methods by releasing the gap between the top two noisy scores, thereby enabling enhanced post-selection inference without additional privacy cost.
- The work also addresses secure finite-precision implementations to mitigate side-channel leakage, ensuring robust performance in practical differential privacy workflows.
Report Noisy Max is a canonical selection mechanism in differential privacy that enables the private selection of the index (or indices) of the largest among a set of sensitive queries by adding noise to each candidate score before taking the maximum. The mechanism, both in its Laplace and exponential noise instantiations, underpins numerous differentially private data analysis workflows. A key advancement is the “Noisy-Max-with-Gap” variant, which returns not only the maximizer index but also the noisy gap between the first and second place, enabling post-selection inference improvements at no additional privacy cost. Implementations increasingly focus on secure finite-precision arithmetic to prevent side-channel leakage from floating-point artifacts.
1. Classical Report Noisy Max: Mechanisms and Guarantees
Report Noisy Max is defined for real-valued queries of global -sensitivity evaluated on a sensitive database . The mechanism can be instantiated with either Laplace or exponential noise. In the Laplace version, to achieve pure -differential privacy for single-maximum selection, add i.i.d. noise to each query result: then return (Ding et al., 2019, Ding et al., 2020). In the exponential variant, use , returning the argmax of noisy scores. The privacy analysis uses the “randomness alignment” framework, showing that at most one coordinate in the noise vector is shifted by the global sensitivity, bounding the privacy loss to per the DP definition.
The Report Noisy Max mechanism is closely related to the Exponential Mechanism: the probability of selection is proportional to , yielding expected error in the selected score (Ding et al., 2021).
2. Free Gap Information: Mechanism and Privacy
The Noisy-Max-with-Gap variant (“Report Noisy Max with Gap”) outputs, in addition to the index , the gap between the largest and second largest noisy queries. Formally:
- For each , draw .
- Compute .
- Let , .
- Output .
A central finding is that releasing does not incur extra privacy loss. This follows from the post-processing invariance of differential privacy— is a deterministic function of the internal noise and output index, which by construction is -DP (Ding et al., 2019, Ding et al., 2020). A detailed randomness alignment shows only one coordinate of noise shifts by at most , maintaining the density ratio bound and DP guarantee.
This result generalizes: returning the gaps for the top selections, i.e., the top- indices and corresponding differences with -st, is also -DP with appropriate noise scaling () (Ding et al., 2023).
3. Statistical Utility and Post-Processing Improvements
The core utility innovation of free gap reporting is that the released gap can be combined with subsequent noisy measurements of the selected queries to yield substantially lower mean-squared error (MSE) in count estimation tasks. Standard pipelines divide the privacy budget: half is used for private selection, half for new noisy measurements of via Laplace mechanisms. With Noisy-Max-with-Gap, both and the runner-up can be estimated via the noisy gap, as the noise of both selected queries is known. The two estimates—direct measurement and inference from the gap—are independent and unbiased, so they can be linearly combined (via BLUE weights) to reduce variance:
for Laplace noise in the case (asymptotically 50% reduction), and up to 66% for exponential/gap distributions or larger (Ding et al., 2020). Experimental evaluations on datasets (BMS-POS, Kosarak, T40I10D100K) confirm MSE reductions near this theoretical optimum.
4. Connections to Other Mechanisms and Structural Equivalence
The Report Noisy Max mechanism with exponential noise is mathematically equivalent to the “permute-and-flip” mechanism and the Exponential Mechanism. Exact distributional equivalence is established by constructing intermediate algorithms (e.g., flipping, truncation, coupling arguments) that demonstrate stepwise identity between the random processes in each (Ding et al., 2021). Thus, not only do these mechanisms yield identical selection distributions, but all privacy and utility guarantees are shared.
This equivalence provides theoretical sharpness: with probability , the chosen item’s score is within of the true maximum, and the expected additive error is .
5. Finite-Precision and Secure Implementations
Accurate implementation of the Noisy-Max-with-Gap mechanism in finite-precision environments requires avoidance of floating-point vulnerabilities that can leak sensitive information via side-channels. Attacks against standard floating-point-based inverse transform samplers for Laplace mechanisms have demonstrated loss of privacy due to mantissa nonuniformities (“Mironov’s attack”) (Ding et al., 2023). Secure implementations address this by:
- Rounding all inputs to integer multiples of a user-specified resolution .
- Generating noise via exact discrete samplers (discrete Laplace, two-sided geometric distributions).
- Performing all computations, including tie-breaking and gap calculation, in integer or rational arithmetic.
- Recursively refining noise and tie-breaking at progressively finer resolutions until ties are resolved.
This design ensures that, distributionally, the output of the secure discrete mechanism matches the ideal continuous process with post-processed rounding, and hence strict differential privacy is preserved even in adversarial environments.
6. Practical Considerations and Parameter Recommendations
Practical deployments should follow these guidelines for the secure and efficient report noisy max with gap:
- Use (for typical , e.g., ) for input and output rounding granularity (Ding et al., 2023).
- For top- selection, add (or equivalent discrete noise) to each score.
- Refine ties with tie‐refinement factor (e.g., ), which ensures rapid tie resolution in steps.
- Early pruning to restrict refinement steps to only those in the top- candidate set accelerates computation.
- Geometric samplers can be implemented with a small expected number ( 7–9) of uniform/Bernoulli calls per item, enabling practical execution for in sub-millisecond times (in compiled languages).
Downstream, free gaps support improved confidence intervals and budget reallocation: by quantifying the separation between the highest and second-highest noisy scores, users can decide whether further privacy budget spending is warranted (Ding et al., 2019, Ding et al., 2020).
7. Numerical Example
Let , and . Draw i.i.d. (say, ). Compute noisy scores ; the maximizer is index $1$ and the gap . If an independent subsequent Laplace(2) measurement of yields $9.2$, BLUE combination of the two gives an estimate substantially closer to $10$, cutting MSE by with no additional privacy cost (Ding et al., 2020).
Key references: (Ding et al., 2019, Ding et al., 2020, Ding et al., 2021, Ding et al., 2023).