Papers › Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distances

Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distances

4 Jun 2013NeurIPS 2013arXiv:1306.0895archive 2025-07-28

Marco Cuturi

Optimal transportation distances are a fundamental family of parameterized distances for histograms. Despite their appealing theoretical properties, excellent performance in retrieval tasks and intuitive formulation, their computation involves the resolution of a linear program whose cost is prohibitive whenever the histograms' dimension exceeds a few hundreds. We propose in this work a new family of optimal transportation distances that look at transportation problems from a maximum-entropy perspective. We smooth the classical optimal transportation problem with an entropic regularization term, and show that the resulting optimum is also a distance which can be computed through Sinkhorn-Knopp's matrix scaling algorithm at a speed that is several orders of magnitude faster than that of transportation solvers. We also report improved performance over classical optimal transportation distances on the MNIST benchmark problem.

PaperPDFCodeCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 30 code samples harvested from 6 repositories linked to this paper: 23 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 0 honoured, 4 violated, 0 with no contract checked; 19 where Syntology's instrument failed) · 7 unverified. Where Syntology's instrument failed: 12 where our contract draft was wrong; 7 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: community (archive-listed): 30 samples from 6 repositories, 23 ran (4 with no instrument failure; 19 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

No sample is linked to this paper from 1 of its repositories that Syntology harvested for other papers:

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

BenoitTran/END mentioned on GitHubMITSyntology: not harvested report
Godofnothing/optimal_transport_problem mentioned on GitHubpytorchSyntology: 9 samples, 7 ran (3 instrument-failed) · 2 unverified report
IntelLabs/Optimized-Implementation-of-Word-Movers-Distance mentioned on GitHubMITSyntology: 2 samples, 0 ran · 2 unverified report
fwilliams/fml mentioned on GitHubpytorchSyntology: 1 sample, 1 ran (1 instrument-failed) · 0 unverified report
fwilliams/point-cloud-utils mentioned on GitHubSyntology: 1 sample, 1 ran (1 instrument-failed) · 0 unverified report
fwilliams/scalable-pytorch-sinkhorn mentioned on GitHubpytorchSyntology: not harvested report
locuslab/projected_sinkhorn mentioned on GitHubpytorchSyntology: 14 samples, 11 ran (11 instrument-failed) · 3 unverified report
nicolasbolle/barycenters mentioned on GitHubtfSyntology: 3 samples, 3 ran (3 instrument-failed) · 0 unverified report
ryanwebster90/OT-texture-synthesis mentioned on GitHubMITSyntology: not harvested report
thinklab-sjtu/linsatnet mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to LinSATNet: The Positive Linear Satisfiability Neural Networks (arXiv:2407.13917; that paper's own run record: 6 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 6 where Syntology's instrument failed) · 8 unverified); nothing checks that they implement this paper's method. report
yrobink/SBCK mentioned on GitHubSyntology: not harvested 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.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

30 samples harvested: 23 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 0 honoured, 4 violated, 0 with no contract checked; 19 where Syntology's instrument failed) · 7 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

4ran · violated contract
12ran · our draft was wrong
7ran; the contract check could not run
7unverified

Licence: 23 of the 30 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 6 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

