SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.08938 · NeurIPS · 2024

Mirror and Preconditioned Gradient Descent in Wasserstein Space

Anna Korba, T Wien, Clément Bonet, Théo Uscidda, Adam David, Pierre-Cyril Aubin-Frankowski

arXiv · PDF · Open in the Atlas

Code that ran

13 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 4 violated it and 0 have no contract verdict; 7 failures of our instrument; 2 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2406.08938.json · badge: /api/ran/2406.08938.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space canonical (classifier label)
classifier basis: census
13 ran · 2 no recorded run
FunctionStatusWhere it lives
ent Ran
ran, honoured the contract we drafted
clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space/lib_jax/estimator_entropy.py
pointer only (licence: NONE) · get_code("4ca1c4e3be0976ac")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

fill_diagonal Ran
ran; our contract draft was wrong, not the code
clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space/lib_jax/estimator_entropy.py
pointer only (licence: NONE) · get_code("061339e08118d70f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

fwd_solver Ran
ran; our contract draft was wrong, not the code
clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space/lib_jax/gd.py
pointer only (licence: NONE) · get_code("c5cb4bbca6ccc429")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gaussian_kernel Ran
ran, violated the contract we drafted
clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space/lib_jax/mmdf.py
pointer only (licence: NONE) · get_code("de0ddc485474c498")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gen_matrix_with_eigs Ran
ran, violated the contract we drafted
clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space/xps_Gaussians/xp_gaussian.py
pointer only (licence: NONE) · get_code("08da1440ea25282e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_potential Ran
ran, honoured the contract we drafted
clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space/lib_jax/swf.py
pointer only (licence: NONE) · get_code("4bb4069f124b6f5f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gradient_descent Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space/lib_jax/gd.py
pointer only (licence: NONE) · get_code("3aa3ac0cc5796225")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

imq_kernel Ran
ran, violated the contract we drafted
clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space/lib_jax/mmdf.py
pointer only (licence: NONE) · get_code("f37dfdac0d4f70ee")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

kl_divergence Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space/xps_Gaussians/xp_gaussian.py
pointer only (licence: NONE) · get_code("969166020ca100c0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

laplace_kernel Ran
ran, violated the contract we drafted
clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space/lib_jax/mmdf.py
pointer only (licence: NONE) · get_code("52ff60389b3a2228")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mirror_descent_entropy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space/lib_jax/mirror_gaussians.py
pointer only (licence: NONE) · get_code("b81bc59373b998ed")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

plot_trajectory Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space/lib_jax/utils_plot.py
pointer only (licence: NONE) · get_code("6e4b6e8722e3b41d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

target_grad_sw Ran
ran; our contract draft was wrong, not the code
clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space/lib_jax/swf.py
pointer only (licence: NONE) · get_code("5520a0a9dbc6a754")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

forward_backward Not yet run
unverified (harvested, no recorded run)
clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space/lib_jax/mirror_gaussians.py
pointer only (licence: NONE) · get_code("becb8047c46a5257")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

mirror_descent_kl Not yet run
unverified (harvested, no recorded run)
clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space/lib_jax/mirror_gaussians.py
pointer only (licence: NONE) · get_code("fbc6d7665e4fc746")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, clbonet/Mirror_and_Preconditioned_Gradient_Descent_in_Wasserstein_Space when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 15 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

As the problem of minimizing functionals on the Wasserstein space encompasses many applications in machine learning, different optimization algorithms on R d have received their counterpart analog on the Wasserstein space. We focus here on lifting two explicit algorithms: mirror descent and preconditioned gradient descent. These algorithms have been introduced to better capture the geometry of the function to minimize and are provably convergent under appropriate (namely relative) smoothness and convexity conditions. Adapting these notions to the Wasserstein space, we prove guarantees of convergence of some Wassersteingradient-based discrete-time schemes for new pairings of objective functionals and regularizers. The difficulty here is to carefully select along which curves the functionals should be smooth and convex. We illustrate the advantages of adapting the geometry induced by the regularizer on ill-conditioned optimization tasks, and showcase the improvement of choosing different discrepancies and geometries in a computational biology task of aligning single-cells. is the set of couplings between µ and ν, and we denote by Π o (µ, ν) the set of optimal couplings. When the optimal coupling is of the form γ = (Id, T ν µ ) # µ with Id : x → x and T ν µ ∈ L 2 (µ) satisfying (T ν µ ) # µ = ν, we call T ν µ the OT map. We refer to the metric space (P 2 (R d ), W 2 ) as the Wasserstein space. We note S ++ d (R) the space of symmetric positive definite matrices, and for In this section, we fix µ ∈ P 2 (R d ) and introduce first the Bregman divergence on L 2 (µ) along with the notions of relative convexity and smoothness that will be crucial in the analysis of the optimization schemes. Then, we introduce the differential structure and computation rules for differentiating a functional F : P 2 (R d ) → R along curves and discuss notions of convexity on P 2 (R d ). We refer the reader to Appendix B and Appendix C for more details on L 2 (µ) and the Wasserstein space respectively. Finally, we introduce the mirror descent and preconditioned gradient descent on R d . Bregman divergence on L 2 (µ). Frigyik et al. [54, Definition 2.1] defined the Bregman divergence of Fréchet differentiable functionals. In our case, we only need Gâteaux differentiability. In this paper, ∇ refers to the Gâteaux differential, which coincides with the Fréchet derivative if the latter exists. Definition 1. Let ϕ µ : L 2 (µ) → R be convex and continuously Gâteaux differentiable. The Bregman divergence is defined for all T, S ∈ L 2 (µ) as We use the same definition on R d . The map ϕ µ (respectively ∇ϕ µ ) in the definition of d ϕµ above is referred to as the Bregman potential (respectively mirror map). If ϕ µ is strictly convex, then d ϕµ is a valid Bregman divergence, i.e. it is positive and separates maps µ-almost everywhere (a.e.). In particular, for . Bregman divergences have received a lot of attention as they allow to define provably convergent schemes for functions which are not smooth in the standard (e.g. Euclidean) sense [11,88], and thus for which gradient descent is not appropriate. These guarantees rely on the notion of relative smoothness and relative convexity [88,89], which we introduce now on L 2 (µ). Definition 2 (Relative smoothness and convexity). Let ψ µ , ϕ µ : L 2 (µ) → R be convex and continuously Gâteaux differentiable. We say that ψ µ is β-smooth (respectively α-convex) relative to ϕ µ if and only if for all T, S ∈ L 2 (µ), d ψµ (T, S) ≤ βd ϕµ (T, S) (respectively d ψµ (T, S) ≥ αd ϕµ (T, S)). Similarly to the Euclidean case [88], relative smoothness and convexity are equivalent to respectively βϕ µψ µ and ψ µαϕ µ being convex (see Appendix B.2). Yet, proving the convergence of (1) requires only that these properties hold at specific functions (directions), a fact we will soon exploit. In some situations, we need the L 2 Fenchel transform ϕ * µ of ϕ µ to be differentiable, e.g. to compute its Bregman divergence d ϕ * µ . We show in Lemma 18 that a sufficient condition to satisfy this property is for ϕ µ to be strictly convex, lower semicontinuous and superlinear, i.e. lim ∥T∥→∞ ϕ µ (T)/∥T∥ L 2 (µ) = +∞. Moreover, in this case, (∇ϕ µ ) -1 = ∇ϕ * µ . When needed, we will suppose that ϕ µ satisfies this assumption. In the following, we use the differential structure of (P 2 (R d ), W 2 ) introduced in [17, Definition 2.8], and we say that ∇ W2 F(µ) is a Wasserstein gradient of F at µ ∈ D(F) if for any ν ∈ P 2 (R d ) and any optimal coupling γ ∈ Π o (µ, ν), (2) If such a gradient exists, then we say that F is Wasserstein differentiable at µ [17,74]. Moreover there is a unique gradient belonging to the tangent space of P 2 (R d ) verifying (2) [74, Proposition 2.5], and we will always restrict ourselves without loss of generality to this particular gradient, see Appendix C.1. The differentiability of F and Fµ are very related, as described in the following proposition. Proposition 1. Let F : P 2 (R d ) → R ∪ {+∞} be a Wasserstein differentiable functional on D(F). Let µ ∈ P 2 (R d ) and Fµ (T) = F(T # µ) for all T ∈ D( Fµ ). Then, Fµ is Fréchet differentiable, and for all S ∈ D( Fµ ), ∇ Fµ (S) = ∇ W2 F(S # µ) • S. The Wasserstein differentiable functionals include c-Wasserstein costs on P 2,ac (R d ) [74, Proposition 2.10 and 2.11], potential energies V(µ) = V dµ or interaction energies W(µ) = 1 2 W (xy) dµ(x)dµ(y) for V : R d → R and W : R d → R differentiable and with bounded Hessian [74, Section 2.4]. In particular, their Wasserstein gradients read as ∇ W2 V(µ) = ∇V and ∇ W2 W(µ) = ∇W ⋆ µ. However, entropy functionals, e.g. the negative entropy defined as H(µ) = log ρ(x) dµ(x) for distributions µ admitting a density ρ w.r.t. the Lebesgue measure, are not Wasserstein differentiable. In this case, we can consider subgradients ∇ W2 F(µ) at µ for which (2) becomes an inequality. To guarantee that the Wasserstein subgradient is not empty, we need ρ to satisfy some Sobolev regularity, see e.g. [5, Theorem 10.4.13] or [108]. Then, if ∇ log ρ ∈ L 2 (µ), the only subgradient of H in the tangent space is ∇ W2 H(µ) = ∇ log ρ, see [5, Theorem 10.4.17] and [47, Proposition 4.3]. Then, free energies are functionals that write as sums of potential, interaction and entropy terms [110, Chapter 7]. It is notably the case for the KL to a fixed target distribution, that is the sum of a potential and entropy term [129], or the MMD as a sum of a potential and interaction term [7]. Examples of functionals. The definitions of Bregman divergences on L 2 (µ) and of Wasserstein differentiability enable us to consider alternative Bregman potentials than the L 2 (µ)-norm mentioned above. For instance, for V convex, differentiable and L-smooth, we can use potential energies ϕ V µ (T) := V(T # µ), for which d ϕ V µ (T, S) = d V T(x), S(x) dµ(x) where d V is the Bregman divergence of V on R d . Notice that ϕ µ (T) = 1 2 ∥T∥ 2 L 2 (µ) is a specific example of a potential energy where V = 1 2 ∥ • ∥ 2 . Moreover, we will consider interaction energies ϕ W µ (T) := W(T # µ) with W convex, differentiable, L-smooth, and satisfying W (-x) = W (x); for which d ϕ W µ (T, S) = 1 2 d W T(x) -T(x ′ ), S(x) -S(x ′ ) dµ(x)dµ(x ′ ) (see Appendix I.3). We will also use ϕ H µ (T) = H(T # µ) with H the negative entropy. Note that Bregman divergences on the Wasserstein space using these functionals were proposed by Li [80], but only for S = Id and optimal transport maps T.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2406.08938")
get_code_for_paper("2406.08938")
have("2406.08938")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2406.08938.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2406.08938.svg)](https://syntology.ai/paper/2406.08938)

Connect an agent — have() is free.