Streaming Algorithms for High-Dimensional Robust Statistics

Ilias Diakonikolas, Daniel M. Kane, Ankit Pensia, Thanasis Pittas

Introduction

High-dimensional robust statistics traditionally requires storing an entire dataset in memory, creating a massive computational bottleneck as dimensions scale. This paper introduces the first single-pass streaming algorithms for robust mean estimation that utilize near-optimal memory—scaling nearly linearly with the dimension $d$—while maintaining optimal error guarantees. Furthermore, the authors demonstrate how this foundational algorithm can be leveraged to solve more complex problems, such as robust covariance estimation and robust linear or logistic regression, entirely on the fly.

The Challenge of Streaming Robust Statistics

In machine learning and statistics, estimators must often recover the true properties of a dataset (like its mean or covariance) even when a fraction of the data is corrupted by an adversary or contains severe outliers.

Recently, efficient algorithms have been developed to solve these robust statistics problems in high dimensions. However, previous approaches operate strictly in a "batch" setting, requiring the entire dataset to be stored in main memory. In high-dimensional regimes, merely storing the covariance matrix or the necessary number of samples demands at least $\Omega(d^2)$ space. For modern, large-scale applications where data arrives in a continuous, massive stream, storing everything is infeasible.

This paper tackles a fundamental question: Can we develop efficient robust estimators in the streaming model with near-optimal space complexity? Specifically, the authors investigate whether it is possible to process a data stream in a single pass using only $O(d)$ memory, while still accurately estimating true parameters in the presence of outliers.

Methodology: Adapting Iterative Filtering

As a purely theoretical work focused on algorithm design, mathematical proofs of correctness, and complexity bounds, this paper does not rely on empirical datasets. Instead, it builds upon a mathematical technique known as iterative filtering.

In a standard batch setting, filtering analyzes the covariance matrix of the data to find directions of unusually high variance (indicating outliers) and assigns scores to downweight or remove those corrupted points. To adapt this to a single-pass streaming model without storing the data, the authors introduce several clever modifications:

  • Implicit Filter Storage: Instead of storing a cleaned subset of the data, the algorithm only stores the mathematical representation of the filters applied so far. This drastically reduces memory requirements.
  • Fresh Sample Approximations: Computing filter scores typically requires calculating powers of the covariance matrix. Since the algorithm cannot iterate over the same data multiple times, it uses fresh batches of streaming data for each multiplication step.
  • Dimensionality Reduction via JL Sketches: To avoid the slow and memory-intensive process of calculating scores across all $d$ dimensions, the algorithm employs Johnson-Lindenstrauss (JL) sketching. This projects the data into a much smaller space while preserving the geometric properties necessary to identify outliers.
  • Approximate Binary Search: The standard filtering step requires an exact binary search over the data to find the right threshold for removing outliers. The authors replace this with an approximate, sample-efficient estimator that operates on the fly.

Key Insights

The success of this approach relies on a few core conceptual breakthroughs:

  1. Remember the Rules, Not the Data: The core "aha" moment is a shift in how filtering is conceptualized. Instead of viewing a filter as a way to remove specific samples from a fixed dataset, it can be viewed as a rejection sampling procedure applied to the incoming data stream. The algorithm only needs to store the rules (the filter weights) in $O(d)$ space.
  2. Oblivious Adversaries Enable "Fresh Batch" Tricks: The paper assumes a Total Variation (TV) contamination model, where the adversary corrupts the distribution as a whole rather than adapting to the algorithm's specific actions. Consequently, fresh samples drawn from the stream are statistically identical. This allows the algorithm to approximate complex, multi-step matrix operations using independent batches of data without ever storing a historical batch.
  3. Robust Mean Estimation as a Black Box: Once the memory problem for basic mean estimation is solved, this low-memory estimator can be plugged directly into gradient descent. By robustly estimating the gradient at each step, the authors unlock low-memory streaming algorithms for distributed non-convex optimization, robust linear regression, and robust logistic regression.

Main Results

The paper establishes several landmark theoretical results for high-dimensional robust statistics:

  • First Space-Efficient Streaming Algorithm for Robust Mean Estimation: The proposed algorithm requires only $O(d \text{ polylog}(d/\epsilon))$ memory. This is a massive improvement over the $\Omega(d^2)$ space required by previous batch methods.
  • Optimal Error Rates: Despite strict memory constraints, the algorithm achieves information-theoretically optimal error guarantees: $O(\sqrt{\epsilon})$ for distributions with bounded covariance, and $O(\epsilon \sqrt{\log(1/\epsilon)})$ for subgaussian distributions.
  • Broad Applications: The authors successfully extended their approach to create the first single-pass, near-optimal space streaming algorithms for Robust Gaussian Covariance Estimation, Robust Linear Regression, and Robust Logistic Regression.

Limitations and Open Questions

While the space complexity of the proposed algorithms is optimal, the sample complexity of their mean estimation algorithm is $\tilde{O}(d^2/\epsilon^2)$. The theoretical minimum sample complexity (assuming unlimited memory) is $\tilde{O}(d/\epsilon^2)$. Finding the optimal tradeoff between sample size and space complexity remains an open problem.

Furthermore, the algorithms operate under the TV-contamination model. It remains an open question whether a single-pass, sub-quadratic space algorithm can survive an "adaptive adversary"—a stronger threat model where outliers can be completely arbitrary and the adversary can maliciously control the exact order in which data points arrive in the stream.

Summary updated

BibTeX
@inproceedings{diakonikolas2022streaming,
  author = {Ilias Diakonikolas and Daniel M. Kane and Ankit Pensia and Thanasis Pittas},
  title = {{Streaming Algorithms for High-Dimensional Robust Statistics}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=DLIPkn8LcPx},
}
Figure