Differentially Private Identity and Equivalence Testing of Discrete Distributions

Maryam Aliakbarpour, Ilias Diakonikolas, Ronitt Rubinfeld

Statistical hypothesis testing is a cornerstone of modern science, used to determine if a new medical treatment works or if two datasets come from the same underlying population. However, when these tests are run on sensitive data—like genomic sequences or personal financial records—the results themselves can inadvertently leak information about individuals in the dataset.

In their ICML 2018 paper, "Differentially Private Identity and Equivalence Testing of Discrete Distributions," Maryam Aliakbarpour, Ilias Diakonikolas, and Ronitt Rubinfeld tackle this challenge head-on. They demonstrate that we can perform complex statistical tests with rigorous privacy guarantees while requiring only a tiny bit more data than traditional, non-private methods.

TL;DR

The authors develop the first sample-efficient, differentially private algorithms for identity and equivalence testing of discrete distributions. Their core finding is that differential privacy can be achieved with a "mild" additive increase in sample complexity, making privacy nearly "free" in many practical scenarios.

What Problem Does This Paper Address?

The paper focuses on two fundamental problems in distribution testing:

  1. Identity Testing (Goodness-of-Fit): Given samples from an unknown distribution $p$ and a description of a known distribution $q$, is $p = q$ or is $p$ far from $q$?
  2. Equivalence Testing (Two-Sample Testing): Given samples from two unknown distributions $p$ and $q$, are they the same?

The challenge lies in the sublinear regime. In many modern applications, the "domain size" (the number of possible values, like all possible DNA sequences of a certain length) is massive—much larger than the number of samples we can realistically collect.

Standard Differential Privacy (DP) techniques often struggle here. DP requires that the output of an algorithm doesn't change much if one person's data is added or removed. Many common statistical tests are highly sensitive to single data points, meaning a "naive" private version would require a massive amount of extra data to drown out the noise needed for privacy.

Methods

The authors take a modular approach, building private versions of "gold standard" non-private testers.

1. Reducing Identity to Uniformity

First, they show that any private uniformity tester (which checks if a distribution is perfectly flat) can be transformed into a private identity tester with only a constant factor increase in samples. This allows them to focus their innovation on the simpler problem of testing uniformity.

2. The Unique Elements Tester

For cases where the number of samples is much smaller than the domain size, they adapt a tester based on the number of unique elements in a sample. Because changing one sample can only change the count of unique elements by at most two, this statistic has "low sensitivity." Adding a small amount of Laplace noise makes it private without destroying its accuracy.

3. The Collision Tester (with a twist)

For larger sample sizes, the "unique elements" approach fails. Instead, researchers usually count collisions (how often the same value appears twice). However, the number of collisions is highly sensitive—if one element appears many times, changing it can swing the collision count wildly.

  • The Innovation: The authors add a pre-processing step. If any single element appears too frequently, the algorithm immediately rejects. This "clipping" bounds the sensitivity of the collision count, allowing them to add noise safely.

4. Equivalence Testing

For the two-sample problem, they adapt a chi-squared type statistic. They prove this specific statistic has naturally bounded sensitivity, meaning they can achieve privacy simply by adding Laplace noise to the final result.

Key Insights and Results

  • Privacy is Additive, Not Multiplicative: A major theoretical takeaway is that the "privacy cost" (the extra samples needed) is an additive term. If you already have enough samples for a standard test, you likely have enough for a private one.
  • Sensitivity Management is Key: The paper shows that you don't always need complex DP mechanisms. Sometimes, simply "clipping" or rejecting outliers in your data is enough to make a standard statistic safe for privacy.

Performance Breakthroughs

Their private identity tester significantly outperformed previous state-of-the-art methods (like Priv'IT), reaching near-zero error with much smaller sample sizes.

Performance comparison of private identity testers against Priv'IT

The "Free" Privacy Phenomenon

In experiments for equivalence testing, the sample complexity curves for the private and non-private versions were almost identical. This visualizes the paper's core claim: achieving privacy does not have to come at the cost of massive data requirements.

Sample complexity of private vs. non-private closeness testing

Limitations and Future Work

  • Discrete Focus: The work is strictly for discrete distributions. While many continuous problems can be discretized, a direct approach for continuous or high-dimensional structured data (like graphical models) remains an open area.
  • Worst-Case vs. Average-Case: The bounds provided are for "worst-case" distributions. In many real-world scenarios where distributions have more structure (like being "smooth"), even fewer samples might be required.
  • Pure vs. Approximate DP: The paper focuses on $(\epsilon, 0)$-differential privacy (Pure DP). Exploring $(\epsilon, \delta)$-differential privacy (Approximate DP) might yield even tighter sample bounds.

Summary updated

BibTeX
@inproceedings{aliakbarpour2018differentially,
  author = {Maryam Aliakbarpour and Ilias Diakonikolas and Ronitt Rubinfeld},
  title = {{Differentially Private Identity and Equivalence Testing of Discrete Distributions}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
}
Figure