Estimating Barycenters of Measures in High Dimensions

Samuel Cohen, Michael Arbel, Marc Peter DeisenrotharXiv 2020

Abstract

Barycentric averaging is a principled way of summarizing populations of measures. Existing algorithms for estimating barycenters typically parametrize them as weighted sums of Diracs and optimize their weights and/or locations. However, these approaches do not scale to high-dimensional settings due to the curse of dimensionality. In this paper, we propose a scalable and general algorithm for estimating barycenters of measures in high dimensions. The key idea is to turn the optimization over measures into an optimization over generative models, introducing inductive biases that allow the method to scale while still accurately estimating barycenters. We prove local convergence under mild assumptions on the discrepancy showing that the approach is well-posed. We demonstrate that our method is fast, achieves good performance on low-dimensional problems, and scales to high-dimensional settings. In particular, our approach is the first to be used to estimate barycenters in thousands of dimensions.

Introduction

In statistics and machine learning, finding a representative "average" of several datasets or distributions is a core challenge. This is formally known as the Wasserstein Barycenter problem. Traditionally, researchers represent these barycenters as a weighted sum of Diracs (point masses). However, as the dimensionality of the data increases, the number of points needed to represent the distribution grows exponentially. This "curse of dimensionality" has historically restricted barycenter computation to very low-dimensional spaces, typically $\mathbb{R}^2$ or $\mathbb{R}^3$.

Proposed Method: Generative Parametrization

The core innovation of this work is a shift in parametrization. Instead of optimizing the locations and weights of individual points, we parametrize the barycenter $\mu^*$ using a generative model $P_\theta$. Specifically, the barycenter is defined as the push-forward of a simple latent measure (such as a Gaussian) through a neural network $G_\theta$.

The problem then becomes an optimization over the network parameters $\theta$, minimizing the weighted sum of discrepancies between the generator's output and the target measures. This framework is flexible and supports various distance metrics:

  • Sinkhorn Divergence: An entropically regularized version of the Wasserstein distance.
  • Maximum Mean Discrepancy (MMD): A kernel-based distance.
  • Scaled MMD (SMMD): Utilizing deep kernels or adversarial critics to handle complex features.

By choosing specific architectures, such as Convolutional Neural Networks for image data, the model incorporates powerful inductive biases. For example, using a "Structural Model" (e.g., a model that knows it is looking for a Gaussian) converges significantly faster than a generic Multi-Layer Perceptron (MLP). This "global" approach allows the network to learn the underlying manifold of the data, finding accurate solutions with far fewer parameters than traditional point-cloud methods.

The Impact of Discrepancy Metrics

The choice of discrepancy metric ($D$) fundamentally changes the qualitative nature of the estimated barycenter. As illustrated in Figure 1, different metrics lead to different "averaging" behaviors.

Comparison of Wasserstein and MMD barycenters on a 2D toy problem. Wasserstein (a) tends to interpolate geometry, while MMD (b) behaves like a mixture.

Wasserstein and Sinkhorn barycenters tend to interpolate geometry—for instance, a barycenter of two different shapes might look like a morph between them. In contrast, MMD barycenters tend to behave like mixtures, appearing as a superposition of the input distributions.

Experimental Evaluation

We evaluated the proposed method across a spectrum of complexity, from synthetic 2D nested ellipses to high-dimensional image datasets. In low-dimensional tests, the generative approach was significantly faster and more accurate than the previous state-of-the-art (Luise et al., 2019) under the same time budget.

MNIST and CelebA

On the MNIST dataset ($32 \times 32$ pixels), we treated each digit class as a separate measure. The visual differences between metrics are stark, as seen in Figure 2: Sinkhorn barycenters produce blurred, interpolated digits, while MMD barycenters yield sharper, mixture-like superpositions.

Comparison of Sinkhorn (a) and MMD (b) barycenters on MNIST digits.

The method's scalability was further demonstrated on the CelebA dataset ($3 \times 128 \times 128$ pixels), involving over 50,000 dimensions. We successfully computed barycenters between "male" and "female" face distributions, producing high-quality, meaningful samples—a feat previously impossible with traditional methods.

Discussion and Limitations

While the generative approach offers unprecedented scale, it faces challenges common in deep learning. Because the loss landscape is non-convex, the algorithm is guaranteed to find a local minimum rather than a global optimum. Additionally, using Scaled MMD (SMMD) requires training adversarial critics, which introduces the stability challenges typical of GAN-style training.

Conclusion

By turning the optimization over measures into an optimization over generative models, we provide a scalable framework for barycenter estimation in high dimensions. This method leverages neural network inductive biases to overcome the curse of dimensionality, enabling the analysis of complex, high-dimensional manifolds for the first time.

Summary updated

BibTeX
@misc{cohen2020estimating,
  author = {Samuel Cohen and Michael Arbel and Marc Peter Deisenroth},
  title = {{Estimating Barycenters of Measures in High Dimensions}},
  year = {2020},
  eprint = {2007.07105},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.07105},
}
Figure