Manuscript Offprint
arXiv:2610.10278Neural Sampling with Reweighted Normalizing Flows via the Wasserstein--Fisher--Rao JKO Scheme
Chenguang Duan , Johannes Hertrich , and Gabriele Steidl
Institut für Geometrie und Praktische Mathematik, RWTH Aachen University, duan@igpm.rwth-aachen.de
Institute of Computer Science, University of Göttingen, johannes.hertrich@uni-goettingen.de
Institute of Mathematics, TU Berlin, steidl@math.tu-berlin.de
October 8, 2026
Abstract. We propose a neural algorithm for sampling from distributions specified by unnormalized Boltzmann densities. Our approach is based on the Jordan–Kinderlehrer–Otto scheme for the Kullback–Leibler divergence in the Wasserstein–Fisher–Rao geometry (WFR JKO scheme). Our contributions are twofold. First, we prove that, for any fixed step size, the exact WFR JKO iterates converge exponentially fast to the target as the number of iterations tends to infinity. Notably, this result requires no structural assumptions on the target, such as log-concavity or a logarithmic Sobolev inequality. Second, we develop a neural implementation of the WFR JKO scheme that parametrizes its transport and reaction components using reweighted normalizing flows. Numerical experiments on challenging multimodal targets demonstrate the promising performance of the proposed method.
Keywords: Wasserstein–Fisher–Rao distance, Hellinger–Kantorvich distance, Sampling from Boltzmann densities, JKO scheme, Metropolis–Hastings algorithm
1 Introduction
Let be a strictly positive, integrable Boltzmann density on . We identify with the corresponding finite measure and denote its total mass by . Our aim is to generate samples from the probability distribution , using the unnormalized density without prior knowledge of . Such sampling problems arise in Bayesian inverse problems and data assimilation [6, 7, 17, 18, 24, 37, 43, 45], statistical mechanics [29, 40, 42], and machine learning [13, 27]. They are particularly challenging in high dimensions and when the target has several well-separated modes. In these settings, accurate sampling requires both exploration of the relevant regions of the state space and recovery of their relative probability masses.
A variational approach to this problem is to formulate sampling as the minimization of a discrepancy functional over a space of measures. A natural objective is the Kullback–Leibler (KL) divergence, whose unique minimizer is the target distribution. Equipping the space of measures with a metric determines a gradient flow of this objective and thereby provides a starting point for constructing sampling algorithms. In particular, the gradient flow of KL( ) in the quadratic Wasserstein geometry is the Fokker–Planck equation associated with overdamped Langevin dynamics [28]. The law of the Langevin diffusion thus decreases the KL divergence through the transport of probability mass.
This common continuous-time description leads to two discretization routes. On the particle level, an explicit Euler–Maruyama discretization of the Langevin diffusion yields the unadjusted Langevin algorithm [18], with stochastic-gradient variants supporting applications involving large datasets [53]. On the level of measures, the Jordan–Kinderlehrer–Otto (JKO) scheme [28] provides an implicit variational discretization. Each step minimizes the KL divergence together with a squared Wasserstein-distance penalty relative to the preceding iterate. These variational problems can be approximated using normalizing flows, leading to neural JKO sampling methods [25]. Continuous normalizing flows are particularly suitable for this purpose, since they describe both transport and density evolution through ordinary differential equations. Related implementations of the Wasserstein JKO scheme have also been developed for generative modeling [44, 52, 54].
Despite their different numerical realizations, both approaches retain the transport geometry of the underlying Wasserstein gradient flow. For multimodal targets, this geometry can lead to slow redistribution of mass: transferring probability between separated modes requires crossing regions of low density. The resulting metastability is reflected in the convergence analysis. For nonconvex potentials, the KL divergence need not be geodesically convex in the Wasserstein metric [11], and quantitative convergence estimates commonly rely on functional inequalities, such as a logarithmic Sobolev inequality (LSI) [2, 10, 51]. The associated constants can deteriorate substantially as the modes become more strongly separated. Consequently, changing from an explicit to an implicit discretization does not, by itself, remove the difficulty of sampling multimodal targets. This motivates augmenting local transport with mechanisms for global redistribution, as in the reweighting and resampling steps of sequential Monte Carlo [16], the learned nonlocal proposals of adaptive Monte Carlo [20], and the importance corrections of neural JKO sampling [25].
The Wasserstein–Fisher–Rao (WFR) metric, also known as the Hellinger–Kantorovich metric, incorporates transport and mass adjustment into a single geometric framework [12, 31, 32]. Its Wasserstein component moves mass through the state space, while its Fisher–Rao component allows mass to be created or removed. The relative masses of separated modes can therefore be adjusted without transporting all of the redistributed mass through the intervening low-density regions. Transport and reaction play complementary roles: the former supports spatial exploration, whereas the latter corrects the allocation of mass. Beyond this geometric intuition, it has been shown that exponential convergence of the WFR gradient flow can be established without assuming log-concavity or a logarithmic Sobolev inequality for the target, provided suitable conditions on the initial density ratio hold [15, 35]. These results demonstrate that reaction can yield convergence rates independent of potential barriers and provide a theoretical motivation for using WFR-type geometries in multimodal sampling.
An explicit particle realization of this principle leads to Langevin sampling with birth–death mechanisms [34, 35, 49]. In the probability-preserving setting, the underlying dynamics correspond to a spherical counterpart of the WFR geometry. The resulting algorithms combine Langevin updates with particle duplication and removal according to the discrepancy between the current and target densities. Although these updates can accelerate redistribution among modes, their implementation introduces a further difficulty: the birth–death rates depend on the evolving density, which is not directly available from an empirical particle measure. Kernel-based approximations introduce bandwidth dependence and become difficult to resolve accurately in high dimensions [35].
Thus, exploiting the favorable properties of the continuum dynamics requires a numerical representation that also provides access to the evolving density.
These considerations motivate an implicit variational approach combined with a tractable density representation. In this paper, we develop a neural sampling method based on the WFR JKO scheme. We work with the unbalanced WFR geometry on finite positive measures and minimize the extended KL divergence . Its minimizer is the unnormalized measure , so the scheme approximates both the shape and the total mass of the target. The unknown normalizing constant appears only as an additive term in the objective and is therefore unnecessary for computing the variational updates. WFR gradient flows and their variational approximations have been studied in [19, 21, 41]; here, we analyze the long-time behavior of the discrete scheme at a fixed time step.
Our main theoretical result establishes geometric decay of the KL divergence along the exact WFR-JKO iterates. The contraction factor depends only on the time step and the WFR parameter, independently of the target measure. In particular, the estimate requires neither convexity of the potential nor a logarithmic Sobolev inequality for the target.
To make the variational steps computationally accessible, we parametrize both the transport velocity and the reaction rate by neural networks. The characteristic representation of the continuity equation with reaction then combines a continuous normalizing flow with a positive, learned reweighting function. We derive a computable training objective, a Monte Carlo approximation, and a stochastic trace estimator for the divergence term. This representation propagates particle positions, density values, and total mass, thereby avoiding the kernel density estimation required by standard birth–death particle implementations.
The practical algorithm combines these learned transport–reaction steps with resampling to obtain an unweighted particle ensemble. To mitigate the loss of diversity caused by particle duplication, we incorporate Metropolis–Hastings rejuvenation steps targeting the normalized current model distribution [23, 25]. The availability of model density evaluations allows proposals in both the data space and the latent space of the learned flow. Numerical experiments on multimodal targets compare the proposed method with established MCMC and neural sampling approaches and examine the effect of these rejuvenation strategies.
Contributions. The main contributions of this work are as follows:
-
We prove geometric decay of the extended KL divergence along the exact WFR JKO iterates for strictly positive, integrable targets. For each fixed time step, the contraction factor depends only on the time step and the WFR parameter, without requiring log-concavity or a logarithmic Sobolev inequality for the target.
-
We derive a computable WFR JKO objective by combining continuous normalizing flows with learned reaction rates. This representation jointly describes spatial transport and mass adjustment, provides access to density values and total mass, and avoids kernel density estimation.
-
We combine the learned transport–reaction updates with resampling and Metropolis–Hastings rejuvenation to mitigate particle degeneracy. We consider proposals in both the data and latent spaces and evaluate the resulting method on multimodal targets through comparisons with established MCMC and neural sampling approaches.
Outline of the paper. In Section 2, we collect basic results on the Wasserstein metric for probability measures as well as on the Fisher–Rao metric and the WFR metric, also known as Hellinger–Kantorivich metric, for positive measures. In particular, we rely on their dynamic formulations to formulate our loss function later in (4.1). In Section 3, we deal with the WFR–JKO scheme for minimizing the KL functional on the space of positive measures. As main result, we prove the exponential convergence of the scheme, see Theorem 3.5. In Section 4, we reformulate the WFR–JKO step minimization for an appropriate admissibility class of velocities and mobility functions. We provide a computable formulation for our objective based on ideas from the normalizing flows and present the corresponding algorithm. Since the resampling step unavoidably causes particle degeneracy we propose to rejuvenate the ensemble while preserving its target by applying a Metropolis–Hastings step after each resampling step in Section 5. Finally, we present our promising numerical results in Section 6. The appendices contain proofs of auxiliar results and the pseudo-code of the algorithms.
The Kullback-Leibler (KL) divergence is defined, for , as
if is absolutely continuous with respect to , so that the Radon-Nikodym derivative exits and otherwise. We have with equality if and only if . We will need the following proposition which states the unit ball in the KL divergence is sequentially compact with respect to weak convergence.
Proposition 2.1. Let and . Then, the set is weakly sequentially compact.
The proof is a standard consequence of Prokhorov's theorem and the weak lower semicontinuity of KL. For convenience we give it in Appendix.
Let denote the space of continuous bounded functions on . A sequence in converges weakly to , written , if for all .
By , we denote the Banach space of (equivalence classes) of functions which -the power is -integrable with the corresponding norm. We write for the corresponding space of -integrable vector fields.
In the following, we recall the Wasserstein-2, the Fisher–Rao, and the Wasserstein–Fisher–Rao distances on these spaces, together with the gradient flows they induce.
2.1 Wasserstein Metric. The Wasserstein(-2) distance between is defined as
where with projections , and the push-forward measures , . equipped with , the set becomes a metric space. Further, we have that as if and only if and as .
A weakly continuous curve is absolutely continuous if and only if there exists a Borel measurable vector field such that and fulfills the continuity equation
(2.1)
in a distributional sense. The Benamou-Brenier formula [3] recasts the Wasserstein metric as the minimal kinetic energy needed to connect two probability measures as
(2.2)
The following proposition associates absolutely continuous curves with ODE solutions, see [1, Proposition 8.1.8, Lemma 8.1.4] in a one-to-one fashion.
Proposition 2.2. Let fulfill
(2.3)
Then, for every , the ODE
(2.4)
admits unique solution on and the map , is a -diffeomorphisms and its determinant of the Jacobian fulfills the Liouville formula
(2.5)
The curve
is the unique weakly continuous solution of the continuity equation (2.1) with the above vector field.
2.2 Fisher–Rao Metric. The Fisher–Rao metric for is defined by
(2.6)
The Fisher–Rao curve is determined by the reaction equation
where the measurable function is the pointwise rate of mass creation. Analogously to (2.2), the metric (2.6) admits the dynamical representation
(2.7)
2.3 Wasserstein–Fisher–Rao Metric. Combining the transport and reaction geometries yields a metric on that allows mass to be simultaneously transported and created or destroyed. The corresponding dynamics obeys the continuity equation with reaction
(2.8)
in the sense of distributions. We assume that the coefficients and are Hellinger-Kantorovich regular, namely, they are Borel measurable and satisfy and .
The Wasserstein–Fisher–Rao (WFR) metric, also known as Hellinger–Kantorovich metric [12], with parameter is defined as the minimal total kinetic plus reactive action required to interpolate between :
Setting recovers the Benamou-Brenier formula (2.2), while setting gives the Fisher–Rao representation (2.7); in this sense interpolates between the Wasserstein and Fisher–Rao metrics as varies. We note that changing the parameter in the Wasserstein–Fisher–Rao metric corresponds to rescaling, see also [33, p. 13]. More precisely, it follows directly from the its definition that
(2.9)
Further, the WFR metric metrizes weak convergence:
Proposition 2.3. [32, Thm 7.15] Let . Then if and only if as .
In [32], Liero, Mielke and Savare proved that the WFR metric is actually equivalent to an unbalanced optimal transport problem called logartihmic entropy transport. More precisely, we have the following theorem which was shown for and generalizes for arbitrary by the rescaling property (2.9).
Theorem 2.4. [32, Thm 7.20] Let . Then the WFR metric coincides with the logartihmic entropy transport (LET) problem given by
(2.10)
where and are the marginals of and is the cost function
The following proposition is a direct conclusion of [5, Propositions 2.3 and 2.4] and was shown for bounded g instead of also in [36].
Proposition 2.5. Let satisfy (2.3), and let be measurable with
(2.11)
as well as
(2.12)
Let be the solution of the ODE (2.4). Then the curve
(2.13)
is the unique weakly continuous solution of the continuity equation with reaction (2.8).
3 Wasserstein–Fisher–Rao JKO Scheme
In this section, we consider the Wasserstein–Fisher–Rao Jordan-Kinderlehrer-Otto scheme for minimizing functionals on and prove exponential convergence for the KL functional , where .
3.1 WFR JKO Scheme. Let be a proper functional which we intend to minimize by an implicit gradient descent algorithm in equipped with the WFR metric. The corresponding scheme in the Wasserstein space is known as Jordan-Kinderleher-Otto (JKO) scheme [28] and we adopt the notation for current geometry. Given , one step of the WFR JKO scheme is defined, whenever a minimizer exists, by
In this paper, we are only interested in
Then the sequence in is well-defined. For convenience, we add the small proof.
Lemma 3.1. Let with . Then, the minimum in (3.1) is attained.
Proof. Let be the infimum in (3.1), and let constitute a minimizing sequence such that
By Proposition 2.1, we know, up to subsequences, that converges weakly to some . Further, we know by Proposition 2.3 that is continuous wrt weak convergence. Further, is lower semicontinuous wrt weak convergence. Thus
which means that .
In the rest of this paper, let be integrable on . With slight abuse of notation we identify the function with the corresponding measure dx. For such , the WFR JKO scheme becomes
(3.1)
Note that by this definition is finite for such that is absolutely continuous wrt and thus also wrt the Lebesgue measure. Therefore, we rely on densities .
Remark 3.2 (Gradient Flows). Several papers study gradient flows of the KL divergence or other functionals with respect to the WFR metric, see, e.g., [14, 21, 35, 41, 55]. Formally, such gradient flows can be defined as solutions of the reaction diffusion equation
(3.2)
where is the first variation of the KL divergence. The sequence generated by the WFR JKO scheme (3.1) for some step size can be viewed as a time-discretized version of such curves. More precisely, the authors of [19, 30] study limits of the curves defined as for . In particular, it was shown by Fleißner [19, Example 4.12] under mild assumptions that converges weakly to a weak solution of (3.2) as . In contrast, we merely study the convergence of for fixed as .
3.2 Convergence of WFR JKO for . In this subsection, we prove exponential convergence of the sequence generated by the WFR JKO scheme (3.1) towards for . We use the notation
Then, the following descent lemma holds true. The main idea of the proof is to bound the WFR metric by the FR metric and to insert the optimality condition of along the geometric interpolation between and .
Lemma 3.3. Let be generated by (3.1). Then, we have for any that
Proof. For , let . Then fulfills and and
Then we conclude that the WFR distance between and is bounded by
Next, we consider the function . We observe that such that . We compute by
In particular, since the integrant is positive, we obtain
By the optimality of and applying the triangle inequality in the first summand, we get
Division by gives
Since for both sides are nonnegative, taking squares yields
Since for s = 0 both sides are zero, we have that the derivative of the left side must be smaller or equal than the derivative on the right side, i.e.,
Noting that yields the assertion.
The next lemma shows that remains bounded from below.
Lemma 3.4. Let be generated by (3.1). Then, it holds for all that a.e..
Proof. Let be the optimal plan in the LET problem (2.10) between the marginals and . We note that its marginals and are absolutely continuous, since is finite. We define the energy
By definition, we have . Further, by (2.10), it holds and for all .
Now we define the set and show that . Assume by contradiction that and define by
Note that by definition of A, the function w is non-negative and fulfills
such that . Next, we will bound
(3.3)
To bound the first difference, we compute
(3.4)
where the last step follows from the fact that . To bound the second difference, we use the nonnegative, convex function for . Then we have and such that
On A, we have and consequently
Outside of A, we have that such that the same equality holds. Together, we obtain
where the last inequality follows from our assumption (implying ) and the fact that on and the second integrand is strictly negative, whenever . In summary, we obtain
Inserting this together with (3.4) in (3.3), we obtain that . In particular, we have
which contradicts the assumption that minimizes J. Thus, we conclude .
Using the two lemmas, we can prove our final convergence result.
Theorem 3.5. Let with and . be generated by (3.1). Then, it holds
such that
for
Proof. The function is strictly increasing on and is related to by
Then we have
By Lemma 3.4 we know that , i.e., and since is increasing, this implies
(3.5)
By definition minimizes in (3.1) such that . Thus, using Lemma 3.3 and (3.5), we obtain the estimate
This yields the claim with
This finishes the proof.
4 Normalizing Flow via WFR JKO Scheme
Next, we derive a computable loss function for training the velocity and reaction function in a single WFR–JKO step. Afterwards, we summarize the algorithm in order to simulate the whole scheme.
4.1 Loss Function. We consider the admissible class
By Proposition 2.5, we know that for , the weakly continuous curve satisfying the continuity equation with reaction (2.8) is uniquely determined. Therefore, restricting the JKO step (3.1) to leads to the problem
(4.1)
where is the unique solution of the continuity equation with reaction (2.8) starting in .
In this section, we provide a computable formulation for the objective (4.1) of a WFR JKO step. Note that Wasserstein–Fisher–Rao schemes for neural sampling were considered, e.g. in [8]. The following proposition reformulates the action term in (4.1). The proof follows standard lines in the normalizing flow literature, see, e.g. [22, 54].
Proposition 4.1. Let . Further, let be the solution of the ODE (2.4) with vector field and with weight from (2.13). Let with . Then it holds
where the expectation is taken with respect to
Proof. First, we have, for any , by definition of the push-forward operator that
(4.2)
Second, we obtain by definition of the KL divergence that
First, we consider the summand . For the density of the push-forward measure, we have by the change of variable formula and (2.5) that
so that
and
For the summand , it follows by definition of the push-forward operator that
and the summand similarly
In summary, this gives
and adding (4.2) yields the assertion
Remark 4.2. Let be Rademacher distributed, meaning that its components are iid , and let be independent of . Then Hutchinson's stochastic trace estimator [26] yields
(4.3)
where the expectation on the right-hand side is taken with respect to Rad. Alternatively, the Rademacher distribution could be replaced by the standard Gaussian one, but
see, e.g., [38].
By Propositions 4.1, we suggest the following objective function to learn neural networks for :
(4.4)
Likewise the final summand can be replaced by the Hutchinson estimator (4.3).
Given samples from the distribution and independent samples , we approximate the population risk (4.4) through an empirical risk
(4.5)
4.2 Algorithms. In order to simulate the WFR–JKO scheme, we start with a tractable latent measure which is usually a isometric Gaussian distribution , where is the initial covariance which we consider as a hyperparameter. We draw initial samples from . Then, we iteratively generate samples from and compute the corresponding densities as well as the total mass by performing the following steps for :
-
We learn the velocity and reaction rate from the WRF–JKO scheme (4.1) by parameterizing and as neural networks with parameters and minimizing the loss function from (4.5). We include the detailed computation of this loss function as pseudo-code in Algorithm 1 in the appendix.
-
Once the velocity and reaction are trained, we can draw weighted samples with weights from and the total mass by solving the flow ODE from (2.4) and applying (2.13). We outline this computation as pseudo-code in Algorithm 2.
-
In order to obtain an ensemble of unweighted samples from , we perform a resampling step as proposed in [16]. More precisely, we normalize the weights and draw samples from the empirical distribution . This step is outlined as pseudo-code in Algorithm 3.
Repeating this procedure for provides us with samples from and the total mass .
5 Metropolis–Hastings Steps
The resampling step from of the section unavoidably causes particle degeneracy: low-weight particles are discarded and high-weight particles are duplicated, so the support of the ensemble collapses. To rejuvenate the ensemble while preserving its target, we apply one step of the Metropolis–Hastings (MH) algorithm, see, e.g., [46], after each resampling step. As a stationary distribution we choose the distribution such that the overall distribution of the samples is not affected by the MH steps. In the following, we first revisit the MH algorithm and then focus on its application in the WFR–JKO scheme.
5.1 Metropolis–Hastings Algorithm. Let be a Markov kernel such that is absolutely continuous with non-zero density for all and let be an absolutely continuous probability measure, which we call the target distribution. As before, we denote the densities of and again by and . Then the MH algorithm generates a sequence starting at using the following steps
-
Draw from and uniformly in .
-
Compute the acceptance probability .
-
Set
The MH algorithm generates a time-homogeneous Markov chain with transition kernel given by
It can be shown that for any choice of Q, the target distribution is a stationary distribution of this Markov kernel in the sense that applying the kernel onto yields again or more precisely
5.2 Application to the WFR–JKO Scheme. After each WFR–JKO step we are given an ensemble of samples which follow the distribution . Further, we have computed the total mass . However, due to the resampling step, some of these samples are located at the exact same position. Therefore, we apply one step of the MH algorithm on these samples. More precisely, we generate a new ensemble by sampling from . As a target distribution we use . Since we know that the already follow the distribution and since this is an stationary distribution of , we obtain that also the ensemble follows . It is left to choose the Markov kernel from the MH algorithm. Here we consider the following choices.
- Gaussian proposal: One of the most standard choices in the MH algorithm is
(5.1)
where denotes the Gaussian distribution with mean and covariance matrix and the corresponding density. The kernel has the denisty , which is symmetric such that the acceptance probability simplifies to .
- Langevin proposal: The MH algorithm is often combined with a Langevin sampling algorithm. This corresponds to applying one gradient descent step on the energy before adding Gaussian noise. Since computing gradients of is computational expensive, we replace the gradient of here by , which can be computed directly and is motivated by the fact that is already close to for large . This leads to the proposal distribution
(5.2)
The step size and the noise parameter are often chosen as which corresponds to one step of the unadjusted Langevin algorithm. However, depending how closely approximates already also a choice of can be useful. We obtain the density
- Proposal in the latent space: The MH algorithm often suffers from low acceptance rates, whenever the target distribution is multimodal or somehow degenerated. Since our WFR–JKO algorithm usually starts at a very regular distribution , we follow the idea to transform the samples from back to the latent space, perform the MH algorithm in the latent space with Gaussian proposal and transform the sample back to the data space. To make this procedure precise, we define the flow ODE by with , where is the optimal velocity from the WFR–JKO step connecting and . Then, we define the proposal distribution as
(5.3)
where is some base Markov kernel. In our numerics we consider the cases, where it is given by the Gaussian proposal (5.1) or Langevin proposal (5.2) (with the Gaussian energy instead of V). We compute the density of in the next lemma.
Lemma 5.1. Let and for and . Then, the transition kernel (5.3) has the density
where and .
Proof. It holds
where we used the substitution . In particular, has the density
where . Then the claim follows by (2.5).
5.3 Density Evaluation of . For computing the acceptance probabilities in the previous subsection, we have to evaluate the densities at some arbitrary point . To this end we denote by and the optimal velocities and reactions from the WFR-JKO step connecting and . We define the concatenations and for by
Then, by definition, the unique solution of the continuity equation with reaction
fulfills for all . Using the time transform we obtain that the time reversals , and that
In particular, we get by for the reverse flow ODE
that
Using the change-of-variables formula for densities, this implies for that the corresponding densities fulfill . Inserting (2.5) this can be reformulated as
6 Numerical Results
In this section, we report our promising numerical results in comparison with existing algorithms. To this end, we first introduce the test distributions on which we evaluate our algorithm. Then, we specify the detailed implementation and comparisons. Finally, we present our results.
6.1 Test Distributions. Next, we implement our algorithms. To this end, we evaluate the WFR–JKO scheme on the same test distributions as in [25]:
-
Mustache: The two-dimensional log-density is given as with and . Note that for all . In particular, we obtain directly by the transformation formula that the normalization constant is one. Depending on close to 1, this probability distribution has very long and narrow tails making it hard for classical MCMC methods to sample them. In our experiments we use .
-
Shifted 8 Modes: A two-dimensional Gaussian mixture model with 8 equal weighted modes and covariance matrix . The modes are placed in a circle with radius 1 and center . Due to the shifted center classical MCMC methods have difficulties to distribute the mass correctly onto the modes.
-
Shifted 8 Peaky: This is the same distribution as the shifted 8 Modes with the difference that we reduce the width of the modes to the covariance matrix . Since the modes are disconnected, it becomes harder to sample from them.
-
GMM-d: A d-dimensional Gaussian mixture model with 10 equal weighted modes with covariance matrix and means drawn randomly from a uniform distribution on . This leads to a peaky high-dimensional and multimodal probability distribution which is hard to sample from.
6.2 Implementation and Hyperparameters. In practice, we start with a very small initial step size and then iteratively increase the step size in each step by choosing for some growth constant . In order to avoid overfitting and the accumulation of errors, we resample the ensemble of samples after each WFR JKO step. Moreover, we apply a Metropolis–Hastings step with Gaussian proposal after each JKO step.
For all test distributions, we start with a Gaussian distribution for a problem dependent scaling parameter . To parameterize the velocity fields and reaction rates , we use a ResNet with 6 blocks, where each block consists out of a two-layer network with SiLU activation and 512 hidden neurons. In order to simulate and differentiate the ODE solutions, we use the rk4 solver from torchdiffeq library [9] with a step size of 0.1. We report the problem dependent hyperparameters in Table 1.
6.3 Comparisons. We compare our methods with all comparison methods considered in [25]. Despite the neural Wasserstein JKO scheme (neural JKO) and its importance-corrected version (neural JKO IC) from [25] this includes classical Monte Carlo samplers like a Metropolis adjusted Langevin sampling (MALA) and Hamiltonian Monte Carlo (HMC), see e.g., [4, 47] and two deep-learning based sampling algorithms, namely denoising diffusion samplers (DDS, [50]) and continual repeated annealed flow transport Monte Carlo (CRAFT, [39]).
6.4 Results. In order to evaluate the quality of the generated samples, we compute the energy distance [48] between 50000 generated and ground truth samples, which corresponds to the maximum mean discrepancy with respect to the negative distance kernel . Given generated samples and ground truth
Sampling via Wasserstein-Fisher-Rao JKO Scheme
| Distribution | MH step size | ||||||
|---|---|---|---|---|---|---|---|
| Mustache | |||||||
| shifted 8 modes | |||||||
| shifted 8 peaky | |||||||
| GMM-10 | |||||||
| GMM-20 | |||||||
| GMM-50 | |||||||
| GMM-100 |
Table 1: Hyperparameters for the WFR JKO algorithm: is the dimension of the distribution, is the initial step size in the WFR–JKO algorithm, is the growth of this step size, is the parameter from the WFR metric, the number of WFR–JKO steps used, and is the scaling of the initial distribution. In addition, we report the step sizes for solving the ODEs and for generating the proposals in the MH step.
samples , it is given by
The energy distance is a metric on the space of probability measures. In particular, a smaller energy distance indicates a better result. The results are given in Table 2. Moreover, we plot two-dimensional marginals of generated samples in Figure 1.
We observe that the WFR–JKO sampler is always either the best or second best method among the comparisons. Just the neural JKO IC method is competitive. This is expected, as the WFR JKO scheme formalizes the heuristic approach of “transporting and reweighting” from neural JKO IC and provides it with better theoretical guarantees. In addition, we note that the runtime of neural JKO IC depends exponentially on the number of resampling steps, see [25, Remark 4.5], while the WFR–JKO does not have this exponential behavior. All other methods degenerate for high dimensional multimodal target distributions.
| Distribution | MALA | HMC | DDS | CRAFT | Neural JKO | Neural JKO IC | WFR JKO (ours) | Sampling Error |
|---|---|---|---|---|---|---|---|---|
| Mustache | ||||||||
| shifted 8 modes | ||||||||
| shifted 8 peaky | ||||||||
| GMM-10 | ||||||||
| GMM-20 | ||||||||
| GMM-50 | ||||||||
| GMM-100 |
Table 2: Energy distance between generated samples and ground truth samples. A smaller value indicates a better result. The best result for each test distribution is marked in green, the second-best is marked in blue.
LLM Usage. We used Claude Fable for exploring the literature corresponding to continuous time gradient flows in the Wasserstein–Fisher–Rao metric. We used different LLMs for improving the implementations.
Acknowledgments. CD acknowledges funding by Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – project number 442047500/SFB 1481 Sparsity