Godofnothing/optimal_transport_problem community (archive-listed) 9 samples, 7 ran (3 instrument-failed) · 2 unverified
get_K src/sinkhorn.py ran · violated contract fingerprinted no licence file found · pointer only · 0566ec84bebafc5b · report fixture: signature C:ndarray/2/float, reg:float/0/float · returned ndarray · level recorded 2026-09-22
singularity_check_jax src/sinkhorn.py ran · violated contract fingerprinted no licence file found · pointer only · 6d8d47e99849d8a9 · report fixture: signature u:ArrayImpl/1/float, v:ArrayImpl/1/float · returned ArrayImpl · level recorded 2026-09-22
singularity_check_numpy src/sinkhorn.py ran · violated contract fingerprinted no licence file found · pointer only · 928f50453e92f2a0 · report fixture: signature u:ndarray/1/float, v:ndarray/1/float · returned bool · level recorded 2026-09-22
singularity_check_torch src/sinkhorn.py ran · violated contract fingerprinted no licence file found · pointer only · bf2e51370cdc69e8 · report fixture: signature u:Tensor/2/float, v:Tensor/2/float · returned Tensor · level recorded 2026-09-22
sinkhorn_knopp_jax src/sinkhorn.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 7a9d778ff56e1279 · report fixture: signature K:ArrayImpl/2/float, a:ArrayImpl/1/float, b:ArrayImpl/1/float, max_iter:float/0/float, tol:float/0/float, log:bool/0/bool, verbose:bool/0/bool, log_interval:int/0/int · returned ArrayImpl · level recorded 2026-09-22
sinkhorn_knopp_numpy src/sinkhorn.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 2a95e0b4e82f5730 · report fixture: signature K:ndarray/2/float, a:ndarray/1/float, b:ndarray/1/float, max_iter:float/0/float, tol:float/0/float, log:bool/0/bool, verbose:bool/0/bool, log_interval:int/0/int · returned ndarray · level recorded 2026-09-22
sinkhorn_knopp_torch src/sinkhorn.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant fingerprinted no licence file found · pointer only · f9b4bdaf3b8d7d17 · report fixture: signature K:Tensor/2/float, a:Tensor/1/float, b:Tensor/1/float, max_iter:float/0/float, tol:float/0/float, log:bool/0/bool, verbose:bool/0/bool, log_interval:int/0/int · returned Tensor · level recorded 2026-09-22
sinkhorn_knopp in 7 papers src/sinkhorn.py unverified no licence file found · pointer only · 41dcc017865b1b37 · report
truncate_kernel src/sinkhorn.py unverified no licence file found · pointer only · 152965650d8abe5b · report
IntelLabs/Optimized-Implementation-of-Word-Movers-Distance community (archive-listed) 2 samples, 0 ran · 2 unverified
docs2mat prep.py unverified MIT (permissive) · b0862ba630f603cd · report
load_vecs prep.py unverified MIT (permissive) · 4bd6c4ed02fbf4d1 · report
fwilliams/fml community (archive-listed) 1 sample, 1 ran (1 instrument-failed) · 0 unverified
sinkhorn in 47 papers
census: 11 implementations from 11 papers, 11 distinct outputs across 2 buckets, one shared input per bucket
fml/functional.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · f3e2495fbb139c89 · report fixture: signature a:Tensor/2/float, b:Tensor/2/float, M:Tensor/3/float, eps:float/0/float, max_iters:int/0/int, stop_thresh:float/0/float · returned Tensor · level recorded 2026-09-22
fwilliams/point-cloud-utils community (archive-listed) 1 sample, 1 ran (1 instrument-failed) · 0 unverified
sinkhorn in 47 papers
census: 11 implementations from 11 papers, 11 distinct outputs across 2 buckets, one shared input per bucket
point_cloud_utils/_sinkhorn.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · 79cdb3d17acfd5a1 · report fixture: signature a:ndarray/2/float, b:ndarray/2/float, M:ndarray/3/float, eps:float/0/float, max_iters:int/0/int, stop_thresh:float/0/float · returned ndarray · level recorded 2026-09-22
locuslab/projected_sinkhorn community (archive-listed) 14 samples, 11 ran (11 instrument-failed) · 3 unverified
_bdot projected_sinkhorn/projected_sinkhorn.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 96e8c4030f58cb9c · report fixture: signature X:Tensor/2/float, Y:Tensor/2/float · returned Tensor · level recorded 2026-09-24
_expand projected_sinkhorn/projected_sinkhorn.py ran · our draft was wrong no licence file found · pointer only · c07b4486b58d651e · report fixture: signature X:Tensor/3/float, shape:tuple/1/int · returned Tensor · level recorded 2026-09-24
_unfold projected_sinkhorn/projected_sinkhorn.py ran · our draft was wrong no licence file found · pointer only · f7343c5b6de44ba1 · report fixture: signature x:Tensor/4/float, kernel_size:int/0/int, padding:NoneType/0/? · returned Tensor · level recorded 2026-09-24
bdot in 5 papers projected_sinkhorn/projected_sinkhorn.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 5622291b1b88a13d · report fixture: signature x:Tensor/4/float, y:Tensor/4/float · returned Tensor · level recorded 2026-09-22
collapse2 projected_sinkhorn/projected_sinkhorn.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 0225f350ab8b1db2 · report fixture: signature X:Tensor/4/float · returned Tensor · level recorded 2026-09-22
collapse3 projected_sinkhorn/projected_sinkhorn.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 4c1add083f994c2f · report fixture: signature X:Tensor/4/float · returned Tensor · level recorded 2026-09-22
evalpoly projected_sinkhorn/projected_sinkhorn.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 03349056db623470 · report fixture: signature coeff:Tensor/2/float, degree:int/0/int, z:Tensor/1/float · returned Tensor · level recorded 2026-09-22
lambertw projected_sinkhorn/projected_sinkhorn.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 43d99be742579b90 · report fixture: signature z0:Tensor/1/float, tol:float/0/float · returned Tensor · level recorded 2026-09-24
lamw projected_sinkhorn/projected_sinkhorn.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 5973fe5d1dbccd26 · report fixture: signature x:Tensor/1/float · returned Tensor · level recorded 2026-09-22
unflatten2 projected_sinkhorn/projected_sinkhorn.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 6bb08e5daa220306 · report fixture: signature X:Tensor/2/float · returned Tensor · level recorded 2026-09-22
unsqueeze3 projected_sinkhorn/projected_sinkhorn.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 4a7029914257601e · report fixture: signature X:Tensor/2/float · returned Tensor · level recorded 2026-09-22
_expand_filter projected_sinkhorn/projected_sinkhorn.py unverified no licence file found · pointer only · 09f913366f4c1d94 · report
_mm projected_sinkhorn/projected_sinkhorn.py unverified no licence file found · pointer only · 1187b4a8ad7f3d38 · report
log_sinkhorn in 7 papers projected_sinkhorn/projected_sinkhorn.py unverified no licence file found · pointer only · 7ae919dd4ef56ab8 · report
nicolasbolle/barycenters community (archive-listed) 3 samples, 3 ran (3 instrument-failed) · 0 unverified
_uv_iteration bary.py ran · our draft was wrong fingerprinted MIT (permissive) · ca496b363128dc4f · report fixture: signature r:ndarray/1/float, c:ndarray/2/float, M:ndarray/1/int, K:ndarray/2/float, iterations:int/0/int · returned tuple · level recorded 2026-09-22
sinkhorn in 47 papers
census: 11 implementations from 11 papers, 11 distinct outputs across 2 buckets, one shared input per bucket
bary.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · 18b39009324da9d4 · report fixture: signature r:ndarray/1/float, c:ndarray/1/float, M:ndarray/2/float, l:float/0/float, iterations:int/0/int · returned ndarray · level recorded 2026-09-22
sinkhorn_mk bary.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · bc5921cd42953118 · report fixture: signature r:ndarray/1/float, c:ndarray/1/float, M:ndarray/2/float, K:ndarray/2/float, iterations:int/0/int · returned ndarray · level recorded 2026-09-22

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it. Siblings are assemblies lifted from this paper in the same batch for the same method: alternative readings kept side by side; none replaces or supersedes another.

