Stochastic Approximation versus Sample Average Approximation for population Wasserstein barycenters

Darina Dvinskikh

Abstract

In the machine learning and optimization community, two primary paradigms dominate the convex risk minimization landscape: Stochastic Approximation (SA) and Sample Average Approximation (SAA). While SA methods, such as Stochastic Gradient Descent, are traditionally considered superior in terms of oracle complexity, this paper challenges that hierarchy within the context of Wasserstein barycenters. We provide a detailed complexity analysis for both SA and SAA implementations, considering both standard and entropy-regularized optimal transport distances. Our results reveal a "superiority inversion," demonstrating that SAA can outperform SA in specific regimes, particularly when leveraging entropic regularization and parallel computing architectures. Additionally, we derive confidence intervals for barycenters under the $\ell_2$-norm as a byproduct of our analysis.

Introduction

Finding the "average" of a set of data points is a fundamental task in statistics. In Euclidean space, this is straightforward; however, when data points are probability distributions—such as images, word embeddings, or sensor histograms—the underlying geometry is non-Euclidean. The Wasserstein barycenter, defined via Optimal Transport (OT), has emerged as the gold standard for capturing the structural characteristics of such distributions.

To compute the "population" barycenter (the mean of an unknown distribution of measures), researchers typically choose between two optimization strategies:

  1. Stochastic Approximation (SA): An online approach where the estimate is updated incrementally as new measures are sampled.
  2. Sample Average Approximation (SAA): An offline approach where a fixed batch of measures is collected first, and the barycenter of this empirical sample is computed.

Since the seminal work of Nemirovski et al. (2009), the consensus has been that SA is generally more efficient than SAA for large-scale stochastic problems. This paper investigates whether this rule holds for the unique, non-smooth geometry of Wasserstein spaces.

Methodological Framework

The research evaluates the complexity of finding barycenters using two variations of Optimal Transport: standard (unregularized) and entropy-regularized. The latter is often preferred in practice as it smooths the objective function and allows for faster computation via the Sinkhorn algorithm.

Stochastic Approximation (SA)

The paper analyzes SA through the lens of Stochastic Gradient Descent (SGD) and Stochastic Mirror Descent (MD). In these online settings, the Sinkhorn algorithm acts as an "inexact oracle" to provide gradient estimates. The complexity of these methods is inherently tied to the precision of the oracle and the variance of the stochastic gradients.

Sample Average Approximation (SAA)

For the SAA approach, the study focuses on Iterative Bregman Projections (IBP) and its accelerated variants. Traditionally, SAA is criticized for its memory requirements and potential linear dependence on the problem's dimension ($n$). However, this paper introduces a regularization technique based on Bregman divergence that allows SAA to mitigate the "curse of dimensionality," making it highly competitive with online methods.

Key Insights: The Superiority Inversion

The most significant contribution of this work is the identification of a "superiority inversion." While SA is often faster for general convex problems, the specific structure of the Wasserstein barycenter problem favors SAA under certain conditions:

  • The Role of Strong Convexity: Entropic regularization provides the strong convexity necessary for SAA to achieve high sample efficiency. When the regularization parameter ($\gamma$) is small, SAA implementations can achieve lower total complexity than their SA counterparts.
  • Parallelization: SAA is naturally suited for distributed computing. Because it operates on a fixed batch, the workload can be easily partitioned across multiple machines. In contrast, SA is inherently sequential, which limits its scalability for non-smooth objectives in high-performance computing environments.
  • Complexity Bounds: The paper establishes rigorous bounds for both methods. For instance, while Stochastic Mirror Descent (SA) shows a complexity of $\tilde{O}(\frac{n^3 \|C\|_\infty^2}{\varepsilon^2})$, Accelerated IBP (SAA) can reach $\tilde{O}(\frac{n^4 \|C\|_\infty^4}{\gamma^2 \varepsilon^2})$. The analysis shows that as the desired accuracy $\varepsilon$ and regularization $\gamma$ vary, the optimal choice between SA and SAA shifts.

Experimental Validation

The theoretical findings were validated using synthetic benchmarks, primarily focusing on one-dimensional Gaussian measures and truncated Gaussians. These datasets are ideal for verification because the true Wasserstein barycenter for Gaussian distributions has a known closed-form solution.

In numerical experiments involving $2 \times 10^4$ measures, SAA-based methods (specifically IBP) demonstrated superior "wall-clock" performance. Despite the theoretical overhead of processing batches, the actual time elapsed to reach convergence was significantly lower for SAA than for SA-based SGD, confirming that the theoretical "inversion" translates to practical computational advantages.

Conclusion and Future Work

This research refines our understanding of stochastic optimization for Optimal Transport. By proving that SAA can be more efficient than SA for Wasserstein barycenters, the paper provides a new heuristic for researchers working with large-scale distributional data. Furthermore, the introduction of $\ell_2$-norm confidence intervals offers a statistical tool for quantifying the uncertainty of calculated barycenters.

Future research directions include extending these complexity bounds to continuous probability measures (beyond the discrete case) and exploring the implications for multi-marginal Sinkhorn algorithms. Additionally, investigating how different cost matrices ($C$) influence the SA/SAA trade-off remains an open and promising area of study.

Summary updated

Abstract

In the machine learning and optimization community, there are two main approaches for the convex risk minimization problem, namely, the Stochastic Approximation (SA) and the Sample Average Approximation (SAA). In terms of oracle complexity (required number of stochastic gradient evaluations), both approaches are considered equivalent on average (up to a logarithmic factor). The total complexity depends on the specific problem, however, starting from work \cite{nemirovski2009robust} it was generally accepted that the SA is better than the SAA. % Nevertheless, in case of large-scale problems SA may run out of memory as storing all data on one machine and organizing online access to it can be impossible without communications with other machines. SAA in contradistinction to SA allows parallel/distributed calculations. We show that for the Wasserstein barycenter problem this superiority can be inverted. We provide a detailed comparison by stating the complexity bounds for the SA and the SAA implementations calculating barycenters defined with respect to optimal transport distances and entropy-regularized optimal transport distances. As a byproduct, we also construct confidence intervals for the barycenter defined with respect to entropy-regularized optimal transport distances in the $\ell_2$-norm. The preliminary results are derived for a general convex optimization problem given by the expectation in order to have other applications besides the Wasserstein barycenter problem.
BibTeX
@misc{dvinskikh2020stochastic,
  author = {Darina Dvinskikh},
  title = {{Stochastic Approximation versus Sample Average Approximation for population Wasserstein barycenters}},
  year = {2020},
  eprint = {2001.07697},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.07697},
}
Figure