A Pretty Fast Algorithm for Adaptive Private Mean Estimation

Rohith Kuditipudi, John C. Duchi, Saminul HaqueCOLT 2023

Abstract

Mean estimation is a fundamental task in statistics, yet performing it under $(\varepsilon, \delta)$-differential privacy becomes significantly more complex when the underlying data distribution's covariance is unknown or degenerate. Historically, researchers faced a trade-off between computational efficiency, sample complexity, and the ability to handle unknown data geometry. This paper introduces PRIVMEAN, the first polynomial-time algorithm that achieves near-optimal error rates while adaptively handling unknown covariance. With a computational complexity of $O(nd^2)$, PRIVMEAN bridges the gap between theoretical sample optimality and practical algorithmic efficiency.

Introduction

In high-dimensional statistics, the "shape" of the data—defined by its covariance matrix $\Sigma$—dictates how we should process it. In the context of Differential Privacy (DP), this shape is critical. To mask the influence of any single individual's data point, we must add noise proportional to the data's scale. If the scale is unknown, we risk adding too much noise (destroying utility) or too little (violating privacy).

Prior to this work, the field was stuck in a "pick two" dilemma regarding private mean estimation:

  1. Computational Efficiency: Algorithms were fast but required a massive number of samples ($n = \Omega(d^{3/2})$).
  2. Sample Efficiency: Algorithms required fewer samples ($n \approx d$) but took exponential time to run.
  3. Unknown Covariance: Algorithms worked well only if the covariance was already known or the data was perfectly "spherical" (isotropic).

PRIVMEAN breaks this trilemma by providing an algorithm that is simultaneously fast, sample-efficient, and adaptive to the data's underlying geometry.

Methodology: The Stability Framework

The core of the proposed approach is a two-phase strategy centered on the concept of stability. In DP, an algorithm is considered stable if small changes to the input dataset do not significantly alter the output. The authors decompose the problem into two primary sub-routines:

1. COVSAFE: Stable Covariance Estimation

To estimate the mean privately, one must first understand the covariance. COVSAFE addresses a classic chicken-and-egg problem: you need the mean to calculate covariance, but you need the covariance to privately estimate the mean. The authors circumvent this by pairing data points and analyzing their differences ($X_i - X_{n/2+i}$), which cancels out the unknown mean. The algorithm iteratively prunes "outlier" pairs that contribute disproportionately to the empirical covariance until the estimate stabilizes.

2. MEANSAFE: Stable Mean Estimation

Once a stable covariance estimate $\hat{\Sigma}$ is established, it defines a Mahalanobis distance used to identify outliers in the original dataset. MEANSAFE employs a randomized grouping strategy and a private TOPk mechanism to prune groups of data that deviate significantly from the bulk. This ensures that the final mean calculation is not overly sensitive to any single point.

3. PRIVMEAN and ADAMEAN

PRIVMEAN combines these routines, adding Gaussian noise proportional to the stable covariance estimate. To handle cases where the user does not know the initial scale of the data, the authors provide ADAMEAN, an adaptive wrapper. ADAMEAN repeatedly calls PRIVMEAN with an increasing threshold parameter $B$, doubling it until the algorithm succeeds, ensuring the scale is discovered automatically.

Key Insights

  • Stability vs. Robustness: While robust statistics aims to ignore outliers to find the "true" mean, DP pruning focuses on ensuring the process of selection is insensitive to individual data points.
  • Mahalanobis Geometry: PRIVMEAN does not treat all directions equally. It adaptively adds more noise in directions where the data has high variance and less noise where the data is tightly clustered.
  • Low-Rank Resilience: Unlike previous estimators that required the covariance matrix to be full-rank (invertible), this algorithm remains effective even if the data lies on a lower-dimensional subspace (degenerate covariance).

Theoretical Results and Complexity

The paper provides rigorous mathematical proofs for the algorithm's performance on sub-Gaussian and heavy-tailed distributions.

  • Optimal Error Rates: The error, measured in the Mahalanobis norm, is approximately: $$\text{err} \le \tilde{O}\left( \frac{\text{rank}(\Sigma)}{n} + \frac{\text{rank}(\Sigma)^2}{n^2\epsilon^2} \right)$$ This matches the rates of previous exponential-time algorithms.

  • Computational Efficiency: The $O(nd^2)$ runtime is essentially the time required to read the data and perform basic matrix operations. This makes the algorithm viable for high-dimensional settings where $d$ is large.

  • Sample Complexity: PRIVMEAN achieves near-linear sample complexity ($n \approx d$), a significant improvement over the $d^{3/2}$ requirement of previous polynomial-time private estimators.

Limitations and Future Work

While PRIVMEAN represents a significant step forward, the authors note several areas for further refinement. The hidden constant factors in the $O$ notation—required to guarantee privacy—may be large in practical implementations. Additionally, there remain polylogarithmic gaps in the error bounds that future work may sharpen. Finally, while the algorithm extends to heavy-tailed data (distributions with finite moments $p \ge 4$), there may be even tighter ways to handle distributions with very few moments (e.g., only 2 or 3 moments).

Summary updated

BibTeX
@inproceedings{kuditipudi2023pretty,
  author = {Rohith Kuditipudi and John C. Duchi and Saminul Haque},
  title = {{A Pretty Fast Algorithm for Adaptive Private Mean Estimation}},
  booktitle = {Conference on Learning Theory},
  year = {2023},
}
Figure