Priv'IT: Private and Sample Efficient Identity Testing

Bryan Cai, Constantinos Daskalakis, Gautam Kamath

Introduction

In statistics, identity testing (or goodness-of-fit) asks a fundamental question: "Does this set of observations come from a known distribution, or is it significantly different?" This is a cornerstone of the scientific method, used in everything from clinical trials to genomic studies.

However, when data is sensitive—such as medical records or user behavior logs—standard statistical tests can leak information about specific individuals. Differential Privacy (DP) provides a mathematical framework to prevent this leakage, but applying it to identity testing is notoriously difficult. Naive approaches, like adding Laplace noise to every data count, tend to "drown out" the statistical signal. This is especially problematic in the small sample regime, where we have very few observations relative to the number of possible outcomes.

The challenge is to design a test that is both strictly differentially private and sample efficient, meaning it does not require a massive increase in data just to maintain privacy. The paper introduces Priv’IT, a novel algorithm that achieves near-optimal sample efficiency for private identity testing.

The "Filter-Then-Test" Methodology

To avoid the pitfalls of simply adding noise to the final statistic, Priv’IT employs a clever two-stage "filter-then-test" algorithm.

  1. The Filtering Step: The algorithm first checks if the data is "blatantly" different from the target distribution. It adds Laplace noise to the counts and rejects the null hypothesis if the deviation is massive. Because noise is added directly to the counts here, this step is inherently private.
  2. The Statistical Step: If the data passes the initial filter, the algorithm performs a more refined $\chi^2$-style test without adding noise to the counts.

The Secret Sauce: The authors prove that if a dataset survives the first filtering step, the sensitivity of the $\chi^2$ statistic becomes strictly bounded (it becomes $\epsilon$-Lipschitz). This "localization" of the search space allows the algorithm to release the test result privately by using the value of the statistic to bias a Bernoulli trial (a "coin flip") for the final accept/reject decision. This hybrid approach leverages the high-quality, un-noised signal for the final decision while maintaining a rigorous privacy guarantee.

Key Insights

  • Privacy for "Free": Theoretical analysis shows that when the privacy parameter $\epsilon$ is large enough (specifically $\epsilon = \Omega(\sqrt{\alpha})$), the number of samples needed for a private test matches that of a non-private one.
  • The Variance Trap: The paper demonstrates why the "standard" way of privatizing (adding Laplace noise to counts) fails. It blows up the variance of the test statistic, increasing sample complexity from $\sqrt{n}$ to $n^{3/4}$.
  • Sensitivity Control: The most innovative idea is using the private pre-filter to truncate the search space to a region where the main test statistic has low sensitivity.

Empirical Results and Performance

The authors evaluated Priv’IT using synthetic categorical distributions, including Uniformity Testing, the Paninski Construction (a "hard" distribution), and 2-Histograms (distributions where mass is concentrated on a small fraction of the support, serving as a proxy for large, sparse domains).

Priv’IT was compared against two recent benchmarks: MCGOF (Monte Carlo Goodness of Fit) and zCDP-GOF (Projected Goodness of Fit).

Performance on Sparse Data

On sparse data, such as 2-histograms, Priv’IT significantly outperforms competitors. Traditional methods struggle when the expected counts per bin drop below one, but Priv'IT maintains strong sample efficiency.

Sample complexity for identity testing on a 2-Histogram.

Performance under Approximate DP

Under approximate Differential Privacy ($\delta > 0$), Priv’IT requires consistently fewer samples than zCDP-based methods across a wide range of parameters. Furthermore, Priv’IT is highly memory-efficient compared to zCDP-GOF, which requires $O(n^2)$ matrix computations.

Sample complexity comparison under approximate Differential Privacy.

Theoretical Bounds

The authors prove a sample complexity of: $$\tilde{O}\left(\max \left\{ \frac{\sqrt{n}}{\alpha^2}, \frac{\sqrt{n}}{\alpha^{3/2}\epsilon}, \frac{n^{1/3}}{\alpha^{5/3}\epsilon^{2/3}} \right\} \cdot \log(1/\beta)\right)$$ This matches the non-private optimal rate in the first term and provides a graceful degradation for stricter privacy requirements.

Limitations and Future Work

While Priv'IT represents a significant step forward, the current work is strictly designed for categorical (discrete) distributions. Extending these "filter-then-test" techniques to continuous distributions or high-dimensional graphical models remains an open challenge. Additionally, while the paper provides a version with fewer parameters, the two-step process still requires careful calibration of the filtering threshold to balance Type I and Type II error rates. Finally, the theoretical bounds are worst-case; for many "natural" distributions, empirical performance may be even better than the theory suggests.

Summary updated

BibTeX
@inproceedings{cai2017priv,
  author = {Bryan Cai and Constantinos Daskalakis and Gautam Kamath},
  title = {{Priv'IT: Private and Sample Efficient Identity Testing}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
  url = {https://openreview.net/forum?id=SJ-zl2WubH},
}
Figure