On the Optimality of the Median-of-Means Estimator under Adversarial Contamination

Xabier de Juan, Santiago Mazuelas · DOI

Abstract

This paper provides the first comprehensive theoretical analysis of the Median-of-Means (MoM) estimator under adversarial contamination. We establish tight upper and lower bounds on MoM's asymptotic bias across various distribution classes. Our analysis demonstrates that while MoM is minimax optimal for heavy-tailed and symmetric distributions, it is fundamentally sub-optimal for light-tailed (sub-Gaussian) distributions, where it fails to exploit rapidly decaying tails. These results clarify the strengths and limitations of MoM in robust statistics.

Introduction

Estimating the mean of a dataset is a cornerstone of statistics and machine learning. However, the standard sample mean is notoriously fragile: a single outlier or a "heavy-tailed" distribution can completely derail its accuracy. To address this, the Median-of-Means (MoM) estimator was developed as a robust alternative. MoM operates by partitioning data into $k$ blocks, computing the mean of each block, and then taking the median of those means.

While MoM is known to be optimal for clean, independent data, its performance under adversarial contamination—where an attacker can strategically replace a fraction $\alpha$ of the data—has remained largely uncharacterized for many distribution types. This work fills this gap by establishing rigorous theoretical bounds on MoM's error across various distribution classes.

Methodology

The authors employ a theoretical framework focused on "asymptotic bias"—the unavoidable error that persists even as the sample size $n \to \infty$ due to the presence of an adversary.

Quantile-Based Analysis

A central contribution is a general theorem (Theorem 3.1) that links MoM’s error directly to the quantile function of the block averages. This allows for a unified analysis where different distribution properties (e.g., moments, symmetry) can be "plugged in" to determine MoM's behavior.

Minimax Optimality and Lower Bounds

The study compares MoM's performance against the theoretical minimax rate—the best possible error achievable by any estimator for a given class. Using Berry-Esseen-type arguments, the authors construct "worst-case" scenarios to prove lower bounds, demonstrating that MoM cannot exceed certain error rates regardless of parameter tuning.

Key Results

The paper categorizes MoM's performance across several distribution classes, comparing it to other robust estimators like the trimmed mean and M-estimators.

Comparison of asymptotic bias for different estimators across distribution classes.

Heavy-Tailed and Symmetric Optimality

MoM proves to be highly effective for "messy" data. For distributions where only the $(1+r)$-th moment exists (infinite variance), MoM achieves the optimal minimax rate of $O(\alpha^{r/(1+r)})$. Similarly, for symmetric distributions, MoM performs exceptionally well, achieving an error of $O(\alpha)$, matching the best possible performance even for heavy-tailed data like the Student’s $t$.

The Sub-Gaussian Sub-optimality

A surprising finding is MoM's sub-optimality for light-tailed (sub-Gaussian) data. While optimal estimators achieve an error close to $\alpha$, MoM is limited to $O(\alpha^{2/3})$. This occurs because the median of block means is a biased estimator for asymmetric or specifically contaminated light-tailed data. Theorem 4.2 explicitly proves this lower bound for sub-exponential distributions, confirming that MoM fails to exploit the rapidly decaying tails of these distributions.

Discussion and Limitations

While MoM is a powerful tool for robust estimation, this work highlights several practical and theoretical challenges:

  1. Tuning Requirements: To achieve optimality, the number of blocks $k$ must be carefully selected based on the distribution class. Unlike the trimmed mean, MoM is not naturally adaptive to different tail behaviors without manual adjustment.
  2. Dimensionality: This study is restricted to one-dimensional mean estimation. Extending these tight optimality results to high-dimensional settings remains a significant open challenge.
  3. Constant Factors: The analysis focuses on the order of the error (e.g., $\sqrt{\alpha}$ vs $\alpha$) rather than minimizing specific constant factors, which may be relevant for practical implementations.

Conclusion

This paper establishes the theoretical boundaries of the Median-of-Means estimator under adversarial contamination. By proving its optimality for heavy-tailed and symmetric data and its sub-optimality for light-tailed data, the authors provide a clear roadmap for when MoM should be the estimator of choice and where more adaptive methods like the trimmed mean might be preferred.

Summary updated

BibTeX
@inproceedings{juan2025optimality,
  author = {Xabier de Juan and Santiago Mazuelas},
  title = {{On the Optimality of the Median-of-Means Estimator under Adversarial Contamination}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=A0aUS60Kvk},
}
Figure