Differentially Private Equivalence Testing for Continuous Distributions and Applications

Or Sheffet, Daniel OmerNeurIPS 2024

Introduction

In statistical inference, "equivalence testing" (or closeness testing) asks a fundamental question: Do two sets of samples come from the same underlying distribution, or are those distributions significantly far apart?

While this problem is well-understood for discrete distributions (like rolling dice), continuous distributions (like sensor readings or physical measurements) present a massive hurdle for Differential Privacy (DP). In a continuous domain, changing a single data point by an infinitesimally small amount can technically create a "new" distribution with a high Total Variation distance. Furthermore, fundamental DP results show that even simple tasks—like releasing the median of a set of numbers—are impossible over infinite domains without making specific assumptions.

Existing non-private methods for continuous distributions usually involve "discretizing" the real line into buckets based on the data itself. However, in a DP setting, moving one data point can shift bucket boundaries entirely, causing a "sensitivity explosion" that destroys privacy. This paper introduces the first $(\epsilon, \delta)$-differentially private algorithm for testing equivalence between two continuous distributions, achieving sample complexity bounds that are nearly optimal compared to non-private baselines.

Methodology

The authors develop a private analogue to the state-of-the-art tester by Diakonikolas et al. Their approach overcomes the sensitivity explosion through a novel index-based discretization technique, working in two main stages:

1. Autocorrelation Testing

The algorithm first examines the statistics of adjacent pairs of sorted data points. Because this step inherently possesses low sensitivity, it is relatively straightforward to privatize by adding standard Laplace noise.

2. Randomized Discretization and Coupling

To handle the discretization of the real line without leaking excessive information, the authors abandon using data values to define bins and instead use sorted indices. By defining bins based on the rank of a data point rather than its coordinate, they transform a high-sensitivity problem into a manageable one.

Illustration of coupling between neighboring datasets $S$ and $S'$, demonstrating how index shifts affect bin boundaries.

To prevent a single point change from shifting every subsequent bin boundary, they introduce a Bernoulli trick: adding a Bernoulli(1/2) random variable to each bin-defining index. This allows them to "couple" two neighboring datasets such that, after a few random shifts, the bin boundaries eventually align. This clever alignment bounds the global sensitivity of the test.

3. Poisson Subsampling

Standard testing algorithms often require "fresh" samples at every step to maintain mathematical independence. To avoid the prohibitive privacy cost of drawing new data, the authors use Poisson-drawn subsamples from the existing bins. This allows them to reuse the data safely while maintaining the independence required for their utility proofs.

Key Results

The distance between distributions is measured using the $\mathcal{A}_k$-norm, which evaluates the maximum difference between the two distributions across any partition of the real line into $k$ intervals.

The authors establish a sample complexity of: $$\tilde{O}\left(\max \left\{ \frac{k^{4/5}}{\alpha^{6/5}}, \frac{k^{1/2}}{\alpha^2}, \frac{k^{2/3}}{\alpha \epsilon^{1/3}}, \frac{k^{1/3}}{\alpha^{4/3} \epsilon^{2/3}}, \frac{\sqrt{k}}{\alpha \epsilon} \right\}\right)$$ Where $k$ is the number of intervals, $\alpha$ is the distance parameter, and $\epsilon$ is the privacy budget.

This result is highly significant because it is asymptotically close to the known lower bounds for non-private testing. The extra terms (specifically those involving $\epsilon$) represent the "price of privacy," which the authors demonstrate is quite reasonable for large datasets.

Because any distribution can be reduced to a continuous distribution, the authors provide rigorous mathematical proofs extending this sample complexity to various distribution families, including $t$-piecewise constant distributions, log-concave distributions, $k$-mixtures of log-concave distributions, and Monotone Hazard Rate (MHR) distributions.

Limitations and Future Work

  • Univariate Focus: The current algorithm is designed exclusively for univariate distributions (data on a single line). Extending these techniques to high-dimensional continuous data remains a major open challenge.
  • Sensitivity of $L_2$ Testing: The use of $L_2$-norm testing within the algorithm introduces a $\sqrt{k}/\alpha\epsilon$ term in the complexity bound. Future work could explore testers with even lower sensitivity to improve this specific term.
  • Constant Optimization: As a theoretical foundation, the paper focuses on "Big-O" notation and does not attempt to minimize specific constants or the exact degree of poly-logarithmic factors, which would be necessary steps for a production-ready software implementation.

Summary updated

BibTeX
@inproceedings{sheffet2024differentially,
  author = {Or Sheffet and Daniel Omer},
  title = {{Differentially Private Equivalence Testing for Continuous Distributions and Applications}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=qDuqp1nZZ6},
}
Figure