A Unified Approach for Computing Wasserstein Barycenters of Discrete and Continuous Measures

Peng Xu, Changbo Zhu, Xiaohui ChenNeurIPS 2026

TL;DR

Averaging shapes or probability distributions while respecting their spatial geometry—finding their Wasserstein barycenter—usually forces you into two incompatible camps: slow, exact solvers for discrete point clouds, or fast, rigid solvers for continuous grids. This paper introduces FRBary, a unified algorithm that computes exact, unregularized barycenters across discrete, continuous, and even mixed-type data simultaneously. By side-stepping a notoriously gnarly optimization landscape through a clever change of geometry, it delivers rigorous convergence guarantees alongside crisp, smooth density estimates.

What Problem Does This Paper Address?

Imagine trying to average two bell curves sitting side-by-side. Standard pixel-by-pixel (Euclidean) averaging gives you two half-sized humps instead of a single bell curve right in the middle. The Wasserstein barycenter fixes this using Optimal Transport (OT)—finding the distribution that requires the least physical effort to morph into all your input distributions.

Computing this exact geometric average is notoriously tricky, causing existing algorithms to split into two rigid tracks:

  1. Discrete point clouds: Exact methods rely on massive linear programs that choke as the number of points grows.
  2. Continuous grids: High-resolution solvers use calculus tricks (like finite-difference approximations) that shatter on irregular domains or raw point clouds.

Popular workarounds like entropic regularization (e.g., Sinkhorn algorithms) speed things up by adding a blur penalty, which biases the result and locks everything onto a shared grid. Worse yet, proving that gradient-based algorithms actually converge to the true answer has been a major mathematical roadblock because the Wasserstein barycenter objective is not convex in Wasserstein space.

Methods

To escape this non-convexity trap, the authors notice a crucial loophole: while the barycenter objective isn't convex along transport paths, it is convex under ordinary linear mixtures of probabilities.

Enter FRBary, a primal mirror descent algorithm. Mirror descent generalizes standard gradient descent by swapping the usual Euclidean distance penalty for a custom geometry—here, the Kullback-Leibler (KL) divergence (negative relative entropy). Because of this choice, FRBary evolves its candidate barycenter along the Fisher-Rao geometry (information space) while still optimizing the exact, unregularized Wasserstein objective.

The FRBary mirror descent algorithm

In each iteration, FRBary maintains a smooth, continuous candidate density $\rho^k$ and does two things:

  1. Adaptive OT Subproblems: It computes the Kantorovich potentials (functions encoding optimal transport directions) from $\rho^k$ to each input $\mu_i$. Crucially, this step is modular: if $\mu_i$ is a point cloud, it uses a fast Laguerre-cell semi-discrete solver; if $\mu_i$ is a fine grid, it uses a fast Sobolev gradient solver.
  2. Multiplicative Update: It updates the candidate density exponentially using the weighted average of those potentials. In practice, $\rho^k$ can be tracked on a grid or parameterized grid-free via a neural network.

Datasets

No new benchmarks were introduced; the authors evaluated FRBary on synthetic and standard real-world setups:

  • MNIST: Handwritten digits (3 and 8) treated as normalized $28 \times 28$ histograms.
  • Heterogeneous Synthetic Mix: A simultaneous combination of a $28 \times 28$ MNIST digit, a continuous uniform heart-shaped density on a $256 \times 256$ grid, and a discrete 10,000-point cloud sampled from a Swiss roll.
  • 2D & 3D Gaussians: Point clouds (10,000 and 3,000 samples) where the exact analytical barycenter is known.
  • High-Resolution Color Images: Two landscape photos ($3160 \times 1846$ and $2560 \times 1573$) treated as 3D RGB point clouds for color palette averaging.

Key Insights and Ideas

  • Entropy as Geometry, Not Bias: Unlike Sinkhorn methods that add entropy to the OT cost (blurring the final answer), FRBary uses entropy strictly as the mirror map governing step sizes. You get clean multiplicative updates while targeting the true, unblurred barycenter.
  • Continuous Anchors from Discrete Inputs: Even when every input is a jagged point cloud, FRBary outputs a smooth, continuous density. Many downstream statistical tools (like Wasserstein PCA or distribution regression) strictly require an absolutely continuous reference measure—FRBary hands you one automatically without needing post-hoc kernel smoothing.
  • Taming Discrete Singularities in Proofs: If all inputs are discrete, the true barycenter is also discrete, making its KL divergence to a smooth starting density infinite—which breaks standard mirror descent proofs! The authors bypass this by proving convergence against a truncated Gaussian-smoothed proxy of the true barycenter, showing the best iterate converges at a clean $O(\log T / \sqrt{T})$ rate (improving to $O(T^{-1/2})$ when at least one input is continuous).

Key Results

  • Heterogeneous Speed & Flexibility: On the mixed digit/heart/Swiss-roll task—where grid-based Sinkhorn and Sobolev methods cannot even run—FRBary computed a smooth $100 \times 100$ density (10,000 points) more than 2x faster than the exact free-support solver took to output just 1,000 discrete points (e.g., 357s vs. 798s when combining all three inputs), while avoiding the boundary artifacts of Sinkhorn free-support.
Computation time comparison in seconds
  • Higher Precision on MNIST: Averaging ten digit-3 images against an exact linear programming ground truth, FRBary achieved a $W_2$ error of $1.360 \times 10^{-4}$, beating both Entropic Wasserstein Barycenters ($1.904 \times 10^{-4}$) and Debiased Sinkhorn ($3.237 \times 10^{-4}$), which suffered numerical crashes if regularization was pushed any lower.
  • 3D Neural Scaling: Using a 3-layer MLP to parameterize the log-density, FRBary smoothly averaged the 3D RGB color palettes of multi-megapixel photographs.

Limitations and Future Work

  • Dimensionality: Because high-accuracy OT subproblem solvers typically rely on spatial grids, the current implementation primarily targets 2D and 3D distributions.
  • Exact Subproblem Assumption: The theoretical convergence guarantees assume the Kantorovich potentials at each step are computed exactly. Extending the theory to account for noisy, inexact OT solvers and scaling grid-free implementations to higher dimensions are the main frontiers ahead.

Summary updated

Abstract

Computing the unregularized Wasserstein barycenter for measure-valued data is a challenging optimization task. Recent algorithms have been tailored to either discrete measures as point clouds or continuous measures discretized on regular grids. In this work, we propose a primal mirror descent algorithm for computing the exact Wasserstein barycenter in the Fisher-Rao geometry. Our algorithm is a unified approach that is flexible enough to simultaneously cover discrete and absolutely continuous input measures, with best-iterate convergence guarantees in both settings. In particular, when all input measures are discrete, our algorithm solves a sequence of semi-discrete optimal transport subproblems and produces absolutely continuous iterates whose best objective value converges to the optimal value under suitable initialization and support conditions. We use synthetic and real data examples to demonstrate promising results in terms of accuracy and computational cost.
BibTeX
@inproceedings{xu2026unified,
  author = {Peng Xu and Changbo Zhu and Xiaohui Chen},
  title = {{A Unified Approach for Computing Wasserstein Barycenters of Discrete and Continuous Measures}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=F23W2B2hf8},
}
Figure