Fast Algorithms for Computational Optimal Transport and Wasserstein Barycenter

Wenshuo Guo, Nhat Ho, Michael I. Jordan

Abstract

This paper introduces two new accelerated primal-dual coordinate descent algorithms—APDRCD (Randomized) and APDGCD (Greedy)—designed to solve the Optimal Transport (OT) problem with high efficiency. These algorithms achieve the best-known theoretical complexity of $\tilde{O}(n^{5/2}/\epsilon)$ while significantly outperforming existing state-of-the-art methods in practical benchmarks. By leveraging coordinate descent and Nesterov-style acceleration, the proposed methods offer superior scaling with respect to accuracy and handle high-dimensional data more effectively than standard gradient-based approaches.

Introduction

Optimal Transport (OT) has emerged as a fundamental tool in machine learning for comparing probability distributions, with diverse applications in topic modeling, computer vision, and deep learning. However, the computational cost of the "Wasserstein distance"—the minimum cost to transform one distribution into another—remains a significant bottleneck.

Traditional linear programming solvers scale at $O(n^3)$, which is impractical for large-scale datasets. While the Sinkhorn algorithm introduced entropic regularization to improve efficiency, it scales poorly with desired accuracy ($\epsilon$), requiring $O(n^2/\epsilon^2)$ operations. This work addresses the gap between theoretical complexity and practical performance by developing algorithms that scale as $1/\epsilon$ and maintain robustness in high-dimensional settings.

Methodology

The authors focus on the Entropic Regularized OT problem and its dual formulation, applying accelerated coordinate descent to optimize the dual variables. The core contributions include:

  1. APDRCD (Accelerated Primal-Dual Randomized Coordinate Descent): This algorithm updates a single randomly selected coordinate in each iteration. It incorporates Nesterov-style acceleration to achieve faster convergence than standard coordinate descent.
  2. APDGCD (Accelerated Primal-Dual Greedy Coordinate Descent): A variant that greedily selects the coordinate with the largest gradient magnitude. This approach often results in even faster empirical progress by prioritizing the most significant errors.
  3. Primal-Dual Mapping and Rounding: The algorithms solve the dual problem while reconstructing a valid primal "transportation plan" through a weighted average of iterations. A final rounding procedure ensures the solution strictly adheres to marginal constraints.

Experimental Evaluation

The performance of APDRCD and APDGCD was validated across several benchmarks:

  • Synthetic Images: $20 \times 20$ pixel images featuring random foreground patterns.
  • MNIST Digits: Handwritten digits represented as discrete probability distributions.
  • CIFAR-10: Large-scale experiments demonstrating the algorithms' ability to handle high-dimensional data.

Key Results and Insights

The proposed algorithms demonstrate several key advantages over previous state-of-the-art methods like APDAGD (Accelerated Primal-Dual Accelerated Gradient Descent):

  • Superior Convergence Stability: APDRCD and APDGCD exhibit more stable and rapid decrements in the distance to the transportation polytope, which is critical for obtaining valid transport plans.
Comparison of the distance to the transportation polytope between the proposed APDRCD and the baseline APDAGD.
  • Efficiency in High Dimensions: Coordinate descent is particularly well-suited for OT because dual variables are high-dimensional. Updating individual "rows" or "columns" allows for more granular progress compared to full gradient updates.
  • Practical Speedup: Empirical results on MNIST and synthetic data show that the new algorithms converge faster and more smoothly to the optimal transport value.
Convergence of the OT objective value for APDRCD versus APDAGD across different regularization strengths (eta).
  • Theoretical Robustness: APDRCD matches the best-known theoretical complexity of $\tilde{O}(n^{5/2}/\epsilon)$, providing a strong foundation for its practical success.

Conclusion

The introduction of APDRCD and APDGCD represents a significant step forward in computational optimal transport. By combining the theoretical benefits of accelerated primal-dual methods with the practical efficiency of coordinate descent, these algorithms provide a robust solution for high-precision OT tasks. Future research will explore reducing the computational overhead of greedy coordinate selection and extending these methods to continuous probability measures and distributed Wasserstein Barycenter computation.

Summary updated

BibTeX
@inproceedings{guo2020fast,
  author = {Wenshuo Guo and Nhat Ho and Michael I. Jordan},
  title = {{Fast Algorithms for Computational Optimal Transport and Wasserstein Barycenter}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
}
Figure