Manuscript Offprint
arXiv:2610.09407Noise, Denoise, Correct: MCMC Posterior Sampling with Diffusion Priors in Three Steps
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
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.
1 Introduction
Solving inverse problems is a central challenge across science and engineering, where the goal is to recover an unknown state from noisy, incomplete observations ; here, is a known forward operator and for some . Such observations typically do not carry enough information to recover exactly, rendering the problem ill-posed. The Bayesian formulation resolves this by placing a prior over the state and targeting the posterior [Stuart, 2010]:
A growing body of work seeks to use pretrained generative models as priors [Daras et al., 2024], 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 [Dhariwal and Nichol, 2021, Ho and Salimans, 2022] can sample from (1) approximately. However, they require additional training and cannot adapt to new forward models. Inference-time guidance methods [Chung et al., 2023, Song et al., 2023, Rozet et al., 2024, Kim et al., 2025, 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 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 , inspired by SDEdit [Meng et al., 2022], is constructed by (i) noising to an appropriate level , then (ii) denoising back to level 0 to yield a new sample . This is followed by (iii) a Metropolis-Hastings (MH) accept/reject step, where the acceptance probability crucially does not depend on the prior density . To accelerate convergence, we further propose a way to inject information about into the proposal without requiring differentiability of , such that the modified proposal still yields an exact MH correction that does not involve the prior density.
Preprint.
2.1 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 be two probability distributions, representing the data and reference distributions, respectively. We consider a stochastic interpolant for , where , , and are -smooth, monotonic functions satisfying and , e.g., and . A generative SDE/ODE can then be trained to sample from via score/flow matching [Song et al., 2021, Lipman et al., 2023, Albergo et al., 2025] (see Appendix A).
For a fixed and an initial sample , RWMH waltz cycles through three steps:
-
Add noise to via the interpolant , where .
-
Denoise by proposing .
-
Accept with probability and set to repeat the cycle.
The first two steps – perturbing via noising/denoising to produce a new sample that remains close to it on the data manifold – is common in image editing, as exemplified by SDEdit [Meng et al., 2022]. Here we repurpose this idea to define a proposal kernel 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 . This follows from the reversibility of the proposal kernel with respect to the generative prior, i.e., , which cancels the prior terms in the acceptance ratio (see Appendix B.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 A.2), or by directly targeting the denoising kernel using recent advances in stochastic flow maps [Potaptdchik et al., 2026, Holderrieth et al., 2026, McCallum et al., 2026, Pan et al., 2026]. The SDE discretization error in the former approach can, in principle, be corrected by combining predictor–corrector-style sampling with further MH corrections [Lam et al., 2026]; in practice, though, this is usually unnecessary to obtain satisfactory results.
2.2 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 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 [Roberts and Tweedie, 1996] and HMC [Duane et al., 1987]. We seek an analogous approach within the diffusion waltz framework.
To this end, we consider adding information about into the noising step of RWMH waltz. In its most general form, the noising step is replaced by for an arbitrary noising kernel that depends on . Remarkably, the resulting MH acceptance probability still does not require evaluating the prior density , making the method fully tractable provided can be evaluated (see line 3 in Algorithm 2 and Appendix B.2 for the derivation of this acceptance probability).
2.3 The ensemble Kalman conditional noising (EKCN) kernel
As an example of such a conditional noising kernel , consider
where nudges towards with learning rate . In the ensemble Kalman conditional noising (EKCN) kernel, we take to be an ensemble Kalman Levenberg-Marquardt update rule [Sanz-Alonso et al., 2023, Algorithm 13.15]
Algorithm 1 Diffusion waltz (random walk)
1: Add noise via interpolant 2: Denoise 3: Accept with probability (Set if accepted, else keep )
Algorithm 2 Diffusion waltz (conditional noising)
1: Propose for a chosen kernel 2: Denoise 3: Accept with probability (Set if accepted, else keep )
where the Kalman gain can be estimated from an ensemble of particles without requiring gradients of (see Appendix C.1). In practice, we run an ensemble of J MCMC chains in parallel to compute and re-use it to compute the MH acceptance probability (see Appendix C.2). Adaptive tuning of t, h via Robbins-Monro is also applied, allowing smaller steps as chains converge (see Appendix D). 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.
3 Related works
The RWMH waltz proposal (Algorithm 1) has been considered in concurrent work [Kang et al., 2026, Phunyaphibarn and Sung, 2026], 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 [Cotter et al., 2013]. In addition to conditional noising, another way to inject information about y 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 [Ahmed and Makin, 2025], which cycles through noising and conditional de-noising, although these require gradients of A. Other MCMC-based posterior samplers with pretrained diffusion priors include sequential Monte Carlo [Wu et al., 2023, Cardoso et al., 2024, Singhal et al., 2025], split-Gibbs [Coeurdoux et al., 2024, Wu et al., 2024, Zheng et al., 2025c], and elliptical slice sampling [Kalaivanan et al., 2025], several of which we compare against in the next section.
4 Experiments
We consider the Navier-Stokes initial condition recovery problem to validate the performance of diffusion waltz against various baselines. An initial vorticity field is evolved forward in time by a Navier-Stokes pseudo-spectral solver to obtain . This is then downsampled and corrupted by Gaussian noise to generate noisy observations . The goal of the experiment is to reconstruct the initial vorticity given , i.e., infer , where the diffusion prior is trained on long time trajectories of . We explore different regimes in terms of the level of nonlinearity (controlled by ) and noise intensity (controlled by ). Details in Appendix E.
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 [Kovachki and Stuart, 2019], EnKG [Zheng et al., 2025a], FK Steering [Singhal et al., 2025], ESS-Flow [Kalaivanan et al., 2025], Blade [Zheng et al., 2025c] and MFM-GF [Potaptchik et al., 2026]. Details of the baselines are provided in Appendix E.6.
We display results in Table 1, where we compare the relative score (Rel ), continuous ranked probability score (CRPS), and spread-skill ratio (SSR), providing a mix of reconstruction and probabilistic metrics (see Appendix E.4). Visualizations in the high nonlinearity / high noise regime are shown in Figure 1 (for other regimes, see Figures 3–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
Table 1: Mean Rel- , CRPS and SSR across five unseen test examples (for an expanded version with standard deviations and gradient-based baselines, see Tables 5–6). Best results in bold, second best underlined.
| Methods | Low nonlinearity (T = 1) | High nonlinearity (T = 5) | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Low noise | High noise | Low noise | High noise | |||||||||
| Rel | CRPS↓ | SSR→1 | Rel | CRPS↓ | SSR→1 | Rel | CRPS↓ | SSR→1 | Rel | CRPS↓ | SSR→1 | |
| EKI | 0.517 | 0.370 | 0.024 | 0.832 | 0.560 | 0.126 | 1.059 | 0.754 | 0.031 | 0.865 | 0.522 | 0.267 |
| EnKG | 0.129 | 0.086 | 0.076 | 0.617 | 0.414 | 0.071 | 0.418 | 0.279 | 0.098 | 0.812 | 0.523 | 0.084 |
| FK Steering | 0.787 | 0.538 | 0.012 | 0.782 | 0.500 | 0.101 | 1.383 | 1.000 | 0.016 | 0.992 | 0.511 | 1.084 |
| ESS-Flow | 0.178 | 0.080 | 1.405 | 0.248 | 0.118 | 1.179 | 0.506 | 0.242 | 0.987 | 0.491 | 0.233 | 0.987 |
| Blade | 0.069 | 0.037 | 1.797 | 0.296 | 0.139 | 0.982 | 0.421 | 0.239 | 2.312 | 0.442 | 0.231 | 1.326 |
| MFM-GF | 0.406 | 0.191 | 1.395 | 0.425 | 0.202 | 1.406 | 0.549 | 0.262 | 1.245 | 0.547 | 0.261 | 1.253 |
| DW-RWMH | 0.451 | 0.177 | 1.703 | 0.550 | 0.229 | 1.476 | 0.810 | 0.398 | 1.163 | 0.815 | 0.396 | 1.155 |
| DW-EKCN | 0.086 | 0.045 | 1.396 | 0.220 | 0.101 | 1.081 | 0.247 | 0.152 | 1.054 | 0.435 | 0.207 | 0.945 |

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.
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.
For comparisons against standard gradient-based guidance methods (e.g. DPS) using a differentiable neural surrogate for the NS system, see Appendix E.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 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 = 5). EKCN guides each ensemble member towards high-likelihood regions, leading to rapid convergence within the first 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 , and in the low-noise regime, less than 5%. Investigating methods to maintain high acceptance rates is a promising direction for future work.
5 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.
References
Bilal Ahmed and Joseph G Makin. Solving diffusion inverse problems with restart posterior sampling. arXiv preprint arXiv:2511.20705, 2025.
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.
Christophe Andrieu and Johannes Thoms. A tutorial on adaptive MCMC. Statistics and computing, 18(4):343–373, 2008.
Gregory Bellchambers. Exploiting the exact denoising posterior score in training-free guidance of diffusion models. arXiv preprint arXiv:2506.13614, 2025.
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.
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.
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.
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.
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.
Prafulla Dhariwal and Alexander Nichol. Diffusion models beat GANs on image synthesis. Advances in neural information processing systems, 34:8780–8794, 2021.
Simon Duane, Anthony D Kennedy, Brian J Pendleton, and Duncan Roweth. Hybrid Monte Carlo. Physics letters B, 195(2):216–222, 1987.
Geir Evensen. The ensemble Kalman filter: Theoretical formulation and practical implementation. Ocean dynamics, 53(4):343–367, 2003.
Jonathan Goodman and Jonathan Weare. Ensemble samplers with affine invariance. Communications in applied mathematics and computational science, 5(1):65–80, 2010.
Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598, 2022.
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.
Marco A Iglesias, Kody JH Law, and Andrew M Stuart. Ensemble Kalman methods for inverse problems. Inverse Problems, 29(4):045001, 2013.
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.
Hyunmo Kang, Noam Itzhak Levi, Corinna Elena Wegner, Daniel J Korchinski, and Matthieu Wyart. Sampling data with chains of forward-backward diffusion steps. arXiv preprint arXiv:2605.27006, 2026.
Gavin Kerrigan, Giosue Migliorini, and Padhraic Smyth. Functional flow matching. arXiv preprint arXiv:2305.17209, 2023.
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.
Nikola B Kovachki and Andrew M Stuart. Ensemble Kalman inversion: a derivative-free technique for machine learning tasks. Inverse Problems, 35(9):095005, 2019.
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.
Zongyi Li, Nikola Kovachki, Kamyar Azizzadenesheli, Burigede Liu, Kaushik Bhattacharya, Andrew Stuart, and Anima Anandkumar. Fourier neural operator for parametric partial differential equations. In International Conference on Learning Representations, 2021.
Zongyi Li, Miguel Liu-Schiaffini, Nikola Kovachki, Kamyar Azizzadenesheli, 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.
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.
Sam McCallum, Zander W Blasingame, Timothy Herschell, Niklas Rindtorff, Alexander Tong, and James Foster. Strong stochastic flow maps. arXiv preprint arXiv:2606.01086, 2026.
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.
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.
Zhengkai Pan, Peter Potaptchik, Wenxi Yao, Michael S Albergo, and Jakiw Pidstrigach. Itô maps for any-step SDEs. arXiv preprint arXiv:2606.11156, 2026.
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.
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.
Gareth O Roberts and Richard L Tweedie. Exponential convergence of Langevin distributions and their discrete approximations. Bernoulli, 1996.
François Rozet, Jé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.
Daniel Sanz-Alonso, Andrew Stuart, and Armeen Taeb. Inverse problems and data assimilation, volume 107. Cambridge University Press, 2023.
Claudia Schillings and Andrew M Stuart. Analysis of the ensemble Kalman filter for inverse problems. SIAM Journal on Numerical Analysis, 55(3):1264–1290, 2017.
Raghav Singhal, Zachary Horvitz, Ryan Teehan, Mengye Ren, Zhou Yu, Kathleen McKeown, and Rajesh Ranganath. A general framework for inference-time scaling and steering of diffusion models. arXiv preprint arXiv:2501.06848, 2025.
Jiaming Song, Arash Vahdat, Morteza Mardani, and Jan Kautz. Pseudoinverse-guided diffusion models for inverse problems. In International conference on learning representations, 2023.
Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, 2021.
Andrew M Stuart. Inverse problems: a Bayesian perspective. Acta numerica, 19:451–559, 2010.
Luhuan Wu, Brian Trippe, Christian Naesseth, David Blei, and John P Cunningham. Practical and asymptotically exact conditional sampling in diffusion models. Advances in Neural Information Processing Systems, 36:31372–31403, 2023.
Zihui Wu, Yu Sun, Yifan Chen, Bingliang Zhang, Yisong Yue, and Katherine L Bouman. Principled probabilistic imaging using diffusion models as plug-and-play priors. Advances in Neural Information Processing Systems, 37:118389–118427, 2024.
Jiachen Yao, Abbas Mammadov, Julius Berner, Gavin Kerrigan, Jong Chul Ye, Kamyar Aziz-zadenesheli, and Animashree Anandkumar. Guided diffusion sampling on function spaces with applications to PDEs. Advances in Neural Information Processing Systems, 38:127057–127094, 2026.
Bingliang Zhang, Wenda Chu, Julius Berner, Chenlin Meng, Anima Anandkumar, and Yang Song. Improving diffusion inverse problem solving with decoupled noise annealing. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 20895–20905. IEEE, 2025.
Hongkai Zheng, Wenda Chu, Austin Wang, Nikola Kovachki, Ricardo Baptista, and Yisong Yue. Ensemble Kalman diffusion guidance: A derivative-free method for inverse problems. Transactions on Machine Learning Research, 2025a.
Hongkai Zheng, Wenda Chu, Bingliang Zhang, Zihui Wu, Austin Wang, Berthy Feng, Caifeng Zou, Yu Sun, Nikola Kovachki, Zachary Ross, et al. InverseBench: Benchmarking plug-and-play diffusion priors for inverse problems in physical sciences. In International Conference on Learning Representations, volume 2025, pages 90912–90940, 2025b.
Hongkai Zheng, Austin Wang, Zihui Wu, Zhengyu Huang, Ricardo Baptista, and Yisong Yue. Blade: A derivative-free Bayesian inversion method using diffusion priors. arXiv preprint arXiv:2510.10968, 2025c.
A Stochastic interpolants
Given measures and , a stochastic interpolant is defined by the stochastic process
where , , and , for are arbitrary monotonic functions satisfying the endpoint conditions and . By a slight extension of [Albergo et al., 2025, Corollary 18], for any positive definite , we have that the SDE
solved backwards in time from shares the same marginal law as the forward interpolant (4). Here, is the marginal velocity (as used in flow matching) and
is the score function. While both and are intractable, these can be approximated by neural networks , , respectively, by minimizing the losses
A.1 Three-sides of the same coin
In the special case when the reference is given by a Gaussian , we can show that the drift , the score and the clean sample estimate are all related linearly. First, we can easily check the relation between and , noting that :
Re-arranging this expression gives us Tweedie's formula:
On the other hand, using the fact that implies and , a simple algebra yields the relation between the drift and the Tweedie estimate :
Finally, combining (11) and (12) gives us the relation between the drift and the score :
A.2 Choice of SDE to sample from
Given particular choices of , we can show that the SDE (5) not only samples the interpolant marginals but also the conditional , which is what we need in the denoising step of diffusion waltz. This follows from the following result.
Proposition 1. Let for some positive definite . Then, setting in (5) with satisfying
the terminal law of the reverse-time SDE ((5)) integrated backwards from time t to 0 from initial condition , is equivalent to the conditional law of the interpolant.
Proof. The proof is a slight adaptation of [Potaptdchik et al., 2026, Proposition C.1].
We consider a general covariance C here to adapt to the functional flow matching (FFM) architecture Kerrigan et al. [2023] used in our Navier-Stokes experiments. FFM uses a Matérn GP covariance instead of white noise.
Using this result, we can further simplify the expression for our denoising SDE (5). First, by the relation (13), the drift of (5) reads
or equivalently,
Thus, the denoising SDE (5) simplifies to
or equivalently, using the score instead, we have
where is the C-Brownian motion.
B Acceptance probability computations
Given a proposal kernel , the Metropolis-Hastings accept/reject probability to sample from the posterior is given by
In this appendix, we derive the Metropolis/Hastings acceptance probabilities for diffusion waltz as it appears in Algorithms 1 and 2.
B.1 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 is reversible with respect to the diffusion prior , i.e.,
Proof. The RWMH diffusion waltz proposal kernel (steps 1&2 of Algorithm 1) can be expressed as
Thus, we have
which establishes the reversibility of the diffusion waltz proposal kernel with respect to .
From this, we can simplify the ratio in (21) as
proving our claim, where the first equality follows from Bayes' rule and the second follows from the reversibility property (22).
B.2 Conditional noising waltz
The conditional waltz kernel is given in full by:
where
We show that this kernel is reversible with respect to the posterior , that is,
To show this, we use the following lemma
Lemma 2. The following identity holds for any :
(34)
Proof. For simplicity, let
When , the left hand side and right hand side of (34) reads, respectively,
Thus, for equality (34) to hold, we need
Now, we have
by Bayes' rule and substituting this into (38), we get
(38)
(40)
(41)
which agrees with the expression in (35), and therefore the equality (34) holds. By symmetry, (34) also holds in the case .
By Lemma 2, since identity (34) holds pointwise in , it also holds when we integrate this out, which gives us
Trivially, we also have
thus combining this, we have that the conditional waltz kernel is reversible with respect to , 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 .
C 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 that is a best fit in terms of least squares [Zheng et al., 2025a], i.e., given an ensemble
This gives us
where
A consequence of this is that we can approximate the Jacobian of as , 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
where , its gradient can be approximated as
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.
C.1 Ensemble Kalman update rule and the Levenberg-Marquardt solver
We closely follow the presentation in [Sanz-Alonso et al., 2023, Chapter 13] for the derivations of the ensemble Kalman variant of the Levenberg-Marquardt (LM) solver. The derivation largely follows from the following simple lemma:
Lemma 3 (Sanz-Alonso et al. [2023], Lemma 13.3). The following identity holds
where is a constant independent of x, and
where K is the Kalman gain matrix, given by
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
and for a learning rate , proceeds by iterating
where is a minima of the least squares problem
for some PSD matrix . This may be interpreted as minimising , while restricting the search space of to a ball for some associated to , i.e., minimise within a trust region.
Invoking Lemma 3, we get
where the Kalman gain is given by
Now recall that by statistical linearisation, given a cloud of particles , we have that
Since C in (56) is arbitrary, we set . This implies
and
Thus, we can approximate the Kalman gain (58) in a gradient-free manner using ensembles as
In practice, one iterates (55) for an ensemble of particles in parallel and at each time step , the Kalman gain (66) is computed using the ensemble .
C.2 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 . We split this into two steps:
Ensemble Kalman conditional noising

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.
- For fixed , apply a single ensemble Kalman LM update to :
where is computed using (66).
- Add noise via the interpolant
Combining this with the denoising step in diffusion waltz
- Denoise ,
the full conditional noising waltz proposal kernel 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. [2022] (steps 2-3), which keeps it on-manifold (see Figure 2 for an illustration).
In practice, we run J MCMC chains in parallel and the Kalman gain 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 [2003], we use the pushthrough identity identity to reduce this complexity. Letting , and , where
we have
Noting that the matrix inverse in (72) now has size , and since the ensemble size 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
we use the same Kalman gain in the computation of and to ensure that the same kernel is used in both the numerator and denominator. More precisely, given an ensemble , we first compute using this ensemble and compute
(75) for the same , i.e., we do not recompute it in (75) using the updated samples .
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 [2010]; however, in practice, we found that simply using all the ensemble members yield faster convergence and better empirical performance.
D Adaptive MCMC tuning
We consider Robbins-Monro method to adaptively tune the hyperparameters (the noising time used in waltz) and (the ensemble Kalman step size) [Andrieu and Thoms, 2008]. This reads
where is a target acceptance rate, is the instantaneous acceptance rate (i.e., how many samples out of were accepted at step ), and are step-sizes, all specified by the users. Clipping is applied e.g. to prevent 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.
Table 2: Choice of adaptive MCMC hyperparameters
| solver | |||||||
|---|---|---|---|---|---|---|---|
| 0.3 | 0.3 | 0.3 | 0.3 | 0.7 | 0.01 | 1.0 | LM |
In general, we find that adaptively tuning the hyperparameters starting from high 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 to project the proposal back onto the data manifold. However, as the chains converge, the ensemble Kalman updates become smaller with proposals being more on-manifold, requiring smaller . Robbins-Monro automatically drives 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 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
The remaining term can be expanded as
Using the fact that , for some , we get (key terms that change are highlighted)
Note that as , we have that by our assumptions on , which drives the first two terms to (the last two terms are indefinite; in fact, the last term is zero in expectation, conditioned on ). For small , 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 so that it doesn't reach to 0, and (ii) tune the LM learning rate jointly with ; since as , it helps to counterbalance the growth of as . We note that when , we simply get back RWMH waltz. Thus, as EKCN waltz progresses and the chains converge, it starts to behave more like RWMH waltz.
E Experimental details
E.1 Problem statement
We consider the Navier-Stokes (NS) equation on a 2D torus (vorticity form)
Here, is the velocity field, is the vorticity field, is the Reynolds' number and is an external forcing forcing.
The observations for our inverse problem are obtained as follows: First, we solve the NS system for time units using an in-house pseudo-spectral NS solver with finite-difference time-stepping to obtain . Then, we take a spatially strided downsampling downsampling), with additive isotropic Gaussian noise scaled relative to the dataset standard deviation . Thus the observation model reads
In our experiments, we fix and consider various choices of and controlling the degree of nonlinearity and intensity of noise (see Table 3)
Table 3: Experimental regimes
| Low | High | |
|---|---|---|
| Nonlinearity | ||
| Noise |
E.2 Data
Our data comes from Navier-Stokes vorticity trajectories (200 trajectories of 501 timesteps at resolution with Kolmogorov forcing and Reynolds' number ) as used in [Li et al., 2022]. To avoid highly correlated samples, we thin the trajectories by subsampling every 5 timesteps, giving us snapshots, split by trajectory into 180 train / 20 validation trajectories.
E.3 Model architecture
For our generative prior, we use functional flow matching Kerrigan et al. [2023], where we parameterise the flow matching marginal velocity by a Fourier Neural Operator (FNO) [Li et al., 2021]. The input field is concatenated with an explicit 2D positional grid and a constant channel broadcasting the flow-matching time , 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 , and a Matérn Gaussian process (GP) reference measure . In practice, we sample from the GP using the Karhunen-Loève expansion
where are the 2D Fourier modes on the two-torus (i.e., ) and is the spectral density of the kernel:
We use the denoising SDE (19), which in the linear interpolant setting, reads
solved backwards in time, where is the Matérn covariance operator and is the -Brownian motion. By Proposition 1, this samples from . In practice, we discretise the field on a grid of size , whose discretisation we denote by . We solve (89) using Euler-Maruyama:
where are i.i.d. draws from the GP using (87). The setting we use in our experiments is shown in Table 4.
Table 4: Choice of Matérn GP reference hyperparameters
| Grid size | Smoothness | Lengthscale | Variance |
|---|---|---|---|
| 64 |
E.4 Metrics
To evaluate the performance of the posterior sampling methods, we draw samples from the approximate posterior produced by each method and compare them against the ground truth . 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 . The Rel- error measures how close the ensemble mean 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.
Lower values indicate that the posterior mean is closer to the true signal.
Continuous ranked probability score (CRPS). Unlike Rel- , CRPS is a proper scoring rule that evaluates the full ensemble rather than just its mean. It rewards both accuracy (samples close to ) and sharpness (low spread among samples), while penalizing ensembles that are either biased or overly diffuse.
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).
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 indicate an overconfident (underdispersed) posterior, while SSR > 1 indicates an overdispersed posterior.
E.5 Diffusion waltz details
We tune both the RWMH and EKCN waltz using Robbins–Monro stochastic approximation (Appendix D), with the step-size parameters t and h initialized to 0.7 and 1.0, respectively. The ensemble is initialized from diffusion prior samples, and we use J = 100 ensemble members throughout. For the EKCN waltz, we use all 100 members for the computation of the Kalman gain (Appendix C.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 (89) is discretised using the Euler–Maruyama scheme, and we do not apply MADM correction [Lam et al., 2026] for exact sampling.
E.6 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 ensembles. Metrics are computed using the final converged ensemble members.
Ensemble Kalman Inversion (EKI) [Iglesias et al., 2013, Schillings and Stuart, 2017]. This uses a derivative-free optimisation method using ensembles, as shown in C.1 to minimise the data-fit loss . EKI does not take into account the prior information of , thus the optimised 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 . The solver we use is Levenberg-Marquardt with . 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 y injected during the corrector step using ensemble Kalman update rules (Appendix C.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 .
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 exactly as the number of particles are increased. We use 50 denoising steps, DIFFERENCE potential and tempering parameter .
ESS-Flow [Kalaivanan et al., 2025]. This considers the flow matching ODE as a deterministic transport map from the Gaussian reference to the data distribution and applies elliptic slice sampling (ESS) Murray et al. [2010] using the Gaussian reference prior, with likelihood , where is the flow matching ODE flow from . 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 z, which are noised versions of the clean data and performs Gibbs sampling to iteratively sample (likelihood step) and (prior step). The prior step is solved using an exact denoiser Bellchambers [2025] 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 [Potaptchik et al., 2026, Holderrieth et al., 2026]. Meta flow maps (MFM) / diamond maps learn a one-step distilled model to sample from . Using this, one can rapidly sample from the exact likelihood using Monte-Carlo and compute the likelihood score by taking the gradients through the Monte-Carlo estimation. In MFM-GF, this gradient can be computed without taking gradients through the likelihood using importance sampling. We use 100 denoising steps and for each ensemble member, use 10 MC samples to approximate the likelihood.
E.7 Comparison with gradient-based guidance methods
We also make comparisons to several common gradient-based guidance methods, namely, DPS [Chung et al., 2023], MMPS [Rozet et al., 2024] and DAPS [Zhang et al., 2025] . Since our forward operator is non-differentiable, we cannot use these methods directly. Thus, we train FNO surrogates for the Navier-Stokes solver and use this as low-cost differentiable replacements for the finite difference solver. We display results in Tables 5–6 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 = 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].
Since we use a functional flow matching prior, we use functional modifications to all methods, e.g., our DPS is technically equivalent to FunDPS [Yao et al., 2026] — we make similar modifications to MMPS and DAPS, as well as all gradient-free methods where necessary.
Table 5: Results in the low nonlinearity regime (T = 1). Best results in bold, second best underlined. Gradient based methods are displayed in gray.
| Observation noise Methods | Low noise | High noise | ||||
|---|---|---|---|---|---|---|
| Rel | CRPS↓ | SSR→1 | Rel | CRPS↓ | SSR→1 | |
| DPS | 0.075 (0.011) | 0.039 (0.008) | 1.393 (0.084) | 0.275 (0.078) | 0.127 (0.023) | 0.855 (0.162) |
| MMPS | 0.064 (0.009) | 0.032 (0.006) | 0.983 (0.095) | 0.254 (0.063) | 0.116 (0.020) | 0.927 (0.189) |
| DAPS | 0.401 (0.013) | 0.182 (0.037) | 1.188 (0.105) | 0.710 (0.062) | 0.338 (0.028) | 1.342 (0.068) |
| EKI | 0.517 (0.077) | 0.370 (0.086) | 0.024 (0.006) | 0.832 (0.064) | 0.560 (0.042) | 0.126 (0.009) |
| EnKG | 0.129 (0.014) | 0.086 (0.009) | 0.076 (0.019) | 0.617 (0.120) | 0.414 (0.049) | 0.071 (0.009) |
| FK Steering | 0.786 (0.109) | 0.538 (0.150) | 0.012 (0.024) | 0.782 (0.109) | 0.500 (0.145) | 0.101 (0.024) |
| ESS-Flow | 0.178 (0.054) | 0.080 (0.033) | 1.405 (0.198) | 0.248 (0.030) | 0.118 (0.030) | 1.179 (0.154) |
| Blade | 0.069 (0.012) | 0.037 (0.007) | 1.797 (0.139) | 0.296 (0.071) | 0.139 (0.033) | 0.982 (0.203) |
| MFM-GF | 0.406 (0.101) | 0.191 (0.084) | 1.395 (0.442) | 0.425 (0.089) | 0.202 (0.077) | 1.406 (0.416) |
| DW-RWMH | 0.451 (0.101) | 0.177 (0.068) | 1.703 (0.404) | 0.550 (0.053) | 0.229 (0.055) | 1.476 (0.216) |
| DW-EKCN | 0.086 (0.013) | 0.045 (0.010) | 1.396 (0.199) | 0.220 (0.049) | 0.101 (0.021) | 1.081 (0.293) |
Table 6: Results in the high nonlinearity regime (T = 5). Best results in bold, second best underlined. Gradient based methods are displayed in gray.
| Observation noise Methods | Low noise | High noise | ||||
|---|---|---|---|---|---|---|
| Rel | CRPS ↓ | SSR→1 | Rel | CRPS ↓ | SSR→1 | |
| DPS | 0.472 (0.084) | 0.201 (0.069) | 1.834 (0.285) | 0.506 (0.084) | 0.233 (0.079) | 1.244 (0.250) |
| MMPS | 0.560 (0.090) | 0.276 (0.077) | 1.572 (0.382) | 0.523 (0.070) | 0.241 (0.069) | 1.461 (0.292) |
| DAPS | 0.639 (0.071) | 0.327 (0.071) | 1.510 (0.281) | 0.697 (0.057) | 0.351 (0.075) | 1.358 (0.258) |
| EKI | 1.059 (0.069) | 0.754 (0.104) | 0.031 (0.006) | 0.865 (0.086) | 0.522 (0.069) | 0.267 (0.041) |
| EnKG | 0.418 (0.153) | 0.279 (0.140) | 0.098 (0.035) | 0.812 (0.157) | 0.523 (0.070) | 0.084 (0.006) |
| FK Steering | 1.383 (0.164) | 1.000 (0.068) | 0.016 (0.020) | 0.991 (0.053) | 0.511 (0.060) | 1.084 (0.127) |
| ESS-Flow | 0.506 (0.123) | 0.242 (0.104) | 0.987 (0.242) | 0.491 (0.105) | 0.233 (0.096) | 0.987 (0.230) |
| Blade | 0.421 (0.309) | 0.239 (0.180) | 2.312 (0.899) | 0.442 (0.180) | 0.231 (0.142) | 1.326 (0.637) |
| MFM-GF | 0.549 (0.087) | 0.262 (0.084) | 1.245 (0.325) | 0.547 (0.079) | 0.261 (0.080) | 1.253 (0.317) |
| DW-RWMH | 0.810 (0.045) | 0.398 (0.071) | 1.163 (0.156) | 0.815 (0.040) | 0.396 (0.066) | 1.155 (0.145) |
| DW-EKCN | 0.247 (0.239) | 0.152 (0.190) | 1.054 (0.473) | 0.435 (0.119) | 0.207 (0.098) | 0.945 (0.279) |

Figure 3: Comparison of diffusion waltz and baseline methods on the Navier-Stokes (NS) initial condition recovery problem in the low nonlinearity / low noise regime.

Figure 4: Comparison of diffusion waltz and baseline methods on the Navier-Stokes (NS) initial condition recovery problem in the low nonlinearity ( ) / high noise ( ) regime.

Figure 5: Comparison of diffusion waltz and baseline methods on the Navier-Stokes (NS) initial condition recovery problem in the high nonlinearity ( ) / low noise ( ) regime.

(a) ,

(b) ,

(c) ,

(d) ,

(e) ,

(f) ,

(g) ,

(h) ,
Figure 6: MCMC traces for the potential . 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.

(a) ,

(b) ,

(c) ,

(d) ,

(e) ,

(f) ,

(g) ,

(h) ,
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 0%. In the high noise regime, acceptance rate is high initially, then immediately relaxes to 10 20%.