Overview
This paper introduces Approximate Quantiles (AQ), a simple yet powerful recursive algorithm for calculating differentially private quantiles. By utilizing a divide-and-conquer approach, AQ achieves up to a 7x reduction in error and runs two orders of magnitude faster than previous state-of-the-art implementations. This breakthrough makes high-accuracy private data summaries practical for large-scale datasets.
The Challenge of Private Quantiles
Quantiles—such as the median or the 90th percentile—are fundamental tools for understanding data distributions. However, releasing exact quantiles can compromise individual privacy. For instance, publishing the exact median age in a small company might inadvertently reveal the birth date of a specific employee.
Differential Privacy (DP) provides a mathematical framework to share these statistics while protecting individuals. The primary challenge in DP is the "composition" problem: if you want to calculate 100 different quantiles, a naive DP approach would split your "privacy budget" 100 ways, leading to extremely noisy and practically useless results. Previous sophisticated solutions were either theoretically sound but too complex to implement efficiently, or practical but prone to high error when the number of requested quantiles ($m$) grew large.
The Approximate Quantiles (AQ) Algorithm
To overcome these limitations, the authors propose the Approximate Quantiles (AQ) algorithm, built on a recursive, tree-based structure:
- Divide and Conquer: Instead of estimating all quantiles simultaneously, AQ first estimates the "middle" quantile (the median of the requested quantiles) using the standard Exponential Mechanism.
- Data Splitting: The algorithm then splits the dataset into two halves: data points smaller than the estimated median, and points larger.
- Recursion: AQ recurses on these sub-problems. Because the data range shrinks at each level of the tree, the estimation error is naturally constrained and reduced.
- Logarithmic Privacy Loss: Crucially, any single data point only participates in $\log(m) + 1$ sub-problems (one at each level of the recursion tree). This allows the privacy budget to scale logarithmically with the number of quantiles, rather than linearly.
The authors also adapt the algorithm for Zero-Concentrated Differential Privacy (zCDP), a refined version of DP that allows for tighter privacy accounting and improved utility.
Experimental Setup
The researchers evaluated AQ against three major baselines (JointExp, AppindExp, and AggTree) using a mix of synthetic and real-world data:
- Synthetic Data: Uniform and Gaussian distributions (10,000 points each).
- Real-World Data: Goodreads book ratings and page counts (~11,000 points), and Adult Census Data containing working hours and ages (~48,000 points).
Key Results
Unprecedented Accuracy
When the number of quantiles is large, AQ's error is up to 7.14 times lower than the best existing baseline. By narrowing the interval at each step of the recursion, AQ keeps the DP noise in check. Furthermore, the paper proves that for uniform quantiles, the error scales at a rate of $O(\log m / \epsilon)$, a significant theoretical improvement.
Massive Speedups
While previous state-of-the-art methods like JointExp used complex $m$-tuple sampling, AQ relies on a simple recursive application of the standard single-quantile Exponential Mechanism. This simplicity drives a massive performance boost: AQ is roughly 100 times faster than JointExp and AppindExp. As the number of quantiles increases, AQ's runtime remains nearly flat, whereas competitors' runtimes climb steeply.
Limitations and Future Work
- Data Density: The utility of the algorithm depends on the minimum distance between data points. If data is extremely sparse or clustered in a way that creates very small intervals, the error bounds could weaken.
- Duplicate Points: The current analysis assumes no duplicate points. While adding small perturbations handles duplicates in practice, native handling of discrete or heavily duplicated data remains an area for future refinement.
- Non-Uniform Quantiles: While the algorithm works for any set of quantiles, the tightest theoretical bounds are currently for uniform distributions (e.g., deciles or percentiles). Future work could tighten the bounds for extreme "edge" quantiles.
Summary updated