Greedy stochastic algorithms for entropy-regularized optimal transport problems

Brahim Khalil Abid, Robert M. Gower

Abstract

Optimal Transport (OT) is a fundamental tool for comparing probability distributions, yet its computational complexity remains a barrier for large-scale applications. While entropy regularization and the Sinkhorn algorithm have significantly accelerated OT computations, the standard Sinkhorn approach updates all coordinates simultaneously, which can be inefficient. This paper introduces Greedy Stochastic Sinkhorn, a novel family of algorithms that generalizes the greedy Greenkhorn variant. By sampling row and column updates based on their constraint violation levels, this framework achieves state-of-the-art convergence rates while offering superior performance in low-regularization regimes.

Introduction

Optimal Transport provides a geometrically meaningful way to measure distances between probability distributions by accounting for the cost of moving mass. However, traditional solvers for the exact OT problem scale at approximately $O(n^3 \log n)$, making them impractical for modern machine learning datasets.

To address this, researchers typically employ entropy regularization, which smooths the objective function and enables the use of the Sinkhorn algorithm. Sinkhorn is highly parallelizable but updates every row and column in every iteration, regardless of whether a specific coordinate is already close to its target marginal. The Greenkhorn algorithm improved upon this by greedily updating only the single row or column with the largest violation. While effective, this "winner-takes-all" strategy can be overly aggressive. This paper proposes a stochastic middle ground that balances greedy selection with probabilistic exploration.

The Greedy Stochastic Sinkhorn Framework

The core innovation of this work is the Greedy Stochastic Sinkhorn algorithm. Instead of the deterministic updates of Sinkhorn or the strictly maximal updates of Greenkhorn, the authors propose a probabilistic selection mechanism.

Probabilistic Update Selection

In each iteration, the algorithm assigns a probability to each row and column based on its "violation"—the distance between its current marginal and the target marginal. The authors define a framework where any increasing function $h$ can be used to map violations to probabilities. Key examples include:

  • Polynomial Scaling: $h(\text{violation}) \propto \text{violation}^\alpha$
  • Softmax Scaling: $h(\text{violation}) \propto e^{\text{violation}/T}$

Interestingly, the authors demonstrate that as the parameters of these functions become extreme (e.g., $\alpha \to \infty$), the algorithm mathematically converges to the deterministic Greenkhorn algorithm.

Computational Efficiency

A primary concern with coordinate-descent methods is the overhead of calculating violations. The authors introduce a technical refinement that allows marginal violations to be updated "on the fly" in $O(n)$ time. This ensures that the cost of choosing the next update does not negate the benefits of the sparse update itself.

Theoretical and Empirical Insights

Universal Convergence

One of the paper's most significant theoretical contributions is the proof that the convergence rate of $O(n/\epsilon^2)$ is universal across the entire family of Greedy Stochastic Sinkhorn algorithms. Whether using uniform sampling, polynomial scaling, or softmax selection, the asymptotic worst-case bound remains identical to the state-of-the-art Greenkhorn rate. Furthermore, the authors prove that the variance of the distance converges to zero, ensuring the algorithm behaves almost deterministically as it nears the solution.

Performance in Low-Regularization Regimes

The algorithm was evaluated using MNIST digit pairs and synthetic random histograms. The experiments revealed that in regimes of low penalization—where the goal is to stay as close as possible to the true, non-regularized OT solution—the stochastic approach often outperforms Greenkhorn. Specifically, simple polynomial scaling ($\alpha=1$) showed faster initial progress, suggesting that updating coordinates with moderate violations helps avoid the "stalling" that can occur when a greedy algorithm focuses too narrowly on a single dimension.

Limitations and Future Work

Despite its theoretical and empirical strengths, the Greedy Stochastic Sinkhorn algorithm faces challenges regarding hardware acceleration. Because it updates only one coordinate at a time, it is less naturally suited for GPUs than the standard Sinkhorn algorithm.

To bridge this gap, the authors suggest the development of "Block" versions of the algorithm. These variants would update $d$ indices simultaneously, potentially recapturing the parallel efficiency of Sinkhorn while maintaining the convergence benefits of the greedy stochastic approach. Additionally, while the convergence rate is independent of the probability function, the practical speed is sensitive to hyperparameter tuning, marking an important area for future empirical study.

Summary updated

BibTeX
@misc{abid2018greedy,
  author = {Brahim Khalil Abid and Robert M. Gower},
  title = {{Greedy stochastic algorithms for entropy-regularized optimal transport problems}},
  year = {2018},
  eprint = {1803.01347},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.01347},
}
Figure