Aggregating data from disparate sources—such as sensors in a distributed network or user data across different continents—is a fundamental challenge in machine learning. When samples from each source are distributed differently, standard Euclidean averaging often fails to capture the underlying structure of the data, resulting in a blurry, unrepresentative summary.
Wasserstein barycenters, rooted in Optimal Transport theory, offer a principled solution. They find a "middle" distribution that minimizes the geometric "work" required to move mass from the input distributions to the center. However, traditional methods for computing these barycenters suffer from severe scaling limitations and assume static data, requiring a complete restart if the data source drifts over time.
In this paper, researchers introduce a scalable, communication-efficient, and parallel algorithm for computing Wasserstein barycenters that overcomes these traditional hurdles.
A Semi-Discrete, Parallel Approach
The authors propose a stochastic subgradient ascent algorithm based on the dual formulation of the Optimal Transport problem. Their approach introduces several key technical innovations:
- Semi-discrete Formulation: Unlike prior work that discretizes all input data (leading to massive, computationally expensive linear programs), this method allows input measures to remain continuous. Only the target barycenter is discretized into a finite set of $n$ points.
- Sparse Updates: The optimization problem is reformulated so that each iteration only requires updating a few coordinates, drastically speeding up computation.
- Parallel Architecture: Utilizing a Master/Worker setup, workers sample from their local continuous distributions and compute a simple "best match" index. They only send these small integers back to the Master, making communication overhead negligible—a crucial bottleneck in distributed computing.
- Streaming and Online Learning: Built on stochastic gradients, the algorithm naturally handles streaming data and can dynamically "track" a barycenter as input distributions shift.
Key Results: Massive Scale and Real-Time Tracking
The researchers evaluated their approach on synthetic spherical data (von Mises-Fisher distributions on a unit sphere) and a real-world UCI Skin Segmentation dataset for large-scale Bayesian logistic regression.
Real-time Tracking: Because the algorithm processes streaming data, it can track non-stationary distributions. In experiments on a sphere, the barycenter smoothly followed moving input distributions—a feat impossible for traditional static solvers.
Massive Scale and Superior Accuracy: The semi-discrete approach bypasses the curse of dimensionality. The algorithm successfully handled $n = 10^6$ support points for the barycenter. In contrast, traditional Linear Programming (LP) methods ran out of memory on a 16GB system at just $n = 480$.
In the Bayesian inference task, the proposed method achieved a Wasserstein distance ($W_2$) to the true posterior of 26.3 in about 5 minutes. The best LP-based result was significantly worse (34.3) and took much longer to compute.
Limitations and Future Directions
While highly effective, the method is sensitive to its hyperparameters. Like many stochastic gradient methods, performance depends heavily on tuning the step-size ($\gamma$), which becomes increasingly challenging for very large numbers of support points (e.g., $n = 10^6$).
Future work may incorporate variance reduction techniques (such as SVRG or SAGA) to further accelerate convergence. Additionally, while the current algorithm optimizes the weights of the support points, their spatial locations remain fixed. Optimizing both the locations and weights of these points simultaneously presents an exciting avenue for future research.
Summary updated