TL;DR
The paper introduces the Wasserstein-Descent $\dot{\mathbb{H}}^1$-Ascent (WDHA) algorithm, a novel primal-dual approach that computes the exact, unregularized Wasserstein barycenter of grid-discretized distributions. By cleverly alternating between Wasserstein and Sobolev ($\dot{\mathbb{H}}^1$) optimization geometries, WDHA achieves a nearly linear time complexity of $O(m \log m)$ and linear space complexity of $O(m)$ per iteration, completely avoiding the blurring artifacts typical of entropic regularization methods.
What Problem Does This Paper Address?
Computing the "average" of a set of probability distributions is a foundational task in machine learning, computer vision, and medical imaging. Instead of a simple pixel-wise average—which fails to capture geometric structures—researchers use the Wasserstein barycenter, which averages distributions based on the geometry of Optimal Transport (OT).
However, computing the exact Wasserstein barycenter is notoriously difficult for dimensions $d > 1$. Traditional exact solvers rely on linear programming, which scales poorly ($O(m^3)$ time and $O(m^2)$ space for an $m$-point grid). To make this practical, most state-of-the-art methods rely on entropic regularization (like Sinkhorn-based algorithms). While fast, entropic regularization introduces a frustrating trade-off: it smooths out the results, causing visually undesirable blurring effects on sharp edges or fine textures.
This paper tackles the challenge of computing the exact (unregularized) Wasserstein barycenter on large grids efficiently and without the blur.
Methods
The authors reformulate the exact Wasserstein barycenter problem as a nonconvex-concave minimax optimization problem using the Kantorovich dual formulation.
The core innovation of the WDHA algorithm is its use of two distinct optimization geometries that alternate during execution:
- Primal Step (Wasserstein Descent): Updates the estimated barycenter distribution using a Wasserstein gradient descent step.
- Dual Step (Sobolev Ascent): Updates the Kantorovich potential functions using a homogeneous Sobolev ($\dot{\mathbb{H}}^1$) gradient ascent step.
The choice of the $\dot{\mathbb{H}}^1$ gradient is critical. It utilizes a negative inverse Laplacian operator $(-\Delta)^{-1}$ with zero Neumann boundary conditions, which can be computed extremely efficiently in $O(m \log m)$ time using the Fast Fourier Transform (FFT).
While the strict mathematical formulation requires projecting the potentials onto a space of strongly convex and smooth functions (which costs $O(m^2)$), the authors introduce a practical variant (Algorithm 4) that replaces this projection with a fast second convex conjugate $(\cdot)^{**}$ operation. This maintains the overall $O(m \log m)$ time and $O(m)$ space complexity per iteration.
Datasets
The algorithm was evaluated on several high-resolution 2D and 3D datasets:
- Synthetic Uniform Shapes: Four uniform distributions shaped as a square, circle, heart, and cross, discretized on a massive $1024 \times 1024$ grid.
- Synthetic Round Disks: A benchmark with a known ground-truth barycenter (a disk of radius 0.15) used to measure exact quantitative errors.
- High-Resolution Handwritten Digits: 100 handwritten images of the digit '8' from a high-resolution dataset, scaled to $500 \times 500$ pixels.
- 3D Ellipsoids: Uniform densities supported on different 3D ellipsoidal shapes discretized on a $200 \times 200 \times 200$ grid.
Key Insights and Ideas
- The Power of Dual Geometries: Standard optimization usually sticks to a single geometric space. This paper shows that pairing Wasserstein geometry (for the distributions) with Sobolev geometry (for the potentials) provides an isometric dual embedding that naturally stabilizes the dual ascent step without needing an entropic penalty.
- Bypassing the Blur: Because the method does not add an entropic regularization term to speed up transport computations, it preserves sharp boundaries and fine-grained textures that Sinkhorn-based methods inherently wash away.
- The Conjugate Trick: Replacing a mathematically rigorous but slow projection step with the second convex conjugate operation preserves the necessary convexity constraints while keeping the algorithm scalable to million-pixel images.
Key Results
The WDHA algorithm significantly outperforms standard methods like Convolutional Wasserstein Barycenter (CWB) and Debiased Sinkhorn Barycenter (DSB) in both speed and visual quality.
Qualitative Performance
As seen in Figure 1, WDHA recovers a perfectly sharp, uniform blended shape from the four input geometries, whereas CWB and DSB suffer from severe blurring or require thresholding that distorts the final shape.
Similarly, when averaging handwritten digits (Figure 2), WDHA preserves clear, detailed stroke textures rather than a diffuse cloud.
Quantitative Performance
- Speed: For the $1024 \times 1024$ synthetic shapes, WDHA converged in 676 seconds, compared to 3,731 seconds for CWB and 7,249 seconds for DSB.
- Accuracy: In the ground-truth disk simulation, WDHA achieved a Wasserstein distance error of $3.758 \times 10^{-8}$, which is several orders of magnitude more accurate than CWB ($2.98 \times 10^{-4}$) and DSB ($1.2 \times 10^{-4}$).
Limitations and Future Work
- Domain Restrictions: The current implementation relies heavily on grid discretization and FFTs to compute the inverse Laplacian quickly. This restricts its practical application to distributions supported on compact, regular 2D or 3D domains (like images or voxels) rather than arbitrary continuous spaces or irregular point clouds.
- Theoretical Assumptions: The convergence proof assumes that the density functions of all iterates remain uniformly bounded, a condition that holds empirically but remains an open problem to prove mathematically.
Summary updated