Papers › Conditional Wasserstein Distances with Applications in Bayesian OT Flow Matching

Conditional Wasserstein Distances with Applications in Bayesian OT Flow Matching

27 Mar 2024arXiv:2403.18705archive 2025-07-28

Jannis Chemseddine, Paul Hagemann, Gabriele Steidl, Christian Wald

In inverse problems, many conditional generative models approximate the posterior measure by minimizing a distance between the joint measure and its learned approximation. While this approach also controls the distance between the posterior measures in the case of the Kullback--Leibler divergence, this is in general not hold true for the Wasserstein distance. In this paper, we introduce a conditional Wasserstein distance via a set of restricted couplings that equals the expected Wasserstein distance of the posteriors. Interestingly, the dual formulation of the conditional Wasserstein-1 flow resembles losses in the conditional Wasserstein GAN literature in a quite natural way. We derive theoretical properties of the conditional Wasserstein distance, characterize the corresponding geodesics and velocity fields as well as the flow ODEs. Subsequently, we propose to approximate the velocity fields by relaxing the conditional Wasserstein distance. Based on this, we propose an extension of OT Flow Matching for solving Bayesian inverse problems and demonstrate its numerical advantages on an inverse problem and class-conditional image generation.

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

Code

Syntology Ran 7 of 16 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 6 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jchemseddine/conditional_wasserstein_distances officialmentioned in papermentioned on GitHubpytorch 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

16 samples harvested; 7 ran; 0 honoured the contract we drafted; 9 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 · our draft was wrong
6ran
9unverified

Licence: 16 of the 16 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 jchemseddine/conditional_wasserstein_distances. “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.

draw_mixture_dist jchemseddine/conditional_wasserstein_distances/utils/Util_mixture.py official repository ran no licence file found · pointer only · 94bd78b15164446b · report
get_param_groups_and_shapes jchemseddine/conditional_wasserstein_distances/utils/fp16_util.py official repository ran no licence file found · pointer only · e41367ad14ff58fd · report
get_single_gaussian_posterior jchemseddine/conditional_wasserstein_distances/utils/Util_mixture.py official repository ran no licence file found · pointer only · 504e3a94c9a36991 · report
make_master_params jchemseddine/conditional_wasserstein_distances/utils/fp16_util.py official repository ran no licence file found · pointer only · e20dd5102da3b050 · report
make_output_format jchemseddine/conditional_wasserstein_distances/utils/logger.py official repository ran no licence file found · pointer only · bcd8b4acab199405 · report
unflatten_master_params jchemseddine/conditional_wasserstein_distances/utils/fp16_util.py official repository ran no licence file found · pointer only · 64fff1e30802b815 · report
zero_module jchemseddine/conditional_wasserstein_distances/utils/nn.py official repository ran · our draft was wrong no licence file found · pointer only · 129b804760b3115f · report
avg_pool_nd jchemseddine/conditional_wasserstein_distances/utils/nn.py official repository unverified no licence file found · pointer only · ecd0fc28815b65ae · report
calculate_activation_statistics jchemseddine/conditional_wasserstein_distances/utils/fid_score.py official repository unverified no licence file found · pointer only · 014ed7df4050e8a4 · report
calculate_frechet_distance jchemseddine/conditional_wasserstein_distances/utils/fid_score.py official repository unverified no licence file found · pointer only · 0def50a351111624 · report
conv_nd jchemseddine/conditional_wasserstein_distances/utils/nn.py official repository unverified no licence file found · pointer only · fe4eb545bbb728e0 · report
get_activations jchemseddine/conditional_wasserstein_distances/utils/fid_score.py official repository unverified no licence file found · pointer only · f10c698bdf0953d7 · report
get_mixture_posterior jchemseddine/conditional_wasserstein_distances/utils/Util_mixture.py official repository unverified no licence file found · pointer only · ff0561a8f9d587e0 · report
mpi_weighted_mean jchemseddine/conditional_wasserstein_distances/utils/logger.py official repository unverified no licence file found · pointer only · e515a67f7f32e76d · report
profile jchemseddine/conditional_wasserstein_distances/utils/logger.py official repository unverified no licence file found · pointer only · 0c6607473a4c4c55 · report
sample jchemseddine/conditional_wasserstein_distances/utils/utils_FID.py official repository unverified no licence file found · pointer only · 383ae97dfafc251c · report

Tasks

Conditional Image GenerationImage Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

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