A Push-Relabel Based Additive Approximation for Optimal Transport

Nathaniel Lahn, Sharath Raghvendra, Kaiyi Zhang
3/7/2022
cs.LGcs.DS

Official code: kaiyiz/Push-Relabel-OT (1 star, Python, last commit 2022-12-06).

Abstract

Optimal Transport is a popular distance metric for measuring similarity between distributions. Exact algorithms for computing Optimal Transport can be slow, which has motivated the development of approximate numerical solvers (e.g.

Show full abstract

Sinkhorn method). We introduce a new and very simple combinatorial approach to find an $\varepsilon$-approximation of the OT distance. Our algorithm achieves a near-optimal execution time of $O(n^2/\varepsilon^2)$ for computing OT distance and, for the special case of the assignment problem, the execution time improves to $O(n^2/\varepsilon)$. Our algorithm is based on the push-relabel framework for min-cost flow problems. Unlike the other combinatorial approach (Lahn, Mulchandani and Raghvendra, NeurIPS 2019) which does not have a fast parallel implementation, our algorithm has a parallel execution time of $O(\log n/\varepsilon^2)$. Interestingly, unlike the Sinkhorn algorithm, our method also readily provides a compact transport plan as well as a solution to an approximate version of the dual formulation of the OT problem, both of which have numerous applications in Machine Learning. For the assignment problem, we provide both a CPU implementation as well as an implementation that exploits GPU parallelism. Experiments suggest that our algorithm is faster than the Sinkhorn algorithm, both in terms of CPU and GPU implementations, especially while computing matchings with a high accuracy.

View on arXivView PDF

Code Implementations(1)

The implementation of the push-relabel based additive approximation optimal transport algorithm for the paper: https://arxiv.org/pdf/2203.03732.pdf

10PythonMar 3, 20223 years ago

Similar Papers

Cite this paper

@article{lahn2022pushrelabel,
  title  = {A Push-Relabel Based Additive Approximation for Optimal Transport},
  author = {Nathaniel Lahn and Sharath Raghvendra and Kaiyi Zhang},
  year   = {2022},
  eprint = {2203.03732},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.03732}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.03732.svg)](https://codeofpaper.com/paper/2203.03732)

Discussion