Gumbel-Sinkhorn Network
A fully connected network that learns to sort numbers through the differentiable Sinkhorn operator.
76 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 1.7K
- Operations
- 76
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR 2018
- Cited by
- 148 (as of 29 October 2026)
- Authors
- Gonzalo Mena, David Belanger, Scott Linderman, Jasper Snoek
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m17198
- Graph hash
- 0c7630c3644d813685da946ddc0193e1586c6b45525cb226a659c980defa3e1e
- Skeleton hash
- 839e5fbc5ccce981af7acf5845ea1fccb554ab3814d7c841f2e9f245f2b1d295
- Architecture hash
- 5c700d75c3f915895969dfab04792e2fa39550a8d4e7ed9f957438bbd2cd79df
- Diagram SHA-256
- d3b2154a401913b9a5d8d8b89b75ed280c36cb560e90fe18f0f6d6a93e2302fc
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
A Sinkhorn network is a supervised method for learning to reconstruct a scrambled object. It rests on the paper's observation that the non-differentiable choice of a permutation can be approximated by a differentiable relaxation, the Sinkhorn operator, which iteratively normalizes the rows and columns of a matrix. The paper describes the operator as a simple, easy-to-implement analog of the softmax operator.
For sorting numbers, the paper's network has a first fully connected layer that links a number with an intermediate representation of 32 units, and a second fully connected layer that turns that representation into a row of the matrix. The same network processes each piece of the input, which makes the model permutation equivariant. The code behind this page is a PyTorch implementation of the paper.
The paper also introduces the Gumbel-Sinkhorn, an analog of the Gumbel Softmax distribution that extends the Gumbel-Softmax method to distributions over latent matchings. The paper reports that its network learns to sort up to N = 120 numbers, and contrasts this with a more complex recurrent network from earlier work that had performance guarantees only with at most N = 15 numbers. It was published as a conference paper at ICLR 2018.
Key idea. The paper showed that the Sinkhorn operator gives a differentiable approximation to choosing a permutation, and used it to build Sinkhorn networks and the Gumbel-Sinkhorn distribution.
- Gumbel-Sinkhorn
- Sinkhorn network
- Sinkhorn operator
- latent permutations
- learning to sort
- permutation matrix
- doubly stochastic matrix
- differentiable relaxation
- latent matchings
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{mena2018learninglatentpermutationsgumbelsinkhorn,
title={Learning Latent Permutations with Gumbel-Sinkhorn Networks},
author={Gonzalo Mena and David Belanger and Scott Linderman and Jasper Snoek},
year={2018},
eprint={1802.08665},
archivePrefix={arXiv},
primaryClass={stat.ML},
url={https://arxiv.org/abs/1802.08665},
}