Abstract
We study the complexity of approximating Wasserstein barycenter of $m$ discrete measures, or histograms of size $n$ by contrasting two alternative approaches, both using entropic regularization. The first approach is based on the Iterative Bregman Projections (IBP) algorithm for which our novel analysis gives a complexity bound proportional to $\frac{mn^2}{\varepsilon^2}$ to approximate the original non-regularized barycenter. Using an alternative accelerated-gradient-descent-based approach, we obtain a complexity proportional to $\frac{mn^{2.5}}{\varepsilon} $. As a byproduct, we show that the regularization parameter in both approaches has to be proportional to $\varepsilon$, which causes instability of both algorithms when the desired accuracy is high. To overcome this issue, we propose a novel proximal-IBP algorithm, which can be seen as a proximal gradient method, which uses IBP on each iteration to make a proximal step. We also consider the question of scalability of these algorithms using approaches from distributed optimization and show that the first algorithm can be implemented in a centralized distributed setting (master/slave), while the second one is amenable to a more general decentralized distributed setting with an arbitrary network topology.
Introduction
Finding the "average" of multiple probability distributions is a fundamental task in machine learning and computer vision. While Euclidean averages often fail to preserve geometric structures, the Wasserstein barycenter—defined via Optimal Transport (OT) distances—provides a geometrically meaningful mean. However, computing these barycenters is computationally intensive. While the complexity of OT distance between two measures is well-understood, the complexity of finding the barycenter of $m$ measures has remained an open question. This work provides the first comprehensive complexity analysis for this problem and introduces a novel algorithm to address numerical instabilities inherent in existing methods.
Algorithmic Frameworks
We analyze and contrast two primary algorithmic frameworks for approximating Wasserstein barycenters:
- Iterative Bregman Projections (IBP): A generalization of the Sinkhorn algorithm that alternates projections onto problem constraints. It is naturally suited for centralized "master-slave" architectures.
- Accelerated Gradient Descent (AGD): By constructing a dual version of the barycenter problem, we apply primal-dual accelerated methods. This approach is flexible and supports decentralized networks with arbitrary topologies.
- Proximal-IBP: To mitigate the numerical instability that occurs when the entropic regularization parameter $\gamma$ is very small, we propose an outer-loop proximal method. This algorithm solves a sequence of problems with larger, stable regularization parameters, using previous iterates to guide convergence toward the non-regularized solution.
Complexity and Numerical Stability
A key theoretical contribution is the proof that to achieve an accuracy $\epsilon$ for the non-regularized barycenter, the regularization parameter $\gamma$ must be set proportional to $\epsilon$. This requirement explains why standard Sinkhorn-style methods become numerically unstable at high precision.
Our analysis establishes a complexity bound of $O(mn^2/\epsilon^2)$ for IBP and a theoretically superior $O(mn^{2.5}/\epsilon)$ for AGD in high-precision regimes. Empirically, the Proximal-IBP algorithm demonstrates significant advantages. It maintains a low number of inner-loop iterations while achieving high accuracy, whereas standard IBP or fixed-$\gamma$ methods either fail to reach high precision or become computationally prohibitive.
Decentralized Optimization
In "Big Data" scenarios where histograms are distributed across a network, decentralized algorithms are essential. We demonstrate that the AGD-based approach can be implemented in such settings, requiring only local communication between neighboring nodes. The number of communication rounds scales as $O(\sqrt{n}/\epsilon)$. The following figure illustrates the convergence of the optimality and consensus gaps across various network topologies, including Complete, Star, Path, and Erdős–Rényi graphs.
Conclusion
This paper provides the first complexity bounds for approximating Wasserstein barycenters using IBP and AGD. We introduce Proximal-IBP to solve the stability issues of entropic regularization. While our theoretical complexity for the Proximal-IBP inner loop is conservative, empirical results show it is highly efficient. Future work includes tightening these theoretical bounds and scaling decentralized approaches to massive networks.
Summary updated