Polynomial-Time Sum-of-Squares Can Robustly Estimate Mean and Covariance of Gaussians Optimally

Pravesh K. Kothari, Peter Manohar, Brian Hu Zhang

Abstract

In this work, we revisit the problem of estimating the mean and covariance of an unknown $d$-dimensional Gaussian distribution in the presence of an $\varepsilon$-fraction of adversarial outliers. The pioneering work of [DKK+16] gave a polynomial time algorithm for this task with optimal $\tilde{O}(\varepsilon)$ error using $n = \textrm{poly}(d, 1/\varepsilon)$ samples. On the other hand, [KS17b] introduced a general framework for robust moment estimation via a canonical sum-of-squares relaxation that succeeds for the more general class of certifiably subgaussian and certifiably hypercontractive distributions. When specialized to Gaussians, this algorithm obtains the same $\tilde{O}(\varepsilon)$ error guarantee as [DKK+16] but incurs a super-polynomial sample complexity ($n = d^{O(\log(1/\varepsilon)}$) and running time ($n^{O(\log(1/\varepsilon))}$). This cost appears inherent to their analysis as it relies only on sum-of-squares certificates of upper bounds on directional moments while the analysis in [DKK+16] relies on lower bounds on directional moments inferred from algebraic relationships between moments of Gaussian distributions. We give a new, simple analysis of the same canonical sum-of-squares relaxation used in [KS17b, BK20] and show that for Gaussian distributions, their algorithm achieves the same error, sample complexity and running time guarantees as of the specialized algorithm in [DKK+16]. Our key innovation is a new argument that allows using moment lower bounds without having sum-of-squares certificates for them.

Introduction

Robust statistics aims to develop estimators that remain accurate even when a fraction of the data is corrupted by adversarial noise. For high-dimensional Gaussian distributions, the fundamental challenge is to estimate the mean $\mu$ and covariance $\Sigma$ from a dataset where an $\varepsilon$-fraction of samples has been replaced by arbitrary outliers. While standard estimators like the sample mean fail catastrophically under even minor contamination, recent breakthroughs have provided algorithms capable of achieving near-optimal error.

However, a significant gap has persisted between specialized robust algorithms and general-purpose frameworks. Specialized algorithms, such as those introduced in 2016, achieve optimal $\tilde{O}(\varepsilon)$ error in polynomial time. In contrast, the Sum-of-Squares (SoS) framework—a powerful, general-purpose tool for optimization and estimation—previously required super-polynomial time ($d^{O(\log 1/\varepsilon)}$) to achieve the same error for Gaussians. This paper bridges that gap, demonstrating that a standard SoS relaxation can indeed match the performance of specialized state-of-the-art tools.

The Technical Bottleneck: Resilience and Certification

The primary obstacle in previous SoS analyses was the requirement for "certifiability." A key property of Gaussian distributions is resilience: any large enough subset of samples from a Gaussian will have a mean and covariance close to the true population parameters.

Specialized algorithms utilize this property directly. However, within the SoS framework, properties typically need to be "certified" via low-degree polynomial proofs to ensure the algorithm remains computationally efficient. Proving resilience for Gaussians using low-degree polynomials is notoriously difficult, leading previous researchers to use higher-degree polynomials that resulted in super-polynomial complexity. Specifically, previous analyses relied heavily on certifying upper bounds on directional moments, whereas optimal estimation often requires leveraging lower bounds—which are even harder to certify.

Methods: A New Analysis of SoS Relaxations

This paper utilizes a degree-12 Sum-of-Squares (SoS) relaxation. The algorithm functions by finding a "pseudo-expectation" ($\tilde{\mathbb{E}}$), a mathematical construct that behaves like a probability distribution over the "clean" data points hidden within the contaminated sample. The relaxation is governed by two primary constraints:

  1. Intersection: Identifying a subset of $(1-\varepsilon)n$ points that likely represent the original distribution.
  2. Certifiable Subgaussianity: Ensuring that the 4th moments of the estimated distribution are bounded appropriately relative to the 2nd moments.

The core innovation of this work is not a new algorithm, but a novel analysis technique. The authors demonstrate that one can utilize the resilience of Gaussians in the analysis of the algorithm's error without requiring the SoS algorithm to formally certify that resilience property. By bounding the error directly in pseudo-expectation, the authors circumvent the need for high-degree certificates, allowing the algorithm to run in polynomial time.

Key Theoretical Insights

  • Circumventing Lower Bound Certificates: The authors identify that the "bottleneck" in previous work was the attempt to certify moment lower bounds. They show that the algorithm "inherits" the resilience of the underlying Gaussian samples naturally through the pseudo-expectation, even if a formal low-degree proof of that resilience is absent.
  • Generic Estimation Lemma: The paper introduces Lemma 4.1, a "Generic Estimation Lemma." This lemma abstracts the relationship between pseudo-expectations and robust estimation, providing a blueprint for applying this simplified SoS analysis to other distribution families.

Results

The analysis proves that the degree-12 SoS relaxation achieves:

  • Optimal Error Rates: For mean estimation, the error in Mahalanobis norm is $\tilde{O}(\varepsilon)$. For covariance estimation, the spectral norm error is $\tilde{O}(\varepsilon)$.
  • Total Variation Distance: The combined mean and covariance estimates yield a Gaussian distribution that is $\tilde{O}(\varepsilon)$ close to the true distribution in Total Variation (TV) distance.
  • Computational Efficiency: The algorithm operates in $\text{poly}(n, d)$ time and requires only a polynomial number of samples ($n = \text{poly}(d, 1/\varepsilon)$).

By matching the error and efficiency of specialized algorithms like [DKK+16] while remaining within the general SoS framework, this work simplifies the landscape of robust estimation and suggests that SoS is a more versatile and efficient tool for robust statistics than previously believed.

Conclusion and Future Work

This work demonstrates that the general-purpose Sum-of-Squares framework is as powerful as specialized algorithms for robust Gaussian estimation. The "pseudo-expectation only" proof technique provides a path forward for simplifying robust estimation across various distribution classes. Future research may focus on refining the logarithmic factors in the error bounds and applying the Generic Estimation Lemma to more complex, non-Gaussian distributions.

Summary updated

BibTeX
@inproceedings{kothari2022polynomial,
  author = {Pravesh K. Kothari and Peter Manohar and Brian Hu Zhang},
  title = {{Polynomial-Time Sum-of-Squares Can Robustly Estimate Mean and Covariance of Gaussians Optimally}},
  booktitle = {ALT},
  year = {2022},
  url = {https://openreview.net/forum?id=AnPVaLzczB},
}
Figure