Private and polynomial time algorithms for learning Gaussians and beyond

Hassan Ashtiani, Christopher Liaw

TL;DR

This paper introduces the first polynomial-time algorithm for learning multivariate Gaussian distributions under $(\epsilon, \delta)$-differential privacy that achieves near-optimal sample complexity. By developing a novel framework to "privatize" standard estimators and a specialized masking mechanism for covariance matrices, the authors bridge the gap between theoretical privacy limits and practical, efficient computation.

What Problem Does This Paper Address?

Learning the mean and covariance of a Gaussian distribution is a cornerstone of statistics. In a non-private setting, this is trivial: you simply calculate the empirical mean and covariance of your samples. However, these empirical values are highly sensitive to individual data points. If a dataset contains sensitive information (like medical records or financial data), a standard estimator could inadvertently leak the presence or specific values of individuals in the set.

The challenge in Differential Privacy (DP) is to release an estimate that is accurate enough to be useful but "noisy" enough that no single individual's data significantly changes the output. While previous research established the theoretical number of samples needed to do this for Gaussians, those methods were often computationally "brute-force" (non-polynomial time). Conversely, existing efficient algorithms often required much larger datasets (higher sample complexity) to achieve the same accuracy. This paper aims to provide an algorithm that is both efficient (runs in polynomial time) and data-economical (matches optimal sample complexity).

Methods

The authors propose a general framework for transforming a non-private estimator into a private one. The process follows three main steps:

  1. Split and Estimate: Divide the dataset into disjoint subsets and run a standard, non-private estimator (like empirical mean) on each subset to get a collection of "candidate" estimates.
  2. Private Clustering: Check if a majority of these candidates are clustered together. If the data comes from a consistent underlying distribution, the estimates should be close to each other.
  3. Weighted Aggregation and Noise: If a cluster is found, aggregate the candidates using a weighted average and add carefully calibrated noise to ensure $(\epsilon, \delta)$-differential privacy.

The "secret sauce" for applying this to Gaussians is a new masking mechanism for covariance matrices. Standard DP techniques often add Gaussian noise based on the "Frobenius distance" (a simple element-wise difference). However, for Gaussians, the Mahalanobis distance is more appropriate because it accounts for the geometry and scale of the distribution. The authors show that by adding "covariance-rescaled" noise, they can make two similar covariance matrices indistinguishable to an observer, satisfying the privacy requirement without destroying the utility of the estimate.

Datasets

As a theoretical work in learning theory, this paper does not use empirical datasets or benchmarks. Instead, it provides mathematical proofs of performance for the class of all multivariate Gaussian distributions in $d$-dimensional space ($\mathbb{R}^d$). The "evaluation" is done through rigorous complexity analysis rather than experimental trials.

Key Insights and Ideas

  • The "Gap" in Distances: A major technical hurdle was that the Mahalanobis distance (which is natural for Gaussians) doesn't have a finite bound relative to the Frobenius distance (which is standard for noise addition). The authors realized that while they aren't perfectly proportional, Mahalanobis distance still retains enough "Frobenius-like" properties to allow for a specialized noise-addition step.
  • Efficiency vs. Optimality: Previously, you could have a fast algorithm or a sample-efficient one, but rarely both for private Gaussians. This paper shows that the "information-theoretic" limit (the absolute minimum samples required by physics/math) is actually achievable by a practical, polynomial-time algorithm.
  • Robustness as a Bonus: The framework is naturally robust. Because it looks for a "cluster" of estimates and ignores outliers, it can be adapted for robust learning, where a small percentage of the input data might be maliciously corrupted or "garbage."

Key Results

  • Optimal Sample Complexity: The algorithm achieves a sample complexity of $\tilde{O}(\frac{d^2}{\alpha^2} + \frac{d^2\sqrt{\ln(1/\delta)}}{\alpha\epsilon} + \frac{d\ln(1/\delta)}{\alpha\epsilon})$. This matches the best known non-efficient bounds up to logarithmic factors.
  • Dimensionality Improvement: Compared to concurrent work (Kamath et al., 2021), this approach reduces the dependence on the dimension $d$ from $O(d^{5/2})$ to roughly $O(d^2)$, making it significantly more efficient for high-dimensional data.
  • Robust Learning: The authors provide the first polynomial-time $(\epsilon, \delta)$-DP algorithm for robustly learning Gaussians with a sample complexity of $\tilde{O}(d^{3.5})$, a significant improvement over previous results that required $O(d^8)$.

Limitations and Future Work

  • Extended Abstract Constraints: As an extended abstract, the full technical proofs are deferred to the full version of the paper.
  • Gaussian Specificity: While the "Split-and-Aggregate" framework is general, the specific masking mechanism for the covariance matrix is highly tailored to Gaussian distributions.
  • Future Directions: The authors suggest that this framework could be extended to other distribution families beyond Gaussians, potentially providing a "universal" recipe for turning classical statistical estimators into private, efficient ones. Exploring the tightest possible bounds for robust private learning remains an open area.

Summary updated

BibTeX
@inproceedings{ashtiani2022private,
  author = {Hassan Ashtiani and Christopher Liaw},
  title = {{Private and polynomial time algorithms for learning Gaussians and beyond}},
  booktitle = {Conference on Learning Theory},
  year = {2022},
  url = {https://openreview.net/forum?id=zwO8AoNXiz},
}
Figure