Minimax optimal goodness-of-fit testing for densities under a local differential privacy constraint

Joseph Lam-Weil, Béatrice Laurent, Jean-Michel LoubesarXiv 2020

Introduction

In modern data science, the tension between statistical utility and individual privacy is a central challenge. Goodness-of-fit testing—the process of determining whether a dataset follows a hypothesized distribution—is a fundamental tool for researchers. However, when dealing with sensitive information, such as medical records or personal demographics, data must often be protected using Local Differential Privacy (LDP). Under LDP, users perturb their own data before it is collected by a central server, ensuring that the server never sees the raw, sensitive values.

While LDP provides robust privacy guarantees, it introduces significant noise that can degrade the power of statistical tests. This paper, published in Bernoulli, addresses this challenge by establishing the fundamental theoretical limits (minimax rates) for goodness-of-fit testing under LDP constraints. The authors provide a unified framework that handles both discrete categorical data and continuous density functions.

The Problem: Testing Under Noise

The core objective of goodness-of-fit testing is to test the null hypothesis $H_0: f = f_0$ against the alternative $H_1: \|f - f_0\|_2 > \rho_n$, where $f$ is the true underlying density and $f_0$ is a known reference distribution. In the non-private setting, the separation rate $\rho_n$ defines how different the true distribution must be from the hypothesis for a test to reliably detect the discrepancy.

In the LDP setting, the central server only observes privatized versions of the data. Previous research had largely focused on discrete distributions, leaving a gap in our understanding of continuous densities—particularly regarding how the "smoothness" of a distribution affects the ability to test it privately. This paper seeks to identify the "minimax" optimal performance: the best possible performance any test can achieve in the worst-case scenario.

Methodology: A Unified Wavelet Approach

The authors propose a testing procedure based on a projection-based privacy mechanism and a $U$-statistic estimator.

1. Privacy Mechanism via Wavelets

To handle continuous data, the authors project observations onto a Haar wavelet basis. Wavelets are particularly effective because they can represent functions at multiple scales. To satisfy the LDP constraint (with privacy budget $\alpha$), Laplace noise is added to these projection coefficients. This transformation turns the problem of testing a continuous density into a problem of testing a sequence of noisy coefficients.

2. The Test Statistic

The test is constructed using a $U$-statistic of order 2, designed to estimate the squared $L_2$ distance between the unknown density $f$ and the hypothesized $f_0$. By using a $U$-statistic, the authors create an unbiased estimator that effectively filters out the variance introduced by the Laplace privacy noise, allowing the underlying signal to emerge.

3. Adaptivity and Aggregation

In practice, the smoothness ($s$) of the underlying density is rarely known. A test optimized for a very smooth distribution will fail if the actual distribution has sharp peaks. To solve this, the authors develop an aggregated test. This procedure runs multiple tests across a range of possible smoothness scales and combines the results. While this incurs a small logarithmic penalty in the detection rate, it allows the test to remain robust without prior knowledge of the data's characteristics.

Key Insights: The Price of Privacy

The paper’s theoretical results quantify the "Price of Privacy"—the additional data required to maintain statistical power when privacy is enforced.

  • The Effective Sample Size: The authors show that in the private regime, the effective sample size is reduced from $n$ to roughly $n\alpha^2$. To achieve the same accuracy as a non-private test, the number of users must increase by a factor proportional to $1/\alpha^2$.
  • The Elbow Effect: There is a critical transition point in the privacy budget. If $\alpha$ is large (low privacy), the testing rate eventually converges to the non-private rate. However, when $\alpha$ is small (high privacy), the noise from the LDP mechanism dominates the error rate, leading to a distinct private minimax rate.
  • Optimal Rates: For a density with smoothness $s$ in a Besov space, the private minimax separation rate is proven to be $(n\alpha^2)^{-2s/(4s+3)}$. For discrete data with $d$ categories, the rate is $(n\alpha^2)^{-1/2}d^{1/4}$.

Conclusion and Future Directions

By matching their proposed test's performance (the upper bound) with a Bayesian-derived mathematical limit (the lower bound), the authors prove that their method is as efficient as physically possible under LDP. This work bridges the gap between discrete and continuous private testing, providing a rigorous foundation for privacy-preserving frequentist inference.

Future research may explore interactive LDP, where users can adapt their privacy mechanisms based on information sent by previous users, potentially leading to even faster testing rates. Additionally, while this paper assumes a nearly uniform null hypothesis for its optimality proofs, extending these results to highly non-uniform distributions remains an open challenge in the field.

Summary updated

BibTeX
@misc{lamweil2020minimax,
  author = {Joseph Lam-Weil and Béatrice Laurent and Jean-Michel Loubes},
  title = {{Minimax optimal goodness-of-fit testing for densities under a local differential privacy constraint}},
  year = {2020},
  eprint = {2002.04254},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.04254},
}
Figure