Nonparametric Extensions of Randomized Response for Private Confidence Sets

Ian Waudby-Smith, Steven Wu, Aaditya Ramdas

Introduction

In our data-driven world, organizations frequently need to calculate population-level statistics—such as the average time spent on a webpage or a feature's approval rating—without exposing individual user data. Local Differential Privacy (LDP) is the gold standard for this, adding noise to data on a user's device before it ever reaches a central server.

However, existing LDP tools struggle with nonparametric inference. Most methods either assume a specific data distribution (like Gaussian) or only provide point estimates without a clear way to quantify uncertainty via confidence intervals. Furthermore, standard statistical tests fail if you "peek" at the results early, a common practice in industry A/B testing.

This paper introduces Nonparametric Randomized Response (NPRR), a new privacy mechanism that enables robust statistical inference on sensitive, bounded data. It provides the first set of nonparametric, nonasymptotic confidence intervals and "anytime-valid" confidence sequences for population means under LDP, even when the data distribution changes over time.

The NPRR Mechanism

To tackle the challenge of creating tight, mathematically guaranteed confidence sets for any bounded data distribution, the authors introduce a two-step mechanism called NPRR:

  1. Stochastic Rounding (Discretization): Continuous data (e.g., a value between 0 and 1) is randomly rounded to a discrete grid. This preserves the statistical mean while making the data easier to privatize.
  2. Categorical Randomized Response (Privatization): A privacy-preserving "flip" is applied to these discrete values, providing rigorous LDP guarantees.
Illustration of the NPRR mechanism: Discretizing raw data into a grid, then privatizing it.

Unlike the common Laplace mechanism, which adds continuous noise that can push values outside their original bounds, NPRR keeps data bounded. Because the privatized data stays bounded, the authors can apply powerful, modern concentration inequalities (like private versions of Hoeffding and Empirical Bernstein bounds). To handle sequential data, they use martingale techniques to derive Confidence Sequences (CSs)—intervals that shrink as more data arrives but are guaranteed to contain the true mean at every time step simultaneously.

Key Insights

  • Boundedness is a Feature: By ensuring the privatized output stays within the same bounds as the input, the authors can use much sharper concentration bounds than those available for the "infinite-tail" noise of the Laplace mechanism.
  • Storage and Security Wins: NPRR is discrete. Storing a privatized value requires only a few bits compared to the 64 bits needed for a floating-point number. This also makes it immune to "floating-point attacks" where tiny precision errors in computer math can leak private information.
  • Anytime-Valid A/B Testing: The derived confidence sequences allow practitioners to stop an experiment the moment a result becomes significant, without the risk of "p-hacking" or inflated false positives.
  • Practical Privacy: For privacy levels used by major tech companies (e.g., $\epsilon \ge 2$), NPRR's private confidence intervals are nearly as tight as standard, non-private ones.

Empirical Results

The paper evaluates its methods using synthetic simulations, including bounded distributions (Beta and Uniform) and non-stationary data for A/B tests.

The NPRR-based intervals consistently outperform Laplace-based ones across both small and large sample sizes. Notably, their variance-adaptive methods—such as the Empirical Bernstein (NPRR-EB) and "hedged" approaches—produce significantly tighter intervals when the underlying data has low variance, which is a common scenario in real-world applications.

Comparison of different private CIs. The variance-adaptive NPRR-hedged method provides the tightest bounds compared to Laplace baselines.

Additionally, the time-varying confidence sequences successfully capture shifting means, demonstrating their utility in dynamic environments where treatment effects may drift over time.

Limitations and Future Work

  • Univariate Focus: The current framework is designed for single-dimensional data. Extending NPRR to handle multivariate vectors is a noted area for future research.
  • Interaction Complexity: While the paper allows for "sequentially interactive" privacy (where the privacy level changes based on past results), combining this with time-varying means in a single mathematical bound remains a difficult technical challenge.
  • Broader Applications: The authors suggest these tools could be extended to other tasks like private changepoint detection and independence testing.

Summary updated

BibTeX
@inproceedings{waudbysmith2023nonparametric,
  author = {Ian Waudby-Smith and Steven Wu and Aaditya Ramdas},
  title = {{Nonparametric Extensions of Randomized Response for Private Confidence Sets}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=gKxXNAVZeF},
}
Figure