Overview
Most differentially private (DP) algorithms for estimating quantiles require practitioners to know the data's range in advance. If these predefined bounds are loose, the resulting accuracy degrades significantly. This paper introduces Unbounded Quantile Estimation (UQE), a novel "guess-and-check" method that operates without predefined bounds. By leveraging a tighter privacy analysis for the widely used AboveThreshold mechanism, UQE provides highly accurate quantile estimates—especially for maximum values—on unbounded data.
The Problem with Bounded Differential Privacy
Differential privacy is the gold standard for protecting individual privacy in datasets, but it inherently requires adding noise to query results. The volume of this noise typically depends on the query's "sensitivity"—the maximum impact a single individual's data can have on the output.
For quantile estimation (such as finding the median or the 99th percentile), standard algorithms like the Exponential Mechanism require a fixed search range $[a, b]$. If the true range of the data is unknown, practitioners are forced to guess a very wide range to be safe. This "looseness" forces the algorithm to add massive amounts of noise, which destroys accuracy. This problem is particularly severe for "maximal" quantiles (like the maximum value), which are critical prerequisites for "clipping" data to privately calculate sums and means.
The UQE Approach
The authors propose Unbounded Quantile Estimation (UQE) to bypass the need for fixed ranges. Instead of selecting a value from a predefined interval, the algorithm performs a noisy, iterative "guess-and-check":
- Iterative Search: The algorithm starts at a known lower bound (e.g., 0 for non-negative data) and increases the candidate value by a small percentage (e.g., 0.1%) at each step.
- AboveThreshold Subroutine: At each step, UQE uses the
AboveThresholdmechanism to check if the number of data points below the current candidate exceeds the target quantile. - Halt and Output: The algorithm halts the moment the threshold is crossed, outputting the current candidate.
Key Technical Contributions
- Improved Privacy Analysis: The authors provide a generalized characterization of privacy loss for
AboveThreshold. They prove that for monotonic queries (where adding an individual can only move the count in one direction), privacy guarantees can be significantly tightened within the zero-Concentrated Differential Privacy (zCDP) framework. - Noise Flexibility: While
AboveThresholdtraditionally relies on Laplace noise, the authors demonstrate its compatibility with Gumbel and Exponential noise. In their tests, Exponential noise offered the lowest variance. - Fully Unbounded Setting: The method can handle data unbounded in both positive and negative directions by coordinating two calls to the mechanism.
Datasets
To validate UQE, the researchers evaluated it against state-of-the-art methods, including the Exponential Mechanism Quantile (EMQ) and Aggregate Tree methods.
The evaluation utilized both synthetic and real-world datasets:
- Synthetic Data: Uniform and Gaussian (Normal) distributions.
- Real-World Data: Book ratings and page counts (from Goodreads), as well as Census age and hours worked per week (from the UCI machine learning repository).
Key Insights and Results
The core advantage of UQE is its ability to stop early. AboveThreshold naturally handles unbounded data because it halts the moment it finds a "good enough" answer, remaining entirely agnostic to how much further the data range could extend. Furthermore, by proving that quantile queries are monotonic, the authors unlocked a "factor of 2" improvement in privacy budget efficiency, allowing for more search steps at the same privacy cost.
- Structure vs. Generality: As seen in the relative error comparisons, the Exponential Mechanism (EMQ) performs better on synthetic data (Uniform, Gaussian) because it assumes a structure that matches those clean distributions. However, UQE wins decisively on messy, real-world data (Book pages, Age, Work hours) because its unstructured approach is far more robust to outliers and unknown bounds.
- Maximal Quantiles: UQE significantly outperformed existing methods when estimating high quantiles (like the 99th percentile). Standard methods get "distracted" by loose upper bounds, while UQE does not.
- DP Sum Estimation: When UQE was used to determine the clipping threshold for a private sum, the resulting sum was substantially more accurate than those calculated using traditional quantile estimators.
- Efficiency: The algorithm is highly efficient, requiring only a single $O(n)$ pass to preprocess the data into a histogram-like structure. After this, each "guess" in the search takes only $O(1)$ time.
Limitations and Future Work
While UQE is highly effective, the authors note a few areas for future exploration:
- Parameter Tuning: The growth factor $\beta$ (determining how much the guess increases each step) was fixed at 1.001 for experiments. Future work could formally optimize this parameter based on dataset size and privacy budgets.
- Small Quantiles: The "start low and go up" approach is highly efficient for high quantiles but requires many steps to find very small quantiles (e.g., the 1st percentile). While inverting the data is a temporary fix, a more integrated bidirectional approach could be developed.
- Theoretical Noise Bounds: Empirical results favored Exponential noise, but a rigorous theoretical comparison between Gumbel and Exponential noise for
AboveThresholdremains an open question.
Summary updated