5 assemblies on this paper: 5 harvested, 0 generated, listed in 1 groups (siblings lifted in one batch form one group).

5 sibling assemblies for Sinkhorn Distances (harvested), lifted in the same batch on 2026-09-09: alternative readings kept side by side; none replaces or supersedes another.

harvested Assembly for Sinkhorn Distances (graph method: Sinkhorn Distances). 9 bricks; individually on a fixture: 7 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 0 honoured, 4 violated, 0 with no contract checked; 3 where Syntology's instrument failed) · 2 unverified. The assembly has not been run end-to-end.

one of 5 siblings

  1. sinkhorn_knopp entry · level 0 · unverified · 41dcc017865b1b37
  2. get_K helper · level 1 · ran · violated contract · 0566ec84bebafc5b
  3. sinkhorn_knopp_jax model · level 1 · ran; the contract check could not run (RAISES) · 7a9d778ff56e1279
  4. sinkhorn_knopp_numpy model · level 1 · ran; the contract check could not run (RAISES) · 2a95e0b4e82f5730
  5. sinkhorn_knopp_torch model · level 1 · ran; the contract check could not run (RAISES) · f9b4bdaf3b8d7d17
  6. truncate_kernel helper · level 0 · unverified · 152965650d8abe5b
  7. singularity_check_jax helper · level 1 · ran · violated contract · 6d8d47e99849d8a9
  8. singularity_check_numpy helper · level 1 · ran · violated contract · 928f50453e92f2a0
  9. singularity_check_torch helper · level 1 · ran · violated contract · bf2e51370cdc69e8

