[Paper Review] Fast Computation of Wasserstein Barycenters
This paper proposes two efficient algorithms for computing Wasserstein barycenters of empirical probability measures by smoothing the optimal transport problem with an entropic regularizer, enabling fast gradient computation via matrix scaling. The key contribution is a scalable method that achieves accurate barycenter estimation with orders-of-magnitude speedup over exact subgradient methods, validated on image visualization and constrained clustering tasks.
We present new algorithms to compute the mean of a set of empirical probability measures under the optimal transport metric. This mean, known as the Wasserstein barycenter, is the measure that minimizes the sum of its Wasserstein distances to each element in that set. We propose two original algorithms to compute Wasserstein barycenters that build upon the subgradient method. A direct implementation of these algorithms is, however, too costly because it would require the repeated resolution of large primal and dual optimal transport problems to compute subgradients. Extending the work of Cuturi (2013), we propose to smooth the Wasserstein distance used in the definition of Wasserstein barycenters with an entropic regularizer and recover in doing so a strictly convex objective whose gradients can be computed for a considerably cheaper computational cost using matrix scaling algorithms. We use these algorithms to visualize a large family of images and to solve a constrained clustering problem.
Motivation & Objective
- To address the computational infeasibility of computing Wasserstein barycenters using exact subgradient methods due to repeated solution of large-scale optimal transport problems.
- To enable practical use of Wasserstein barycenters in data analysis by reducing computational cost through entropic smoothing.
- To develop efficient algorithms that compute barycenters under both free and uniform weight constraints for applications such as constrained clustering.
- To demonstrate the utility of Wasserstein barycenters in visualizing image families and solving balanced clustering problems.
Proposed method
- Smooth the Wasserstein distance using an entropic regularizer to transform the non-smooth, non-convex subgradient problem into a strictly convex, differentiable optimization problem.
- Use the Sinkhorn-Knopp algorithm to efficiently compute gradients of the smoothed dual optimal transport problem via matrix scaling.
- Propose two subgradient-based algorithms: one for fixed-support barycenters and another for free-support barycenters, both leveraging the smoothed dual objective.
- Compute gradients using only matrix-vector products, drastically reducing computational cost compared to solving full primal-dual optimal transport problems.
- Apply the algorithms to image families and census data clustering, with constraints on centroid weights to enforce balanced assignment.
- Use the smoothed dual formulation to enable fast convergence in practice, even for large-scale datasets.
Experimental results
Research questions
- RQ1Can entropic regularization be used to make the computation of Wasserstein barycenters tractable for large-scale empirical measures?
- RQ2How does the smoothed dual formulation enable efficient gradient computation for subgradient-based barycenter optimization?
- RQ3Can constrained Wasserstein barycenters with uniform weights improve clustering balance compared to standard k-means?
- RQ4What is the trade-off between clustering accuracy and computational cost when enforcing uniform weight constraints?
- RQ5Can Wasserstein barycenters effectively summarize complex image families while preserving geometric structure?
Key findings
- The proposed algorithms achieve a 12.5-second computation time for a constrained barycenter on 57,647 spatial locations with 48 centroids, compared to ~1 hour using exact optimal transport solvers.
- The unconstrained k-means algorithm converges in 1.55 seconds, while the constrained uniform-weight barycenter computation takes 12.5 seconds, showing a modest but acceptable overhead.
- The Wasserstein barycenter with uniform weights produces more balanced clustering, with each centroid capturing an equal share of total mass, unlike standard k-means which may concentrate mass on few centroids.
- Visualizations of nested ellipses show that the 2-Wasserstein barycenter preserves structural features, while Euclidean, RKHS, and Jeffrey centroid methods fail to produce meaningful means.
- The smoothed dual formulation enables gradient computation via matrix scaling, reducing the cost of each subgradient evaluation from solving large transport problems to simple matrix-vector operations.
- The method successfully generalizes to variational problems involving multiple Wasserstein distances, such as Wasserstein propagation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.