High-Dimensional Robust Mean Estimation in Nearly-Linear Time

Yu Cheng, Ilias Diakonikolas, Rong Ge

Abstract

Classical statistical estimators, such as the empirical mean, are notoriously sensitive to outliers in high-dimensional settings. While recent breakthroughs in robust statistics have produced polynomial-time algorithms capable of maintaining accuracy despite a fraction of corrupted data, these methods often suffer from computational bottlenecks—typically requiring at least quadratic time relative to the dimension ($d$). This paper presents a significant algorithmic advancement: the first nearly-linear time algorithms for robust mean estimation. By leveraging fast Semidefinite Programming (SDP) solvers and a "win-win" iterative framework, the proposed approach achieves information-theoretically optimal error guarantees while operating in time nearly proportional to the input size, effectively bridging the gap between theoretical robustness and practical scalability.

1. Introduction

In the era of big data, datasets are frequently both high-dimensional and "messy." In high dimensions, even a tiny fraction of malicious or heavy-tailed outliers can shift the empirical mean of a dataset arbitrarily far from its true value. Until 2016, most robust estimators were either computationally intractable (exponential in $d$) or provided weak guarantees that degraded as the dimensionality increased.

While the first generation of polynomial-time robust algorithms solved the statistical problem, they introduced a new computational hurdle. Most required $\Omega(Nd^2)$ time, where $N$ is the number of samples and $d$ is the dimension. For modern applications where $d$ may reach the millions, a quadratic dependence on the dimension is prohibitive. This research addresses a fundamental question: Is it possible to achieve robust estimation with the same efficiency as non-robust estimation?

2. The Problem: The Fragility of High-Dimensional Averages

The core challenge lies in the fact that outliers in high dimensions do not always look like "outliers" in a one-dimensional sense. They can be hidden in specific directions that are not aligned with the coordinate axes. To detect them, one must typically examine the covariance of the data, which traditionally requires $O(d^2)$ space and time to compute and analyze. The goal of this work is to achieve robustness to a fraction $\epsilon$ of corrupted data in $\tilde{O}(Nd)$ time—essentially the time it takes to read the input.

3. Methodology: A Win-Win SDP Framework

The authors depart from previous "filtering" heuristics, which iteratively removed points, and instead utilize Semidefinite Programming (SDP). Their approach centers on an iterative loop designed to refine a candidate mean $\nu$:

3.1 The SDP Certificate

The algorithm formulates an SDP that attempts to find a re-weighting of the data points to minimize their variance around the current guess $\nu$. This SDP acts as a diagnostic tool to "interrogate" the dataset's structure.

3.2 The Win-Win Analysis

The iterative process yields one of two outcomes in each step:

  • The Primal Win: If the SDP finds a weighting that results in low variance, the current weighted average is guaranteed to be an accurate estimate of the true mean. The algorithm terminates here.
  • The Dual Win: If the SDP indicates that no such weighting exists (high variance), the "dual" solution provides a mathematical certificate identifying the specific direction in which the data is overly spread out. This direction points toward the corruption, allowing the algorithm to update the guess $\nu$ and move closer to the true mean.

3.3 Achieving Nearly-Linear Time

To avoid the $O(d^2)$ bottleneck associated with standard SDP solvers, the authors reduce the problem to "packing and covering" SDPs. These specific structures can be solved using Matrix Multiplicative Weights (a variant of mirror descent). By using iterative solvers that rely only on matrix-vector multiplications rather than full matrix inversions or SVDs, the complexity remains linear in $d$. Furthermore, the algorithm exhibits geometric convergence, requiring only $O(\log d)$ iterations to reach the desired precision.

4. Theoretical Guarantees

The framework is evaluated against two primary classes of probability distributions, achieving optimal error rates in both:

  1. Sub-Gaussian Distributions: For data with a known covariance that decays quickly (like a Gaussian), the algorithm achieves an error of $O(\epsilon \sqrt{\log 1/\epsilon})$.
  2. Bounded Covariance Distributions: For the broader class where only the second moment is assumed to be bounded, the algorithm achieves an error of $O(\sqrt{\epsilon})$.

Crucially, these error guarantees are dimension-independent; the accuracy depends only on the fraction of corruption $\epsilon$, not on the number of features $d$. This ensures the algorithm remains robust even as the dimensionality of the problem grows.

5. Discussion and Limitations

While this work represents a major leap in scalability, several avenues for future research remain. The current runtime includes a $1/poly(\epsilon)$ factor (specifically $1/\epsilon^6$), which may become a significant constant overhead if the corruption fraction is extremely small. Additionally, the sub-Gaussian results currently assume the covariance is known; extending this nearly-linear efficiency to cases with unknown, complex sub-Gaussian covariance is a remaining open challenge.

6. Conclusion

By reconciling the demands of robust statistics with the requirements of high-dimensional computation, this paper provides a framework for truly scalable robust machine learning. The transition from $O(Nd^2)$ to $\tilde{O}(Nd)$ makes robust mean estimation viable for massive datasets, and the underlying "win-win" SDP framework suggests potential applications in more complex tasks such as robust regression and covariance estimation.

Summary updated

BibTeX
@inproceedings{cheng2019high,
  author = {Yu Cheng and Ilias Diakonikolas and Rong Ge},
  title = {{High-Dimensional Robust Mean Estimation in Nearly-Linear Time}},
  booktitle = {SODA},
  year = {2019},
  doi = {10.1137/1.9781611975482.171},
}
Figure