Efficient, Stable, and Analytic Differentiation of the Sinkhorn Loss

Yixuan Qiu, Haoyun Yin, Xiao WangICLR 2023

Abstract

Optimal transport and the Wasserstein distance have become indispensable building blocks of modern deep generative models, but their computional costs greatly prohibit their applications in statistical machine learning models. Recently, the Sinkhorn loss, as an approximation to the Wasserstein distance, has gained massive popularity, and much work has been done for its theoretical properties. To embed the Sinkhorn loss into gradient-based learning frameworks, efficient algorithms for both the forward and backward passes of the Sinkhorn loss are required. In this article, we first demonstrate issues of the widely-used Sinkhorn's algorithm, and show that the L-BFGS algorithm is a potentially better candidate for the forward pass. Then we derive an analytic form of the derivative of the Sinkhorn loss with respect to the input cost matrix, which results in a very efficient backward algorithm. We rigorously analyze the convergence and stability properties of the advocated algorithms, and use various numerical experiments to validate the superior performance of the proposed methods.
BibTeX
@inproceedings{qiu2023efficient,
  author = {Yixuan Qiu and Haoyun Yin and Xiao Wang},
  title = {{Efficient, Stable, and Analytic Differentiation of the Sinkhorn Loss}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=uATOkwOZaI},
}

Loading related content...

Figure