Differentially Private Anonymized Histograms

Ananda Theertha Suresh

Introduction

In many data science applications, analysts need to understand the distribution of behaviors without knowing who performed them. Security researchers study password frequency lists to evaluate risks, while sociologists analyze degree distributions to understand social networks. These datasets are typically represented as anonymized histograms, which provide the counts of various items without revealing the underlying labels (e.g., actual passwords or user IDs).

However, "anonymized" does not mean "private." If a dataset has a highly unique distribution, an attacker with auxiliary knowledge can re-identify individuals. While Differential Privacy (DP) offers a mathematical framework to hide individual contributions by adding noise, existing DP methods for histograms have historically fallen short. They are often too slow for massive datasets, suffer from high error rates, or rely on "approximate" privacy definitions that weaken over time.

This paper introduces PRIVHIST, the first "pure" differentially private mechanism for releasing anonymized histograms that achieves a near-optimal balance between privacy and data utility in sub-linear time.

The PRIVHIST Algorithm

The core innovation of PRIVHIST lies in how it manages data "sensitivity"—the maximum change a single user can cause to the output. The authors introduce several novel techniques to minimize this sensitivity and the resulting noise:

  • The Split Strategy: Instead of treating all counts uniformly, PRIVHIST splits the histogram into two regimes. For small counts, it analyzes prevalences (e.g., "How many passwords appear exactly 3 times?"). For large counts, it evaluates the raw counts themselves. This hybrid approach keeps the dimensionality of the noise-addition step small—roughly $O(\sqrt{n})$ instead of $O(n)$.
  • Cumulative Prevalences: To further reduce error, the algorithm adds noise to cumulative prevalences (e.g., "How many passwords appear 3 or more times?") rather than raw prevalences. This prevents small, localized errors from snowballing when calculating the total $\ell_1$ distance.
  • Smoothing (High-Privacy Regime): When privacy requirements are exceptionally strict ($\epsilon \le 1$), PRIVHIST employs a smoothing technique. By "blurring" the counts across nearby values before adding noise, the algorithm reduces the sensitivity of the data from $1/\epsilon$ to $1/\sqrt{\epsilon}$, yielding a significant theoretical improvement.
  • Isotonic Regression: Finally, a post-processing step uses isotonic regression to ensure the noisy output remains a valid, non-increasing histogram.

Key Insights and Theoretical Results

While primarily a theoretical paper focused on mathematical bounds, the implications for real-world datasets—such as the 70-million-point Yahoo password frequency corpus—are substantial.

  • Sub-linear Efficiency: Because the number of items ($n$) in real-world datasets can reach the tens of millions, traditional $O(n)$ algorithms are often too slow. PRIVHIST runs in $\tilde{O}(\sqrt{n})$ time by taking advantage of succinct histogram representations.
  • Pure vs. Approximate DP: Most previous work relied on $(\epsilon, \delta)$-DP, which allows for a tiny probability of a total privacy failure. PRIVHIST achieves "pure" $\epsilon$-DP, providing a much more robust and mathematically clean guarantee.
  • Near-Optimal Error Bounds: The paper proves that PRIVHIST achieves an $\ell_1$ error of $O(\sqrt{n} \cdot e^{-c\epsilon})$ for low privacy and $O(\sqrt{n/\epsilon})$ for high privacy. This matches theoretical lower bounds within small logarithmic factors.
  • Universal Utility: The output of PRIVHIST is highly versatile. It acts as a "plug-in" that can be used to estimate other symmetric properties—like Shannon entropy or support size (the number of unique items)—with near-optimal accuracy.

Limitations and Future Work

Despite its theoretical optimality in asymptotic complexity, the paper notes a few areas for future refinement. First, the constant factors in the error bounds (the $c$ in $e^{-c\epsilon}$) could potentially be tightened to improve practical, real-world performance. Second, while PRIVHIST is an excellent general-purpose tool, highly specialized DP algorithms still slightly outperform it for specific tasks like entropy estimation. Finally, extending the mathematical framework to account for zero-count histograms—items that could have appeared in the dataset but did not—remains a complex but valuable direction for future research.

Summary updated

BibTeX
@inproceedings{suresh2019differentially,
  author = {Ananda Theertha Suresh},
  title = {{Differentially Private Anonymized Histograms}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure