Privately Estimating a Gaussian: Efficient, Robust, and Optimal

Daniel Alabi, Pravesh K. Kothari, Pranay Tankala, Prayaag Venkat, Fred ZhangSTOC 2022

Abstract

In this work, we give efficient algorithms for privately estimating a Gaussian distribution in both pure and approximate differential privacy (DP) models with optimal dependence on the dimension in the sample complexity. In the pure DP setting, we give an efficient algorithm that estimates an unknown $d$-dimensional Gaussian distribution up to an arbitrary tiny total variation error using $\widetilde{O}(d^2 \log \kappa)$ samples while tolerating a constant fraction of adversarial outliers. Here, $\kappa$ is the condition number of the target covariance matrix. The sample bound matches best non-private estimators in the dependence on the dimension (up to a polylogarithmic factor). We prove a new lower bound on differentially private covariance estimation to show that the dependence on the condition number $\kappa$ in the above sample bound is also tight. Prior to our work, only identifiability results (yielding inefficient super-polynomial time algorithms) were known for the problem. In the approximate DP setting, we give an efficient algorithm to estimate an unknown Gaussian distribution up to an arbitrarily tiny total variation error using $\widetilde{O}(d^2)$ samples while tolerating a constant fraction of adversarial outliers. Prior to our work, all efficient approximate DP algorithms incurred a super-quadratic sample cost or were not outlier-robust. For the special case of mean estimation, our algorithm achieves the optimal sample complexity of $\widetilde O(d)$, improving on a $\widetilde O(d^{1.5})$ bound from prior work. Our pure DP algorithm relies on a recursive private preconditioning subroutine that utilizes the recent work on private mean estimation [Hopkins et al., 2022]. Our approximate DP algorithms are based on a substantial upgrade of the method of stabilizing convex relaxations introduced in [Kothari et al., 2022].

Introduction

Estimating the mean and covariance of a Gaussian distribution is a cornerstone of statistics. However, in modern data science, two major hurdles often arise: Privacy (protecting individual data points) and Robustness (handling "dirty" data or adversarial outliers). While non-private estimation is well-understood, adding Differential Privacy (DP) usually incurs a "privacy cost"—requiring significantly more data to achieve the same accuracy. Previous algorithms for this task were either computationally inefficient, sub-optimal in sample complexity (e.g., requiring $d^8$ or $d^{3.5}$ samples for a $d$-dimensional problem), or fragile when faced with outliers.

This paper presents the first computationally efficient and sample-optimal algorithms for privately estimating high-dimensional Gaussian distributions. By combining novel preconditioning techniques for "pure" DP and entropy-based regularization for "approximate" DP, we achieve the theoretical limits of sample complexity while remaining robust to adversarial outliers.

Methodology

The paper tackles two different "flavors" of privacy using distinct algorithmic strategies:

1. Pure Differential Privacy (ε-DP)

Pure DP is the gold standard of privacy but is significantly harder to satisfy due to its strict requirements. The authors employ a Recursive Private Preconditioning scheme to address the challenge of "unbounded sensitivity," where changing a single data point could infinitely alter the estimate. By using a black-box pure DP mean estimator to iteratively "zoom in" on the distribution and "flattening" large eigenvalues of the covariance matrix, they transform the distribution into one close to a standard identity matrix. This preconditioning makes the final private estimation feasible.

Comparison of pure DP covariance estimation results highlighting the tight dependence on the condition number κ.

2. Approximate Differential Privacy ((ε, δ)-DP)

For the slightly more relaxed approximate DP setting, the authors upgrade the "stabilizing convex relaxations" framework. They introduce Entropy Regularization (using unnormalized entropy) instead of standard $\ell_2$ regularization, which stabilizes the underlying optimization and allows for tighter sensitivity analysis. Additionally, they utilize a Gaussian Sampling Mechanism for releasing the final covariance estimate: instead of adding complex noise to the matrix, they release $O(d^2)$ synthetic samples generated from their estimated distribution.

Experimental Setup

As a theoretical work, this paper validates its findings using synthetic Gaussian data across varying dimensions ($d$) and condition numbers ($\kappa$). To test robustness, the authors use an adversarial corruption model, where an attacker can see all the data and change a constant fraction ($\eta$) of the samples to arbitrary values before the algorithm runs.

Key Results

The proposed algorithms achieve significant improvements over prior state-of-the-art methods in both privacy regimes:

Comprehensive comparison of Gaussian estimation algorithms across sample complexity, privacy, and robustness.
  • Pure DP: Achieved an efficient algorithm using $\tilde{O}(d^2 \log \kappa)$ samples. The authors also proved a new lower bound showing that the $\log \kappa$ term is necessary, establishing a fundamental mathematical separation between pure and approximate DP models.
  • Approximate DP: Achieved an algorithm using $\tilde{O}(d^2)$ samples, a massive improvement over the previous best robust algorithm which required $\tilde{O}(d^{3.5})$ samples.
  • Mean Estimation: For the specific case of estimating just the mean, the algorithm hits the optimal $O(d)$ sample complexity, improving on the previous $\tilde{O}(d^{1.5})$ bound.

Conclusion

This work provides the first efficient, robust, and sample-optimal algorithms for private Gaussian estimation. By identifying the necessity of the condition number $\kappa$ in pure DP and leveraging entropy-based regularization for stability, the authors close long-standing gaps in the field. Future work may extend these "stabilization" frameworks to other statistical tasks like linear regression or explore their application in the Local DP model.

Summary updated

BibTeX
@inproceedings{alabi2022privately,
  author = {Daniel Alabi and Pravesh K. Kothari and Pranay Tankala and Prayaag Venkat and Fred Zhang},
  title = {{Privately Estimating a Gaussian: Efficient, Robust, and Optimal}},
  booktitle = {STOC},
  year = {2022},
  url = {https://openreview.net/forum?id=2wWhxm3fuvF},
}
Figure