Optimal Transport Barycenter via Nonconvex-Concave Minimax Optimization

Kaheon Kim, Rentian Yao, Changbo Zhu, Xiaohui Chen

TL;DR

This paper introduces WDHA (Wasserstein-Descent $\dot{\mathbb{H}}^1$-Ascent), a novel algorithm that computes exact (unregularized) Wasserstein barycenters for high-resolution distributions in nearly linear time. By alternating between Wasserstein and Sobolev optimization geometries, WDHA bypasses the "blurring" artifacts common in entropic regularization methods while maintaining the scalability needed for million-pixel images.

The Challenge of Averaging Distributions

In data science, averaging numbers is straightforward, but averaging probability distributions—such as images or point clouds—is highly complex. The Wasserstein barycenter is the gold standard for this task because it respects the underlying geometry of the data. However, computing the exact barycenter is notoriously difficult for dimensions greater than one.

Existing solutions generally fall into two camps, forcing a difficult trade-off:

  1. Exact Solvers: Methods using linear programming or first-order dual approaches are accurate but scale poorly (often $O(m^3)$), making them unusable for high-resolution data.
  2. Entropic Regularization (Sinkhorn): These algorithms are fast and popular but introduce a "blurring" effect. Achieving sharp results requires very low regularization, which makes the algorithms numerically unstable and prone to "division by zero" errors.

The authors aim to break this trade-off, providing an algorithm that is mathematically "exact" and computationally efficient enough to handle $1024 \times 1024$ grids.

Methods: A Tale of Two Geometries

The core innovation of this paper is recasting the barycenter problem as a nonconvex-concave minimax optimization. The proposed WDHA algorithm alternates between two different geometric spaces to update the primal and dual variables:

  • Primal Step (Wasserstein Descent): Updates the estimate of the barycenter using a Wasserstein gradient. This ensures the "average" moves naturally along the manifold of probability distributions.
  • Dual Step ($\dot{\mathbb{H}}^1$-Ascent): Updates the Kantorovich potentials (the "dual" variables describing the transport plan) using a homogeneous Sobolev ($\dot{\mathbb{H}}^1$) gradient.

Why this works: The "aha moment" is realizing that the primal and dual subproblems benefit from different optimization geometries. The $\dot{\mathbb{H}}^1$ gradient acts as an isometric dual embedding, providing much better stability than standard $L^2$ gradients without needing entropic smoothing. By using Fast Fourier Transforms (FFT) to handle Laplacian operators and efficient 1D solvers for convex conjugates, the per-iteration complexity is kept to $O(m \log m)$ time and $O(m)$ space, where $m$ is the number of pixels.

Key Results

The authors evaluated WDHA against state-of-the-art entropic methods (CWB and DSB) across synthetic shapes, high-resolution handwritten digits, 3D distributions, and ground-truth benchmarks.

Visual Fidelity and Sharpness

Because WDHA does not rely on entropic regularization, it naturally preserves sharp edges and intricate textures that Sinkhorn-based methods typically wash out.

In tests using synthetic uniform distributions (a square, circle, heart, and cross), WDHA produced a sharp, perfectly blended shape. In contrast, Sinkhorn methods (CWB and DSB) produced blurry blobs. Even when thresholded, the Sinkhorn results lacked the sharp inward curvature of the original shapes.

Comparison of barycenters for synthetic uniform densities

High-Resolution Real Data and Speed

When applied to high-resolution ($500 \times 500$) handwritten digits, WDHA maintained intricate textures that entropic methods lost to blurring.

Comparison of barycenters for high-resolution handwritten digits

Furthermore, WDHA proved significantly faster on this task, taking 3,299 seconds compared to 10,808 seconds for CWB and 11,186 seconds for DSB.

Numerical Accuracy

On a ground truth disk dataset where the true barycenter is mathematically known, WDHA achieved a Wasserstein distance to the true barycenter that was orders of magnitude lower than its competitors ($3.7 \times 10^{-8}$ vs $1.2 \times 10^{-4}$ for the best Sinkhorn variant).

Limitations and Future Work

  • Domain Constraints: The current implementation is primarily optimized for 2D or 3D distributions supported on a compact, rectangular grid.
  • Density Assumptions: The theoretical convergence analysis assumes that the probability densities are bounded away from zero. However, the authors note that the algorithm performs well empirically even when this isn't strictly true.
  • Future Directions: The authors suggest extending this framework to non-grid data (like general point clouds) and exploring its use as an "anchor" measure for more complex statistical inference on distributional data.

Summary updated

BibTeX
@inproceedings{kim2025optimal,
  author = {Kaheon Kim and Rentian Yao and Changbo Zhu and Xiaohui Chen},
  title = {{Optimal Transport Barycenter via Nonconvex-Concave Minimax Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=O2fUpyeRWs},
}
Figure