harvested Assembly for Sinkhorn Distances (graph method: Sinkhorn Distances). 1 brick; individually on a fixture: 1 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.

one of 5 siblings

  1. sinkhorn entry · level 1 · ran; the contract check could not run (RAISES) · f3e2495fbb139c89

harvested Assembly for Sinkhorn Distances (graph method: Sinkhorn Distances). 3 bricks; individually on a fixture: 3 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 3 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.

one of 5 siblings

  1. sinkhorn entry · level 1 · ran; the contract check could not run (RAISES) · 18b39009324da9d4
  2. sinkhorn_mk helper · level 1 · ran; the contract check could not run (RAISES) · bc5921cd42953118
  3. _uv_iteration update_rule · level 1 · ran · our draft was wrong · ca496b363128dc4f

harvested Assembly for Sinkhorn Distances (graph method: Sinkhorn Distances). 1 brick; individually on a fixture: 1 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.

one of 5 siblings

  1. sinkhorn entry · level 1 · ran; the contract check could not run (RAISES) · 79cdb3d17acfd5a1

harvested Assembly for Sinkhorn Distances (graph method: Sinkhorn Distances). 14 bricks; individually on a fixture: 11 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 11 where Syntology's instrument failed) · 3 unverified. The assembly has not been run end-to-end.

one of 5 siblings

  1. log_sinkhorn entry · level 0 · unverified · 7ae919dd4ef56ab8
  2. _expand helper · level 1 · ran · our draft was wrong · c07b4486b58d651e
  3. _expand_filter helper · level 0 · unverified · 09f913366f4c1d94
  4. _mm helper · level 0 · unverified · 1187b4a8ad7f3d38
  5. bdot helper · level 1 · ran · our draft was wrong · 5622291b1b88a13d
  6. collapse3 helper · level 1 · ran · our draft was wrong · 4c1add083f994c2f
  7. lamw helper · level 1 · ran · our draft was wrong · 5973fe5d1dbccd26
  8. unsqueeze3 helper · level 1 · ran · our draft was wrong · 4a7029914257601e
  9. _unfold helper · level 1 · ran · our draft was wrong · f7343c5b6de44ba1
  10. collapse2 helper · level 1 · ran · our draft was wrong · 0225f350ab8b1db2
  11. unflatten2 helper · level 1 · ran · our draft was wrong · 6bb08e5daa220306
  12. _bdot helper · level 1 · ran · our draft was wrong · 96e8c4030f58cb9c
  13. lambertw helper · level 1 · ran · our draft was wrong · 43d99be742579b90
  14. evalpoly helper · level 1 · ran · our draft was wrong · 03349056db623470

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="1306.0895") returns these assemblies with each brick's role and wiring (how to connect).

Tasks

Retrieval

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SPEED

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