Skip to content

Menu

WorksComputer Science

Noise, Denoise, Correct: MCMC Posterior Sampling with Diffusion Priors in Three Steps

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_dkgdx55w. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Pretrained diffusion models are powerful priors for inverse problems, but posterior sampling under nonlinear, non-differentiable forward models remain hard. We introduce diffusion waltz, an MCMC method using SDEdit-style noising-denoising as a proposal, corrected via Metropolis-Hastings for exact posterior sampling without prior evaluation. We further propose injecting observations into the proposal while preserving exactness, using a gradient-free ensemble Kalman update. On a non-differentiable Navier-Stokes initial condition recovery task, diffusion waltz outperforms existing baselines across different noise and nonlinearity regimes.

Introduction

Solving inverse problems is a central challenge across science and engineering, where the goal is to recover an unknown state x0x_0 from noisy, incomplete observations y=A(x0)+ϵy = \mathcal{A}(x_0) + \epsilon; here, A\mathcal{A} is a known forward operator and ϵ∼N(0,σy2I)\epsilon\sim\mathcal{N}(0, \sigma_y^2 I) for some σy>0\sigma_y > 0. Such observations typically do not carry enough information to recover x0x_0 exactly, rendering the problem ill-posed. The Bayesian formulation resolves this by placing a prior p0(x0)p_0(x_0) over the state and targeting the posterior [Stuart, 2010]:

p(x0∣y)∝p(y∣x0)p0(x0).(1)p(x_0 \mid y) \propto p(y \mid x_0) p_0(x_0). \tag*{(1)}

A growing body of work seeks to use pretrained generative models as priors [9], but posterior sampling remains elusive when the prior is accessible only through simulation, with no tractable density. Methods such as classifier and classifier-free guidance [10, 14] can sample from (1) approximately. However, they require additional training and cannot adapt to new forward models. Inference-time guidance methods [6, 33, 20] (Song et al. 2023; Zhang et al. 2025) adapt to new problems without retraining, but rely on approximations to the likelihood score, leading to biased posterior approximations; unlike in computer vision, where many of these methods were originally devised, scientific applications often demand accurate posterior estimation. Furthermore, many of these methods rely on taking gradients through the likelihood, requiring A\mathcal{A} to be differentiable – an assumption that fails in many realistic applications.

To address this, we propose diffusion waltz, a three-step cycle to sample from (1) via Markov Chain Monte Carlo (MCMC), which targets the posterior exactly, assuming a perfect denoiser. Our proposal kernel q(x0′∣x0)q(x_0' \mid x_0), inspired by SDEdit [27], is constructed by (i) noising x0x_0 to an appropriate level tt, then (ii) denoising back to level 00 to yield a new sample x0′x_0'. This is followed by (iii) a Metropolis-Hastings (MH) accept/reject step, where the acceptance probability crucially does not depend on the prior density p0(x0)p_0(x_0). To accelerate convergence, we further propose a way to inject information about yy into the proposal without requiring differentiability of A\mathcal{A}, such that the modified proposal still yields an exact MH correction that does not involve the prior density.

Method

Diffusion waltz for posterior sampling

We first describe the basic variant of diffusion waltz, which we refer to as random walk Metropolis-Hastings (RWMH) waltz. Let p0,p1p_0, p_1 be two probability distributions, representing the data and reference distributions, respectively. We consider a stochastic interpolant xt=αtx0+βtx1x_t = \alpha_t x_0 + \beta_t x_1 for t∈[0,1]t \in[0,1], where x0∼p0x_0 \sim p_0, x1∼p1x_1 \sim p_1, and αt,βt\alpha_t, \beta_t are C2C^2-smooth, monotonic functions satisfying α0=β1=1\alpha_0 = \beta_1 = 1 and α1=β0=0\alpha_1 = \beta_0 = 0, e.g., αt=1−t\alpha_t = 1-t and βt=t\beta_t = t. A generative SDE/ODE can then be trained to sample from pθ(x0)≈p0(x0)p_\theta(x_0) \approx p_0(x_0) via score/flow matching [25, 2] (Song et al. 2021) (see Appendix § 7).

For a fixed t∈(0,1)t \in(0,1) and an initial sample x0∼pθx_0 \sim p_\theta, RWMH waltz cycles through three steps:

  1. Add noise to x0x_0 via the interpolant xt=αtx0+βtx1x_t = \alpha_t x_0 + \beta_t x_1, where x1∼p1x_1 \sim p_1.

  2. Denoise xtx_t by proposing x0′∼pθ(x0∣xt)∝p(xt∣x0) pθ(x0)x'_0 \sim p_\theta(x_0 \mid x_t) \propto p(x_t \mid x_0)\,p_\theta(x_0).

  3. Accept x0′x'_0 with probability α=min⁡{1,p(y∣x0′)p(y∣x0)}\alpha= \min\left\{1, \frac{p(y\mid x'_0)}{p(y\mid x_0)}\right\} and set x0←x0′x_0 \leftarrow x'_0 to repeat the cycle.

