Abstract: The primary choice to summarize a finite collection of random objects is by using measures of central tendency, such as mean and median. In the field of optimal transport, the Wasserstein barycenter corresponds to the Fréchet or geometric mean of a set of probability measures, which is defined as a minimizer of the sum of squared distances to each element in a given set with respect to the Wasserstein distance of order 2. We introduce the Wasserstein median as a robust alternative to the Wasserstein barycenter. The Wasserstein median corresponds to the Fréchet median under the 2-Wasserstein metric. The existence and consistency of the Wasserstein median are first established, along with its robustness property. In addition, we present a general computational pipeline that employs any recognized algorithms for the Wasserstein barycenter in an iterative fashion and demonstrate its convergence. The utility of the Wasserstein median as a robust measure of central tendency is demonstrated using real and simulated data.
Introduction
In modern data science, finding a representative "average" for complex objects such as images, histograms, or brain scans is a fundamental task. The standard tool for this in the space of probability distributions is the Wasserstein barycenter, which functions as an arithmetic mean. However, much like the standard mean, the Wasserstein barycenter is highly sensitive to outliers. A single corrupted sample can significantly distort the resulting summary, leading to blurred or inaccurate representations.
To address this lack of robustness, this paper formalizes the Wasserstein median—the Fréchet median under the 2-Wasserstein metric. By minimizing the sum of distances rather than squared distances, the Wasserstein median provides a stable summary even in the presence of significant data contamination.
Methodology
The core technical contribution is a computational pipeline based on Iteratively Reweighted Least Squares (IRLS). While finding a median is generally more difficult than finding a mean, the authors demonstrate that the median problem can be decomposed into a series of weighted barycenter problems.
This "meta-algorithm" is highly versatile, allowing researchers to plug in any state-of-the-art barycenter solver (such as Sinkhorn-based methods) to compute the median. Beyond the algorithm, the paper provides rigorous proofs for the existence and consistency of the median and calculates its breakdown point—a metric indicating how much contamination an estimator can withstand before failing.
Key Insights and Results
The authors validated the Wasserstein median across synthetic simulations and real-world datasets, including MNIST digits and demographic population pyramids. Key findings include:
- The 50% Rule: The Wasserstein median has a breakdown point of approximately 0.5. This means it can handle nearly 50% outlier contamination while still providing a meaningful summary of the clean data.
- Sharper Summaries: In MNIST experiments, the median produced "sharper" images than the barycenter. While the barycenter averages variations into a blur, the median identifies the "skeletal" structure common to the majority of samples.
- Performance Gains: In classification tasks on MNIST, the Wasserstein median achieved 73.5% accuracy, outperforming the barycenter (69.2%) and standard Euclidean methods (~58%).
- Robustness in 1D: In one dimension, the Wasserstein median simplifies to the standard median of the quantile functions of the distributions.
Limitations and Future Work
While the Wasserstein median offers superior robustness, it comes with a computational trade-off. Because it requires multiple iterations of a barycenter solver, it is inherently slower. Future research may focus on developing stochastic algorithms to estimate the median more efficiently. Additionally, while existence is proven, the uniqueness of the population-level median remains an open theoretical question. Extending this framework to more complex, non-Euclidean geometries also represents a promising avenue for future study.
Summary updated