Lightweight Protocols for Distributed Private Quantile Estimation

Anders Aamand, Fabrizio Boninsegna, Abigail Gentle, Jacob Imola, Rasmus Pagh

Introduction

This paper introduces highly efficient, adaptive protocols for estimating quantiles (such as the median) in distributed datasets while maintaining strict user privacy. By shifting from "one-shot" non-adaptive queries to multi-round adaptive algorithms, the authors achieve optimal sample complexity in the Local Differential Privacy (LDP) setting. Furthermore, they prove a fundamental performance gap between adaptive and non-adaptive privacy models.

The Challenge: Efficiency vs. Privacy

In distributed data analysis—such as federated learning—it is often necessary to calculate statistics like the median across millions of user devices without ever accessing the raw data. The gold standard for this is Local Differential Privacy (LDP), where each user adds noise to their data before sending it to a central server.

The primary challenge is balancing efficiency with privacy. To get an accurate estimate of a quantile (within an error margin $\alpha$), traditional non-adaptive LDP methods—where the server asks everyone the same question simultaneously—require a massive number of users. This requirement grows significantly as the range of possible data values (the domain $B$) increases. The authors set out to determine if adaptivity—using answers from a first group of users to refine the questions asked to the next group—could drastically reduce the required user base.

Proposed Methods

The authors propose two primary adaptive protocols to tackle this challenge:

  1. DpBayeSS (Adaptive LDP): This algorithm utilizes a "Bayesian Screening Search." Instead of asking everyone a single question, the server proceeds in rounds. It maintains a "belief" (prior distribution) about where the quantile is located, queries a user to see if their value is above or below a certain threshold, and updates its belief based on the noisy response.
  2. The Innovation: In LDP, you typically cannot query the same user twice. As users are queried, the remaining "pool" changes, potentially biasing the results. The authors prove a "stability lemma" demonstrating that if the initial user pool is large enough, this bias remains negligible.
  3. Shuffle-DP Protocol: The authors also explore the Shuffle Model, where a trusted intermediate "shuffler" anonymizes user reports before they reach the analyzer. They combine adaptivity with shuffling to achieve the "best of both worlds": the privacy boost of shuffling and the efficiency of adaptive search.

These methods are compared against two baselines: DpNaiveNBS (a standard noisy binary search) and the Hierarchical Mechanism (the current state-of-the-art for non-adaptive LDP).

Key Insights and Theoretical Guarantees

  • The Adaptivity Gap: The paper proves a "fundamental separation" between approaches. Adaptive LDP protocols only need $O(\log B)$ users, whereas any non-adaptive protocol must use at least $\Omega(\log^2 B)$ users. For large domains (like 32-bit or 64-bit integers), this extra logarithmic factor represents a massive difference in required user participation.
  • Robustness to Adversarial Noise: A key theoretical breakthrough was proving that the Bayesian search algorithm remains robust even if the "coin flip" probabilities (user responses) change slightly over time. This bridges the gap between theoretical "statistical" settings and practical "empirical" settings where users are sampled without replacement.
  • Optimality: The authors provide a matching lower bound, proving that their adaptive LDP algorithm is mathematically optimal in the "high privacy" (low $\varepsilon$) regime, requiring only $O(\frac{\log B}{\varepsilon^2 \alpha^2})$ users.

Empirical Results

The protocols were evaluated using synthetic datasets designed to mimic real-world challenges, including Pareto-like Data (skewed data like income) and Uniform Data (random intervals ensuring the median isn't always centered). Experiments scaled up to $n = 10^7$ users and domain sizes $B$ up to $10^6$.

Performance comparison of DpBayeSS against baselines on Pareto-like and Uniform datasets.
  • Empirical Superiority: In head-to-head tests, DpBayeSS consistently achieved higher success rates and lower absolute error than both the Hierarchical Mechanism and Naive Binary Search.
  • Practical Performance: For a privacy budget of $\varepsilon = 1$ and a target error of $\alpha = 0.05$, DpBayeSS returned a "good" median with over 80% probability. In stark contrast, the non-adaptive Hierarchical Mechanism failed to produce a meaningful estimate with the same number of users.

Limitations and Future Work

  • Communication Rounds: While adaptive protocols are more "sample efficient" (requiring fewer users), they necessitate multiple rounds of communication. In high-latency networks, this sequential nature might be slower in wall-clock time than a single-round non-adaptive approach.
  • The Continuous Case: The paper focuses on discrete domains (integers 1 to $B$). While the authors suggest ways to adapt this to continuous data, they acknowledge that without specific assumptions about the data distribution, quantile estimation in a truly continuous domain is fundamentally impossible under LDP.
  • High Privacy Artifacts: The authors note a high logarithmic dependence on $1/\alpha$ in their non-adaptive lower bound. They suspect this is a mathematical artifact of the proof rather than an inherent property of the problem, suggesting refinement of this bound as an area for future theoretical work.

Summary updated

BibTeX
@inproceedings{aamand2025lightweight,
  author = {Anders Aamand and Fabrizio Boninsegna and Abigail Gentle and Jacob Imola and Rasmus Pagh},
  title = {{Lightweight Protocols for Distributed Private Quantile Estimation}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=zL6ljQvPzZ},
}
Figure