Papers › Learning Permutations with Sinkhorn Policy Gradient

Learning Permutations with Sinkhorn Policy Gradient

18 May 2018arXiv:1805.07010archive 2025-07-28

Patrick Emami, Sanjay Ranka

Many problems at the intersection of combinatorics and computer science require solving for a permutation that optimally matches, ranks, or sorts some data. These problems usually have a task-specific, often non-differentiable objective function that data-driven algorithms can use as a learning signal. In this paper, we propose the Sinkhorn Policy Gradient (SPG) algorithm for learning policies on permutation matrices. The actor-critic neural network architecture we introduce for SPG uniquely decouples representation learning of the state space from the highly-structured action space of permutations with a temperature-controlled Sinkhorn layer. The Sinkhorn layer produces continuous relaxations of permutation matrices so that the actor-critic architecture can be trained end-to-end. Our empirical results show that agents trained with SPG can perform competitively on sorting, the Euclidean TSP, and matching tasks. We also observe that SPG is significantly more data efficient at the matching task than the baseline methods, which indicates that SPG is conducive to learning representations that are useful for reasoning about permutations.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1805.07010")

Code

Syntology Ran 2 of 10 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · violated contract.

By repository: community (archive-listed): 10 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

pemami4911/sinkhorn-policy-gradient.pytorch mentioned on GitHubpytorchBSD-3-Clause report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 2 ran; 1 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · violated contract
8unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from pemami4911/sinkhorn-policy-gradient.pytorch. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

array_min2d pemami4911/sinkhorn-policy-gradient.pytorch/spg/memory.py community (archive-listed) ran · honoured contract fingerprinted BSD-3-Clause (permissive) · 6dd69b9b76d320b4 · report
str2bool pemami4911/sinkhorn-policy-gradient.pytorch/train_nco.py community (archive-listed) ran · violated contract BSD-3-Clause (permissive) · 248284f69adfeaad · report
download_file_from_google_drive pemami4911/sinkhorn-policy-gradient.pytorch/envs/tsp_task.py community (archive-listed) unverified BSD-3-Clause (permissive) · 500e7106751f6ddf · report
reward pemami4911/sinkhorn-policy-gradient.pytorch/envs/mwm2D_task.py community (archive-listed) unverified BSD-3-Clause (permissive) · fbcc4ff1d7572f35 · report
reward_ddpg_A pemami4911/sinkhorn-policy-gradient.pytorch/envs/sorting_task.py community (archive-listed) unverified BSD-3-Clause (permissive) · 3cfb4f8ceec0755c · report
reward_ddpg_B pemami4911/sinkhorn-policy-gradient.pytorch/envs/sorting_task.py community (archive-listed) unverified BSD-3-Clause (permissive) · 231f961891da4b54 · report
reward_nco pemami4911/sinkhorn-policy-gradient.pytorch/envs/mwm2D_task.py community (archive-listed) unverified BSD-3-Clause (permissive) · 897b35a435866750 · report
reward_nco pemami4911/sinkhorn-policy-gradient.pytorch/envs/sorting_task.py community (archive-listed) unverified BSD-3-Clause (permissive) · 7db1ec87169e246b · report
reward_nco pemami4911/sinkhorn-policy-gradient.pytorch/envs/tsp_task.py community (archive-listed) unverified BSD-3-Clause (permissive) · 5a75eb99cba9891c · report
reward_spg pemami4911/sinkhorn-policy-gradient.pytorch/envs/tsp_task.py community (archive-listed) unverified BSD-3-Clause (permissive) · 05adf444acd0d22d · report

Tasks

Representation Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections