Differentially private anonymized histograms

Ananda Theertha Suresh

Abstract

This paper introduces PRIVHIST, the first "pure" differentially private mechanism for releasing anonymized histograms that achieves near-optimal utility while operating in sub-linear time. Anonymized histograms—collections of counts where labels are removed—are essential for analyzing sensitive data like password frequencies or social network structures. PRIVHIST addresses the limitations of previous methods, which often struggled with excessive noise, high computational costs, or weaker privacy guarantees. By splitting the data representation at a $\sqrt{n}$ threshold and utilizing cumulative prevalences, PRIVHIST provides a robust, efficient framework for privacy-preserving data sharing.

Introduction

An anonymized histogram is a fundamental data structure used to represent the distribution of values within a dataset without revealing the specific labels associated with those values. For example, a researcher might report that in a password dataset, "three passwords appear 100 times, and one appears 500 times," without disclosing the passwords themselves. These histograms are vital for security research and sociology, yet they are not inherently private. An attacker with auxiliary information can often de-anonymize individuals based on unique count patterns.

Differential Privacy (DP) offers a rigorous mathematical standard for mitigating these risks. However, applying DP to anonymized histograms has historically presented a trilemma between accuracy, computational efficiency, and privacy strength. Existing solutions often required adding significant noise to maintain privacy, ran in time proportional to the dataset size ($n$), or relied on "approximate" $(\epsilon, \delta)$-DP rather than the stricter "pure" $\epsilon$-DP. PRIVHIST bridges these gaps by providing a near-optimal, sub-linear time algorithm under pure DP.

The PRIVHIST Mechanism

The core innovation of PRIVHIST lies in its ability to manage the dimensionality of the data being "noised." The algorithm employs several technical strategies to maintain utility while ensuring privacy:

1. Dimensionality Reduction via Splitting

Adding noise to high-dimensional vectors typically destroys data utility. PRIVHIST avoids this by splitting the histogram into two distinct regimes based on a $\sqrt{n}$ threshold:

  • Small Counts ($r \le \sqrt{n}$): These are represented using prevalences (the number of labels that appear exactly $r$ times).
  • Large Counts ($r > \sqrt{n}$): These are represented as a direct list of counts.

By switching representations at this threshold, the algorithm ensures that the dimensionality of the data subjected to noise is always bounded by $O(\sqrt{n})$, regardless of the total number of unique items in the dataset.

2. Cumulative Prevalences and Smoothing

Rather than adding noise to raw prevalences, PRIVHIST operates on cumulative prevalences. This mathematical shift significantly reduces the total error when measuring the distance between the original and private histograms. Furthermore, in high-privacy regimes (where $\epsilon \le 1$), the algorithm applies a "smoothing" technique, spreading counts across neighboring values to reduce sensitivity and minimize the required noise injection.

3. Isotonic Regression

Post-processing is used to ensure the output is a valid histogram. Since adding noise can result in impossible values (such as negative counts or non-monotonic prevalences), PRIVHIST applies isotonic regression. This step finds the valid histogram that is mathematically closest to the noisy output, preserving the structural integrity of the data.

Key Insights and Results

Near-Optimal Utility and Efficiency

PRIVHIST achieves an $\ell_1$ error of approximately $O(\sqrt{n}/\sqrt{\epsilon})$ in high-privacy settings. This matches theoretical lower bounds within small logarithmic factors, proving that the mechanism is nearly as accurate as mathematically possible. Crucially, if the input is provided in a succinct format (listing only non-zero counts), PRIVHIST runs in $O(\sqrt{n})$ time, making it practical for massive datasets with millions or billions of entries.

Pure Differential Privacy

Unlike many efficient DP algorithms that settle for $(\epsilon, \delta)$-DP, PRIVHIST provides pure $\epsilon$-differential privacy. This offers stronger guarantees, particularly regarding "group privacy," ensuring that the privacy of small groups of individuals is protected more robustly than under approximate DP models.

Universal Utility for Symmetric Properties

The output of PRIVHIST serves as a "plug-in" estimator for any symmetric property of the underlying distribution. This includes metrics such as entropy, support size, or the Gini coefficient. The paper demonstrates that PRIVHIST can estimate these properties with near-optimal sample complexity.

Conclusion and Future Work

PRIVHIST represents a significant advancement in the field of privacy-preserving data analysis, proving that high utility and sub-linear efficiency are achievable under pure differential privacy. While the current work is primarily theoretical—focusing on rigorous proofs rather than empirical benchmarks—it establishes a new standard for releasing anonymized aggregate data.

Future research may explore the integration of PRIVHIST with more advanced estimators, such as Maximum Likelihood or Linear Programming-based methods, to further improve practical performance. Additionally, while PRIVHIST is an excellent general-purpose tool, specialized DP estimators may still offer marginal improvements for specific properties like entropy estimation.

Summary updated

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