Solving a Special Type of Optimal Transport Problem by a Modified Hungarian Algorithm

Abstract

We observe that computing empirical Wasserstein distance in the independence test is an optimal transport (OT) problem with a special structure. This observation inspires us to study a special type of OT problem and propose a modified Hungarian algorithm to solve it exactly. For an OT problem involving two marginals with $m$ and $n$ atoms ($m\geq n$), respectively, the computational complexity of the proposed algorithm is $\mathcal{O}(m^2n)$. Computing the empirical Wasserstein distance in the independence test requires solving this special type of OT problem, where we have $m=n^2$. The associated computational complexity of our algorithm is $\mathcal{O}(n^5)$, while the order of applying the classic Hungarian algorithm is $\mathcal{O}(n^6)$. Numerical experiments validate our theoretical results. Broader applications of the proposed algorithm are discussed at the end.

Cite

Text

Xie et al. "Solving a Special Type of Optimal Transport Problem by a Modified Hungarian Algorithm." NeurIPS 2022 Workshops: OPT, 2022.

Markdown

[Xie et al. "Solving a Special Type of Optimal Transport Problem by a Modified Hungarian Algorithm." NeurIPS 2022 Workshops: OPT, 2022.](https://mlanthology.org/neuripsw/2022/xie2022neuripsw-solving/)

BibTeX

@inproceedings{xie2022neuripsw-solving,
  title     = {{Solving a Special Type of Optimal Transport Problem by a Modified Hungarian Algorithm}},
  author    = {Xie, Yiling and Luo, Yiling and Huo, Xiaoming},
  booktitle = {NeurIPS 2022 Workshops: OPT},
  year      = {2022},
  url       = {https://mlanthology.org/neuripsw/2022/xie2022neuripsw-solving/}
}