Abstract
Estimating the mean of massive datasets is a fundamental challenge in data science. While the empirical mean is the standard estimator, it requires a prohibitive number of samples to achieve high-confidence results in sublinear settings. This paper introduces a suite of algorithms that achieve optimal sample complexity $O(\epsilon^{-1} \log \delta^{-1})$ with linear running time. By leveraging a Median-of-Means framework and novel aggregation strategies—including a Fast Gradient Descent for geometric medians and a recursive order-statistics approach—the authors provide the first sublinear algorithms for multivariate mean estimation that are optimal in both sample complexity and computational efficiency.
Introduction
In the era of big data, many datasets are too large to be processed in their entirety. Sublinear algorithms address this by sampling only a small fraction of the data to provide high-quality estimates. Mean estimation—finding a vector $\mu$ that minimizes the sum of squared Euclidean distances to all points in a set—is perhaps the most foundational task in this domain.
However, a significant gap has existed between theory and practice regarding high-confidence estimation. While the empirical mean is intuitive, its performance degrades significantly when high confidence (a low failure probability $\delta$) is required. To achieve a $(1+\epsilon)$-approximation with probability $1-\delta$, the empirical mean requires $O(\epsilon^{-1} \delta^{-1})$ samples. As $\delta$ approaches zero, this requirement explodes, making it unsuitable for safety-critical or high-precision systems.
The Median-of-Means Framework
Bertolotti et al. bridge this gap by utilizing the Median-of-Means framework. This approach robustifies the estimation process through a three-step pipeline:
- Sampling: Draw $O(\log \delta^{-1})$ independent blocks of data, where each block contains $O(\epsilon^{-1})$ samples.
- Estimation: Compute the standard empirical mean for each individual block.
- Aggregation: Combine these block means into a single robust estimate using a specialized aggregation function.
The core contribution of the paper lies in the development and analysis of three distinct aggregation strategies that achieve optimal sample complexity.
1. Coordinate-Wise Median-of-Means (CWM)
The CWM algorithm computes the median of the block means independently for each dimension. Despite its simplicity and linear running time, the authors provide a rigorous proof that CWM is theoretically optimal for the mean estimation problem. This finding is significant as it suggests that complex multivariate aggregation is not always necessary to achieve optimal sample complexity.
2. Geometric Median-of-Means (GMM) via FastGD
While the geometric median is more robust than coordinate-wise medians, it is traditionally computationally expensive to compute. The authors introduce FastGD, a specialized gradient descent algorithm designed to approximate the geometric median efficiently. FastGD projects points onto the gradient line and computes a 1D median at each step, allowing it to converge to a $(1+\epsilon)$ approximate mean in very few iterations.
3. MinSumSelect
MinSumSelect is a recursive algorithm based on order statistics. It evaluates the quality of various mean estimates by calculating the sum of distances to the $t$-closest neighbors. By effectively filtering out unsuccessful estimates (outliers or high-variance blocks), it identifies a "good" mean with high probability.
Experimental Results
The authors evaluated these algorithms against real-world benchmarks (MNIST, Fashion-MNIST, and CoverType) and synthetic Gaussian distributions.
Performance and Accuracy
The experiments confirmed the theoretical predictions:
- Optimality: The algorithms matched the theoretical lower bound of $\Omega(\epsilon^{-1} \log \delta^{-1})$.
- Efficiency: CWM and MinSumSelect were the fastest performers, consistently outperforming previous state-of-the-art coreset-based methods.
- Refinement: FastGD provided the highest accuracy among the robust estimators, demonstrating that even a few steps of gradient descent can significantly improve upon the initial coordinate-wise estimate.
- Scalability: On synthetic data with up to $5 \cdot 10^5$ samples, the algorithms demonstrated clear linear scaling in runtime.
The Empirical Mean Paradox
An interesting observation from the MNIST and Fashion-MNIST experiments was that the empirical mean remained highly competitive in practice, despite its theoretical weaknesses. This suggests that real-world datasets often lack the "adversarial" characteristics (like heavy tails or extreme outliers) used to derive worst-case mathematical bounds. However, the robust estimators provided by the authors offer necessary guarantees for datasets where such assumptions do not hold.
Conclusion and Future Work
This work provides the first sublinear algorithms for multivariate mean estimation that are optimal in both sample complexity and running time. While the algorithms are highly effective, the authors noted practical hurdles such as memory management when handling extremely large sample blocks.
Future research may focus on optimizing the hidden constants within the sample complexity bounds to further improve practical performance. Additionally, extending these optimal guarantees beyond Euclidean space to other metrics, such as $L_1$ distances or general Bregman divergences, remains an important open challenge for the field.
Summary updated