Papers › Fast Optimal Transport through Sliced Wasserstein Generalized Geodesics

Fast Optimal Transport through Sliced Wasserstein Generalized Geodesics

4 Jul 2023arXiv:2307.01770archive 2025-07-28

Guillaume Mahey, Laetitia Chapel, Gilles Gasso, Clément Bonet, Nicolas Courty

Wasserstein distance (WD) and the associated optimal transport plan have been proven useful in many applications where probability measures are at stake. In this paper, we propose a new proxy of the squared WD, coined min-SWGG, that is based on the transport map induced by an optimal one-dimensional projection of the two input distributions. We draw connections between min-SWGG and Wasserstein generalized geodesics in which the pivot measure is supported on a line. We notably provide a new closed form for the exact Wasserstein distance in the particular case of one of the distributions supported on a line allowing us to derive a fast computational scheme that is amenable to gradient descent optimization. We show that min-SWGG is an upper bound of WD and that it has a complexity similar to as Sliced-Wasserstein, with the additional feature of providing an associated transport plan. We also investigate some theoretical properties such as metricity, weak convergence, computational and topological properties. Empirical evidences support the benefits of min-SWGG in various contexts, from gradient flows, shape matching and image colorization, among others.

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="2307.01770")

Code

Syntology Ran 2 of 27 code samples harvested from 1 repository linked to this paper; 25 have no recorded run. Of those that ran: 2 ran · our draft was wrong.

By repository: official repository: 27 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.

maheyg/swgg officialmentioned in paperpytorchMIT 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

27 samples harvested; 2 ran; 0 honoured the contract we drafted; 25 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.

2ran · our draft was wrong
25unverified

Licence: 0 of the 27 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 maheyg/swgg. “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.

SWGG_smooth maheyg/swgg/code/SWGG.py official repository ran · our draft was wrong MIT (permissive) · a22c3f25a95d6153 · report
W2_1d maheyg/swgg/code/SWGG.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 09b0bdfef41ee4cd · report
PWD MaheyG/SWGG/code/other_loss.py official repository unverified MIT (permissive) · d3e61fdc6a748dfa · report
W2_1d MaheyG/SWGG/code/SWGG.py official repository unverified MIT (permissive) · 10853de1303723dd · report
W2_proj maheyg/swgg/code/SWGG.py official repository unverified MIT (permissive) · f5c699456b9401ca · report
W2_proj MaheyG/SWGG/code/SWGG.py official repository unverified MIT (permissive) · 805b00de71cd788c · report
Y_to_X MaheyG/SWGG/code/utils_ICP.py official repository unverified MIT (permissive) · a994c5d41db78bae · report
bures MaheyG/SWGG/code/utils_Color_Transfer.py official repository unverified MIT (permissive) · f668fbaf283bfb9e · report
compute_bary_line maheyg/swgg/code/SWGG.py official repository unverified MIT (permissive) · 0d22210ae635b4f5 · report
compute_bary_line MaheyG/SWGG/code/SWGG.py official repository unverified MIT (permissive) · 5803c476aaa8df6b · report
load_data MaheyG/SWGG/code/utils_GF.py official repository unverified MIT (permissive) · 95742157c81daf61 · report
load_image MaheyG/SWGG/code/utils_ICP.py official repository unverified MIT (permissive) · ee959ae4d23366a2 · report
make_blobs_random MaheyG/SWGG/code/generate_data.py official repository unverified MIT (permissive) · 0c49eeb3efa10d5b · report
make_blobs_reg MaheyG/SWGG/code/generate_data.py official repository unverified MIT (permissive) · 281c672a91d898db · report
make_spiral MaheyG/SWGG/code/generate_data.py official repository unverified MIT (permissive) · e6859576298167fd · report
max_sw MaheyG/SWGG/code/other_loss.py official repository unverified MIT (permissive) · d5cd1f149cc19377 · report
monge MaheyG/SWGG/code/utils_Color_Transfer.py official repository unverified MIT (permissive) · 020d9a0a810e3203 · report
nearest_neighbor MaheyG/SWGG/code/ICP.py official repository unverified MIT (permissive) · 06574dd18197d712 · report
procruste MaheyG/SWGG/code/ICP.py official repository unverified MIT (permissive) · 68ab46e49e152b1d · report
quantile_to_plan MaheyG/SWGG/code/utils.py official repository unverified MIT (permissive) · 128af456c8f6bf42 · report
random_slice MaheyG/SWGG/code/utils.py official repository unverified MIT (permissive) · 2a5e2478a8bf42d6 · report
rotation_matrix MaheyG/SWGG/code/utils_ICP.py official repository unverified MIT (permissive) · a3cf34348d116058 · report
sort_to_plan MaheyG/SWGG/code/utils.py official repository unverified MIT (permissive) · 26b94ccd4d0041f5 · report
sqrtm MaheyG/SWGG/code/utils_Color_Transfer.py official repository unverified MIT (permissive) · 265432966cf60195 · report
sw MaheyG/SWGG/code/other_loss.py official repository unverified MIT (permissive) · 780b93de379e325c · report
temperature MaheyG/SWGG/code/Simulated_Annealing.py official repository unverified MIT (permissive) · 56963d39c9de6af6 · report
w2 MaheyG/SWGG/code/utils_GF.py official repository unverified MIT (permissive) · 4ca72352fb69bafc · report

Tasks

ColorizationImage Colorization

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