True samples
WFR-JKO samples
True samples (first two coordinates)
WFR-JKO samples (first two coordinates)
True samples (first two coordinates)
WFR-JKO samples (first two coordinates)
Figure 1: Plot of the first two coordinates of generated and ground truth samples for different examples. First line: shifted 8 modes; second line: shifted 8 peaky; third line: GMM-10; fourth line: GMM-20.
and Singular Structures. JH acknowledges funding by Deutsche Forschungsgemeinschaft (DFG, German Research Foundation), Project 572825596. GS acknowledges funding by Deutsche Forschungsgemeinschaft (DFG, German Research Foundation), Project STE 571/23-1.
References
[1] L. Ambrosio, N. Gigli, and G. Savaré. Gradient Flows: in Metric Spaces and in the Space of Probability Measures. Springer Science & Business Media, 2005. (Cited on page 5.)
[2] D. Bakry and M. Émery. Diffusions hypercontractives. In J. Azéma and M. Yor, editors, Séminaire de Probabilités XIX 1983/84, pages 177–206. Springer Berlin Heidelberg, 1985. (Cited on page 2.)
[3] J.-D. Benamou and Y. Brenier. A computational fluid mechanics solution to the Monge–Kantorovich mass transfer problem. Numerische Mathematik, 84:375–393, 2000. (Cited on page 5.)
[4] M. Betancourt. A conceptual introduction to Hamiltonian Monte Carlo. arXiv preprint arXiv:1701.02434, 2017. (Cited on page 18.)
[5] K. Bredies, M. Carioni, and S. Fanzon. A superposition principle for the inhomogeneous continuity equation with Hellinger–Kantorovich-regular coefficients. Communications in Partial Differential Equations, 47(10):2023–2069, 2022. (Cited on page 6.)
[6] G. Cardoso, Y. J. el idrissi, S. L. Corff, and E. Moulines. Monte Carlo guided denoising diffusion models for Bayesian linear inverse problems. In The Twelfth International Conference on Learning Representations, 2024. (Cited on page 1.)
[7] J. Chang, C. Duan, Y. Jiao, R. Li, J. Z. Yang, and C. Yuan. Provable diffusion posterior sampling for Bayesian inversion, 2025. arXiv:2512.08022. (Cited on page 1.)
[8] J. Chemseddine, C. Wald, R. Duong, and G. Steidl. Neural sampling from Boltzmann densities: Fisher-Rao curves in the Wasserstein geometry. In The Thirteenth International Conference on Learning Representations, 2025. (Cited on page 12.)
[9] R. T. Q. Chen. torchdiffeq, 2018. URL https://github.com/rtqichen/torchdiffeq. (Cited on page 18.)
[10] S. Chewi, M. A. Erdogdu, M. Li, R. Shen, and M. S. Zhang. Analysis of Langevin Monte Carlo from Poincaré to Log-Sobolev. Foundations of Computational Mathematics, 25:1345–1395, 2025. (Cited on page 2.)
[11] S. Chewi, J. Niles-Weed, and P. Rigollet. Statistical Optimal Transport, volume 2364 of Lecture Notes in Mathematics (LNM). Springer Cham, first edition, 2025. (Cited on page 2.)
[12] L. Chizat, G. Peyré, B. Schmitzer, and F.-X. Vialard. An interpolating distance between optimal transport and Fisher-Rao metrics. Foundations of Computational Mathematics, 18:1–44, 2018. (Cited on pages 2 and 6.)
[13] A. D. Cobb and B. Jalaian. Scaling Hamiltonian Monte Carlo inference for Bayesian neural networks with symmetric splitting. In Proceedings of the Thirty-Seventh Conference on Uncertainty in Artificial Intelligence, volume 161 of Proceedings of Machine Learning Research, pages 675–685. PMLR, 2021. (Cited on page 1.)
[14] F. R. Crucinio and S. Pathiraja. Sequential monte carlo approximations of wasserstein-fisher-rao gradient flows. arXiv preprint arXiv:2506.05905, 2025. (Cited on page 8.)
[15] F. R. Crucinio and S. Pathiraja. Sequential Monte Carlo approximations of Wasserstein–Fisher–Rao gradient flows, 2026. arXiv:2506.05905. (Cited on page 2.)
[16] P. Del Moral, A. Doucet, and A. Jasra. Sequential Monte Carlo samplers. Journal of the Royal Statistical Society Series B: Statistical Methodology, 68(3):411–436, 2006. (Cited on pages 2 and 14.)
[17] Z. Ding, C. Duan, Y. Jiao, J. Z. Yang, C. Yuan, and P. Zhang. Nonlinear assimilation via score-based sequential Langevin sampling. IEEE Transactions on Information Theory, 72(10):7754–7784, 2026. (Cited on page 1.)
[18] A. Durmus and É. Moulines. High-dimensional Bayesian inference via the unadjusted Langevin algorithm. Bernoulli, 25(4A):2854–2882, 2019. (Cited on pages 1 and 2.)
[19] F. C. Fleißner. A minimizing movement approach to a class of scalar reaction–diffusion equations. ESAIM: Control, Optimisation and Calculus of Variations, 27:18, 2021. (Cited on pages 3 and 8.)
[20] M. Gabrié, G. Rotskoff, and E. Vanden-Eijnden. Adaptive Monte Carlo augmented with normalizing flows. Proceedings of the National Academy of Sciences, 119(10): e2109420119, 2022. (Cited on page 2.)
[21] T. O. Gallouët and L. Monsaingeon. A JKO splitting scheme for Kantorovich-Fisher-Rao gradient flows. SIAM Journal on Mathematical Analysis, 49(2):1100–1130, 2017. (Cited on pages 3 and 8.)
[22] P. Hagemann, J. Hertrich, and G. Steidl. Stochastic normalizing flows for inverse problems: A Markov chains viewpoint. SIAM/ASA Journal on Uncertainty Quantification, 10(3):1162–1190, 2022. (Cited on page 12.)
[23] W. K. Hastings. Monte Carlo sampling methods using Markov chains and their applications. Biometrika, 57(1):97–109, 1970. (Cited on page 3.)
[24] J. Heng, A. Doucet, and Y. Pokern. Gibbs flow for approximate transport with applications to Bayesian computation. Journal of the Royal Statistical Society Series B: Statistical Methodology, 83(1):156–187, 2021. (Cited on page 1.)
[25] J. Hertrich and R. Gruhlke. Importance corrected neural JKO sampling. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 23083–23119. PMLR, 13–19 Jul 2025. (Cited on pages 2, 3, 18, and 19.)
[26] M. F. Hutchinson. A stochastic estimator of the trace of the influence matrix for Laplacian smoothing splines. Communications in Statistics—Simulation and Computation, 18(3):1059–1076, 1989. (Cited on page 13.)
[27] P. Izmailov, S. Vikram, M. D. Hoffman, and A. G. G. Wilson. What are Bayesian neural network posteriors really like? In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 4629–4640. PMLR, 18–24 Jul 2021. (Cited on page 1.)
[28] R. Jordan, D. Kinderlehrer, and F. Otto. The variational formulation of the Fokker-Planck equation. SIAM J. Math. Anal., 29(1):1–17, 1998. (Cited on pages 1, 2, and 7.)
[29] D. P. Landau and K. Binder. A Guide to Monte Carlo Simulations in Statistical Physics. Cambridge University Press, fourth edition, 2014. (Cited on page 1.)
[30] V. Laschos and A. Mielke. Evolutionary variational inequalities on the Hellinger-Kantorovich and spherical Hellinger-Kantorovich spaces. Communications in Partial Differential Equations, 51(2-3):193–235, 2026. doi: 10.1080/03605302.2026.2650715. (Cited on page 8.)
[31] M. Liero, A. Mielke, and G. Savaré. Optimal transport in competition with reaction: The Hellinger–Kantorovich distance and geodesic curves. SIAM Journal on Mathematical Analysis, 48(4):2869–2911, 2016. (Cited on page 2.)
[32] M. Liero, A. Mielke, and G. Savaré. Optimal entropy-transport problems and a new Hellinger–Kantorovich distance between positive measures. Inventiones Mathematicae, 211(3):969–1117, 2018. (Cited on pages 2 and 6.)
[33] M. Liero, A. Mielke, and G. Savaré. Fine properties of geodesics and geodesic -convexity for the Hellinger–Kantorovich distance. Archive for Rational Mechanics and Analysis, 247(112), 2023. (Cited on page 6.)
[34] Y. Lu, J. Lu, and J. Nolen. Accelerating Langevin sampling with birth-death, 2019. arXiv:1905.09863. (Cited on page 2.)
[35] Y. Lu, D. Slepčev, and L. Wang. Birth–death dynamics for sampling: global convergence, approximations and their asymptotics. Nonlinearity, 36(11):5731–5772, 2023. (Cited on pages 2 and 8.)
[36] S. Maniglia. Probabilistic representation and uniqueness results for measure-valued solutions of transport equations. J. Math. Pures Appli., 87(6):601--626, 2007. (Cited on page 6.)
[37] S. T. Martin, A. Gagneux, P. Hagemann, and G. Steidl. PnP-Flow: Plug-and-play image restoration with flow matching. In The Thirteenth International Conference on Learning Representations, 2025. (Cited on page 1.)
[38] P.-G. Martinsson and J. Tropp. Randomized numerical linear algebra: Foundations & algorithms. Acta Numerca, 29:403–572, 2020. (Cited on page 14.)
[39] A. Matthews, M. Arbel, D. J. Rezende, and A. Doucet. Continual repeated annealed flow transport Monte Carlo. In International Conference on Machine Learning, pages 15196–15219. PMLR, 2022. (Cited on page 18.)
[40] L. I. Midgley, V. Stimper, G. N. C. Simm, B. Schölkopf, and J. M. Hernández-Lobato. Flow annealed importance sampling bootstrap. In The Eleventh International Conference on Learning Representations, 2023. (Cited on page 1.)
[41] A. Mielke and J.-J. Zhu. Hellinger-Kantorovich gradient flows: Global exponential decay of entropy functionals. arXiv preprint arXiv:2501.17049, 2025. (Cited on pages 3 and 8.)
[42] F. Noè, S. Olsson, J. Köhler, and H. Wu. Boltzmann generators: Sampling equilibrium states of many-body systems with deep learning. Science, 365(6457):eaaw1147, 2019. (Cited on page 1.)
[43] A. Oliviero-Durmus, Y. Janati, E. Moulines, M. Pereyra, and S. Reich. Generative modelling meets Bayesian inference: a new paradigm for inverse problems. Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 383(2299):20240334, 2025. (Cited on page 1.)
[44] D. Onken, S. W. Fung, X. Li, and L. Ruthotto. OT-flow: Fast and accurate continuous normalizing flows via optimal transport. In AAAI Conference on Artificial Intelligence, volume 35, pages 9223–9232, 2021. (Cited on page 2.)
[45] A. M. Overstall, D. C. Woods, and B. M. Parker. Bayesian optimal design for ordinary differential equation models with application in biological science. Journal of the American Statistical Association, 115(530):583–598, 2020. (Cited on page 1.)
[46] G. O. Roberts and J. S. Rosenthal. General state space Markov chains and MCMC algorithms. Probability Surveys, 1:20 – 71, 2004. (Cited on page 15.)
[47] G. O. Roberts and R. L. Tweedie. Exponential convergence of Langevin distributions and their discrete approximations. Bernoulli, 2(4):341–363, 1996. (Cited on page 18.)
[48] G. Székely. E-statistics: The energy of statistical samples. Technical Report, Bowling Green University, 2002. (Cited on page 18.)
[49] L. Tan and J. Lu. Accelerate Langevin sampling with birth-death process and exploration component. SIAM/ASA Journal on Uncertainty Quantification, 13(3): 1265–1293, 2025. (Cited on page 2.)
[50] F. Vargas, W. Grathwohl, and A. Doucet. Denoising diffusion samplers. International Conference on Learning Representations, 2023. (Cited on page 18.)
[51] S. Vempala and A. Wibisono. Rapid convergence of the unadjusted Langevin algorithm: isoperimetry suffices. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. (Cited on page 2.)
[52] A. Vidal, S. Wu Fung, L. Tenorio, S. Osher, and L. Nurbekyan. Taming hyperparameter tuning in continuous normalizing flows using the JKO scheme. Scientific Reports, 13(1):4501, 2023. (Cited on page 2.)
[53] M. Welling and Y. W. Teh. Bayesian learning via stochastic gradient Langevin dynamics. In International Conference on Machine Learning, pages 681–688, 2011. (Cited on page 2.)
[54] C. Xu, X. Cheng, and Y. Xie. Normalizing flow neural networks by JKO scheme. In Advances in Neural Information Processing Systems, volume 36, pages 47379–47405. Curran Associates, Inc., 2023. (Cited on pages 2 and 12.)
[55] J.-J. Zhu and A. Mielke. Kernel approximation of Fisher-Rao gradient flows. arXiv preprint arXiv:2410.20622, 2024. (Cited on page 8.)
A Auxiliary Proofs
Proposition A.1. Let and . Then, the set is weakly sequentially compact.
Proof. Recalling the convex duality , the KL divergence can be rewritten as
Hence, we get, for , that
Taking gives
and consequently .
Next, we show that is uniformly tight. Let be arbitrary small. Choose sufficiently large such that
Since is a finite measure on , it is tight. Thus, there exists a compact set such that
Using the measurable function , we obtain, for every , that
This implies
and then
so that is uniformly tight. Now let be any sequence in . By Prokhorov's theorem it follows that there exists a subsequence, still denoted by , and some such that .
It remains to verify that . Since KL is weakly lower semicontinuous we obtain by for every that
Thus which finishes the proof.
B Pseudo-code of the Algorithms
We provide pseudo-code for the computations in Section 4.2 in Algorithm 1, 2 and 3.
Sampling via Wasserstein-Fisher-Rao JKO Scheme
Algorithm 1: Evaluate the empirical risk
Input: particles with log-density , velocity , reaction and
Output: The empirical risk
1 Sample i.i.d. -dimensional Rademacher variables .
2 Simulate the ODE system from to for :
3 Compute the per-particle loss:
4
5 Compute the empirical risk .
6 return
Algorithm 2: Applying a JKO step
Input: particles , log-densities , velocity and reaction
Output: weighted particles with weights and log-densities , log-mass
1 Simulate the ODE system from to for :
2 Update the particles for .
3 Evaluate the weights for .
4 Evaluate the log-density .
5 Evaluate the log-mass .
6 return samples , weights , log-density and total mass .
Algorithm 3: Resampling
Input: weighted particles with weights and log-densities
Output: unweighted particles with log-densities
1 Normalize the weights .
2 Resample .
3 for .
4 for .
5 return and .