A fast and slightly robust covariance estimator

John C. Duchi, Saminul Haque, Rohith KuditipudiarXiv 2025 · DOI

Abstract

Robust covariance estimation is a fundamental challenge in multivariate statistics, often requiring a trade-off between statistical optimality and computational efficiency. This paper introduces a new iterative filtering algorithm designed for the "low contamination" regime, where the fraction of outliers $\epsilon$ is less than $1/\sqrt{d}$. By leveraging a novel inner product filtering technique, the proposed method achieves near-linear sample complexity and fast, polynomial-time execution, bridging the gap between theoretically optimal but slow Sum-of-Squares (SoS) approaches and faster, less robust estimators.

Introduction

Estimating a covariance matrix in high dimensions (dimension $d$) is notoriously sensitive to outliers. While standard empirical covariance estimators fail in the presence of even a few adversarial points, robust alternatives typically require $O(d^2)$ samples to handle a constant fraction of outliers. However, information theory suggests that in the "low contamination" regime, where $\epsilon$ is small, near-linear sample complexity $O(d)$ should be achievable.

Until now, algorithms for this regime were either computationally prohibitive (relying on SoS hierarchies) or required sub-optimal sample sizes (e.g., $O(d^{1.5})$). This paper targets the specific regime where $\epsilon = o(1/\sqrt{d})$, providing an algorithm that is both sample-optimal and computationally efficient.

Methodology: Iterative Filtering

The core of the proposed approach is an iterative filtering algorithm (ALG) that cleans the dataset by identifying and removing likely outliers. The algorithm employs three primary mechanisms:

  1. Norm Filtering: Points with an unusually large Mahalanobis norm relative to the current covariance estimate are identified and removed.
  2. Inner Product Filtering (ComputeS): This is the algorithm's primary innovation. While individual outliers might not have extreme norms, they often "conspire" by being highly correlated in a specific "bad" direction. The ComputeS sub-routine identifies pairs of points with high covariance-normalized inner products to expose these clusters.
  3. Randomized Removal: If the estimated covariance still exhibits high error in a specific direction, points are removed with a probability proportional to their contribution to that error.
Algorithm 2: The ComputeS sub-routine for identifying large inner product pairs among potential outliers.

For heavy-tailed (moment-bounded) data, a preprocessing step is introduced to clip the data, ensuring that the filtering logic remains robust even without subgaussian concentration.

Key Insights and Theoretical Results

The paper identifies $1/\sqrt{d}$ as a critical threshold for contamination. Below this level, the algorithm achieves near-linear sample complexity $n = \tilde{\Omega}(d)$ for both subgaussian and heavy-tailed distributions. The runtime is $O((n+d)^{\omega+1/2})$, where $\omega \approx 2.37$ is the matrix multiplication exponent, making it significantly faster than concurrent SoS-based methods.

Robustness Guarantees

  • Subgaussian Data: Handles contamination $\epsilon = \tilde{O}(d^{-1/2})$.
  • Heavy-Tailed Data: For $k$-th moment bounded distributions, it handles $\epsilon = \tilde{O}(d^{-(1/2 + 1/k)})$.
  • Accuracy: The algorithm produces an estimate with a relative operator error $\le 1/2$ with at least 3/4 probability.

The analysis hinges on the concept of "resilience"—the property that removing a small fraction of a "good" dataset does not drastically alter its covariance. The authors prove that i.i.d. samples from the target distributions possess this property with high probability.

Discussion and Limitations

While the algorithm provides a significant speedup, it faces a "catastrophic failure" if contamination exceeds the $1/\sqrt{d}$ threshold. Extending fast, sample-efficient estimation to the regime where $d^{-1/2} \ll \epsilon \ll 1$ remains an open challenge. Additionally, while the current analysis assumes a mean of zero, future work could formally extend these techniques to datasets with unknown means. For heavy-tailed data, the allowable contamination $\epsilon$ decreases as the distribution becomes more volatile, suggesting room for improvement in applications like finance or insurance where heavy tails are prevalent.

Summary updated

BibTeX
@misc{duchi2025fast,
  author = {John C. Duchi and Saminul Haque and Rohith Kuditipudi},
  title = {{A fast and slightly robust covariance estimator}},
  year = {2025},
  eprint = {2502.20708},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.20708},
}
Figure