The first two steps – perturbing x0x_0 via noising/denoising to produce a new sample x0′x'_0 that remains close to it on the data manifold – is common in image editing, as exemplified by SDEdit [27]. Here we repurpose this idea to define a proposal kernel q(x0′∣x0)q(x'_0 \mid x_0) for MCMC, allowing random walk-like exploration of the data manifold. The third step is a Metropolis–Hastings (MH) correction, which guarantees that the resulting chain converges to the posterior as the number of iterations grows. Crucially, the acceptance probability in this step depends only on the likelihood; thus, we never have to evaluate the prior density pθp_\theta. This follows from the reversibility of the proposal kernel with respect to the generative prior, i.e., q(x0′∣x0)pθ(x0)=q(x0∣x0′)pθ(x0′)q(x'_0 \mid x_0)p_\theta(x_0) = q(x_0 \mid x'_0)p_\theta(x'_0), which cancels the prior terms in the acceptance ratio (see Appendix § 8.§ 1).

In principle, RWMH waltz samples exactly from the posterior. In practice, however, the denoising step requires approximation; e.g., by solving a denoising SDE via Euler-Maruyama (see Appendix § 7.§ 2), or by directly targeting the denoising kernel p(x0∣xt)p(x_0 \mid x_t) using recent advances in stochastic flow maps [31, 15, 26, 29]. The SDE discretization error in the former approach can, in principle, be corrected by combining predictor–corrector-style sampling with further MH corrections [22]; in practice, though, this is usually unnecessary to obtain satisfactory results.

Conditional noising

We now propose an extension that takes into account observation information into the proposal. Since the RWMH waltz proposal explores the data manifold randomly around the current point x0x_0 in the data manifold, it typically suffers from low acceptance rates and slow mixing, much like standard RWMH. Typically, this issue is alleviated by introducing observation information directly into the proposal; e.g., MALA [32] and HMC [11]. We seek an analogous approach within the diffusion waltz framework.

To this end, we consider adding information about yy into the noising step of RWMH waltz. In its most general form, the noising step is replaced by xt∼q(xt∣x0,y)x_t \sim q(x_t \mid x_0,y) for an arbitrary noising kernel qq that depends on yy. Remarkably, the resulting MH acceptance probability still does not require evaluating the prior density pθp_\theta, making the method fully tractable provided qq can be evaluated (see line 3 in Algorithm 2 and Appendix § 8.§ 2 for the derivation of this acceptance probability).

The ensemble Kalman conditional noising (EKCN) kernel

As an example of such a conditional noising kernel q(xt∣x0,y)q(x_t \mid x_0,y), consider

xt=αt(x0+g(x0,y;h))+βtx1,x1∼p1,(2)x_t = \alpha_t\left(x_0 + g(x_0,y;h)\right) + \beta_t x_1,\qquad x_1 \sim p_1, \tag*{(2)}

where g(x0,y;h)g(x_0,y;h) nudges A(x0)\mathcal{A}(x_0) towards yy with learning rate h>0h > 0. In the ensemble Kalman conditional noising (EKCN) kernel, we take gg to be an ensemble Kalman Levenberg-Marquardt update rule [34 Algorithm 13.15]

g(x0,y;h)=K(h)(y−A(x0)),(3)g(x_0,y;h) = K(h)\left(y-\mathcal{A}(x_0)\right), \tag*{(3)}

Algorithm 1 Diffusion waltz (random walk)

  1. Add noise xt∼p(xt∣x0)x_t \sim p(x_t \mid x_0) via interpolant

  2. Denoise x0′∼pθ(x0∣xt)x'_0 \sim p_\theta(x_0 \mid x_t)

  3. Accept x0′x'_0 with probability

α=min⁡{1,p(y∣x0′)p(y∣x0)}\alpha= \min\left\{1,\frac{p(y \mid x'_0)}{p(y \mid x_0)}\right\}

(Set x0←x0′x_0 \leftarrow x'_0 if accepted, else keep x0x_0)

Algorithm 2 Diffusion waltz (conditional noising)

  1. Propose xt∼q(xt∣x0,y)x_t \sim q(x_t \mid x_0,y) for a chosen kernel qq

  2. Denoise x0′∼pθ(x0∣xt)x'_0 \sim p_\theta(x_0 \mid x_t)

  3. Accept (xt,x0′)(x_t,x'_0) with probability

α=min⁡{1,p(y∣x0′)q(xt∣x0′,y)p(xt∣x0)p(y∣x0)q(xt∣x0,y)p(xt∣x0′)}\alpha= \min\left\{1,\frac{p(y \mid x'_0)q(x_t \mid x'_0,y)p(x_t \mid x_0)}{p(y \mid x_0)q(x_t \mid x_0,y)p(x_t \mid x'_0)}\right\}

(Set x0←x0′x_0 \leftarrow x'_0 if accepted, else keep x0x_0)

where the Kalman gain K(h)K(h) can be estimated from an ensemble of particles without requiring gradients of AA (see Appendix § 9.§ 1). In practice, we run an ensemble of JJ MCMC chains in parallel to compute K(h)K(h) and re-use it to compute the MH acceptance probability (see Appendix § 9.§ 2). Adaptive tuning of tt, hh via Robbins-Monro is also applied, allowing smaller steps as chains converge (see Appendix § 10). EKCN waltz can thus be understood as cycling over (i) a Kalman update to minimise data misfit, (ii) SDEdit to project onto the data manifold, and (iii) MH correction.

Related works

The RWMH waltz proposal (Algorithm 1) has been considered in concurrent work [18, 30], but mechanisms to inject likelihood information into the proposal have not yet been explored. The idea of avoiding prior density computation by designing reversible proposals underlies preconditioned Crank–Nicolson (pCN) and pCN-Langevin [8]. In addition to conditional noising, another way to inject information about yy into the waltz proposal is to add it during the denoising step; similar ideas have been explored by DAPS [Zhang et al., 2025] and RePS [1], which cycles through noising and conditional de-noising, although these require gradients of AA. Other MCMC-based posterior samplers with pretrained diffusion priors include sequential Monte Carlo [5] (Wu et al. 2023; Singhal et al. 2025), split-Gibbs [7] (Wu et al. 2024; Zheng et al. 2025c), and elliptical slice sampling [17], several of which we compare against in the next section.

Experiments

We consider the Navier-Stokes initial condition recovery problem to validate the performance of diffusion waltz against various baselines. An initial vorticity field ω0\omega_0 is evolved forward in time by a Navier-Stokes pseudo-spectral solver to obtain ωT\omega_T. This is then downsampled and corrupted by Gaussian noise to generate noisy observations yy. The goal of the experiment is to reconstruct the initial vorticity ω0\omega_0 given yy, i.e., infer pθ(ω0∣y)∝p(y∣ω0)pθ(ω0)p_\theta(\omega_0 \mid y) \propto p(y \mid\omega_0)p_\theta(\omega_0), where the diffusion prior pθ(ω0)p_\theta(\omega_0) is trained on long time trajectories of ω0\omega_0. We explore different regimes in terms of the level of nonlinearity (controlled by TT) and noise intensity (controlled by σy\sigma_y). Details in Appendix § 11.

Baseline comparisons. Since we use a non-differentiable numerical solver to simulate the Navier-Stokes system, we restrict ourselves to derivative-free methods. We compare both RWMH waltz (DW-RWMH) and EKCN waltz (DW-EKCN) against a mix of standard and state-of-the-art derivative-free methods, including EKI [21], EnKG [Zheng et al., 2025a], FK Steering [Singhal et al., 2025], ESS-Flow [17], Blade [Zheng et al., 2025c] and MFM-GF [31]. Details of the baselines are provided in Appendix § 11.6.

We display results in Table 1, where we compare the relative ℓ2\ell_2 score (Rel ℓ2\ell_2), continuous ranked probability score (CRPS), and spread-skill ratio (SSR), providing a mix of reconstruction and probabilistic metrics (see Appendix § 11.§ 4). Visualizations in the high nonlinearity / high noise regime are shown in Figure 1 (for other regimes, see Figure 3–Figure 5 in the appendix). Overall, DW-EKCN performs strongly on all scores across all regimes, consistently ranking first or second. We note the significant improvement over EKI, highlighting the importance of the SDEdit+MH step in DW for keeping ensemble members on-manifold. EnKG, another ensemble Kalman-based method, performs reasonably in low-noise regimes but suffers from low spread as seen by the low SSR; in the high noise regime, it performs poorly. Blade, an improvement over EnKG that combines EKI-like statistical linearisation with split-Gibbs sampling, performs competitively, especially at low nonlinearity; however, it suffers from slow inference speed due to the need for multiple forward model passes during Langevin sampling. ESS-Flow, despite strong performance, also suffers from slow inference speed due to the large number of forward passes required during shrinking. Finally, FK Steering and MFM-GF, which rely on importance sampling, both exhibit weight collapse, leading to poor performance even in the low nonlinearity / low noise regime.

MethodsLow nonlinearity (T=1T = 1), low noise Rel ℓ2\ell_2 ↓CRPS↓SSR→ 1Low nonlinearity (T=1T = 1), high noise Rel ℓ2\ell_2 ↓CRPS↓SSR→ 1High nonlinearity (T=5T = 5), low noise Rel ℓ2\ell_2 ↓CRPS↓SSR→ 1High nonlinearity (T=5T = 5), high noise Rel ℓ2\ell_2 ↓CRPS↓SSR→ 1
EKI0.5170.3700.0240.8320.5600.1261.0590.7540.0310.8650.5220.267
EnKG0.1290.0860.0760.6170.4140.071<u>0.418</u>0.2790.0980.8120.5230.084
FK Steering0.7870.5380.0120.7820.5000.1011.3831.0000.0160.9920.5111.084
ESS-Flow0.1780.0801.405<u>0.248</u><u>0.118</u>1.1790.5060.2420.9870.4910.2330.987
Blade0.0690.0371.7970.2960.1390.9820.4210.2392.3120.4420.2311.326
MFM-GF0.4060.1911.3950.4250.2021.4060.5490.2621.2450.5470.2611.253
DW-RWMH0.4510.1771.7030.5500.2291.4760.8100.3981.1630.8150.3961.155
DW-EKCN<u>0.086</u><u>0.045</u><u>1.396</u>0.2200.1011.0810.2470.152<u>1.054</u>0.4350.207<u>0.945</u>

Table 1. Mean Rel-ℓ2\ell_2, CRPS and SSR across five unseen test examples (for an expanded version with standard deviations and gradient-based baselines, see Table 5–Table 6). Best results in bold, second best <u>underlined</u>.

Figure 1. Results on the Navier-Stokes (NS) initial condition recovery problem in the high nonlinearity / high noise regime. Despite the heavily corrupted observation, diffusion waltz with ensemble Kalman conditional noising (DW-EKCN) recovers the ground truth accurately with well-calibrated uncertainties.

Figure 3. Comparison of diffusion waltz and baseline methods on the Navier-Stokes (NS) initial condition recovery problem in the low nonlinearity (T=1T = 1) / low noise (σy/σ0=0.1\sigma_y/\sigma_0 = 0.1) regime.

Figure 5. Comparison of diffusion waltz and baseline methods on the Navier-Stokes (NS) initial condition recovery problem in the high nonlinearity (T=5T = 5) / low noise (σy/σ0=0.1\sigma_y/\sigma_0 = 0.1) regime.

For comparisons against standard gradient-based guidance methods (e.g. DPS) using a differentiable neural surrogate for the NS system, see Appendix § 11.7; we see that DW-EKCN and other MCMC-based approaches (ESS-Flow, Blade) mostly outperform these methods.

Effect of conditional noising. Comparing the two DW variants, we see that conditional noising is instrumental in accelerating convergence to the stationary distribution. We display trace plots of the potential U(x0)=−log⁡p(y∣x0)U(x_0) = -\log p(y \mid x_0) in Figure 6, showing that the slow convergence of RWMH waltz is due to many chains getting stuck early on, especially in the highly nonlinear setting (T=5T = 5). EKCN guides each ensemble member towards high-likelihood regions, leading to rapid convergence within the first ∼50\sim50 MCMC steps. This also leads to high acceptance rates early in the iteration (Figure 7), although the rate decays rapidly once the chains converge; e.g., in the high-noise setting, it settles to between 10 ∼\sim 20%, and in the low-noise regime, less than 5%. Investigating methods to maintain high acceptance rates is a promising direction for future work.

Figure 6. MCMC traces for the potential U(x0):=−log⁡p(y∣x0)U(x_0) := -\log p(y \mid x_0). We compare DW-RWMH (left) and DW-EKCN (right), across all four regimes. Many chains in DW-RWMH get stuck, unable to find a path to high likelihood/low potential regions, leading to slow convergence. Conditional noising in DW-EKCN alleviates this problem, leading to rapid convergence within the first 50 steps.

Figure 7. Instantaneous acceptance rates for DW-RWMH (left) and DW-EKCN (right), across all four regimes. DW-RWMH shows steady decay with MCMC steps. In the low noise regime, DW-EKCN has high acceptance rates initially, fluctuates around 20% while the chains converge, then hits ≈\approx 0%. In the high noise regime, acceptance rate is high initially, then immediately relaxes to 10 ∼\sim 20%.

Conclusion

Diffusion waltz provides a simple plug-and-play framework for posterior sampling via MCMC that is asymptotically exact (assuming a perfect denoiser) and handles non-differentiable forward models. Its conditional noising extension injects observation information into the proposal while preserving this exactness, substantially improving mixing. On Navier–Stokes initial condition recovery, diffusion waltz matches or outperforms strong derivative-free baselines in both accuracy and calibration.

Acknowledgments and Disclosure of Funding

We would like to thank Martin Accou, Andrew Boardman, Thomas Gessey-Jones, Ayush Jain, James-Michael Leahy and Daniel Owen-Lloyd for the insightful discussions and careful review of the manuscript.

CRediT author statement: So Takao: Conceptualization, Methodology, Software, Investigation, Writing - Original Draft, Visualization. Gregory David Bellchambers: Software, Investigation. Luke Ye: Software, Investigation. Sanmitra Ghosh: Conceptualization, Resources, Writing - Original Draft, Supervision, Project administration. Michalis Michaelides: Conceptualization, Resources, Writing - Original Draft, Supervision, Project administration.

Stochastic interpolants

Given measures ρ0\rho_0 and ρ1\rho_1, a stochastic interpolant is defined by the stochastic process

xt=αtx0+βtx1,(4)x_t = \alpha_t x_0 + \beta_t x_1, \tag*{(4)}

where x0∼ρ0x_0 \sim\rho_0, x1∼ρ1x_1 \sim\rho_1, and αt,βt\alpha_t,\beta_t for t∈[0,1]t \in[0,1] are arbitrary monotonic C2C^2 functions satisfying the endpoint conditions α0=β1=1\alpha_0 = \beta_1 = 1 and α1=β0=0\alpha_1 = \beta_0 = 0. By a slight extension of [2 Corollary 18], for any positive definite {Ct}t∈[0,1]\{C_t\}_{t\in[0,1]}, we have that the SDE

dxt=(b(t,xt)−12Cts(t,xt)) dt+Ct dWt,(5)\mathrm{d}x_t = \left(b(t,x_t) - \frac{1}{2}C_t s(t,x_t)\right)\,\mathrm{d}t + \sqrt{C_t}\,\mathrm{d}W_t, \tag*{(5)}

solved backwards in time from x1∼ρ1x_1 \sim\rho_1 shares the same marginal law p(xt)p(x_t) as the forward interpolant (4). Here, b(t,xt):=E[x˙t∣xt]b(t,x_t) := \mathbb{E}[\dot{x}_t|x_t] is the marginal velocity (as used in flow matching) and $s(t,x_t) := ∇xtlog⁡p(xt)\nabla_{x_t}\log p(x_t) is the score function. While both b(t,xt)b(t,x_t) and s(t,xt)s(t,x_t) are intractable, these can be approximated by neural networks bθ(t,xt)b_\theta(t,x_t), sθ(t,xt)s_\theta(t,x_t), respectively, by minimizing the losses

Lb(θ)=Ex0∼p0,x1∼p1,t∼U([0,1])[∥bθ(t,xt)−(α˙tx0+β˙tx1)∥2],(6)\mathcal{L}_b(\theta)=\mathbb{E}_{x_0\sim p_0,x_1\sim p_1,t\sim\mathcal{U}([0,1])}\left[\left\|b_\theta(t,x_t)-(\dot{\alpha}_t x_0+\dot{\beta}_t x_1)\right\|^2\right], \tag*{(6)}
Ls(θ)=Ex0∼p0,x1∼p1,t∼U([0,1])[∥sθ(t,xt)−∇xtlog⁡p(xt∣x0)∥2].(7)\mathcal{L}_s(\theta)=\mathbb{E}_{x_0\sim p_0,x_1\sim p_1,t\sim\mathcal{U}([0,1])}\left[\left\|s_\theta(t,x_t)-\nabla_{x_t}\log p(x_t\mid x_0)\right\|^2\right]. \tag*{(7)}

Three-sides of the same coin

In the special case when the reference is given by a Gaussian p1=N(0,C)p_1=\mathcal{N}(0,C)1, we can show that the drift b(t,xt)b(t,x_t), the score s(t,xt)s(t,x_t) and the clean sample estimate E[x0∣xt]\mathbb{E}[x_0\mid x_t] are all related linearly. First, we can easily check the relation between s(t,xt)s(t,x_t) and E[x0∣xt]\mathbb{E}[x_0\mid x_t], noting that p(xt∣x0)=N(xt∣αtx0,βt2C)p(x_t\mid x_0)=\mathcal{N}(x_t\mid\alpha_t x_0,\beta_t^2 C):

s(t,xt):=∇xtlog⁡p(xt)(8)s(t,x_t):=\nabla_{x_t}\log p(x_t) \tag*{(8)}
=∫∇xtlog⁡p(xt∣x0)p(x0∣xt) dx0(9)=\int\nabla_{x_t}\log p(x_t\mid x_0)p(x_0\mid x_t)\,\mathrm{d}x_0 \tag*{(9)}
=−βt−2C−1(xt−αtE[x0∣xt]).(10)=-\beta_t^{-2}C^{-1}(x_t-\alpha_t\mathbb{E}[x_0\mid x_t]). \tag*{(10)}

Re-arranging this expression gives us Tweedie’s formula:

E[x0∣xt]=xt+βt2Cs(t,xt)αt(11)\mathbb{E}[x_0\mid x_t]=\frac{x_t+\beta_t^2Cs(t,x_t)}{\alpha_t} \tag*{(11)}

On the other hand, using the fact that xt=αtx0+βtx1x_t=\alpha_t x_0+\beta_t x_1 implies xt=αtE[x0∣xt]+βtE[x1∣xt]x_t=\alpha_t\mathbb{E}[x_0\mid x_t]+\beta_t\mathbb{E}[x_1\mid x_t] and b(t,xt):=E[x˙t∣xt]=α˙tE[x0∣xt]+β˙tE[x1∣xt]b(t,x_t):=\mathbb{E}[\dot{x}_t\mid x_t]=\dot{\alpha}_t\mathbb{E}[x_0\mid x_t]+\dot{\beta}_t\mathbb{E}[x_1\mid x_t], a simple algebra yields the relation between the drift b(t,xt)b(t,x_t) and the Tweedie estimate E[x0∣xt]\mathbb{E}[x_0\mid x_t]:

E[x0∣xt]=βtb(t,xt)−β˙txtα˙tβt−αtβ˙t.(12)\mathbb{E}[x_0\mid x_t]=\frac{\beta_t b(t,x_t)-\dot{\beta}_t x_t}{\dot{\alpha}_t\beta_t-\alpha_t\dot{\beta}_t}. \tag*{(12)}

Finally, combining (11) and (12) gives us the relation between the drift b(t,x)b(t,x) and the score s(t,xt)s(t,x_t):

Cs(t,xt)=αtb(t,xt)−α˙txtβt(α˙tβt−αtβ˙t).(13)Cs(t,x_t)=\frac{\alpha_t b(t,x_t)-\dot{\alpha}_t x_t}{\beta_t(\dot{\alpha}_t\beta_t-\alpha_t\dot{\beta}_t)}. \tag*{(13)}

Choice of SDE to sample from p(x0 xt)

Given particular choices of CtC_t, we can show that the SDE (5) not only samples the interpolant marginals p(xt)p(x_t) but also the conditional p(x0∣xt)p(x_0\mid x_t), which is what we need in the denoising step of diffusion waltz. This follows from the following result.

Proposition 1. Let p1=N(0,C)p_1=\mathcal{N}(0,C) for some positive definite CC. Then, setting Ct:=σt2CC_t:=\sigma_t^2 C in (5) with {σt}t∈(0,1)\{\sigma_t\}_{t\in(0,1)} satisfying

σt22=βt(αtβ˙t−α˙tβt)αt,t∈(0,1),(14)\frac{\sigma_t^2}{2}=\frac{\beta_t(\alpha_t\dot{\beta}_t-\dot{\alpha}_t\beta_t)}{\alpha_t},\quad t\in(0,1), \tag*{(14)}

the terminal law of the reverse-time SDE (5) integrated backwards from time tt to 00 from initial condition xtx_t, is equivalent to the conditional law p(x0∣xt)p(x_0\mid x_t) of the interpolant.

Proof. The proof is a slight adaptation of [31 Proposition C.1].

Using this result, we can further simplify the expression for our denoising SDE (5). First, by the relation (13), the drift of (5) reads

b(t,xt)−σt22Cs(t,xt)=b(t,xt)−σt22αtb(t,xt)−α˙txtβt(α˙tβt−αtβ˙t)(15)b(t,x_t)-\frac{\sigma_t^2}{2}C s(t,x_t)=b(t,x_t)-\frac{\sigma_t^2}{2}\frac{\alpha_t b(t,x_t)-\dot{\alpha}_t x_t}{\beta_t(\dot{\alpha}_t\beta_t-\alpha_t\dot{\beta}_t)} \tag*{(15)}
=b(t,xt)+(b(t,xt)−α˙tαtxt)(16)= b(t,x_t)+\left(b(t,x_t)-\frac{\dot{\alpha}_t}{\alpha_t}x_t\right) \tag*{(16)}
=2b(t,xt)−α˙tαtxt(17)=2b(t,x_t)-\frac{\dot{\alpha}_t}{\alpha_t}x_t \tag*{(17)}

or equivalently,

b(t,xt)−σt22Cs(t,xt)=α˙tαtxt−σt2Cs(t,xt).(18)b(t,x_t)-\frac{\sigma_t^2}{2}C s(t,x_t)=\frac{\dot{\alpha}_t}{\alpha_t}x_t-\sigma_t^2 C s(t,x_t). \tag*{(18)}

Thus, the denoising SDE (5) simplifies to

dxt=(2b(t,xt)−α˙tαtxt)dt+σtdWtC,(19)\mathrm{d}x_t=\left(2b(t,x_t)-\frac{\dot{\alpha}_t}{\alpha_t}x_t\right)\mathrm{d}t+\sigma_t\mathrm{d}W_t^C, \tag*{(19)}

or equivalently, using the score instead, we have

dxt=(α˙tαtxt−σt2Cs(t,xt))dt+σtdWtC,(20)\mathrm{d}x_t=\left(\frac{\dot{\alpha}_t}{\alpha_t}x_t-\sigma_t^2 C s(t,x_t)\right)\mathrm{d}t+\sigma_t\mathrm{d}W_t^C, \tag*{(20)}

where WtC:=CWtW_t^C:=\sqrt{C}W_t is the CC-Brownian motion.

Acceptance probability computations

Given a proposal kernel q(x0′∣x0)q(x'_0\mid x_0), the Metropolis-Hastings accept/reject probability to sample from the posterior p(x0∣y)p(x_0\mid y) is given by

α=min⁡{1,p(x0′∣y)q(x0∣x0′)p(x0∣y)q(x0′∣x0)}.(21)\alpha=\min\left\{1,\frac{p(x'_0\mid y)q(x_0\mid x'_0)}{p(x_0\mid y)q(x'_0\mid x_0)}\right\}. \tag*{(21)}

In this appendix, we derive the Metropolis/Hastings acceptance probabilities for diffusion waltz as it appears in Algorithms 1 and 2.

RWMH diffusion waltz

We first show that for RWMH diffusion waltz, as described in Algorithm 1, this acceptance probability reduces to a simple likelihood ratio, avoiding the need to evaluate prior densities. To show this, we use the following result.

Lemma 1. The RWMH diffusion waltz proposal kernel qθ(x0′∣x0)q_\theta(x'_0\mid x_0) is reversible with respect to the diffusion prior pθ(x0)p_\theta(x_0), i.e.,

qθ(x0′∣x0)pθ(x0)=qθ(x0∣x0′)pθ(x0′)(22)q_\theta(x'_0\mid x_0)p_\theta(x_0)=q_\theta(x_0\mid x'_0)p_\theta(x'_0) \tag*{(22)}

Proof. The RWMH diffusion waltz proposal kernel (steps 1&2 of Algorithm 1) can be expressed as

qθ(x0′∣x0):=∫pθ(x0′∣xt)p(xt∣x0)dxt.(23)q_\theta(x'_0\mid x_0):=\int p_\theta(x'_0\mid x_t)p(x_t\mid x_0)\mathrm{d}x_t. \tag*{(23)}

Thus, we have

qθ(x0′∣x0)pθ(x0)=∫pθ(x0′∣xt)p(xt∣x0)pθ(x0)dxt(24)q_\theta(x'_0\mid x_0)p_\theta(x_0)=\int p_\theta(x'_0\mid x_t)p(x_t\mid x_0)p_\theta(x_0)\mathrm{d}x_t \tag*{(24)}
=∫p(xt∣x0′)pθ(x0′)pθ(xt)p(xt∣x0)pθ(x0)dxt(25)=\int\frac{p(x_t\mid x'_0)p_\theta(x'_0)}{p_\theta(x_t)}p(x_t\mid x_0)p_\theta(x_0)\mathrm{d}x_t \tag*{(25)}
=∫p(xt∣x0′)pθ(x0′)p(xt∣x0)pθ(x0)pθ(xt)dxt(26)=\int p(x_t\mid x'_0)p_\theta(x'_0)\frac{p(x_t\mid x_0)p_\theta(x_0)}{p_\theta(x_t)}\mathrm{d}x_t \tag*{(26)}
=∫pθ(x0∣xt)p(xt∣x0′)pθ(x0′)dxt(27)=\int p_\theta(x_0\mid x_t)p(x_t\mid x'_0)p_\theta(x'_0)\mathrm{d}x_t \tag*{(27)}
=qθ(x0∣x0′)pθ(x0′),(28)=q_\theta(x_0\mid x'_0)p_\theta(x'_0), \tag*{(28)}

which establishes the reversibility of the diffusion waltz proposal kernel with respect to pθp_\theta.

From this, we can simplify the ratio in (21) as

pθ(x0′∣y)qθ(x0∣x0′)pθ(x0∣y)qθ(x0′∣x0)=p(y∣x0′)pθ(x0′)qθ(x0∣x0′)p(y∣x0)pθ(x0)qθ(x0′∣x0)=p(y∣x0′)p(y∣x0).(29)\frac{p_\theta(x'_0 \mid y)q_\theta(x_0 \mid x'_0)}{p_\theta(x_0 \mid y)q_\theta(x'_0 \mid x_0)} = \frac{p(y \mid x'_0)p_\theta(x'_0)q_\theta(x_0 \mid x'_0)}{p(y \mid x_0)p_\theta(x_0)q_\theta(x'_0 \mid x_0)} = \frac{p(y \mid x'_0)}{p(y \mid x_0)}. \tag*{(29)}

proving our claim, where the first equality follows from Bayes’ rule and the second follows from the reversibility property (22).

Conditional noising waltz

The conditional waltz kernel is given in full by:

Kθ(x0→x0′)=Paccept(x0→x0′)+Preject(x0→x0′)δ(x0−x0′).(30)K_\theta(x_0 \to x'_0) = P_{\mathrm{accept}}(x_0 \to x'_0) + P_{\mathrm{reject}}(x_0 \to x'_0)\delta(x_0-x'_0). \tag*{(30)}

where

Paccept(x0→x0′):=∫pθ(x0′∣xt)q(xt∣x0,y)min⁡{1,p(y∣x0′)q(xt∣x0′,y)p(xt∣x0)p(y∣x0)q(xt∣x0,y)p(xt∣x0′)} dxt,(31)P_{\mathrm{accept}}(x_0 \to x'_0) := \int p_\theta(x'_0 \mid x_t)q(x_t \mid x_0,y)\min\left\{1,\frac{p(y \mid x'_0)q(x_t \mid x'_0,y)p(x_t \mid x_0)}{p(y \mid x_0)q(x_t \mid x_0,y)p(x_t \mid x'_0)}\right\}\,\mathrm{d}x_t, \tag*{(31)}
Preject(x0→x0′):=1−Paccept(x0→x0′).(32)P_{\mathrm{reject}}(x_0 \to x'_0) := 1-P_{\mathrm{accept}}(x_0 \to x'_0). \tag*{(32)}

We show that this kernel is reversible with respect to the posterior pθ(x0∣y)p_\theta(x_0 \mid y), that is,

Kθ(x0→x0′)pθ(x0∣y)=Kθ(x0′→x0)pθ(x0′∣y).(33)K_\theta(x_0 \to x'_0)p_\theta(x_0 \mid y)=K_\theta(x'_0 \to x_0)p_\theta(x'_0 \mid y). \tag*{(33)}

To show this, we use the following lemma

Lemma 2. The following identity holds for any (x0,x0′,xt)(x_0,x'_0,x_t):

(pθ(x0′∣xt)q(xt∣x0,y)min⁡{1,p(y∣x0′)q(xt∣x0′,y)p(xt∣x0)p(y∣x0)q(xt∣x0,y)p(xt∣x0′)})pθ(x0∣y)=(pθ(x0∣xt)q(xt∣x0′,y)min⁡{1,p(y∣x0)q(xt∣x0,y)p(xt∣x0′)p(y∣x0′)q(xt∣x0′,y)p(xt∣x0)})pθ(x0′∣y).(34)\begin{aligned} &\left(p_\theta(x'_0 \mid x_t)q(x_t \mid x_0,y)\min\left\{1,\frac{p(y \mid x'_0)q(x_t \mid x'_0,y)p(x_t \mid x_0)}{p(y \mid x_0)q(x_t \mid x_0,y)p(x_t \mid x'_0)}\right\}\right)p_\theta(x_0 \mid y) \\ &=\left(p_\theta(x_0 \mid x_t)q(x_t \mid x'_0,y)\min\left\{1,\frac{p(y \mid x_0)q(x_t \mid x_0,y)p(x_t \mid x'_0)}{p(y \mid x'_0)q(x_t \mid x'_0,y)p(x_t \mid x_0)}\right\}\right)p_\theta(x'_0 \mid y). \tag*{(34)} \end{aligned}

Proof. For simplicity, let

r:=p(y∣x0′)q(xt∣x0′,y)p(xt∣x0)p(y∣x0)q(xt∣x0,y)p(xt∣x0′).(35)r := \frac{p(y \mid x'_0)q(x_t \mid x'_0,y)p(x_t \mid x_0)}{p(y \mid x_0)q(x_t \mid x_0,y)p(x_t \mid x'_0)}. \tag*{(35)}

When r<1r<1, the left hand side and right hand side of (34) reads, respectively,

LHS=pθ(x0′∣xt)q(xt∣x0,y)pθ(x0∣y)r(36)\mathrm{LHS}=p_\theta(x'_0 \mid x_t)q(x_t \mid x_0,y)p_\theta(x_0 \mid y)r \tag*{(36)}
RHS=pθ(x0∣xt)q(xt∣x0′,y)pθ(x0′∣y).(37)\mathrm{RHS}=p_\theta(x_0 \mid x_t)q(x_t \mid x'_0,y)p_\theta(x'_0 \mid y). \tag*{(37)}

Thus, for equality (34) to hold, we need

r=pθ(x0∣xt)q(xt∣x0′,y)pθ(x0′∣y)pθ(x0′∣xt)q(xt∣x0,y)pθ(x0∣y).(38)r=\frac{p_\theta(x_0 \mid x_t)q(x_t \mid x'_0,y)p_\theta(x'_0 \mid y)}{p_\theta(x'_0 \mid x_t)q(x_t \mid x_0,y)p_\theta(x_0 \mid y)}. \tag*{(38)}

Now, we have

pθ(x0∣xt)=p(xt∣x0)pθ(x0)pθ(xt),pθ(x0′∣y)=p(y∣x0)pθ(x0)pθ(y),(39)p_\theta(x_0 \mid x_t)=\frac{p(x_t \mid x_0)p_\theta(x_0)}{p_\theta(x_t)}, \qquad p_\theta(x'_0 \mid y)=\frac{p(y \mid x_0)p_\theta(x_0)}{p_\theta(y)}, \tag*{(39)}

by Bayes’ rule and substituting this into (38), we get

(38)=p(xt∣x0)pθ(x0)pθ(xt)p(xt∣x0′)pθ(x0′)pθ(xt)×q(xt∣x0′,y)q(xt∣x0,y)×p(y∣x0′)pθ(x0′)pθ(y)p(y∣x0)pθ(x0)pθ(y)(40)(38)=\frac{p(x_t \mid x_0)p_\theta(x_0)\cancel{p_\theta(x_t)}}{p(x_t \mid x'_0)p_\theta(x'_0)\cancel{p_\theta(x_t)}}\times\frac{q(x_t \mid x'_0,y)}{q(x_t \mid x_0,y)}\times\frac{p(y \mid x'_0)p_\theta(x'_0)\cancel{p_\theta(y)}}{p(y \mid x_0)p_\theta(x_0)\cancel{p_\theta(y)}} \tag*{(40)}
=p(xt∣x0)q(xt∣x0′,y)p(y∣x0′)pθ(x0)pθ(x0′)p(xt∣x0′)q(xt∣x0,y)p(y∣x0)pθ(x0′)pθ(x0),(41)=\frac{p(x_t \mid x_0)q(x_t \mid x'_0,y)p(y \mid x'_0)\cancel{p_\theta(x_0)p_\theta(x'_0)}}{p(x_t \mid x'_0)q(x_t \mid x_0,y)p(y \mid x_0)\cancel{p_\theta(x'_0)p_\theta(x_0)}}, \tag*{(41)}

which agrees with the expression in (35), and therefore the equality (34) holds. By symmetry, (34) also holds in the case r≥1r\ge1.

By Lemma 2, since identity (34) holds pointwise in xtx_t, it also holds when we integrate this out, which gives us

Paccept(x0→x0′)pθ(x0∣y)=Paccept(x0′→x0)pθ(x0′∣y).(42)P_{\mathrm{accept}}(x_0 \to x'_0)p_\theta(x_0 \mid y) = P_{\mathrm{accept}}(x'_0 \to x_0)p_\theta(x'_0 \mid y). \tag*{(42)}

Trivially, we also have

Preject(x0→x0′)δ(x0−x0′)pθ(x0∣y)=Preject(x0′→x0)δ(x0′−x0)pθ(x0′∣y),(43)P_{\mathrm{reject}}(x_0 \to x'_0)\delta(x_0-x'_0)p_\theta(x_0 \mid y) = P_{\mathrm{reject}}(x'_0 \to x_0)\delta(x'_0-x_0)p_\theta(x'_0 \mid y), \tag*{(43)}

thus combining this, we have that the conditional waltz kernel KθK_\theta is reversible with respect to pθ(x0∣y)p_\theta(x_0 \mid y), i.e., (33) holds.

Remark 1. As a sanity check, the RWMH waltz acceptance probability (29) follows from the conditional noising waltz acceptance probability (35), by setting q(xt∣x0,y)=p(xt∣x0)q(x_t \mid x_0,y)=p(x_t \mid x_0).

Statistical linearisation and ensemble Kalman update rules

Here, we provide details on the statistical linearisation procedure to derive the ensemble Kalman conditional noising (EKCN) kernel. The essence of statistical linearisation is to seek a linear approximation to a nonlinear function A(x)≈Ax+b\mathcal{A}(x) \approx Ax+b that is a best fit in terms of least squares [Zheng et al., 2025a], i.e., given an ensemble {x(j)}j=1J\{x^{(j)}\}_{j=1}^{J}

(A,b)=arg min⁡A,b{1J∑j=1J∥A(x(j))−(Ax(j)+b)∥2}(44)(A,b)=\underset{A,b}{\operatorname{arg\,min}}\left\{\frac{1}{J}\sum_{j=1}^{J}\left\|\mathcal{A}(x^{(j)})-(Ax^{(j)}+b)\right\|^2\right\} \tag*{(44)}

This gives us

A:=(Cxy)⊤(Cxx)−1,b:=A(x)‾−Axˉ,(45)A := (C^{xy})^\top(C^{xx})^{-1}, \qquad b := \overline{\mathcal{A}(x)}-A\bar{x}, \tag*{(45)}

where

xˉ:=1J∑j=1Jx(j),A(x)‾:=1J∑j=1JA(x(j))(46)\bar{x}:=\frac{1}{J}\sum_{j=1}^{J}x^{(j)}, \qquad\overline{\mathcal{A}(x)}:=\frac{1}{J}\sum_{j=1}^{J}\mathcal{A}(x^{(j)}) \tag*{(46)}
Cxx:=1J∑i,j=1J(x(i)−xˉ)(x(j)−xˉ)⊤,Cxy:=1J∑i,j=1J(x(i)−xˉ)(A(x(j))−A(x)‾)⊤.(47)C^{xx}:=\frac{1}{J}\sum_{i,j=1}^{J}(x^{(i)}-\bar{x})(x^{(j)}-\bar{x})^\top, \qquad C^{xy}:=\frac{1}{J}\sum_{i,j=1}^{J}(x^{(i)}-\bar{x})(\mathcal{A}(x^{(j)})-\overline{\mathcal{A}(x)})^\top. \tag*{(47)}

A consequence of this is that we can approximate the Jacobian of A\mathcal{A} as DA(x)≈(Cxy)⊤(Cxx)−1D\mathcal{A}(x)\approx(C^{xy})^\top(C^{xx})^{-1}, which can be computed without explicitly taking derivatives. Thus, we can use this to solve optimisation problems in a derivative-free manner. For example, if we consider the objective

U(x)=12∥y−A(x)∥Γ2,(48)U(x)=\frac{1}{2}\|y-\mathcal{A}(x)\|_\Gamma^2, \tag*{(48)}

where ∥x∥A:=x⊤A−1x\|x\|_A:=x^\top A^{-1}x, its gradient can be approximated as

∇xU(x)=D⊤A(x)Γ−1(A(x)−y)≈(Cxx)−1CxyΓ−1(A(x)−y),(49)\nabla_xU(x)=D^\top\mathcal{A}(x)\Gamma^{-1}(\mathcal{A}(x)-y)\approx(C^{xx})^{-1}C^{xy}\Gamma^{-1}(\mathcal{A}(x)-y), \tag*{(49)}

and we can consider gradient descent with this approximation. We can also derive analogues of more sophisticated solvers such as Levenberg-Marquardt, as we show next.

Ensemble Kalman update rule and the Levenberg-Marquardt solver

We closely follow the presentation in [34 Chapter 13] for the derivations of the ensemble Kalman variant of the Levenberg-Marquardt (LM) solver. The derivation largely follow from the following simple lemma:

Lemma 3 (Sanz-Alonso et al. [ [34], Lemma 13.3). The following identity holds

12∥y−Ax∥Γ2+12∥x−m∥C2=12∥x−μ∥Σ2+β,(50)\frac{1}{2}\|y-Ax\|_\Gamma^2+\frac{1}{2}\|x-m\|_C^2=\frac{1}{2}\|x-\mu\|_\Sigma^2+\beta, \tag*{(50)}

where β\beta is a constant independent of xx, and

μ:=m+K(y−Am),(51)\mu:=m+K(y-Am), \tag*{(51)}
Σ:=(I−KA)C,(52)\Sigma:=(I-KA)C, \tag*{(52)}

where KK is the Kalman gain matrix, given by

K=CA⊤(ACA⊤+Γ)−1.(53)K=CA^\top(ACA^\top+\Gamma)^{-1}. \tag*{(53)}

Equations (51)–(52) define the Kalman update rule, which give us closed form expressions for the solution to the regularised least squares problem, given by the LHS of (50), and the associated curvature at that minima.

The Levenberg-Marquardt algorithm seeks to minimise the data misfit loss

J(x)=12∥y−A(x)∥Γ2,(54)\mathcal{J}(x)=\frac{1}{2}\lVert y-\mathcal{A}(x)\rVert_{\Gamma}^{2}, \tag*{(54)}

and for a learning rate h>0h>0, proceeds by iterating

xn+1=xn+gn(h),(55)x_{n+1}=x_n+g_n(h), \tag*{(55)}

where gn(h)g_n(h) is a minima of the least squares problem

gn(h)=arg min⁡v{12∥y−A(xn)−DA(xn)v∥Γ2+12h∥v∥C2},(56)g_n(h)=\underset{v}{\operatorname{arg\,min}}\left\{\frac{1}{2}\lVert y-\mathcal{A}(x_n)-D\mathcal{A}(x_n)v\rVert_{\Gamma}^{2}+\frac{1}{2h}\lVert v\rVert_{C}^{2}\right\}, \tag*{(56)}

for some PSD matrix CC. This may be interpreted as minimising 12∥y−A(xn)−DA(xn)v∥Γ2\frac{1}{2}\lVert y-\mathcal{A}(x_n)-D\mathcal{A}(x_n)v\rVert_{\Gamma}^{2}, while restricting the search space of vv to a ball {v:∥v∥C≤δ}\{v:\lVert v\rVert_C\le\delta\} for some δ\delta associated to hh, i.e., minimise within a trust region.

Invoking Lemma 3, we get

gn(h)=K(h)(y−A(xn)),(57)g_n(h)=K(h)(y-\mathcal{A}(x_n)), \tag*{(57)}

where the Kalman gain is given by

K(h):=hCDTA(xn)(hDA(xn)CDTA(xn)+Γ)−1.(58)K(h):=hCD^{\mathsf{T}}\mathcal{A}(x_n)\left(hD\mathcal{A}(x_n)CD^{\mathsf{T}}\mathcal{A}(x_n)+\Gamma\right)^{-1}. \tag*{(58)}

Now recall that by statistical linearisation, given a cloud of particles {x(j)}j=1J\{x^{(j)}\}_{j=1}^{J}, we have that

A(x)≈(Cxy)T(Cxx)−1(x−xˉ)+A(x)‾,(59)\mathcal{A}(x)\approx(C^{xy})^{\mathsf{T}}(C^{xx})^{-1}(x-\bar{x})+\overline{\mathcal{A}(x)}, \tag*{(59)}
DA(x)≈(Cxy)T(Cxx)−1.(60)D\mathcal{A}(x)\approx(C^{xy})^{\mathsf{T}}(C^{xx})^{-1}. \tag*{(60)}

Since CC in (56) is arbitrary, we set C=CxxC=C^{xx}. This implies

Cxy=(47)CDTA(x),(61)C^{xy}\overset{(47)}{=}CD^{\mathsf{T}}\mathcal{A}(x), \tag*{(61)}

and

Cyy:=1J∑i,j=1J(A(x(i))−A(x)‾)(A(x(j))−A(x)‾)T(62)C^{yy}:=\frac{1}{J}\sum_{i,j=1}^{J}\left(\mathcal{A}(x^{(i)})-\overline{\mathcal{A}(x)}\right)\left(\mathcal{A}(x^{(j)})-\overline{\mathcal{A}(x)}\right)^{\mathsf{T}} \tag*{(62)}
=(59)1J∑i,j=1J(Cxy)T(Cxx)−1(x(i)−xˉ)(x(j)−xˉ)T(Cxx)−1Cxy(63)\overset{(59)}{=}\frac{1}{J}\sum_{i,j=1}^{J}(C^{xy})^{\mathsf{T}}(C^{xx})^{-1}(x^{(i)}-\bar{x})(x^{(j)}-\bar{x})^{\mathsf{T}}(C^{xx})^{-1}C^{xy} \tag*{(63)}
=(47)(Cxy)T(Cxx)−1Cxx(Cxx)−1Cxy(64)\overset{(47)}{=}(C^{xy})^{\mathsf{T}}(C^{xx})^{-1}C_{xx}(C^{xx})^{-1}C^{xy} \tag*{(64)}
≈(60)DA(x)CDTA(x).(65)\overset{(60)}{\approx}D\mathcal{A}(x)CD^{\mathsf{T}}\mathcal{A}(x). \tag*{(65)}

Thus, we can approximate the Kalman gain (58) in a gradient-free manner using ensembles as

K(h)≈hCxy(hCyy+Γ)−1.(66)K(h)\approx hC^{xy}\left(hC^{yy}+\Gamma\right)^{-1}. \tag*{(66)}

In practice, one iterates (55) for an ensemble of particles {xn(j)}j=1J\{x_n^{(j)}\}_{j=1}^{J} in parallel and at each time step nn, the Kalman gain (66) is computed using the ensemble {xn(j)}j=1J\{x_n^{(j)}\}_{j=1}^{J}.

Details on the EKCN kernel

We use the ensemble Kalman variant of the LM update rule to define our ensemble Kalman conditional noising (EKCN) kernel q(xt∣x0,y)q(x_t\mid x_0,y). We split this into two steps:

  1. For fixed h>0h > 0, apply a single ensemble Kalman LM update to x0x_0:

x~0=x0+K(h)(y−A(x0)),(67)\widetilde{x}_0 = x_0 + K(h)\left(y - \mathcal{A}(x_0)\right), \tag*{(67)}

where K(h)K(h) is computed using (66).

  1. Add noise via the interpolant

xt=αtx~0+βtx1,x1∼p1.(68)x_t = \alpha_t\widetilde{x}_0 + \beta_t x_1,\quad x_1 \sim p_1. \tag*{(68)}

Combining this with the denoising step in diffusion waltz

  1. Denoise x0′∼pθ(x0∣xt)x'_0 \sim p_\theta(x_0 \mid x_t),

the full conditional noising waltz proposal kernel q(x0′∣x0)q(x'_0 \mid x_0) may be understood as first applying an ensemble Kalman update to minimise the data misfit (54) (step 1); however, since without prior regularisation, this is likely to push the particle off-manifold, this is corrected by applying SDEdit Meng et al. [ [27] (steps 2-3), which keeps it on-manifold (see Figure 2 for an illustration).

Figure 2. Illustration of the ensemble Kalman conditional noising diffusion waltz (DW-EKCN). This applies a single step of ensemble Kalman Levenberg-Marquardt (EK-LM) update to minimise data misfit, followed by applying SDEdit to project it back onto the data manifold. Earlier in the iterations, acceptance rate is high and convergence is fast as most proposed samples have lower data misfit.

In practice, we run JJ MCMC chains in parallel and the Kalman gain K(h)K(h) at each step is computed using the ensemble. However, when the observation dimension is high, the matrix inverse in (66) is expensive to compute. Following a standard trick used in ensemble Kalman filters Evensen [ [12], we use the pushthrough identity V(VTV+λI)−1=(VVT+λI)−1VV(V^\mathsf{T}V + \lambda I)^{-1} = (VV^\mathsf{T} + \lambda I)^{-1}V to reduce this complexity. Letting Γ=σy2I\Gamma= \sigma_y^2 I, Cxy=UTVC^{xy} = U^\mathsf{T}V and Cyy=VTVC^{yy} = V^\mathsf{T}V, where

Uj=1J(x0(j)−x‾0),Vj=1J(A(x0(j))−A(x0)‾),(69)U_j = \frac{1}{\sqrt{J}}\left(x_0^{(j)} - \overline{x}_0\right),\qquad V_j = \frac{1}{\sqrt{J}}\left(\mathcal{A}(x_0^{(j)}) - \overline{\mathcal{A}(x_0)}\right), \tag*{(69)}

we have

K(h)≈(66)hUTV(hVTV+σy2I)−1(70)K(h) \mathrel{\overset{(66)}{\approx}} hU^\mathsf{T}V\left(hV^\mathsf{T}V + \sigma_y^2 I\right)^{-1} \tag*{(70)}
=UTV(VTV+(σy2/h)I)−1(71)= U^\mathsf{T}V\left(V^\mathsf{T}V + (\sigma_y^2/h)I\right)^{-1} \tag*{(71)}
=UT(VVT+(σy2/h)I)−1V.(72)= U^\mathsf{T}\left(VV^\mathsf{T} + (\sigma_y^2/h)I\right)^{-1}V. \tag*{(72)}

Noting that the matrix inverse in (72) now has size J×JJ \times J, and since the ensemble size JJ is a hyperparameter that one can choose freely, the computation of (72) can be made tractable.

We now make an important remark that in the computation of the acceptance probability

α=min⁡{1,p(y∣x0′)q(xt∣x0′,y)p(xt∣x0)p(y∣x0)q(xt∣x0,y)p(xt∣x0′)},(73)\alpha= \min\left\{1,\frac{p(y \mid x'_0)q(x_t \mid x'_0,y)p(x_t \mid x_0)}{p(y \mid x_0)q(x_t \mid x_0,y)p(x_t \mid x'_0)}\right\}, \tag*{(73)}

we use the same Kalman gain K(h)K(h) in the computation of q(xt∣x0′,y)q(x_t \mid x'_0,y) and q(xt∣x0,y)q(x_t \mid x_0,y) to ensure that the same kernel qq is used in both the numerator and denominator. More precisely, given an ensemble {x0(j)}j=1J\{x_0^{(j)}\}_{j=1}^J, we first compute K(h)K(h) using this ensemble and compute

q(xt(j)∣x0(j),y)=N(xt(j)∣αt(x0(j)+K(h)(y−A(x0(j)))),βt2C),(74)q(x_t^{(j)} \mid x_0^{(j)},y) = \mathcal{N}\left(x_t^{(j)} \mid\alpha_t\left(x_0^{(j)} + K(h)\left(y-\mathcal{A}(x_0^{(j)})\right)\right),\beta_t^2 C\right), \tag*{(74)}
q(xt(j)∣x0′(j),y)=N(xt(j)∣αt(x0′(j)+K(h)(y−A(x0′(j)))),βt2C),(75)q(x_t^{(j)} \mid x_0'^{(j)},y) = \mathcal{N}\left(x_t^{(j)} \mid\alpha_t\left(x_0'^{(j)} + K(h)\left(y-\mathcal{A}(x_0'^{(j)})\right)\right),\beta_t^2 C\right), \tag*{(75)}

for the same K(h)K(h), i.e., we do not recompute it in (75) using the updated samples {x0′(i)}j=1J\{x_0^{\prime(i)}\}_{j=1}^{J}.

Remark 2. The interacting particle-style update in equations (74)–(75) subtly breaks exactness of the method due to the dependence of the proposal on the law of the particles. Methods exist to overcome this, e.g., splitting particles into groups and updating one group using information from the other Goodman and Weare [ [13]; however, in practice, we found that simply using all the ensemble members yield faster convergence and better empirical performance.

Adaptive MCMC tuning

We consider Robbins-Monro method to adaptively tune the hyperparameters t∈(0,1)t \in(0,1) (the noising time used in waltz) and h∈(0,1)h \in(0,1) (the ensemble Kalman step size) [3]. This reads

logit⁡(tn+1)=clip⁡(logit⁡(tn)+ηt(αn−α∗)),(76)\operatorname{logit}(t_{n+1}) = \operatorname{clip}(\operatorname{logit}(t_n) + \eta_t(\alpha_n - \alpha^{*})), \tag*{(76)}
logit⁡(hn+1)=clip⁡(logit⁡(hn)+ηh(αn−α∗)),(77)\operatorname{logit}(h_{n+1}) = \operatorname{clip}(\operatorname{logit}(h_n) + \eta_h(\alpha_n - \alpha^{*})), \tag*{(77)}

where α∗\alpha^{*} is a target acceptance rate, αn\alpha_n is the instantaneous acceptance rate (i.e., how many samples out of JJ were accepted at step nn), and ηt,ηh>0\eta_t,\eta_h > 0 are step-sizes, all specified by the users. Clipping is applied e.g. to prevent tt from going down to 0, which is important as we discuss later. In our experiments, we use the adaptive tuning hyperparameters as shown in Table 2.

α∗\alpha^{*}ηt\eta_tηh\eta_htmin⁡t_{\min}tmax⁡t_{\max}hmin⁡h_{\min}hmax⁡h_{\max}solver
0.30.30.30.30.70.011.0LM

Table 2. Choice of adaptive MCMC hyperparameters

In general, we find that adaptively tuning the hyperparameters starting from high t,ht,h improves the performance. Intuitively, this is because the ensemble Kalman LM update (67) makes larger jumps early in the iteration, requiring a larger noising time tt to project the proposal x~0\tilde{x}_0 back onto the data manifold. However, as the chains converge, the ensemble Kalman updates become smaller with proposals x~0\tilde{x}_0 being more on-manifold, requiring smaller tt. Robbins-Monro automatically drives tt down to smaller values as MCMC progresses, as acceptance rate decreases when the chains have converged to high likelihood regions and smaller “edits” become necessary for higher acceptance. However, decreasing tt creates another problem, where the acceptance rate tends to become vanishingly small. To see this, we split the log acceptance probability into a likelihood log-ratio and the remaining term that emerges due to the conditional noising

log⁡α=log⁡(p(y∣x0′)q(xt∣x0′,y)p(xt∣x0)p(y∣x0)q(xt∣x0,y)p(xt∣x0′))(78)\log\alpha= \log\left(\frac{p(y \mid x_0^{\prime})q(x_t \mid x_0^{\prime},y)p(x_t \mid x_0)}{p(y \mid x_0)q(x_t \mid x_0,y)p(x_t \mid x_0^{\prime})}\right) \tag*{(78)}
=log⁡(p(y∣x0′)p(y∣x0))+log⁡(q(xt∣x0′,y)p(xt∣x0)q(xt∣x0,y)p(xt∣x0′)).(79)= \log\left(\frac{p(y \mid x_0^{\prime})}{p(y \mid x_0)}\right) + \log\left(\frac{q(x_t \mid x_0^{\prime},y)p(x_t \mid x_0)}{q(x_t \mid x_0,y)p(x_t \mid x_0^{\prime})}\right). \tag*{(79)}

The remaining term can be expanded as

log⁡(q(xt∣x0′,y)p(xt∣x0)q(xt∣x0,y)p(xt∣x0′))(80)\log\left(\frac{q(x_t \mid x_0^{\prime},y)p(x_t \mid x_0)}{q(x_t \mid x_0,y)p(x_t \mid x_0^{\prime})}\right) \tag*{(80)}
=−12βt2∥xt−αt(x0′+K(h)(y−A(x0′)))∥C2−12βt2∥xt−αtx0∥C2+12βt2∥xt−αt(x0+K(h)(y−A(x0)))∥C2+12βt2∥xt−αtx0′∥C2=−αt22βt2∥K(h)(y−A(x0′))∥C2+αt22βt2∥K(h)(y−A(x0))∥C2(81)\begin{aligned} = -\frac{1}{2\beta_t^2}\lVert x_t-\alpha_t(x_0^{\prime}+K(h)(y-A(x_0^{\prime})))\rVert_C^2-\frac{1}{2\beta_t^2}\lVert x_t-\alpha_t x_0\rVert_C^2 \\ &+\frac{1}{2\beta_t^2}\lVert x_t-\alpha_t(x_0+K(h)(y-A(x_0)))\rVert_C^2+\frac{1}{2\beta_t^2}\lVert x_t-\alpha_t x_0^{\prime}\rVert_C^2 \\ &= -\frac{\alpha_t^2}{2\beta_t^2}\lVert K(h)(y-A(x_0^{\prime}))\rVert_C^2+\frac{\alpha_t^2}{2\beta_t^2}\lVert K(h)(y-A(x_0))\rVert_C^2 \tag*{(81)} \end{aligned}
+αtβt2⟨xt−αtx0′,K(h)(y−A(x0′))⟩C−αtβt2⟨xt−αtx0,K(h)(y−A(x0))⟩C.(82)+\frac{\alpha_t}{\beta_t^2}\langle x_t-\alpha_t x_0^{\prime},K(h)(y-A(x_0^{\prime}))\rangle_C-\frac{\alpha_t}{\beta_t^2}\langle x_t-\alpha_t x_0,K(h)(y-A(x_0))\rangle_C. \tag*{(82)}

Using the fact that xt=αt(x0+K(h)(y−A(x0)))+βtx1x_t = \alpha_t\left(x_0 + K(h)\left(y - A(x_0)\right)\right) + \beta_t x_1, for some x1∼N(0,C)x_1 \sim\mathcal{N}(0,C), we get (key terms that change are highlighted)

(82)=−αt22βt2∥K(h)(y−A(x0))∥C2+αt22βt2∥K(h)(y−A(x0))∥C2+αtβt2⟨xt−αtx0′,K(h)(y−A(x0′))⟩C−αtβt2⟨αtK(h)(y−A(x0))+βtx1,K(h)(y−A(x0))⟩C=−αt22βt2∥K(h)(y−A(x0′))∥C2−αt22βt2∥K(h)(y−A(x0))∥C2−αtβt2⟨xt−αtx0′,K(h)(y−A(x0′))⟩C+αtβt⟨x1,K(h)(y−A(x0))⟩C.(83)\begin{aligned} (82) ={}& -\frac{\alpha_t^2}{2\beta_t^2}\left\|K(h)\left(y-A(x_0)\right)\right\|_C^2+\frac{\alpha_t^2}{2\beta_t^2}\left\|K(h)\left(y-A(x_0)\right)\right\|_C^2 \\ &+\frac{\alpha_t}{\beta_t^2}\left\langle x_t-\alpha_t x_0',K(h)\left(y-A(x_0')\right)\right\rangle_C \\ &-\frac{\alpha_t}{\beta_t^2}\left\langle\alpha_tK(h)\left(y-A(x_0)\right)+\beta_t x_1,K(h)\left(y-A(x_0)\right)\right\rangle_C \\ ={}&-\frac{\alpha_t^2}{2\beta_t^2}\left\|K(h)\left(y-A(x_0')\right)\right\|_C^2-\frac{\alpha_t^2}{2\beta_t^2}\left\|K(h)\left(y-A(x_0)\right)\right\|_C^2 \\ &-\frac{\alpha_t}{\beta_t^2}\left\langle x_t-\alpha_t x_0',K(h)\left(y-A(x_0')\right)\right\rangle_C+\frac{\alpha_t}{\beta_t}\left\langle x_1,K(h)\left(y-A(x_0)\right)\right\rangle_C. \tag*{(83)} \end{aligned}

Note that as t→0t \to0, we have that αt/βt→∞\alpha_t/\beta_t \to\infty by our assumptions on αt,βt\alpha_t,\beta_t, which drives the first two terms to −∞-\infty (the last two terms are indefinite; in fact, the last term is zero in expectation, conditioned on x0x_0). For small tt, this term therefore dominates and drives the acceptance probability close to zero, regardless of how diffuse the likelihood is.

To prevent this collapse, we (i) set a lower bound on tt so that it doesn’t reach to 0, and (ii) tune the LM learning rate hh jointly with tt; since K(h)→0K(h) \to0 as h→0h \to0, it helps to counterbalance the growth of αt/βt\alpha_t/\beta_t as t→0t \to0. We note that when h=0h = 0, we simply get back RWMH waltz. Thus, as EKCN waltz progresses and the chains converge, it starts to behave more like RWMH waltz.

Experimental details

Problem statement

We consider the Navier-Stokes (NS) equation on a 2D torus (vorticity form)

∂tω(x,t)+u(x,t)⋅∇ω(x,t)=νΔω(x,t)+f(x),x∈(0,2π)2,t∈(0,T]∇⋅u(x,t)=0,x∈(0,2π)2,t∈[0,T]ω(x,0)=ω0(x),x∈(0,2π)2.(84)\begin{aligned} \partial_t\omega(x,t)+u(x,t)\cdot\nabla\omega(x,t)&=\nu\Delta\omega(x,t)+f(x),\quad x\in(0,2\pi)^2,t\in(0,T] \\ \nabla\cdot u(x,t)&=0,\quad x\in(0,2\pi)^2,t\in[0,T] \\ \omega(x,0)&=\omega_0(x),\quad x\in(0,2\pi)^2. \tag*{(84)} \end{aligned}

Here, u(x,t):=(u(x,t),v(x,t))u(x,t):=(u(x,t),v(x,t)) is the velocity field, ω(x,t):=∂v∂x(x,t)−∂u∂y(x,t)\omega(x,t):=\frac{\partial v}{\partial x}(x,t)-\frac{\partial u}{\partial y}(x,t) is the vorticity field, ν\nu is the Reynolds’ number and f(x)f(x) is an external forcing forcing.

The observations for our inverse problem are obtained as follows: First, we solve the NS system for TT time units using an in-house pseudo-spectral NS solver with finite-difference time-stepping to obtain FT:ω0↦ωT\mathcal{F}_T:\omega_0\mapsto\omega_T. Then, we take a spatially strided downsampling Pk\mathcal{P}_k (×k\times k downsampling), with additive isotropic Gaussian noise scaled relative to the dataset standard deviation σ0\sigma_0. Thus the observation model reads

y=Pk∘FT(ω0)+σyε,ε∼N(0,I).(85)y=\mathcal{P}_k\circ\mathcal{F}_T(\omega_0)+\sigma_y\varepsilon,\qquad\varepsilon\sim\mathcal{N}(0,I). \tag*{(85)}

In our experiments, we fix k=4k=4 and consider various choices of TT and σy\sigma_y controlling the degree of nonlinearity and intensity of noise (see Table 3)

LowHigh
NonlinearityT=1T=1T=5T=5
Noiseσy/σ0=0.1\sigma_y/\sigma_0=0.1σy/σ0=1.0\sigma_y/\sigma_0=1.0

Table 3. Experimental regimes

Data

Our data comes from Navier-Stokes vorticity trajectories (200 trajectories of 501 timesteps at 64×6464\times64 resolution with Kolmogorov forcing f(x,y)=−4cos⁡(4y)f(x,y)=-4\cos(4y) and Reynolds’ number ν=40\nu=40) as used in [24]. To avoid highly correlated samples, we thin the trajectories by subsampling every 5 timesteps, giving us ∼20,000\sim20{,}000 snapshots, split by trajectory into 180 train / 20 validation trajectories.

Model architecture

For our generative prior, we use functional flow matching Kerrigan et al. [ [19], where we parameterise the flow matching marginal velocity bθ(t,ωt)b_\theta(t,\omega_t) by a Fourier Neural Operator (FNO) Li et al. [ [23]. The input field ωt\omega_t is concatenated with an explicit 2D positional grid xx and a constant channel broadcasting the flow-matching time tt, then lifted to a hidden width of 64 channels via a pointwise MLP. This is followed by 4 Fourier layers, each retaining the lowest 32 Fourier modes per spatial axis, with GELU activations. The final hidden representation is projected back to the physical output channel via a second pointwise MLP.

We use a linear interpolant αt=1−t\alpha_t = 1-t, βt=t\beta_t = t and a Matérn Gaussian process (GP) reference measure p1p_1. In practice, we sample from the GP using the Karhunen–Loève expansion

ω1(x)=∑k∈Z2λk ξkek(x),ξk∼N(0,1) i.i.d.,(86)\omega_1(x) = \sum_{k\in\mathbb{Z}^2} \sqrt{\lambda_k}\,\xi_k e_k(x), \qquad\xi_k \sim\mathcal{N}(0,1)\ \text{i.i.d.}, \tag*{(86)}

where eke_k are the 2D Fourier modes on the two-torus (i.e., sin⁡(2πkx)\sin(2\pi kx), cos⁡(2πkx)\cos(2\pi kx)) and λk\lambda_k is the spectral density of the kernel:

λk=σ22π(2ν)ν+1ℓ2ν(2νℓ2+∣k∣2)−(ν+1),k∈Z2.(87)\lambda_k = \sigma^2 \frac{2\pi(2\nu)^{\nu+1}}{\ell^{2\nu}}\left(\frac{2\nu}{\ell^2} + |k|^2\right)^{-(\nu+1)}, \qquad k \in\mathbb{Z}^2. \tag*{(87)}

We use the denoising SDE (19), which in the linear interpolant setting, reads

dωt(x)=(ωt(x)1−t+2bθ(t,ωt(x)))dt+2t1−t dWtC,(88)\mathrm{d}\omega_t(x) = \left(\frac{\omega_t(x)}{1-t} + 2b_\theta(t,\omega_t(x))\right)\mathrm{d}t + \sqrt{\frac{2t}{1-t}}\,\mathrm{d}W_t^C, \tag*{(88)}

solved backwards in time, where CC is the Matérn covariance operator and {WtC}t∈[0,1]\{W_t^C\}_{t\in[0,1]} is the CC-Brownian motion. By Proposition 1, this samples from pθ(ω0∣ωt)p_\theta(\omega_0 \mid\omega_t). In practice, we discretise the field ωt\omega_t on a grid of size N×NN \times N, whose discretisation we denote by ωt\omega_t. We solve (88) using Euler-Maruyama:

ωn+1=ωn−(ωn1−tn+2bθ(t,ωn))Δt+2tnΔt1−tn ξnC,(89)\omega_{n+1} = \omega_n - \left(\frac{\omega_n}{1-t_n} + 2b_\theta(t,\omega_n)\right)\Delta t + \sqrt{\frac{2t_n\Delta t}{1-t_n}}\,\xi_n^C, \tag*{(89)}

where ξnC\xi_n^C are i.i.d. draws from the GP using (86). The setting we use in our experiments is shown in Table 4.

Grid size NNSmoothness ν\nuLengthscale ℓ\ellVariance σ2\sigma^2
640.50.11.0

Table 4. Choice of Matérn GP reference hyperparameters

Metrics

To evaluate the performance of the posterior sampling methods, we draw JJ samples {x0,j}j=1J\{x_{0,j}\}_{j=1}^{J} from the approximate posterior p(x0∣y)p(x_0 \mid y) produced by each method and compare them against the ground truth x0†x_0^\dagger. We report the following metrics, each of which captures a different aspect of sample quality: accuracy of the point estimate, distributional fit, and calibration of the uncertainty.

Relative ℓ2\ell_2 (Rel-ℓ2\ell_2). The Rel-ℓ2\ell_2 error measures how close the ensemble mean xˉ0\bar{x}_0 is to the ground truth, normalized by the norm of the ground truth itself. It is a standard measure of reconstruction accuracy and is agnostic to the spread of the posterior samples.

RelL2=∥xˉ0−x0†∥L2∥x0†∥L2,wherexˉ0=1J∑j=1Jx0,j(90)\mathrm{RelL2} = \frac{\lVert\bar{x}_0 - x_0^\dagger\rVert_{L^2}}{\lVert x_0^\dagger\rVert_{L^2}}, \qquad\text{where}\quad\bar{x}_0 = \frac{1}{J}\sum_{j=1}^{J}x_{0,j} \tag*{(90)}

Lower values indicate that the posterior mean is closer to the true signal.

Continuous ranked probability score (CRPS). Unlike Rel-ℓ2\ell_2, CRPS is a proper scoring rule that evaluates the full ensemble rather than just its mean. It rewards both accuracy (samples close to x0†x_0^\dagger) and sharpness (low spread among samples), while penalizing ensembles that are either biased or overly diffuse.

CRPS⁡=1J∑j=1J∥x0(j)−x0†∥L1−12J(J−1)∑i,j=1J∥x0(i)−x0(j)∥L1.(91)\operatorname{CRPS} = \frac{1}{J}\sum_{j=1}^{J}\left\lVert x_0^{(j)}-x_0^\dagger\right\rVert_{L^1} - \frac{1}{2J(J-1)}\sum_{i,j=1}^{J}\left\lVert x_0^{(i)}-x_0^{(j)}\right\rVert_{L^1}. \tag*{(91)}

Lower CRPS values indicate a better-calibrated and more accurate ensemble.

Spread skill ratio (SSR). The SSR assesses whether the spread of the posterior ensemble is consistent with its actual error, i.e., whether the uncertainty estimates are well calibrated. The numerator captures the average ensemble variance (spread), while the denominator captures the squared error of the ensemble mean (skill).

SSR⁡=(J+1J)1J∑j=1J∥x0(j)−xˉ0∥L221J∑j=1J∥x0(j)−x0†∥L22.(92)\operatorname{SSR} = \sqrt{\left(\frac{J+1}{J}\right)\frac{\frac{1}{J}\sum_{j=1}^{J}\left\lVert x_0^{(j)}-\bar{x}_0\right\rVert_{L^2}^{2}}{\frac{1}{J}\sum_{j=1}^{J}\left\lVert x_0^{(j)}-x_0^\dagger\right\rVert_{L^2}^{2}}}. \tag*{(92)}

An SSR close to 1 indicates that the ensemble spread matches the actual estimation error (i.e., the posterior is well calibrated). Values of SSR <1<1 indicate an overconfident (underdispersed) posterior, while SSR >1>1 indicates an overdispersed posterior.

Diffusion waltz details

We tune both the RWMH and EKCN waltz using Robbins–Monro stochastic approximation (Appendix § 10), with the step-size parameters tt and hh initialized to 0.7 and 1.0, respectively. The ensemble is initialized from diffusion prior samples, and we use J=100J=100 ensemble members throughout. For the EKCN waltz, we use all 100 members for the computation of the Kalman gain (Appendix § 9.§ 1).

We run 100 MCMC chains in parallel for 250 steps with a burn-in of 249 steps; that is, we compute all metrics using only the final ensemble members. The underlying denoising SDE (88) is discretised using the Euler–Maruyama scheme, and we do not apply MADM correction [22] for exact sampling.

Baseline details

We briefly explain each baselines we use below. The hyperparameters are tuned to minimise the CRPS across five validation samples. As with diffusion waltz, all baselines use J=100J=100 ensembles. Metrics are computed using the final converged ensemble members.

Ensemble Kalman Inversion (EKI) [16] (Schillings and Stuart 2017). This uses a derivative-free optimisation method using ensembles, as shown in C.1 to minimise the data-fit loss 12∥y−A(x)∥F2\frac{1}{2}\lVert y-A(x)\rVert_{F}^{2}. EKI does not take into account the prior information of xx, thus the optimised x∗x^* may lie outside of the data manifold. In addition, being essentially an optimisation method, the particles are prone to collapsing to the same states at convergence. We use a maximum of 50 iterations with early stopping applied if the loss improvement is less than 1e−31\mathrm{e}{-3}. The solver we use is Levenberg–Marquardt with h=1h=1. We consider stochastic perturbations of the observations, as is standard in EnKF/EKI [Schillings and Stuart, 2017].

Ensemble Kalman guidance (EnKG) [Zheng et al., 2025a]. This frames guidance as predictor-corrector sampling in diffusion models with information about yy injected during the corrector step using ensemble Kalman update rules (Appendix § 9.§ 1). Since the Kalman updates are used only to guide the denoising trajectory of a diffusion model, in contrast to EKI, the obtained samples will be on-manifold. However, it shares the same issue of particles collapsing to the same point at convergence. We use 60 denoising steps with guidance strength set to ζ=0.1\zeta=0.1.

Feynman-Kac (FK) Steering [Singhal et al., 2025]. This uses sequential Monte Carlo (SMC) to condition on observations. We use the gradient-free variant, which runs a bootstrap particle filter over the reverse diffusion process, where particles are resampled according to how much their Tweedie-estimate’s fit to the observation has improved. This method is asymptotically exact, yielding the posterior p(x0∣y)p(x_0 \mid y) exactly as the number of particles JJ are increased. We use 50 denoising steps, DIFFERENCE potential and tempering parameter ζ=0.03\zeta= 0.03.

ESS-Flow [17]. This considers the flow matching ODE as a deterministic transport map from the Gaussian reference p1p_1 to the data distribution p0p_0 and applies elliptic slice sampling (ESS) Murray et al. [ [28] using the Gaussian reference prior, with likelihood p(y∣Tθ(x1))p(y \mid T_\theta(x_1)), where TθT_\theta is the flow matching ODE flow from t=1→0t = 1 \to0. This is also an exact method, up to ODE discretisation error. By default, this uses delayed acceptance, where step sizes are shrunk until a particle is accepted; this leads to many forward model evaluations, making it expensive. We use 25 denoising ODE steps and 200 MCMC steps; no multifidelity ODE sampling is considered.

Blade [Zheng et al., 2025c]. This is based on the split Gibbs approach PnP-DM Wu et al. [2024], which introduces auxiliary variables zz, which are noised versions of the clean data x0x_0 and performs Gibbs sampling to iteratively sample p(z∣y)∝p(y∣z)p(z∣x0)p(z \mid y) \propto p(y \mid z)p(z \mid x_0) (likelihood step) and p(x0∣z)p(x_0 \mid z) (prior step). The prior step is solved using an exact denoiser Bellchambers [ [4] and the likelihood step is performed using unadjusted Langevin algorithm (ULA). In Blade, the gradients in this Langevin step is approximated by statistical linearisation, similar to EKI or EnKG. We use 50 annealing steps, 50 Langevin steps and 25 denoising SDE steps.

MFM-GF [31, 15]. Meta flow maps (MFM) / diamond maps learn a one-step distilled model to sample from p(x0∣xt)p(x_0 \mid x_t). Using this, one can rapidly sample from the exact likelihood p(y∣xt)=Ex0∣xt[p(y∣x0)]p(y \mid x_t) = \mathbb{E}_{x_0 \mid x_t}[p(y \mid x_0)] using Monte-Carlo and compute the likelihood score ∇xtlog⁡Ex0∣xt[p(y∣x0)]\nabla_{x_t} \log\mathbb{E}_{x_0 \mid x_t}[p(y \mid x_0)] by taking the gradients through the Monte-Carlo estimation. In MFM-GF, this gradient can be computed without taking gradients through the likelihood p(y∣x0)p(y \mid x_0) using importance sampling. We use 100 denoising steps and for each ensemble member, use 10 MC samples to approximate the likelihood.

Comparison with gradient-based guidance methods

We also make comparisons to several common gradient-based guidance methods, namely, DPS [6], MMPS [33] and DAPS [Zhang et al., 2025].2 Since our forward operator A=Pk∘FT\mathcal{A} = \mathcal{P}_k \circ\mathcal{F}_T is non-differentiable, we cannot use these methods directly. Thus, we train FNO surrogates for the Navier-Stokes solver FT\mathcal{F}_T and use this as low-cost differentiable replacements for the finite difference solver. We display results in Table 5–Table 6 in gray.

Observation noiseLow noiseHigh noise
MethodsRel ℓ2\ell_2 ↓CRPS↓SSR→ 1Rel ℓ2\ell_2 ↓CRPS↓SSR→ 1
DPS0.075 (0.011)0.039 (0.008)1.393 (0.084)0.275 (0.078)0.127 (0.023)0.855 (0.162)
MMPS0.064 (0.009)0.032 (0.006)0.983 (0.095)0.254 (0.063)0.116 (0.020)0.927 (0.189)
DAPS0.401 (0.013)0.182 (0.037)<u>1.188 (0.105)</u>0.710 (0.062)<u>0.338 (0.028)</u><u>1.342 (0.068)</u>
EKI0.517 (0.077)0.370 (0.086)0.024 (0.006)0.832 (0.064)0.560 (0.042)0.126 (0.009)
EnKG0.129 (0.014)0.086 (0.009)0.076 (0.019)0.617 (0.120)0.414 (0.049)0.071 (0.009)
FK Steering0.786 (0.109)0.538 (0.150)0.012 (0.024)0.782 (0.109)0.500 (0.145)0.101 (0.024)
ESS-Flow0.178 (0.054)0.080 (0.033)1.405 (0.198)0.248 (0.030)0.118 (0.030)1.179 (0.154)
Blade<u>0.069 (0.012)</u><u>0.037 (0.007)</u>1.797 (0.139)<u>0.296 (0.071)</u>0.139 (0.033)0.982 (0.203)
MFM-GF0.406 (0.101)0.191 (0.084)1.395 (0.442)0.425 (0.089)0.202 (0.077)1.406 (0.416)
DW-RWMH0.451 (0.101)0.177 (0.068)1.703 (0.404)0.550 (0.053)0.229 (0.055)1.476 (0.216)
DW-EKCN0.086 (0.013)0.045 (0.010)1.396 (0.199)0.220 (0.049)0.101 (0.021)1.081 (0.293)

Table 5. Results in the low nonlinearity regime (T=1T = 1). Best results in bold, second best underlined. Gradient based methods are displayed in gray.

Observation noiseLow noiseHigh noise
MethodsRel ℓ2\ell_2 ↓CRPS ↓SSR→ 1Rel ℓ2\ell_2 ↓CRPS ↓SSR→ 1
DPS0.472 (0.084)0.201 (0.069)1.834 (0.285)0.506 (0.084)0.233 (0.079)1.244 (0.250)
MMPS0.560 (0.090)0.276 (0.077)1.572 (0.382)0.523 (0.070)0.241 (0.069)1.461 (0.292)
DAPS0.639 (0.071)0.327 (0.071)1.510 (0.281)0.697 (0.057)0.351 (0.075)1.358 (0.258)
EKI1.059 (0.069)0.754 (0.104)0.031 (0.006)0.865 (0.086)0.522 (0.069)0.267 (0.041)
EnKG<u>0.418 (0.153)</u>0.279 (0.140)0.098 (0.035)0.812 (0.157)<u>0.523 (0.070)</u>0.084 (0.006)
FK Steering1.383 (0.164)1.000 (0.068)0.016 (0.020)0.991 (0.053)0.511 (0.060)1.084 (0.127)
ESS-Flow0.506 (0.123)0.242 (0.104)0.987 (0.242)0.491 (0.105)0.233 (0.096)0.987 (0.230)
Blade0.421 (0.309)0.239 (0.180)2.312 (0.899)<u>0.442 (0.180)</u><u>0.231 (0.142)</u>1.326 (0.637)
MFM-GF0.549 (0.087)0.262 (0.084)1.245 (0.325)<u>0.547 (0.079)</u><u>0.261 (0.080)</u>1.253 (0.317)
DW-RWMH0.810 (0.045)0.398 (0.071)1.163 (0.156)0.815 (0.040)0.396 (0.066)1.155 (0.145)
DW-EKCN0.247 (0.239)0.152 (0.190)<u>1.054 (0.473)</u>0.435 (0.119)0.207 (0.098)0.945 (0.279)

Table 6. Results in the high nonlinearity regime (T=5T = 5). Best results in bold, second best underlined. Gradient based methods are displayed in gray.

We see that DPS and MMPS achieve competitive performance and perform the best in the low nonlinearity / low noise setting. However, in the other settings (especially high nonlinearity) they are mostly outperformed by the MCMC based methods: DW-EKCN, ESS-flow and Blade (except on T=5T = 5). Note that both DPS and MMPS only yield biased approximations to the posterior, which become more significant as the forward operator becomes more nonlinear, explaining why it struggles in the high nonlinearity setting. DAPS does not perform well on this problem – it is known to struggle when the forward model is given by a PDE operator [Zheng et al., 2025b].

Figure 4. Comparison of diffusion waltz and baseline methods on the Navier-Stokes (NS) initial condition recovery problem in the low nonlinearity (T=1T = 1) / high noise (σy/σ0=1.0\sigma_y/\sigma_0 = 1.0) regime.

References

  1. [1]Bilal Ahmed and Joseph G Makin. Solving diffusion inverse problems with restart posterior sampling. arXiv preprint arXiv:2511.20705, 2025.arxiv.org/abs/2511.20705
  2. [2]Michael Albergo, Nicholas M Boffi, and Eric Vanden-Eijnden. Stochastic interpolants: A unifying framework for flows and diffusions. Journal of Machine Learning Research, 26(209):1–80, 2025.
  3. [3]Christophe Andrieu and Johannes Thoms. A tutorial on adaptive MCMC. Statistics and computing, 18(4):343–373, 2008.DOI
  4. [4]Gregory Bellchambers. Exploiting the exact denoising posterior score in training-free guidance of diffusion models. arXiv preprint arXiv:2506.13614, 2025.arxiv.org/abs/2506.13614
  5. [5]Gabriel Cardoso, Sylvain Le Corff, Eric Moulines, et al. Monte carlo guided denoising diffusion models for Bayesian linear inverse problems. In International Conference on Learning Representations, volume 2024, pages 44001–44037, 2024.arxiv.org/abs/2308.07983
  6. [6]Hyungjin Chung, Jeongsol Kim, Michael T Mccann, Marc L Klasky, and Jong Chul Ye. Diffusion posterior sampling for general noisy inverse problems. In International Conference on Learning Representations, 2023.arxiv.org/abs/2209.14687
  7. [7]Florentin Coeurdoux, Nicolas Dobigeon, and Pierre Chainais. Plug-and-play split Gibbs sampler: embedding deep generative priors in Bayesian inference. IEEE Transactions on Image Processing, 33:3496–3507, 2024.DOI
  8. [8]Simon L Cotter, Gareth O Roberts, Andrew M Stuart, and David White. MCMC methods for functions: modifying old algorithms to make them faster. Statistical Science, pages 424–446, 2013.DOI
  9. [9]Giannis Daras, Hyungjin Chung, Chieh-Hsin Lai, Yuki Mitsufuji, Jong Chul Ye, Peyman Milanfar, Alexandros G Dimakis, and Mauricio Delbracio. A survey on diffusion models for inverse problems. arXiv preprint arXiv:2410.00083, 2024.arxiv.org/abs/2410.00083
  10. [10]Prafulla Dhariwal and Alexander Nichol. Diffusion models beat GANs on image synthesis. Advances in neural information processing systems, 34:8780–8794, 2021.
  11. [11]Simon Duane, Anthony D Kennedy, Brian J Pendleton, and Duncan Roweth. Hybrid Monte Carlo. Physics letters B, 195(2):216–222, 1987.DOI
  12. [12]Geir Evensen. The ensemble Kalman filter: Theoretical formulation and practical implementation. Ocean dynamics, 53(4):343–367, 2003.DOI
  13. [13]Jonathan Goodman and Jonathan Weare. Ensemble samplers with affine invariance. Communications in applied mathematics and computational science, 5(1):65–80, 2010.DOI
  14. [14]Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598, 2022.arxiv.org/abs/2207.12598
  15. [15]Peter Holderrieth, Douglas Chen, Luca Eyring, Ishin Shah, Giri Anantharaman, Yutong He, Zeynep Akata, Tommi Jaakkola, Nicholas Matthew Boffi, and Max Simchowitz. Diamond maps: Efficient reward alignment via stochastic flow maps. arXiv preprint arXiv:2602.05993, 2026.arxiv.org/abs/2602.05993
  16. [16]Marco A Iglesias, Kody JH Law, and Andrew M Stuart. Ensemble Kalman methods for inverse problems. Inverse Problems, 29(4):045001, 2013.DOI
  17. [17]Adhithyan Kalaivanan, Zheng Zhao, Jens Sjölund, and Fredrik Lindsten. ESS-Flow: Training-free guidance of flow-based models as inference in source space. arXiv preprint arXiv:2510.05849, 2025.arxiv.org/abs/2510.05849
  18. [18]Hyunmo Kang, Noam Itzhak Levi, Corinna Elena Wegner, Daniel J Korchinski, and Matthieu Wyard. Sampling data with chains of forward-backward diffusion steps. arXiv preprint arXiv:2605.27006, 2026.arxiv.org/abs/2605.27006
  19. [19]Gavin Kerrigan, Giosue Migliorini, and Padhraic Smyth. Functional flow matching. arXiv preprint arXiv:2305.17209, 2023.arxiv.org/abs/2305.17209
  20. [20]Jeongsol Kim, Bryan Sangwoo Kim, and Jong Chul Ye. FlowDPS: Flow-driven posterior sampling for inverse problems. In 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pages 12328–12337. IEEE, 2025.arxiv.org/abs/2503.08136
  21. [21]Nikola B Kovachki and Andrew M Stuart. Ensemble Kalman inversion: a derivative-free technique for machine learning tasks. Inverse Problems, 35(9):095005, 2019.DOI
  22. [22]Kevin H Lam, Tyler Farghly, Christopher Williams, Jun Yang, Yee Whye Teh, and Arnaud Doucet. Metropolis-adjusted diffusion models. arXiv preprint arXiv:2605.09654, 2026.arxiv.org/abs/2605.09654
  23. [23]Zongyi Li, Nikola Kovachki, Kamyar Azizadehnesheli, Burigede Liu, Kaushik Bhattacharya, Andrew Stuart, and Anima Anandkumar. Fourier neural operator for parametric partial differential equations. In International Conference on Learning Representations, 2021.
  24. [24]Zongyi Li, Miguel Liu-Schiaffini, Nikola Kovachki, Kamyar Azizadehnesheli, Burigede Liu, Kaushik Bhattacharya, Andrew Stuart, and Anima Anandkumar. Learning chaotic dynamics in dissipative systems. Advances in Neural Information Processing Systems, 35:16768–16781, 2022.
  25. [25]Yaron Lipman, Ricky TQ Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. In International Conference on Learning Representations, 2023.arxiv.org/abs/2210.02747
  26. [26]Sam McCallum, Zander W Blasingame, Timothy Hersch ell, Niklas Rindtorff, Alexander Tong, and James Foster. Strong stochastic flow maps. arXiv preprint arXiv:2606.01086, 2026.arxiv.org/abs/2606.01086
  27. [27]Chenlin Meng, Yutong He, Yang Song, Jiaming Song, Jiajun Wu, Jun-Yan Zhu, and Stefano Ermon. SDEdit: Guided image synthesis and editing with stochastic differential equations. In International Conference on Learning Representations, 2022.arxiv.org/abs/2108.01073
  28. [28]Iain Murray, Ryan Adams, and David MacKay. Elliptical slice sampling. In Proceedings of the thirteenth international conference on artificial intelligence and statistics, pages 541–548. JMLR Workshop and Conference Proceedings, 2010.arxiv.org/abs/1001.0175
  29. [29]Zhengkai Pan, Peter Potaptchik, Wenxi Yao, Michael S Albergo, and Jakiw Pidstrigach. Itô maps for any-step SDEs. arXiv preprint arXiv:2606.11156, 2026.arxiv.org/abs/2606.11156
  30. [30]Prin Phunyaphibarn and Minhyuk Sung. Reward-guided discrete diffusion via clean-sample Markov chain for molecule and biological sequence design. arXiv preprint arXiv:2602.09424, 2026.arxiv.org/abs/2602.09424
  31. [31]Peter Potaptchik, Adhi Saravanan, Abbas Mammadov, Alvaro Prat, Michael S Albergo, and Yee Whye Teh. Meta flow maps enable scalable reward alignment. arXiv preprint arXiv:2601.14430, 2026.arxiv.org/abs/2601.14430
  32. [32]Gareth O Roberts and Richard L Tweedie. Exponential convergence of Langevin distributions and their discrete approximations. Bernoulli, 1996.DOI
  33. [33]François Rozet, Gérôme Andry, François Lanusse, and Gilles Louppe. Learning diffusion priors from observations by expectation maximization. Advances in Neural Information Processing Systems, 37:87647–87682, 2024.arxiv.org/abs/2405.13712
  34. [34]Daniel Sanz-Alonso, Andrew Stuart, and Armeen Taeb. Inverse problems and data assimilation, volume 107. Cambridge University Press, 2023.

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type