A Unified Framework for Implicit Sinkhorn Differentiation

Marvin Eisenberger, Aysim Toker, Laura Leal-Taixé, Florian Bernard, Daniel Cremers
5/13/2022
cs.CV

Official code: marvin-eisenberger/implicit-sinkhorn (75 stars, Python, last commit 2023-02-17).

Abstract

The Sinkhorn operator has recently experienced a surge of popularity in computer vision and related fields. One major reason is its ease of integration into deep learning frameworks.

Show full abstract

To allow for an efficient training of respective neural networks, we propose an algorithm that obtains analytical gradients of a Sinkhorn layer via implicit differentiation. In comparison to prior work, our framework is based on the most general formulation of the Sinkhorn operator. It allows for any type of loss function, while both the target capacities and cost matrices are differentiated jointly. We further construct error bounds of the resulting algorithm for approximate inputs. Finally, we demonstrate that for a number of applications, simply replacing automatic differentiation with our algorithm directly improves the stability and accuracy of the obtained gradients. Moreover, we show that it is computationally more efficient, particularly when resources like GPU memory are scarce.

View on arXivView PDF

Code Implementations(1)

754PythonMar 17, 20223 years ago

Similar Papers

Cite this paper

@article{eisenberger2022unified,
  title  = {A Unified Framework for Implicit Sinkhorn Differentiation},
  author = {Marvin Eisenberger and Aysim Toker and Laura Leal-Taixé and Florian Bernard and Daniel Cremers},
  year   = {2022},
  eprint = {2205.06688},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.06688}
}

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/2205.06688.svg)](https://codeofpaper.com/paper/2205.06688)

Discussion