Private Quantiles Estimation in the Presence of Atoms

Clément Lalanne, Clément Gastaud, Nicolas Grislain, Aurélien Garivier, Rémi GribonvalarXiv 2022

Abstract

We consider the differentially private estimation of multiple quantiles (MQ) of a distribution from a dataset, a key building block in modern data analysis. We apply the recent non-smoothed Inverse Sensitivity (IS) mechanism to this specific problem. We establish that the resulting method is closely related to the recently published ad hoc algorithm JointExp. In particular, they share the same computational complexity and a similar efficiency. We prove the statistical consistency of these two algorithms for continuous distributions. Furthermore, we demonstrate both theoretically and empirically that this method suffers from an important lack of performance in the case of peaked distributions, which can degrade up to a potentially catastrophic impact in the presence of atoms. Its smoothed version (i.e. by applying a max kernel to its output density) would solve this problem, but remains an open challenge to implement. As a proxy, we propose a simple and numerically efficient method called Heuristically Smoothed JointExp (HSJointExp), which is endowed with performance guarantees for a broad class of distributions and achieves results that are orders of magnitude better on problematic datasets.

Introduction

Differential Privacy (DP) has become the gold standard for sharing statistical insights while protecting individual privacy. Among the most fundamental tasks in data science is the estimation of quantiles—such as the median or the 90th percentile. These metrics are essential for understanding income inequality, analyzing sensor data, or binning features for machine learning models like Random Forests.

Currently, the state-of-the-art algorithm for estimating multiple quantiles simultaneously is JointExp. While highly effective for smooth distributions, this paper identifies a critical vulnerability: JointExp fails catastrophically when datasets contain "atoms"—large clusters of identical values. We propose a mathematically grounded solution, HSJointExp, which restores statistical consistency through a simple yet effective smoothing technique.

The Theoretical Foundation: JointExp and Inverse Sensitivity

A primary contribution of this research is establishing the theoretical link between JointExp and the Inverse Sensitivity (IS) mechanism. Previously viewed as an ad-hoc heuristic, we prove that JointExp is essentially a specific implementation of the IS framework. This connection allows us to move beyond empirical observation and provide formal proofs regarding the algorithm's behavior.

We demonstrate that while these algorithms are statistically consistent (converging to the true value as the sample size $n$ increases) for smooth, continuous distributions, they are fundamentally inconsistent when atoms are present.

The "Zero Volume" Trap

The failure of JointExp on atomic data stems from its reliance on the "volume" of intervals between data points. The algorithm samples quantiles with a probability proportional to the width of these intervals. In real-world datasets, identical values are common—for example, in census data where many respondents report exactly zero dividend income.

In these cases, the intervals between data points shrink to zero. This creates a "dead zone" where the algorithm effectively "gets stuck," unable to sample from intervals with no width. Consequently, even as more data is added, the estimation error remains high because the mechanism cannot "see" the true quantile if it resides within or near an atom.

Heuristically Smoothed JointExp (HSJointExp)

To address the atom problem, we propose HSJointExp. The method utilizes a "jittering" step: before processing, a tiny amount of independent noise (Uniform or Gaussian) is added to every data point.

While adding noise typically reduces utility in data analysis, here it acts as a smoothing kernel. By spreading atoms into narrow continuous neighborhoods, we ensure that every interval has a non-zero volume. This allows the private mechanism to function correctly without significantly shifting the underlying distribution. Crucially, HSJointExp maintains a practical computational complexity of $O(nm \log n + nm^2)$, making it suitable for large-scale applications.

Empirical Evaluation

We evaluated HSJointExp against standard JointExp and IS mechanisms across synthetic and real-world datasets:

  • Synthetic Mixed Distributions: By controlling the size and isolation of atoms, we confirmed that standard algorithms break down as the "peakedness" of the data increases.
  • Goodreads-Books: On smooth data like book ratings, HSJointExp performed identically to JointExp, showing no penalty for the smoothing step.
  • US 2021 Census: On highly atomic data (e.g., "Dividends"), HSJointExp reduced estimation error by several orders of magnitude.

Conclusion and Future Work

HSJointExp provides a robust, efficient solution for private quantile estimation in the presence of atoms, a common feature of real-world data that previously caused state-of-the-art methods to fail. While we provide a generic method for tuning the jitter scale ($\alpha$) based on the privacy budget ($\epsilon$) and sample size ($n$), further research into automated parameter optimization remains. Additionally, future work should compare the statistical utility of HSJointExp against recent recursive hierarchical approaches to further refine the landscape of private data analysis.

Summary updated

BibTeX
@misc{lalanne2022private,
  author = {Clément Lalanne and Clément Gastaud and Nicolas Grislain and Aurélien Garivier and Rémi Gribonval},
  title = {{Private Quantiles Estimation in the Presence of Atoms}},
  year = {2022},
  eprint = {2202.08969},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.08969},
}
Figure