Estimating Numerical Distributions under Local Differential Privacy

Zitao Li, Tianhao Wang, Milan Lopuhaä-Zwakenberg, Ninghui Li, Boris Skoric

Collecting user data while respecting privacy is a tightrope walk. Local Differential Privacy (LDP) has become the industry standard for this, used by giants like Apple, Google, and Microsoft. In LDP, users perturb their own data before sending it to a central aggregator, ensuring that even a malicious server never sees the raw "truth."

However, most LDP research has focused on categorical data (e.g., "What is your favorite color?"). When it comes to numerical data (e.g., "What is your annual income?"), we often just treat numbers like categories or group them into bins. This paper, "Estimating Numerical Distributions under Local Differential Privacy," argues that we can do much better by exploiting the inherent order and structure of numbers.

TL;DR

The authors introduce the Square Wave (SW) mechanism and a post-processing algorithm called Expectation Maximization with Smoothing (EMS) to reconstruct numerical distributions under LDP. By treating numerical data as a continuous spectrum rather than discrete bins, their approach significantly outperforms existing methods in accuracy across various metrics like mean, variance, and range queries.

What Problem Does This Paper Address?

Existing LDP protocols usually fall into two camps:

  1. Categorical Frequency Oracles (CFOs): These treat every value as a distinct label. If you use this for age, the system doesn't "know" that 25 is closer to 26 than it is to 80.
  2. Mean Estimation: Protocols like Piecewise Mechanism (PM) are great at finding the average value but fail to reconstruct the entire shape of the distribution (the "density").

The common workaround is binning—dividing the numerical range into chunks. But binning is a "Goldilocks" problem: too many bins lead to overwhelming noise; too few bins lead to massive loss of detail (bias). This paper seeks a way to estimate the full distribution of numerical data without the pitfalls of simple binning.

Methods

The authors propose a two-part solution:

1. The Square Wave (SW) Mechanism

Instead of just reporting a noisy version of a single value, the SW mechanism defines a "near" range (a plateau) around the true value $v$.

  • If a value is within distance $b$ of the true value, it is reported with high probability.
  • If it is further away, it is reported with low probability. The result looks like a "square wave" on a graph. The authors analytically derive the optimal width ($b$) for this wave by maximizing the mutual information between the input and the output.

2. EMS: Expectation Maximization with Smoothing

The data received by the aggregator is incredibly noisy. To fix this, the authors use:

  • Expectation Maximization (EM): An iterative algorithm to find the "most likely" original distribution that would result in the observed noisy data.
  • Smoothing: EM alone tends to overfit to the noise, creating "spiky" results. The authors add a smoothing step (using binomial coefficients to average a value with its neighbors) to ensure the final distribution is realistic and smooth.

3. HH-ADMM

As a secondary contribution, they improve Hierarchical Histograms (HH). Standard HH often produces negative estimates for frequencies (which is physically impossible). The authors apply the Alternating Direction Method of Multipliers (ADMM) to enforce constraints: all estimates must be non-negative and must sum to 100%.

Datasets

The researchers evaluated their methods on four distinct datasets:

  • Synthetic Beta(5, 2): A smooth, mathematically defined distribution.
  • NYC Taxi Pickup Times: Real-world data representing times of day (mapped to a 0-1 range).
  • US Census Income: A "spiky" dataset because people tend to report income in round numbers (e.g., $50,000 vs $49,852).
  • SF Retirement Plans: Employee compensation data from San Francisco.

Key Insights and Ideas

  • Numerical Sensitivity: The core "aha" moment is that in a numerical domain, a report that is close to the truth is still useful. Categorical protocols throw this information away; the Square Wave mechanism preserves it.
  • The Smoothing Necessity: The authors found that standard EM is highly sensitive to its stopping point. Without smoothing, it eventually starts "learning the noise." The addition of a simple local smoothing step makes the algorithm stable and much more accurate.
  • Spiky vs. Smooth: There is no one-size-fits-all. While SW+EMS wins on smooth data, the HH-ADMM approach is superior for "spiky" data (like the Income dataset) because it doesn't try to force a smooth curve where one doesn't exist.

Key Results

The authors compared SW+EMS against state-of-the-art methods like HaarHRR and standard binning using metrics like Wasserstein distance (which measures how much "work" it takes to transform one distribution into another).

  • Consistency: SW with EMS consistently outperformed other methods across almost all datasets and privacy levels ($\epsilon$).
  • Range Queries: For queries like "What percentage of people earn between \$40k and \$60k?", SW+EMS was significantly more accurate than traditional hierarchical methods.
  • Mean/Variance: Even though SW+EMS is designed for distribution estimation, it performed as well as (and often better than) specialized protocols designed only for mean estimation.

Limitations and Future Work

  • Computational Complexity: The EM algorithm is iterative. While the authors optimized it to work on aggregated histograms (making it much faster), it is still more computationally intensive than simple linear estimation.
  • High-Dimensional Data: This paper focuses on single-dimensional numerical data. Extending "Square Waves" to multi-dimensional data (e.g., location coordinates) remains a challenge for future research.
  • Parameter Tuning: While the authors provide a formula for the bandwidth $b$, the smoothing step still relies on a neighborhood-averaging heuristic that might need adjustment for extremely irregular data.

Summary updated

BibTeX
@inproceedings{li2020estimating,
  author = {Zitao Li and Tianhao Wang and Milan Lopuhaä-Zwakenberg and Ninghui Li and Boris Skoric},
  title = {{Estimating Numerical Distributions under Local Differential Privacy}},
  booktitle = {SIGMOD},
  year = {2020},
  doi = {10.1145/3318464.3389700},
}
Figure