Abstract
Finding the Wasserstein barycenter—the "average" of multiple probability distributions—is a fundamental problem in optimal transport with applications across generative modeling and data fusion. However, computing barycenters for continuous, high-dimensional distributions remains a significant challenge due to the complexity of the underlying tri-level optimization. In this work, we introduce a scalable approach that simplifies this problem into a bi-level adversarial objective using the congruence condition. Our method, built on Neural Optimal Transport, supports general cost functions and provides significant improvements in speed and accuracy over existing continuous solvers on complex image datasets.
Introduction
In generative modeling, while moving between two distributions is well-studied, finding a central "average" distribution among many—the Wasserstein barycenter—has historically been computationally prohibitive. This problem involves minimizing the average Optimal Transport (OT) distance to a set of input distributions. For continuous, high-dimensional data like images, existing methods often struggle with unstable tri-level optimization loops, restrictive Euclidean cost assumptions, or slow sampling-based inference.
Methodology: Simplifying the Barycenter Objective
The primary contribution of this work is the reduction of the complex tri-level optimization problem into a more manageable bi-level (max-min) adversarial objective. This is achieved through the congruence condition.
In the dual formulation of the barycenter problem, one typically optimizes over the barycenter distribution itself. We demonstrate that if the potential functions (analogous to critics in GANs) satisfy a specific constraint—their weighted sum must be zero ($\sum \lambda_k f_k = 0$)—the problem simplifies significantly. This "congruence" allows us to bypass the outer optimization loop entirely.
Our solver utilizes neural networks to parameterize transport plans as stochastic maps. This framework is highly flexible, allowing for the use of general cost functions beyond standard quadratic distances. Furthermore, it supports "Weak" OT, enabling the incorporation of regularizations such as Entropic (KL) or Energy-based costs, which can guide the barycenter toward a prior distribution.
Experiments and Results
We evaluated our method on a variety of tasks ranging from synthetic 2D setups to high-dimensional image manifolds.
Synthetic Benchmarks
In the 2D Twister experiment, we visualized how the solver handles non-linear transformations and different regularization schemes. As shown in the figure above, the regularized barycenters tend toward a prior distribution $\mu_0$, demonstrating the method's ability to incorporate domain knowledge through cost functions. In high-dimensional Gaussian experiments (up to 64D), our method maintained high accuracy ($L_2$-UVP) where competing solvers failed to scale.
Image Data: MNIST and CelebA
On the MNIST dataset, we performed a "Shape-Color" experiment where the barycenter must blend geometric features from one set with color features from another.
For realistic image data, we tested the method on the "Ave, Celeba!" benchmark. By restricting the barycenter to the latent space of a pre-trained StyleGAN, our model produced sharp, semantically meaningful averages, achieving state-of-the-art FID scores. Notably, our method offers a massive leap in inference speed; for instance, producing a batch of samples takes approximately 0.01s, compared to 175s for sampling-based methods like EgBary.
Conclusion
By leveraging the congruence condition and Neural OT, we have developed a scalable and flexible framework for estimating Wasserstein barycenters. Our approach overcomes the traditional bottlenecks of tri-level optimization and Euclidean cost restrictions, making barycenter computation practical for high-dimensional, complex data. Future work will focus on improving adversarial stability and exploring more diverse cost functions for specialized industrial applications.
Summary updated