Locally Private Hypothesis Testing

Or Sheffet

Abstract

Differential privacy (DP) has become the standard for privacy-preserving data analysis, yet the local model (LDP)—where users noise their own data to avoid trusting a central authority—presents unique challenges for statistical inference. This paper establishes a theoretical foundation for hypothesis testing within the LDP framework. We demonstrate that finding maximum-likelihood distributions from noised signals is a computationally feasible convex optimization problem. Furthermore, we provide the first sample complexity bounds for identity and independence testing, revealing that non-symmetric privacy mechanisms significantly outperform traditional randomized response techniques.

Introduction

In the centralized model of differential privacy, a trusted curator collects raw data and adds noise to the output of queries. However, in many practical applications, such as telemetry collection by software providers, users may not trust a central entity with their raw information. This necessitates the local differential privacy (LDP) model, where data is obfuscated on the user's device before transmission.

While LDP is well-understood for simple aggregations like mean estimation or frequency counting, its application to more complex statistical tasks like hypothesis testing has remained under-explored. This research addresses two fundamental questions: How many samples are required to determine if a noised dataset follows a specific distribution (identity testing)? And how many are needed to determine if two variables are independent (independence testing)?

Local Privacy as a Signaling Scheme

The paper formalizes LDP mechanisms as signaling schemes that map a user's private "type" (the true data point) to a noisy "signal." The analysis distinguishes between two primary classes of mechanisms:

  1. Symmetric (Index-Oblivious): These mechanisms, exemplified by Randomized Response (RR), apply the same noise-generating rule to every user. For instance, a user reports their true value with probability $p$ and a random value otherwise.
  2. Non-Symmetric (Index-Aware): These more sophisticated mechanisms allow the noise-generating function to vary based on the user's index in the dataset. By utilizing different "hashings" for different users, these schemes can preserve more global information about the underlying distribution for a fixed privacy budget $\epsilon$.

Theoretical Framework

MLE Feasibility and Convexity

A core contribution of this work is the proof that Maximum Likelihood Estimation (MLE) remains tractable under LDP. The author demonstrates that for any convex set of hypotheses, finding the MLE from noised signals is a solvable convex optimization problem. Because the log-loss function remains strongly convex under these mechanisms, standard gradient descent methods can efficiently identify the "best-fit" distribution despite the intentional garbling of data.

Affine Transformations in RR

For Randomized Response, the paper shows that the privacy mechanism acts as an affine translation of the null and alternative hypotheses into a "signal space." The noise effectively shrinks the distance between distributions, making them harder to distinguish. To compensate for this loss of statistical power, the sample size must be increased. The paper adapts traditional statistical testers, such as those developed by Valiant & Valiant, to operate within this translated space.

Sample Complexity Results

The paper derives rigorous sample complexity bounds ($n$) as a function of the domain size ($T$), the privacy parameter ($\epsilon$), and the accuracy ($\alpha$).

Identity Testing

The results highlight a dramatic performance gap between symmetric and non-symmetric mechanisms:

  • Symmetric/Randomized Response: Requires $n = \Theta(T^{2.5} / \epsilon^2 \alpha^2)$ samples.
  • Non-Symmetric Mechanisms: Requires $n = \Omega(T / \alpha^2 \epsilon^2)$ samples.

This shift from a $T^{2.5}$ dependence to a linear $T$ dependence represents a massive improvement in efficiency, suggesting that non-symmetric mechanisms are fundamentally better suited for distribution testing.

Independence Testing

The paper provides the first known bounds for independence testing in the local model. It demonstrates that testing for independence is feasible with a sample complexity proportional to $T^2$ under specific assumptions, though the testers for non-symmetric mechanisms remain mathematically complex.

Empirical Observations

While primarily theoretical, the study includes empirical investigations using simulated distributions. These experiments suggest that a $\chi^2$-based identity tester might achieve a complexity of $T^{1.5}$, potentially outperforming the conservative theoretical upper bounds derived in the proofs. This indicates that while the current bounds provide a solid baseline, there may be room for even more efficient testers in practice.

Conclusion and Future Work

This work bridges the gap between local privacy and statistical testing, proving that robust inference is possible without a trusted central authority. The finding that non-symmetric mechanisms are significantly more efficient for testing tasks provides a clear direction for the design of future LDP protocols.

Future research remains to be done in establishing matching lower bounds for the non-symmetric case to prove optimality. Additionally, simplifying the independence testers and formalizing the asymptotic distributions of $\chi^2$ statistics in the LDP regime are key challenges for the field.

Summary updated

BibTeX
@inproceedings{sheffet2018locally,
  author = {Or Sheffet},
  title = {{Locally Private Hypothesis Testing}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=S1ZfE2ZuWr},
}
Figure