<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Principled Probabilistic Imaging using Diffusion Models as Plug-and-Play Priors</title></titleStmt>
			<publicationStmt>
				<publisher>NeurIPS</publisher>
				<date>09/24/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10579097</idno>
					<idno type="doi"></idno>
					
					<author>Zihui Wu</author><author>Yu Sun</author><author>Yifan Chen</author><author>Bingliang Zhang</author><author>Yisong Yue</author><author>Katherine L Bouman</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Diffusion models (DMs) have recently shown outstanding capabilities in modeling complex image distributions, making them expressive image priors for solving Bayesian inverse problems. However, most existing DM-based methods rely on approximations in the generative process to be generic to different inverse problems, leading to inaccurate sample distributions that deviate from the target posterior defined within the Bayesian framework. To harness the generative power of DMs while avoiding such approximations, we propose a Markov chain Monte Carlo algorithm that performs posterior sampling for general inverse problems by reducing it to sampling the posterior of a Gaussian denoising problem. Crucially, we leverage a general DM formulation as a unified interface that allows for rigorously solving the denoising problem with a range of state-of-the-art DMs. We demonstrate the effectiveness of the proposed method on six inverse problems (three linear and three nonlinear), including a real-world black hole imaging problem. Experimental results indicate that our proposed method offers more accurate reconstructions and posterior estimation compared to existing DM-based imaging inverse methods.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Inverse problems arise in many computational imaging applications, where the goal is to recover an image x 2 R n from a set of sparse and noisy measurements y 2 R m . The relationship between x and y can be described by</p><p>where A(&#8226;) : R n ! R m is the forward operator (linear or nonlinear) and n is the random measurement noise in R m . Since the sparsity and noisiness of y often lead to significant uncertainty in x, it is preferable to sample the posterior distribution p(x|y) over all possible solutions based on some prior distribution p(x), rather than finding a single deterministic solution. Traditional posterior sampling methods often rely on simple image priors that do not reflect the sophistication of real-world image distributions. On the other hand, diffusion models (DMs) have recently emerged as a powerful tool for modeling highly complex image distributions <ref type="bibr">[33,</ref><ref type="bibr">63]</ref>. Nevertheless, it remains a challenge to turn DMs into reliable imaging inverse solvers, which motivates us to develop a principled Bayesian method that leverages DMs as priors for posterior sampling.</p><p>Diffusion models generate samples from a distribution by reversing a diffusion process from the target distribution to a simple (usually Gaussian) distribution <ref type="bibr">[33,</ref><ref type="bibr">63]</ref>. In particular, it estimates a clean image x 0 from a noise image x T by successively denoising noisy images, where x t &#8672; p t is the intermediate noisy image at time t 2 [0, T ]. Reversing diffusion requires one to estimate the time-varying gradient log density (score function) r log p t (x t ) along the diffusion process, or r log p t (x t |y) in the case of sampling the posterior p(x|y).</p><p>Mean image Posterior samples Official image by EHT Diffusion model image prior Real-world imaging system * Experiment is performed with real data for the M87 black hole Interferometry N-S frequency (v) E-W frequency (u) Fourier spectrum PnP-DM Proposed method 40&#956;as 40&#956;as</p><p>Figure <ref type="figure">1</ref>: Demonstration of the proposed method, PnP-DM, for posterior sampling using the real data for the M87 black hole from April 6 th , 2017 <ref type="bibr">[21]</ref>. The black hole imaging problem is non-convex and highly ill-posed due to severe noise corruption and measurement sparsity. Our method rigorously integrates measurements from a real-world imaging system with an expressive image prior in the form of a diffusion model, which was trained with images from the GRMHD black hole simulation <ref type="bibr">[22]</ref> in this case. Besides having high visual quality, our posterior samples accurately capture key features of the M87 black hole such as the bright spot location and ring diameter.</p><p>To design generic DM-based inverse problem solvers, most existing methods attempt to approximate the time-varying gradient log density r log p t (x t |y) <ref type="bibr">[17,</ref><ref type="bibr">73,</ref><ref type="bibr">84,</ref><ref type="bibr">62,</ref><ref type="bibr">39,</ref><ref type="bibr">58,</ref><ref type="bibr">60,</ref><ref type="bibr">44,</ref><ref type="bibr">15,</ref><ref type="bibr">77,</ref><ref type="bibr">18,</ref><ref type="bibr">55,</ref><ref type="bibr">8]</ref>.</p><p>In particular they first apply Bayes' rule to separate the forward operator from an unconditional prior over the intermediate noisy image x t :</p><p>r log p t (x t |y) = r log p t (y|x t ) + r log p t (x t ).</p><p>(</p><p>By instead aiming to evaluate the right hand side, one can leverage the existing pre-trained DMs for the unconditional term r log p t (x t ). However, the main challenge in this case is that r log p t (y|x t ) is intractable to compute in general, as p t (y|x t ) involves an integral over all possible x 0 's that could give rise to x t <ref type="bibr">[17]</ref>. Various methods have been proposed to circumvent the intractability and can mostly be categorized into two groups. One group of methods explicitly approximate r log p t (y|x t ) by making simplifying assumptions <ref type="bibr">[62,</ref><ref type="bibr">17,</ref><ref type="bibr">60,</ref><ref type="bibr">8]</ref>. However, even for arguably the finest approximation to date proposed in the recent work <ref type="bibr">[8]</ref>, it is exact only when the prior distribution p(x) is Gaussian. For general prior distributions beyond Gaussian, these methods do not sample the true posterior p(x|y). The other group of methods do not make explicit approximations but instead substitute r log p t (y|x t ) with empirically designed updates where y is treated as a guidance signal <ref type="bibr">[73,</ref><ref type="bibr">84,</ref><ref type="bibr">39,</ref><ref type="bibr">58,</ref><ref type="bibr">44,</ref><ref type="bibr">15,</ref><ref type="bibr">77,</ref><ref type="bibr">18,</ref><ref type="bibr">55]</ref>. Although these methods may have strong empirical performance, they have deviated from the Bayesian formulation and no longer aim to sample the target posterior. In summary, these existing DM-based inverse methods should be best viewed as guidance methods, where the generative process is guided towards the regions where the measurement y is more likely to be observed, not as posterior sampling methods <ref type="bibr">[8]</ref>. We also note that some recent work considered combing DMs with Sequential Monte Carlo to ensure asymptotic consistency in posterior sampling <ref type="bibr">[11,</ref><ref type="bibr">23]</ref>, but the investigation has been limited to linear imaging inverse problems.</p><p>Our contributions In this work, we pursue a different path towards posterior sampling with DM priors by proposing a new Markov chain Monte Carlo (MCMC) algorithm, which we call Plug-and-Play Diffusion Models (PnP-DM). It incorporates DMs in a principled way and circumvents the approximation required when taking the approach in <ref type="bibr">(2)</ref>. The proposed algorithm is based on the Split Gibbs Sampler <ref type="bibr">[71]</ref> that alternates between two sampling steps that separately involve the likelihood and prior. While the likelihood step can be tackled with traditional sampling techniques, the prior step involves a Bayesian denoising problem that requires careful design. Importantly, we identify a connection between the Bayesian denoising problem and the unconditional image generation problem under a general formulation of DMs presented in <ref type="bibr">[37]</ref> (which is referred to as the EDM formulation hereafter). This connection allows us to perform rigorous posterior sampling for denoising using DMs without approximating the generative process and enables the use of a wide range of pretrained DMs through the unified EDM formulation. We present an analysis on the non-asymptotic behavior of PnP-DM by establishing a stationarity guarantee in terms of the average Fisher information. We further demonstrate the strong empirical performance of PnP-DM by investigating three linear and three nonlinear noisy inverse problems, including a black hole interferometric imaging problem involving real data that is both nonlinear and severely ill-posed (see Figure <ref type="figure">1</ref>). Overall, PnP-DM outperforms existing baseline methods, achieving higher accuracy in posterior estimation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Preliminaries</head><p>Split Gibbs Sampler (SGS) is an MCMC approach developed for Bayesian inference <ref type="bibr">[71]</ref>. It is also related to the Proximal Sampler <ref type="bibr">[42,</ref><ref type="bibr">14,</ref><ref type="bibr">25,</ref><ref type="bibr">79]</ref> and serves as the backbone for the Generative Plug-and-Play (GPnP) <ref type="bibr">[6]</ref> and Diffusion Plug-and-Play (DPnP) <ref type="bibr">[78]</ref> frameworks in computational imaging. The goal of SGS is to sample the posterior distribution p(x|y) / p(y|x)p(x) = exp( f (x; y) g(x))</p><p>where f (x; y) := log p(y|x) and g(x) := log p(x) are the potential functions of the likelihood and prior distribution, respectively. The dual dependence of (3) on both the likelihood and prior makes it nontrivial to directly sample from it in general. Instead, SGS leverages the composite structure of the posterior distribution by adopting a variable-splitting strategy and considers sampling an alternative distribution</p><p>where z 2 R n is an augmented variable and &#8674; &gt; 0 is a hyperparameter that controls the strength of the coupling between x and z. We denote the x-and z-marginal distributions of (4) as &#8673; X (x) := R &#8673;(x, z)dz and &#8673; Z (x) := R &#8673;(x, z)dx, respectively. As &#8674; ! 0, &#8673; X converges to the target posterior p(x|y) in terms of total variation distance <ref type="bibr">[71]</ref>, so one can obtain approximate samples from the target posterior by sampling (4) instead.</p><p>SGS samples (4) via Gibbs sampling. Specifically, SGS starts from an initialization x (0) and, for iteration k = 0, &#8226; &#8226; &#8226; , K 1, alternates between</p><p>Note that the two conditional distributions separately involve f (&#8226;; y) and g(&#8226;). The likelihood and prior are decoupled so that these two steps can be designed in a modular way. A similar variablesplitting strategy is also adopted in optimization methods such as the Half-Quadratic Splitting (HQS) method <ref type="bibr">[31]</ref> and the Alternating Direction Method of Multipliers (ADMM) <ref type="bibr">[30,</ref><ref type="bibr">7]</ref>. In fact, SGS can be viewed as a sampling analogue of HQS. SGS is a principled approach to posterior sampling if the two sampling steps are rigorously implemented.</p><p>Existing works related to SGS Several works have designed algorithms for solving imaging inverse problems based on SGS <ref type="bibr">[53,</ref><ref type="bibr">19,</ref><ref type="bibr">6,</ref><ref type="bibr">27,</ref><ref type="bibr">78]</ref>. The key distinction among these methods lies in their approaches to the prior step. For instance, the works <ref type="bibr">[53,</ref><ref type="bibr">6,</ref><ref type="bibr">27]</ref> applied Langevin-based updates for sampling &#8673; X|Z=z such that the prior information is encoded by either traditional regularizers or off-the-shelf image denoisers. The work <ref type="bibr">[19]</ref> tackled the prior step by heuristically customizing a diffusion model (i.e. DDPM <ref type="bibr">[33]</ref>) for sampling &#8673; X|Z=z . A concurrent work <ref type="bibr">[78]</ref> improved the implementation by devising two diffusion processes that rigorously solve the prior step. Our method differs from <ref type="bibr">[78]</ref> by connecting the prior step to the EDM formulation <ref type="bibr">[37]</ref>. This connection allows us to seamlessly integrate state-of-the-art DMs as expressive image priors for Bayesian inference through a unified interface, eliminating the need for additional customization for each model and leading to better empirical performance. We also note the recent work <ref type="bibr">[43]</ref> that adopted the optimizationbased variable-splitting formulation of HQS and utilized general DMs as image priors. We instead considers the SGS formulation from a Bayesian posterior sampling standpoint. Additionally, while SGS-based methods theoretically accommodate general inverse problems, empirical evidence on real-world nonlinear inverse problems remains scarce in the literature. In this work, we demonstrate our method on three nonlinear inverse problems, including a black hole imaging problem. For a more comprehensive review of related works, see Appendix E.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Method</head><p>A schematic diagram for the proposed method is shown in Figure <ref type="figure">2</ref>. Our method, dubbed PnP-DM, builds upon the SGS framework with rigorous implementations of the two sampling steps and an annealing schedule for the coupling parameter &#8674;. We start with our implementations of the first step for solving both linear and nonlinear inverse problems.</p><p>{&#8674;k} Likelihood step: enforcing data-consistency Annealing schedule</p><p>General reverse diffusion under EDM &lt; l a t e x i t s h a 1 _ b a s e 6 4 = " 7 q I l q 4 X 4 j H r 7 y x 7 C q 6 e c v t 4 p P o k = " &gt; A A A C X n i c b Z H N S g M x F I X T U a t W q 1 U 3 g p v B I r i x z I h U V y K &lt; l a t e x i t s h a 1 _ b a s e 6 4 = " 7 q I l q 4 X 4 j H r 7 y x 7 C q 6 e c v t 4 p P o k = " &gt; A A A C X n i c b Z H N S g M x F I X T U a t W q 1 U 3 g p v B I r i x z I h U V y K Prior step: denoising with noise level &lt; l a t e x i t s h a 1 _ b a s e 6 4 = " c F Y B E x c r t j + I i J N g M p X I J t 9 a e M A = " &gt; A A A C W n i c b Z H L S g M x F I b T 8 T 7 e W n X n Z r A I r s q M S H U l R T c u F W w r 2 F L O p G k b m 8 u Y n F G H M u / g V t 9 M 8 G F M a x e 2 9 k D g z / e f A z l / 4 k R w i 2 H 4 V f C W l l d W 1 9 Y 3 / M 2 t 7 Z 3 d Y m m v Y X V q K K t T L b R 5 i M E y w R W r I 0 f B H h L D Q M a C N e P h 9 d h v v j B j u V b 3 m C W s L a G v e I 9 T Q I c a L T P Q n W G n W A 4 r 4 a S C / y K a i j K Z 1 m 2 n V L h s d T V N J V N I B V j 7 G I U J t k d g k F P B c r + V W p Y A H U K f P T q p Q D L b H k 2 e m w f H j n S D n j b u K A w m 9 O / E C K S 1 m Y x d p w Q c 2 H l v D B d 6 7 F m B M Z A t N G O Z z 9 7 n g U w F c q N f Z y l C n A o w b 7 l / P L M U 9 i 7 a I 6 6 S F J G r / u 9 S v V Q E q I N x z k G X G 0 Z R Z E 4 A N d z l E t A B G K D o f s N 3 i U f z + f 4 X j d N K V K 1 U 7 8 7 K t a t p 9 u v k k B y R E x K R c 1 I j N + S W 1 A k l T + S d f J D P w r f n e R v e 5 m + r V 5 j O 7 J O Z 8 g 5 + A D o 2 t 2 I = &lt; / l a t e x i t &gt; &#8674;k start from at noise level &lt; l a t e x i t s h a 1 _ b a s e 6 4 = " s B j + T S l L s N g E n D 3 7 E q w o K 1 l V s n g = " &gt; A A A C W n i c b Z H L T g I x F I b L e A W 8 g L p z M 5 G Q u C I z x q A r Y 3 T j E h O 5 J E D I m V K g 0 s v Y n l E J 4 R 3 c 6 p u Z + D C W y 0 K Q k z T 5 + / 3 n J D 1 / o 1 h w i 0 H w n f I 2 N r e 2 d 3 b T m e z e / s F h L n 9 U s z o x l F W p F t o 0 I r B M c M W q y F G w R m w Y y E i w e j S 8 n / r 1 V 2 Y s 1 + o J R z F r S + g r 3 u M U 0 K F a y w x 0 J + j k C k E p m J X / X 4 Q L U S C L q n T y q Z t W V 9 N E M o V U g L X N M I i x P Q a D n A o 2 y b Q S y 2 K g Q + i z p p M K J L P t 8 e y 5 E 7 / o S N f v a e O O Q n 9 G / 0 6 M Q V o 7 k p H r l I A D u + p N 4 V q P v S g w B k Z r z U h O l u + r Q C Y C u d F v y x Q h S g S Y 9 0 m m u L Q U 9 q 7 b Y 6 7 i B J G r / n y p X i J 8 1 P 4 0 Z 7 / L D a M o R k 4 A N d z l 4 t M B G K D o f i P j E g 9 X 8 / 0 v a h e l s F w q P 1 4 W b u 8 W 2 e + S U 3 J G z k l I r s g t e S A V U i W U P J M P 8 k m + U j + e 5 6 W 9 7 L z V S y 1 m j s l S e S e / x 5 y 3 J w = = &lt; / l a t e x i t &gt;   Our method alternates between a likelihood step that enforces data consistency and a prior step that solves a denoising posterior sampling problem by leveraging the Split Gibbs Sampler <ref type="bibr">[71]</ref>. An annealing schedule controls the strength of the two steps at each iteration to facilitate efficient and accurate sampling. A crucial part of our design is the prior step, where we identify a key connection to a general diffusion model framework called the EDM <ref type="bibr">[37]</ref>. This connection allows us to easily incorporate a family of state-of-the-art diffusion models as priors to conduct posterior sampling in a principled way without additional training. Our method demonstrates strong performance on a variety of linear and nonlinear inverse problems.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Likelihood step: enforcing data consistency</head><p>For the likelihood step at iteration k, we sample</p><p>Linear forward model and Gaussian noise We first consider a simple yet common case where the forward model A is linear and the noise distribution is zero-mean Gaussian, i.e. A := A 2 R m&#8677;n and n &#8672; N (0, &#8963;). In this case, the potential function of the likelihood term is f (x; y) = 1 2 ky Axk 2</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#8963;</head><p>(up to an additive constant that does not depend on x and y)</p><p>where</p><p>The problem of sampling from Gaussian distributions has been systematically studied <ref type="bibr">[72]</ref>. We refer readers to Appendix C.1 for a more detailed discussion.</p><p>General case For general nonlinear inverse problems, the likelihood step is not sampling from a Gaussian distribution anymore. Nevertheless, since we have access to &#8673; Z|X=x in closed form up to a multiplicative factor, we can use Monte Carlo methods based on Langevin dynamics to draw samples from it as long as the likelihood potential is differentiable. Specifically, we first set up the following Langevin SDE that admits &#8673; Z|X=x as the stationary distribution</p><p>We then initialize the SDE at z 0 = x and run it with Euler discretization. The pseudocode is provided in Appendix C.1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Prior step: denoising via the EDM framework</head><p>For the prior step at iteration k, we sample</p><p>A closer examination of (6) reveals that this prior step is essentially to draw posterior samples for a Gaussian denoising problem, where the "measurement" is z (k) , the noise level is &#8674;, and the prior distribution is p(x) / exp( g(x)).</p><p>We tackle this denoising posterior sampling problem within SGS using DMs as image priors. In particular, we leverage the EDM framework <ref type="bibr">[37]</ref>, which was originally proposed to unify various formulations of DMs for unconditional image generation. To see the connection of the EDM framework to <ref type="bibr">(6)</ref>, consider a family of mollified distributions p(x; ) given by adding i.i.d Gaussian noise of standard deviation to the prior distribution p(x), i.e. x + &#9999; &#8672; p(x; ). The core idea of the EDM framework is that a variety of state-of-the-art DMs can be unified into the following reverse SDE:</p><p>where wt is an n-dimensional Wiener process running backward in time, (t) &gt; 0 is a pre-defined noise level schedule with (0) = 0, s(t) is a pre-defined scaling schedule, and &#729; (t), &#7777;(t) are their time derivatives. As shown in <ref type="bibr">[37]</ref>, the defining property of ( <ref type="formula">7</ref>) is that x t /s(t) &#8672; p(x; (t)) for any time t. Therefore, solving this SDE backward in time allows us to travel from any noise level (t) to the clean image distribution at t = 0. This means that we can use <ref type="bibr">(7)</ref> to solve <ref type="bibr">(6)</ref> with arbitrary noise level &#8674; as long as &#8674; is within the range of (t). Indeed, the distribution of x 0 conditioned on x t is</p><p>We highlight that the last line exactly matches (6) when x t = s(t)z (k) and (t) = &#8674;. Therefore, we can naturally design a practical algorithm that samples (6) by following these three steps: (1) find k) , and (3) solve ( <ref type="formula">7</ref>) backward from t &#8676; to 0 by choosing the discretization time steps and integration scheme. Through this unified interface, any DMs, once converted to the EDM formulation, can be directly turned into a rigorous solver for <ref type="bibr">(6)</ref>.</p><p>Leveraging the connection with EDM, our prior step implementation comes with a large design space that encompasses a variety of existing DMs, such as DDPM (or VP-SDE) <ref type="bibr">[33]</ref>, VE-SDE <ref type="bibr">[63]</ref>, and iDDPM <ref type="bibr">[52]</ref>. In our experiments, we conduct posterior sampling with all these different models within our framework and all of them provide high-quality samples. The pseudocode of our implementation and more details on the EDM formulation for the prior step is given in Appendix C.2.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Putting it all together</head><p>The pseudocode of PnP-DM in complete form is presented in Algorithm 1. PnP-DM alternates between the two sampling steps with an annealing schedule {&#8674; k } for the coupling parameter. We find that the annealing schedule on &#8674; accelerates the mixing time of the Markov chain and prevents the algorithm from getting stuck in bad local minima for solving highly ill-posed inverse problems. This is a common practice in both Langevin-based <ref type="bibr">[40,</ref><ref type="bibr">34,</ref><ref type="bibr">65]</ref> and SGS-based <ref type="bibr">[6,</ref><ref type="bibr">78]</ref> MCMC algorithms to improve the empirical performance in solving inverse problems.</p><p>Our work shares some similarities with PnP-SGS <ref type="bibr">[19]</ref> but contains three main key differences. First, as demonstrated in our experiments, we investigate three nonlinear inverse problems, while nonlinear inverse problems are beyond the scope of <ref type="bibr">[19]</ref>. Our experiments show that PnP-SGS struggles with challenging nonlinear inverse problems such as Fourier phase retrieval. Second, we adopt the EDM formulation to ensure that the prior step of PnP-DM is a rigorous mapping from the image manifold with the desired noise level to the clean image manifold, aligning with the theory of SGS. In contrast, the prior step of PnP-SGS <ref type="bibr">[19]</ref> is heuristic (which is also pointed out by <ref type="bibr">[78]</ref>) and not rigorously designed to sample <ref type="bibr">(6)</ref>. Third, unlike PnP-SGS <ref type="bibr">[19]</ref> that uses a constant &#8674;, we consider an annealing schedule {&#8674; k } for the coupling parameter, which is important for highly ill-posed inverse problems.</p><p>Algorithm 1 Plug-and-Play Diffusion Models (PnP-DM)</p><p>. Section 3.2 4: end for 5: return x (k+1)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4">Theoretical insights</head><p>J n e k S m q E k i H 5 I J / k K / P j r D m u k / t r d T K z m U M y V 8 7 R L 7 7 r t 5 w = &lt; / l a t e x i t &gt; &#9003; X K Non-stationary process</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Stationary process</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Likelihood step</head><p>Prior step &lt; l a t e x i t s h a 1 _ b a s e 6 4 = " m 0</p><p>&lt; l a t e x i t s h a 1 _ b a s e 6 4 = " z 8 </p><p>R 6 P 6 2 u U 8 z s k 7 l y 9 7 8 B F l O 2 1 g = = &lt; / l a t e x i t &gt; &#8673; Z &lt; l a t e x i t s h a 1 _ b a s e 6 4 = " m 0</p><p>&lt; l a t e x i t s h a 1 _ b a s e 6 4 = " z 8 </p><p>R 6 P 6 2 u U 8 z s k 7 l y 9 7 8 B F l O 2 1 g = = &lt; / l a t e x i t &gt; &#8673; Z &lt; l a t e x i t s h a 1 _ b a s e 6 4 = " m 0</p><p>e x i t &gt; &#8673; X &lt; l a t e x i t s h a 1 _ b a s e 6 4 = " 4 8 7 O z y 7 y 8 8 I o m J p r H t 5 y </p><p>&lt; l a t e x i t s h a 1 _ b a s e 6 4 = " Q j 5 M 6 K g 7 + F T R c 8 b R u 2 + 9 j 1 + P 8 p c = "</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#8999;</head><p>Prior step with error We provide some theoretical insights on the non-asymptotic behavior of PnP-DM. We start with the following definitions.</p><p>For two probability measures &#181; and e &#181; such that &#181; &#8999; e &#181;, the Kullback-Leibler (KL) divergence and Fisher information (or Fisher divergence) of &#181; with respect to e &#181; are defined, respectively, as</p><p>.</p><p>Both divergences are equal to zero if and only if &#181; = e &#181;. KL divergence is a common metric for quantifying the difference of one distribution with respect to another. Fisher information has been used for analyzing the stationarity of sampling algorithms <ref type="bibr">[3,</ref><ref type="bibr">66]</ref>.</p><p>We analyze PnP-DM via a continuous-time perspective, leveraging the interpolation techniques introduced for Langevin Monte Carlo <ref type="bibr">[68,</ref><ref type="bibr">3,</ref><ref type="bibr">66]</ref>. We assume that the likelihood step ( <ref type="formula">5</ref>) can be implemented exactly and the prior step (6) involves running the reverse diffusion process <ref type="bibr">(7)</ref> with an approximated score function s t &#8673; r log p t := r log p( &#8226; ; (t)). Let &#9003; X 0 be the distribution of the initialization x (0) . Let &#9003; Z k and &#9003; X k+1 be the distributions of z (k) and x (k+1) at the k th iteration. Recall that the stationary distributions are &#8673; X and &#8673; Z . Our analysis is concerned with two continuous-time processes: (1) the non-stationary process from &#9003; X 0 , a non-stationary initialization, to &#9003; X K where ( <ref type="formula">7</ref>) is run with the approximated score function s t and (2) the stationary process that alternates between stationary distributions &#8673; X and &#8673; Z . These two processes are the interpolation PnP-DM in non-stationary and stationary states and define continuous transitions over discrete iterations. A conceptual illustration of the two processes is provided in Figure <ref type="figure">3</ref> with the exact formulations in Appendix A. Now we present our main result:</p><p>Define &#9003; &#8999; and &#8673; &#8999; as the distributions at time &#8999; of the non-stationary and stationary process, respectively. Then, for over K iterations of PnP-DM, or equivalently over &#8999; 2 [0, T ] with T := K(t &#8676; + 1), we have 1</p><p>where we assume that the score estimation error &#9999; score :=</p><p>The proof is provided in Appendix A. This theorem states that the average distance (measured by Fisher information) of the non-stationary process with respect to the stationary process over K iterations of PnP-DM goes to zero at a rate of O(1/K) under certain conditions up to the score approximation error. Note that our theory only requires L 2 -accurate score estimate under the measure &#8673; &#8999; , which is a relatively weaker condition than the common L 1 -accurate score estimate</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>GT prior</head><p>Std. deviation ( )   <ref type="bibr">[17]</ref>.</p><p>assumption in prior analysis of sampling methods involving score estimates <ref type="bibr">[5,</ref><ref type="bibr">66]</ref>. This result resembles the first-order stationarity for Langevin Monte Carlo <ref type="bibr">[3]</ref>. Unlike the non-asymptotic analysis in <ref type="bibr">[78]</ref>, we utilize the average Fisher information instead of the total variation distance, enabling us to obtain an explicit convergence rate. Here is the infimum of the diffusion coefficient along the reverse diffusion in <ref type="bibr">(7)</ref>; see further discussions on the role of in Appendix A.3. Our theory shows that the accurate implementations of the two sampling steps lead to a sampler that provably converges to the stationary process that alternates between the two target stationary distributions.  4 Experiments 4.1 Validation with ground truth posterior We first demonstrate the accuracy of PnP-DM for posterior sampling on a simulated compressed sensing problem with a Gaussian prior where the posterior distribution can be expressed in a closed form. The mean and per-pixel standard deviation of the prior are visualized on the bottom left of Figure 4. The linear forward model A 2 R m&#8677;n is a Gaussian matrix (m = n/2), i.e. A ij &#8672; N (0, 1).</p><p>A test image is randomly generated from the prior (see top left of Figure <ref type="figure">4</ref>), and the measurement is calculated according to (1) with n &#8672; N (0, 0.01 2 I). We compare our method with the popular DM-based method DPS <ref type="bibr">[17]</ref>. We draw 1,000 samples and visualize the empirical mean and per-pixel standard deviation for both algorithms. Compared with the true posterior (second column), we find that the both methods accurately estimate the mean. However, the standard deviation image estimated by DPS significantly deviates from the ground truth. In contrast, our standard deviation image matches the ground truth in terms of both absolute magnitude and spatial distribution. These results highlight the accuracy of our method over DPS by taking a more principled Bayesian approach.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Benchmark experiments</head><p>Dataset and inverse problems We test our proposed algorithm and several baseline methods on 100 images from the validation set of the FFHQ dataset <ref type="bibr">[38]</ref> for five inverse problems: (1) Gaussian deblur with kernel size 61&#8677;61 and standard deviation 3.0, (2) Motion deblur with kernel size 61&#8677;61 and intensity of 0.5, (3) Super-resolution with 4&#8677; downsampling ratio, (4) the coded diffraction patterns (CDP) reconstruction problem (nonlinear) in <ref type="bibr">[10,</ref><ref type="bibr">51]</ref> (phase retrieval with a phase mask), and (5) the Fourier phase retrieval (nonlinear) with 4&#8677; oversampling. We add i.i.d. Gaussian noise to all the simulated measurements y. In particular, i.e. n &#8672; N (0, 2 y I). For all problems except for Fourier phase retrieval, the noise standard deviation is set as y = 0.05. Due to the severe ill-posedness of Fourier phase retrieval, we consider a smaller noise standard deviation y = 0.01.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Baselines and comparison protocols</head><p>We consider four variants of DMs as plug-in priors for our method, namely VP-SDE (VP) <ref type="bibr">[33]</ref>, VE-SDE (VE) <ref type="bibr">[63]</ref>, iDDPM <ref type="bibr">[52]</ref>, and EDM <ref type="bibr">[37]</ref>. We compare our method with various baselines, including (1) optimization-based methods: PnP-ADMM <ref type="bibr">[13]</ref>, DPIR <ref type="bibr">[80]</ref>; (2) conditional DMs: DDRM <ref type="bibr">[39]</ref>, DPS <ref type="bibr">[18]</ref>; and (3) SGS-based method: PnP-SGS <ref type="bibr">[19]</ref>, DPnP <ref type="bibr">[78]</ref>. For fair comparison, we use the same pre-trained score function checkpoint for all DM-based methods. Since the pre-trained score function was trained with the DDPM formu-lation (VP-SDE) <ref type="bibr">[33]</ref>, we convert it to the EDM formulation by applying the VP preconditioning <ref type="bibr">[37]</ref>. We use the Peak Signal-to-Noise Ratio (PSNR), the Structural Similarity Index Measure (SSIM), and the Learned Perceptual Image Patch Similarity (LPIPS) distance for quantitative comparison. For each sampling method, we draw 20 randoms samples, calculate their mean, and report the metrics on the mean image. More experimental details are provided in Appendices B, C, D.      </p><p>0 T + e k 1 q J J 6 T 0 I q + 3 y E q g A P x T X <ref type="bibr">6</ref>  </p><p>b 2 2 9 2 d q t v 9 9 7 t H 9 T q 7 + 9 d m l s u 2 j x V q e 0 y c E J J I 9 o o U Y l u Z g V o p k S H P X 6 Z 6 p 3 v w j q Z m m 8 4 y U R f w 8 j I R H J A T w 1 q x 8 8 x A 1 v E T B f j s j y f 3 8  Results: linear problems A quantitative comparison is provided in Table <ref type="table">1</ref>. PnP-DM generally outperforms the baseline methods and that the VE and EDM variants consistently outperform the other two variants on these linear problems. Figure <ref type="figure">5</ref> contains visual examples for the motion deblur problem (see Appendix F.2 for the other two linear problems). PnP-DM provides high-quality reconstructions that are both sharp and consistent with the ground truth image. We also provide an uncertainty quantification analysis based on pixel-wise statistics in Figure <ref type="figure">6</ref> PnP-SGS, our approach captures a higher percentage (97.46%) of ground truth pixels than the baselines (96.20% and 88.77%). If the true posterior were truly Gaussian, 99% of the ground-truth pixels should lie within the 3-sigma CI; however, as the posterior is not Gaussian with a DM-based prior, we do not necessarily expect to reach 99% coverage.</p><p>Results: nonlinear problems We provide a quantitative comparison in Table <ref type="table">2</ref>. For the CDP reconstruction problem, PnP-DM performs on par with DPS but outperforms other SGS-based methods. We then consider the Fourier phase retrieval (FPR) problem, which is known to be a challenging nonlinear inverse problem. One challenge lies in its invariance to 180 rotation, so the posterior distribution have two modes, one with upright images and another with 180 -rotated images, that equally fit the measurement. To increase the chance of getting properly-oriented reconstructions, we run each algorithm with four different random initializations and report the metrics for the best run, following the practice in <ref type="bibr">[18]</ref>. We find that PnP-DM significantly outperforms the baselines on this highly ill-posed inverse problem. As shown in Figure <ref type="figure">7</ref> (a), our method can provide high-quality reconstructions for both orientations, while the baseline methods fail to capture at least one of the two modes. We further run our method for a test image with 100 different random initialization and collect reconstructions in both orientations that are above 28dB in PSNR (90 out of 100 runs). The percentage of upright and rotated reconstructions are visualized by the pie chart in Figure <ref type="figure">7 (b)</ref>. With a prior on upright face images, our method generate mostly samples with the upright orientation. Nevertheless, it can also find the other mode that has an equal likelihood, demonstrating its ability to capture multi-modal posterior distributions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Experiments on black hole imaging</head><p>Problem setup We finally validate PnP-DM on a real-world nonlinear imaging inverse problem: black hole imaging (BHI) (see Appendix B for more details). A visual illustration of BHI is provided  in Figure <ref type="figure">8</ref> (a). This BHI inverse problem is severely ill-posed. Even with an Earth-sized telescope, only a small fraction of the Fourier frequencies of the target black hole can be measured (region within the red box); in reality, this region is further subsampled with a highly sparse pattern (black lines). Additionally, the atmospheric noise causes nonlinearity of this BHI problem that sometimes results in a multi-modal posterior distribution of the reconstructed image <ref type="bibr">[64]</ref>. Here we demonstrate the effectiveness of PnP-DM in capturing a multi-modal posterior distribution. For brevity, we restrict our choice of diffusion models in PnP-DM to EDM and use DPS as the baseline.</p><p>Results on simulated data We use the simulated data from <ref type="bibr">[64]</ref> where the measurements are generated assuming that the ground-truth black hole image were at the location of the Sagittarius A &#8676; black hole. Figure <ref type="figure">8</ref> (b) visually compares the results obtained by PnP-DM and DPS. We use the t-SNE method <ref type="bibr">[67]</ref> to cluster the generated samples (100 for each method) and identify two modes in the samples generated by PnP-DM and three modes in those generated by DPS. We visualize the mean and three samples for each image mode. A metric for quantifying the degree of data mismatch is labeled on the top right corner of each image. As illustrated by both the mean and sample images, PnP-DM successfully captures the two modes previously identified for this dataset <ref type="bibr">[64]</ref>. Note that PnP-DM generates high-fidelity samples from both modes with sharp details of the flux ring, and its samples from "Mode 1" align well with the ground truth image. In contrast, two out of the three modes sampled by DPS fail to exhibit a meaningful black hole structure and do not correspond with the observed measurements, as indicated by the significantly larger data mismatch values.</p><p>Results on real data Finally, we apply PnP-DM to the real M87 black hole data from April 6 th , 2017 <ref type="bibr">[21]</ref>, with the results shown in Figure <ref type="figure">1</ref>. By leveraging an expressive DM-based image prior, PnP-DM generates high-quality samples that are both visually plausible and consistent with the ring diameters observed in the official EHT reconstruction. These results highlight the robustness and effectiveness of our method in tackling a highly ill-posed real-world inverse problem.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Conclusion</head><p>We have introduced PnP-DM, a posterior sampling method for solving imaging inverse problems. The backbone of our method is a split Gibbs sampler that iteratively alternates between two steps that separately involve the likelihood and prior. Crucially, we establish a link between the prior step and a general DM framework known as the EDM formulation. By leveraging this connection, we seamlessly integrate a diverse range of state-of-the-art DMs as priors through a unified interface.</p><p>Experimental results demonstrate that our method outperforms existing DM-based methods across n n 3 2 + / P i L 1 0 q k 0 m V n r g i F f O t Q x U I e s z P N d c j e J p L R y A n Z G + d i V N j f X D G p u I h P 9 T x h 7 y P q x 9 z j L t W A z p e / t d N 4 w q Q j q c s y + z K l k z t / 8 v P l 1 U F / s L W 9 / X S b D P q b m 8 O d j Q E M d n a 2 N w c 7 Z N g f l J 9 V q / 6 M z x 8 / + s W e C D e N W K z d k C r 1 2 3 C Q 6 P c Z l Z q 7 I c u X 7 F S x h L o X 1 G e Z I 8 S F p o 7 K S f V Z I 4 k U H l P F 0 m n 4 H a w g 5 H p O w C V k q h N J I + W J W L c i n R B M j q B y Q i K q A 6 L m k S P C h a g C m y C I u q I y F j r g s d 9  e x i t &gt; | {z } DPS 3.24 41.17 788.44 Mode 3 19.79 45.79 15.67 5.58 1087.77 550.14 3.24 3.23 6.19 Mode 2 Mode 1 2.60 2.83 2.92 4.19 3.12 2.60 3.22 2.38     both linear and nonlinear inverse problems, including a nonlinear and severely ill-posed black hole interferometric imaging problem.</p><p>Limitations PnP-DM can be further improved in the following two aspects. First, PnP-DM currently requires evaluating the likelihood and prior steps for the entire image at a time. This potentially poses computational challenges in solving large-scale inverse problems (e.g. 3D imaging) or those with expensive likelihood evaluation (e.g. PDE inverse problems). Second, the current theoretical analysis does not consider the approximation error introduced in the likelihood step for general nonlinear inverse problems when running Langevin MCMC for finite iterations. Explicit incorporation of this error would offer further insights into the empirical performance of PnP-DM.</p><p>Broader impacts We expect this work to make a positive impact in computational imaging and related application domains. For many imaging problems, there is a need to facilitate image reconstruction with expressive image priors and quantify uncertainty, which could lead to better imaging systems that enables further understanding of the imaging target. Nonetheless, as we are introducing DMs as priors into the imaging process, it is inevitable to inherent the potential bias of these models.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A Theory A.1 Interpolation of PnP-DM</head><p>In this section, we formally introduce the interpolation of PnP-DM. We consider the case where the coupling strength &#8674; is constant, i.e. &#8674; k &#8984; &#8674; and make the following assumption. Assumption A.1. There exists a unique t &#8676; such that (t &#8676; ) = &#8674;.</p><p>This assumption is satisfied for common diffusion models. Popular choices of the noise level schedule include (t) = t or (t) = p t, which are monotonically increasing functions of t. We first present two propositions showing that the two steps in SGS can be implemented by running two SDEs. Proposition A.2 (Brownian bridge for the likelihood step). For iteration k with iterate x (k)  , the likelihood step of SGS is equivalent to solving the following SDE from t = 0 to t = 1:</p><p>where</p><p>Proof. This proposition is due to the Brownian bridge construction presented in Lemma 4 of <ref type="bibr">[79]</ref>. This SDE satisfies that p(x</p><p>. Therefore, solving (9) from t = 0 to t = 1 is equivalent to taking a likelihood step.</p><p>Proposition A.3 (EDM reverse diffusion for the prior step). For iteration k with iterate z (k)  , the prior step of SGS is equivalent to solving the following SDE from t = t &#8676; to t = 0:</p><p>where</p><p>, and p t is the distribution of s(t)x + s(t) (t)&#9999; with x following the prior distribution p(x) / exp( g(x)) and &#9999; &#8672; N (0, I).</p><p>Proof. First note that ( <ref type="formula">10</ref>) is exactly <ref type="bibr">(7)</ref> written in terms of u(t) and v(t). We know that the <ref type="bibr">(10)</ref> is the reverse SDE of the following SDE dx t = u(t)x t dt + v(t)dw t .</p><p>(11) where x 0 &#8672; p(x) and p t is the marginal distribution of x t . As we showed in the main text, it holds for <ref type="bibr">(11)</ref> that</p><p>As <ref type="bibr">(10)</ref> is the time-reversed process of <ref type="bibr">(11)</ref>, they share the same path distribution and thus the same conditional distribution p(x 0 |x t ). So, if we set x t &#8676; = s(t &#8676; )z (k) , we have that</p><p>, which is the desired conditional distribution of the prior step. Therefore, solving (10) from t = t &#8676; to t = 0 is equivalent to taking a prior step.</p><p>Due to Proposition A.2 and Proposition A.3, the SDEs ( <ref type="formula">9</ref>) and ( <ref type="formula">10</ref>) implement the two desired conditional distributions in SGS. In PnP-DM, the prior step involves a network that approximates the score function of the prior distribution, i.e. s t &#8673; r log p t , so the continuous-time process for the actual update is</p><p>We can then interpolate PnP-DM by considering a dynamic that alternates between running ( <ref type="formula">9</ref>) and <ref type="bibr">(12)</ref>.</p><p>Since each likelihood step takes 1 unit of time and each prior step takes t &#8676; unit of time, the total time of the interpolating process for K iterations of PnP-DM is T := K(t &#8676; + 1). We use &#8999; to denote the time that has elapsed from initializing PnP-DM with x (0) . We define {&#9003; &#8999; } and {&#8673; &#8999; } as the distributions at time &#8999; of the non-stationary process initialized at x (0) &#8672; &#9003; X 0 (Figure <ref type="figure">3</ref> top) and the stationary process initialized at x (0) &#8672; &#8673; X (Figure <ref type="figure">3</ref> bottom), respectively. Therefore, we have</p><p>A.2 Proof of Theorem 3.1</p><p>Before proving our main result, we present a key lemma for our analysis, which quantifies the time-derivative of the KL divergence in terms of the Fisher information along a pair of general diffusion processes. Lemma A.4. Given the following pair of diffusion processes dx t = b(x t , t)dt + c(t)dw t (13)</p><p>where b(&#8226;,</p><p>, and c(&#8226;) : R ! R. Let &#181; t be the distribution of x t initialized with x 0 &#8672; &#181; 0 for (13), and let e &#181; t be the distribution of e x t initialized with e x 0 &#8672; e &#181; 0 for <ref type="bibr">(14)</ref>. Then we have</p><p>Proof of Lemma A.4. Writing b(&#8226;, t) as b t and e b(&#8226;, t) as e b t , by the Fokker-Planck equations of ( <ref type="formula">13</ref>) and ( <ref type="formula">14</ref>), we have that</p><p>Defining (x) := x log x and 0 (x) = d dx (x) = log x + 1, we can calculate</p><p>t &#181; t e &#181; t @ t e &#181; t &#9670; + Z &#10003; &#181; t e &#181; t &#9670; @ t e &#181; t = Z 0 &#10003; &#181; t e &#181; t &#9670; &#10003; div &#63743;&#10003; c(t) 2 2 r log &#181; t b t &#9670; &#181; t &#181; t e &#181; t div &#63743;&#10003; c(t) 2 2 r log e &#181; t e b t &#9670; e &#181; t &#9670; + Z &#10003; &#181; t e &#181; t &#9670; div &#63743;&#10003; c(t) 2 2 r log e &#181; t e b t &#9670; e &#181; t = Z &#8999; r 0 &#10003; &#181; t e &#181; t &#9670; , c(t) 2 2 r log &#181; t b t &#181; t + Z &#8999; r &#63743; 0 &#10003; &#181; t e &#181; t &#9670; &#181; t e &#181; t , c(t) 2 2 r log e &#181; t e b t e &#181; t Z &#8999; r &#10003; &#181; t e &#181; t &#9670; , c(t) 2 2 r log e &#181; t e b t e &#181; t = Z &#8999; r 0 &#10003; &#181; t e &#181; t &#9670; , c(t) 2 2 r log &#10003; &#181; t e &#181; t &#9670; b t + e b t &#181; t + Z &#8999; r &#181; t e &#181; t , c(t) 2 2 r log e &#181; t e b t 0 &#10003; &#181; t e &#181; t &#9670; e &#181; t Z &#8999; r &#181; t e &#181; t , c(t) 2 2 r log e &#181; t e b t 0</p><p>where we used the fact that 1 2 a 2 ab &#63743; 1 4 a 2 + b 2 , 8a, b 2 R for the inequality. Now we are ready to prove Theorem 3.1.</p><p>Proof of Theorem 3.1. We first consider the likelihood steps over K iterations of PnP-DM. Applying Lemma 2 of <ref type="bibr">[79]</ref> to the likelihood steps ( <ref type="formula">9</ref>) of the non-stationary and stationary processes, we have that</p><p>Then, applying Lemma A.4 to the prior steps <ref type="bibr">(12)</ref> with</p><p>we have that</p><p>for &#8999; 2 [k(t &#8676; + 1) + 1, (k + 1)(t &#8676; + 1)] with k = 0, ..., K 1. Integrating both sides over &#8999; 2 [k(t &#8676; + 1) + 1, (k + 1)(t &#8676; + 1)], we get</p><p>where</p><p>Finally, combining ( <ref type="formula">16</ref>) and ( <ref type="formula">17</ref>) for k = 0, ..., K 1, we obtain</p><p>The proof is concluded by dividing T = K(t &#8676; + 1) on both sides.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.3 Discussion</head><p>To facilitate the discussion, we first present the following proposition. Proposition A.5. Define a weighting function (&#8999; ) over &#8999; 2 [0, T ] such that for k = 0, ..., K 1,</p><p>Then, under the same settings of Theorem 3.1, we have</p><p>where &#9999; score :=</p><p>Proof. With the definition of (&#8999; ), we can apply Lemma 2 of <ref type="bibr">[79]</ref> to the likelihood steps and obtain</p><p>for k = 0, ..., K 1. Similarly, we can apply Lemma A.4 to the prior steps and obtain</p><p>where</p><p>Together, for &#8999; 2 [0, T ]. We can then get (18) by combining ( <ref type="formula">19</ref>) and ( <ref type="formula">20</ref>) for k = 0, ..., K 1 and dividing by T := K(t &#8676; + 1).</p><p>Unlike Theorem 3.1, this proposition calculates the weighted average of the Fisher information along the two processes with the weighting function (&#8999; ). The bound in Theorem 3.1 on the unweighted average of Fisher information can be obtained by further lower-bounding the left hand side of ( <ref type="formula">18</ref>) using the infimum of (&#8999; ) over &#8999; 2 [0, T ]. Given this observation, we can see the role of in Theorem 3.1. With a strictly positive , the weighting function (&#8999; ) is always strictly positive, so the (unweighted) average Fisher information must converge to 0. This is precisely the case for the VP-and VE-SDE <ref type="bibr">[63]</ref>. On the other hand, if = 0, the Fisher information FI (&#8673; &#8999; ||&#9003; &#8999; ) may be increasingly large as (&#8999; ) gets closer to 0. For iDDPM and EDM, this could happen near t = 0 in the reverse diffusion at v(0) = 0 for these diffusion processes. Nevertheless, we can instead consider a slightly adjusted diffusion coefficient &#7805;(t) := v(t) + &#9999; with &#9999; &gt; 0. Using the relation between scores and diffusions div(pr log p) = p, we get the following reverse SDE which has the same law as <ref type="bibr">(7)</ref> at each t:</p><p>In this case, &#7805;(t) = s(t) p 2 &#729; (t) (t) + &#9999; is strictly positive, so the convergence on the unweighted average Fisher information is also guaranteed.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B Inverse problem setup</head><p>Data usage We list the data we have used for our experiments:</p><p>&#8226; For the synthetic prior experiment, we took images from the CelebA dataset <ref type="bibr">[45]</ref>, turned them into grayscale, rescaled them to <ref type="bibr">[ 1,</ref><ref type="bibr">1]</ref>, and resized them to 32 &#8677; 32 pixels for efficient computation. We then found the empirical mean and covariance of the images to construct the Gaussian image prior. The test image was randomly drawn from this Gaussian prior. &#8226; For the benchmark experiments, we used the first 100 images (index 00000 to 00099) in the FFHQ dataset <ref type="bibr">[38]</ref>. For all linear inverse problems, the test images were in RGB and normalized to range <ref type="bibr">[ 1,</ref><ref type="bibr">1]</ref>. For all nonlinear problems, the test images were in grayscale and normalized to range [0, 1]. &#8226; For the black hole experiments, we used the simulated data used in <ref type="bibr">[64]</ref> and the publicly available EHT 2017 data<ref type="foot">foot_0</ref> that was used to produce the first image of the M87 black hole.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Gaussian and motion deblur</head><p>The forward model is defined as</p><p>where B 2 R n&#8677;n is a circulant matrix that effectively implements a convolution with kernel k under the circular boundary condition. For the Gaussian deblurring problem, we fixed the kernel k as a Gaussian kernel with standard deviation 3.0 and size 61 &#8677; 61. For the motion deblurring problem, we randomly generated the kernel k for each test image using the code<ref type="foot">foot_1</ref> with intensity of 0.5 and size 61 &#8677; 61. For fair comparison, the blur kernel for each test image was set the same for all compared methods.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Super-resolution</head><p>The forward model is defined as</p><p>where P f 2 R n f &#8677;n is a matrix that implements a block averaging filter to downscale the images by a factor of f . Specifically, we set f = 4 and used the SVD implementation from the code<ref type="foot">foot_2</ref> of <ref type="bibr">[39]</ref>.</p><p>Coded diffraction patterns (CDP) CDP is a measurement model originally proposed in <ref type="bibr">[10]</ref>. The target x is illuminated by a coherent source and modulated by a phase mask D. The light field then undergoes the far-field Fraunhofer diffraction and is measured by a standard camera. Mathematically, the forward model of CDP is defined as</p><p>y I) where F denotes the 2D Fourier transform. We followed <ref type="bibr">[75]</ref> to set D as a diagonal matrix with entries drawn randomly from the complex unit circle.</p><p>Fourier phase retrieval We adopted a similar setting as <ref type="bibr">[18]</ref>. In particular, the forward model is defined as y &#8672; N (|F P x|, 2 y I), where P denotes the oversampling matrix that effectively pads x in 2D matrix form with zeros. We considered a 4&#8677; oversampling ratio for grayscale images of size 256 &#8677; 256, so P x has a size of 512 &#8677; 512.</p><p>Black hole imaging We adopted the same BHI setup as in <ref type="bibr">[64,</ref><ref type="bibr">66]</ref>. The relationship between the black hole image and each interferometric measurement, or so-called visibility, is given by</p><p>where a and b denote a pair of telescopes, t represents the time of measurement acquisition, i is the imaginary unit, and F t a,b (x) is the Fourier component of the image x corresponding to the baseline between telescopes a and b at time t. In practice, there are three main sources of noise in <ref type="bibr">(21)</ref>: gain error g a and g b at the telescopes, phase error t a and t b , and baseline-based additive white Gaussian noise &#8984; a,b . The gain and phase errors stem from atmospheric turbulence and instrument miscalibration and often cannot be ignored. To correct for these two errors, multiple noisy visibilities can be combined into data products that are invariant to these errors, which are called closure phase and log closure amplitude measurements <ref type="bibr">[12]</ref> </p><p>where \ computes the angle of a complex number. Given a total of M telescopes, there are in total (M 1)(M 2) 2 closure phase and M (M 3) 2 log closure amplitude measurements at time t, after eliminating repetitive measurements. In our experiments, we used a 9-telescope array (M = 9) from the Event Horizon Telescope (EHT) and constructed the data likelihood term based on these nonlinear closure quantities. Additionally, because the closure quantities do not constrain the total flux (i.e. summation of the pixel values) of the underlying black hole image, we added a constraint on the total flux in the likelihood term. The overall potential function of the likelihood is given by</p><p>In this equation, y flux is the total flux of the underlying black hole, which can be accurately measured. We use y := (y cph , y logcamp , y flux ) to denote all the measurements and c, d as the indices for the closure phase and log closure amplitude measurements. Parameters cph , logcamp were given by the telescope system and flux was set to p 2 in our experiments to constrain the total flux. The data mismatch metric reported in Figure <ref type="figure">8</ref> is defined as the sum of the reduced 2 values for the closure phase and log closure amplitude measurements, which are calculated using the ehtim.obsdata.Obsdata.chisq function of the ehtim package <ref type="foot">4</ref> . Both 2 values should ideally be around 1 for data with high signal-to-noise ratio (SNR). Therefore, a data mismatch value around 2 to 3 is considered as fitting the measurements well.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C Technical details of PnP-DM C.1 Likelihood step</head><p>Linear forward model and Gaussian noise As we showed in the main paper, in case of linear forward models and Gaussian noise, the likelihood step is</p><p>where</p><p>The bottleneck here is that both the mean and the covariance involve the matrix inverse &#8676; 1 , which can be prohibitive to compute directly for high-dimensional problems. Nevertheless, the computational cost can be significantly alleviated when the noise is i.i.d. Gaussian, i.e. &#8963; = 2 y I, and A can be efficiently decomposed. For example, if one can efficiently calculate the SVD of the forward model A, i.e. A = U SV T , one can find the Cholesky decomposition of &#8676; 1 as</p><p>Since S is a diagonal matrix, the second term can be calculated with only O(n) complexity. Then, leveraging the property of multivariate Gaussian distribution, we can sample &#8984; &#8672; N (0, I) and calculate z = m(x)+L&#8984; as a sample that exactly follows the target Gaussian distribution N (m(x), &#8676; 1 ).</p><p>An analogous derivation with Fourier transform can be done when A is a circulant convolution matrix.</p><p>Nonlinear forward model We provide the pseudocode of the LMC algorithm for sampling the likelihood step with general differentiable forward models in Algorithm 2.</p><p>Algorithm 2 Langevin Monte Carlo for the likelihood step under general A Input: state x, coupling strength &#8674; &gt; 0, likelihood potential f ( &#8226; ; y) with measurements y Hyperparameter: step size &gt; 0, number of iterations J &gt; 0</p><p>where &#9999; j &#8672; N (0, I) 4: end for 5: return u J Table <ref type="table">3</ref> summarizes the hyperparameters we used for solving the nonlinear inverse problems considered in this work. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C.2 Prior step</head><p>The EDM framework We formally introduce the EDM formulation <ref type="bibr">[37]</ref> using our notations. The forward diffusion process is defined as the following linear It&#244; SDE</p><p>where u(t) : R ! R, v(t) : R ! R are the drift and diffusion coefficients. The generative process is the time-reversed version of <ref type="bibr">(23)</ref>. According to <ref type="bibr">[2]</ref>, it is another It&#244; SDE of the form</p><p>where p t (x t ) is the marginal distribution of x t . There also exists a reverse probability flow ODE</p><p>which shares the same marginal distributions as <ref type="bibr">(24)</ref>. Based on (23), we have</p><p>where s(t)</p><p>s(&#8672;) 2 d&#8672;. We also have x t /s(t) &#8672; p(x; (t)) where p(x; (t)) is the distribution obtained by adding i.i.d. Gaussian noise of standard deviation (t)) to the prior data. The idea of the EDM formulation is to write the reverse diffuison directly in terms of the scaling and noise level of x t with respect to x 0 , which are more important than the drift and diffusion coefficients. With the relations between u(t), v(t), p t and s(t), (t), p(&#8226;; (t)), we can rewrite ( <ref type="formula">24</ref>) and ( <ref type="formula">25</ref>) as</p><p>and</p><p>Note that ( <ref type="formula">26</ref>) is precisely the SDE <ref type="bibr">(7)</ref> we considered for the prior step. Finally, due to the Tweedie's formula <ref type="bibr">[24]</ref>, we can approximate r xt log p ( &#8226; ; (t)) by a denoiser [D &#10003; ( &#8226; ; (t)) &#8226; ]/ (t) 2 trained to minimize the `2 error of a denoising objective. Substituting the score function by the approximation with the denoiser and using the chain rule, we can further rewrite ( <ref type="formula">26</ref>) and <ref type="bibr">(27)</ref> as</p><p>and</p><p>Pseudocode We provide the pseudocode for our prior step in Algorithm 3. Note that the update rule is precisely the Euler discretization of ( <ref type="formula">28</ref>) and <ref type="bibr">(29)</ref>. The discretization time steps {t i } N i=0 , scaling schedule s(&#8226;), and noise schedule (&#8226;), are kept the same as in Table <ref type="table">1</ref> of <ref type="bibr">[37]</ref>. For all experiments, we set the total number of time steps to 100, i.e. N = 100. We note that this does not imply that each prior step has a number of function evaluations (NFE) equal to 100. Since &#8674; is to a small value as the algorithm runs, the number of steps in later iterations of the algorithm are much fewer than 100. The prior step is similar to the image synthesis process in SDEdit <ref type="bibr">[50]</ref> that starts from the middle of the reverse diffusion process. We used the pf-ODE solver for the CDP problem and the SDE solver for all other problems. Part of our code implementation is based on the repository <ref type="foot">5</ref> .</p><p>Algorithm 3 EDM for the prior step (Bayesian denoising with noise level &#8674;) Input: noisy image z 2 R n , assumed noise level &#8674; &gt; 0, pretrained model D &#10003; ( &#8226; ; &#8226; ) that approximates r log p (x; ) with (D &#10003; (x; ) x)/ 2 Hyperparameter: discretization time steps {t i } N i=0 (monotonically decreasing to t N = 0), scaling schedule s(&#8226;), noise schedule (&#8226;), solver (SDE or pf-ODE)</p><p>2 if solver is SDE else 1 5:</p><p>if i 6 = N 1 and solver is SDE then 8:</p><p>end if 10: end for 11: return v N Model checkpoint For experiments with FFHQ color images, we used the pretrained checkpoint from <ref type="bibr">[16]</ref> available at the repository <ref type="foot">6</ref> . For experiments with synthetic data, FFHQ grayscale images, and black hole images, we trained our own models using the same repository. The model network is based on the U-Net architecture in <ref type="bibr">[52]</ref> with BigGAN <ref type="bibr">[9]</ref> residual blocks, multi-resolution attention, and multi-head attention with fixed channels per head. See the appendix of <ref type="bibr">[16]</ref> for architecture details. Specifically, we changed the input and output channels to 1 and 2, respectively, to accommodate grayscale inputs, and reduced the number of down-pooling and up-pooling levels in the U-Net for smaller images. We trained all models until convergence using an exponential moving average (EMA) rate of 0.9999, 32-bit precision, and the AdamW optimizer <ref type="bibr">[46]</ref>. Here is a list of training data we used for each model:</p><p>&#8226; For the Gaussian prior model, we randomly generated images from the constructed Gaussian prior distribution. &#8226; For the FFHQ grayscale model, we used the images with index 01000 to 69999 in the FFHQ dataset. &#8226; For the black hole model, we used 3068 simulated black hole images from the GRMHD simulation, which stands for general relativistic magnetohydrodynamic simulation <ref type="bibr">[22]</ref>. See Figure <ref type="figure">9</ref> for some example training images. We applied data augmentation with random flipping and resizing, so that the flux spin rotation and the ring diameter vary from sample to sample. Preconditioning Since the checkpoints we used are all trained based on the DDPM (or VP-SDE) formulation <ref type="bibr">[33]</ref>, we converted them to the denoiser D &#10003; under the EDM formulation via the VP preconditioning <ref type="bibr">[37]</ref>. Specifically, if we denote the pretrained model as F &#10003; ( &#8226; ; &#8226; ), the model we used for Algorithm 3 is</p><p>where c skip ( ) = 1, c out ( ) = , c in ( ) = 1/ p 2 + 1, and c noise ( ) = 999 1 VP ( ). Here Connection to DDS-DDPM in <ref type="bibr">[78]</ref> A concurrent work <ref type="bibr">[78]</ref> introduced a rigorous implementation of the prior step, called DDS-DDPM, by converting the DDPM <ref type="bibr">[33]</ref> (or VP-SDE <ref type="bibr">[63]</ref>) sampler into a reverse diffusion based on the VE-SDE <ref type="bibr">[63]</ref>. The diffusion process after the conversion can be used to solve <ref type="bibr">(6)</ref> rigorously by properly choosing the starting point. In fact, our formulation admits DDS-DDPM as a special case with the VP preconditioning and reverse diffusion based on the VE-SDE. Here we explicitly show this connection. For the VE-SDE, we have s VE (t) = 1, VE (t) = p t, u VE (t) = 0, and v VE (t) = 1. So (28) becomes</p><p>Applying the VP preconditioning <ref type="bibr">(30)</ref> to <ref type="bibr">(31)</ref>, we obtain</p><p>We can then rescale the time range from [0, 1] to [0, 1000], discretize (32) backward in time over the time steps {&#8999; t } from <ref type="bibr">[78]</ref>, and apply the exponential integrator <ref type="bibr">[83]</ref> to the drift term, resulting in the following update rule:</p><p>Based on the definition</p><p>This is exactly the update rule of DDS-DDPM with F &#10003; ( &#8226; ; t) denoting the noise estimate b &#9999; t (&#8226;) of DDPM. One can also verify that the initialization in DDS-DDPM is equivalent to ours by checking that &#8629;t</p><p>where &#8984; &#8984; &#8674; is the assumed noise level in <ref type="bibr">(6)</ref>. As one can see, DDS-DDPM is equivalent to our prior step by choosing the VP-preconditioning, VE reverse diffusion, and a particular integration scheme. In fact, our prior step allows for more general definitions of diffusion processes and includes both the ODE and SDE solvers.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C.3 Others</head><p>Annealing schedule for &#8674; In this work, we considered an exponential annealing schedule for the coupling strength &#8674;. We note that the schedule can be more general than exponential decay and we leave the investigation of other decay schedules in future work. Specifically, we specified a starting level &#8674; 0 , decay rate &#8629;, and a minimum value &#8674; min . Then we set <ref type="table">4</ref> summarizes the annealing hyperparameters that we used for all the inverse problems considered in this work. Initialization For the linear inverse problems, we used the zero initialization, i.e. x (0) = 0 2 R n . For the CDP and Fourier phase retrieval problems, we used the Gaussian initialization, i.e.</p><p>x (0) &#8672; N (0, I). For black hole imaging experiments, we used the uniform random initialization between 0 and 1 for each pixel. We found that PnP-DM, as an MCMC algorithm, is insensitive to the initialization. Except for the black hole experiments where we found the negative values would cause problems, any reasonable initialization would lead to comparable results. This observation corroborates our convergence result, which holds for any initialization &#9003; X 0 .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Number of iterations</head><p>We ran 500 iterations for the synthetic prior experiments, 200 iterations for the black hole experiments, and 100 for all other experiments. The numbers were chosen so that the algorithm was fully converged.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Sample collection</head><p>To collect multiple samples using our method, there are two main approaches:</p><p>(1) Run a single Markov chain and collect samples after a certain number of iterations, known as the burn-in period, to ensure the chain has converged. (2) Run several independent Markov chains and collect one sample from each chain after convergence. The first approach is more efficient, but the collected samples are not entirely independent and thus may have a small effective sample size. The second approach ensures all samples are fully independent but takes longer to run. In our experiments, we used the first approach for all tests involving 256 &#8677; 256 images to enhance efficiency. Specifically, we set the burn-in period to 40 iterations and collected 20 random samples from the remaining 60 iterations (one every 3 iterations). For other experiments, due to the smaller image sizes, we employed the second approach to obtain fully independent samples.</p><p>Compute All experiments were performed on NVIDIA RTX A6000 and A100 GPUs. The runtime per image depends on several factors, such as the choice of GPU, the total number of iterations and the coupling strength schedule {&#8674; k } (as it takes more network evaluations for larger &#8674; for our EDM-based denoiser). In our actual experiments, we ran each image for at least 100 iterations to ensure convergence, which took around 1 minute for a single Markov chain. Here we present a comparison of computational efficiency with the major baselines on a linear super-resolution and a nonlinear coded diffraction patterns problem in Table <ref type="table">5</ref>. The clock time in seconds and number of function evaluations (NFE) are calculated for each method to measure its computational efficiency. All hyperparameters are kept the same for each method as those used for Table <ref type="table">1</ref> and Table <ref type="table">2</ref> in the manuscript. As expected, DM-based approaches (DDRM &amp; DPS) generally yield shorter runtimes due to their lower NFEs. Nevertheless, our PnP-DM method significantly outperforms these methods while achieving comparable runtimes with DPS (&#8673; 1.5&#8677;), despite its larger NFEs (&#8673; 3&#8677;). This is primarily due to two factors: 1) PnP-DM avoids running the full diffusion process by adapting the starting noise level to &#8674; k at each iteration, and 2) the runtime is further reduced by using an annealing schedule of &#8674; k . We also note that the runtime reported for DDRM and DPS below is the time it takes to generate one sample. For the linear inverse problem experiments, where we generated 20 samples for each sampling method, PnP-DM was faster than DPS because we took 20 samples that PnP-DM generated along one Markov chain of batch size 1 (hence same runtime as below, around 50 seconds) but DPS requires running a diffusion process with batch size 20, which was significantly slower (around 330 seconds). </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D Implementation details of baseline methods</head><p>PnP-ADMM We set the ADMM penalty parameter as 2 and ran for 500 iterations to ensure convergence. We used the pretrained DnCNN denoiser <ref type="bibr">[81]</ref> available at the deepinv library<ref type="foot">foot_6</ref> .</p><p>DPIR We followed the annealing schedule in <ref type="bibr">[80]</ref> and ran for 40 iterations. We used the pretrained DRUNet denoiser <ref type="bibr">[82]</ref> available at the deepinv library.</p><p>DDRM We ran all the experiments with the default parameters: &#8984; B = 1.0, &#8984; = 0.85, and 20 steps for the DDIM sampler <ref type="bibr">[59]</ref>. For the Gaussian deblur problem, we used the SVD-based forward model implementation based on separable 1D convolution. We ran it with an additional batch dimension to collect multiple samples.</p><p>DPS We followed the original paper to use a 1000-step DDPM sampler backbone. For the linear inverse problems, we used the step size given in <ref type="bibr">[17]</ref>, i.e. &#8675; 0 = 1. For the nonlinear inverse problems, we optimized the step size &#8675; 0 by performing a grid search, which led to &#8675; 0 = 3 for CDP and Fourier phase retrieval and &#8675; 0 = 0.001 for black hole imaging. For the synthetic prior experiments, we also optimized the step size and used &#8675; 0 = 0.1 for compressed sensing and &#8675; 0 = 1 for Gaussian deblur. We ran it with an additional batch dimension to collect multiple samples.</p><p>PnP-SGS We performed a grid search for the coupling parameter &#8674; and found that &#8674; = 0.1 worked the best for all problems. We followed the practice in <ref type="bibr">[19]</ref> to have a burn-in period of 20 iterations during which the reverse diffusion is early-stopped. We ran the algorithm for 100 iterations in total and collect 20 samples in the 80 iterations after the burn-in period.</p><p>DPnP We implemented the DDS-DDPM sampler for the prior step. For fair comparison, we used the same annealing schedule for the coupling strength (denoted as &#8984; k in <ref type="bibr">[78]</ref>) as PnP-DM. We ran it for the same number of iterations for each inverse problem with the same way of collecting samples as our method.</p><p>HIO We set = 0.7 and applied both the non-negative constraint and the finite support constraint.</p><p>To mitigate the instability of reconstruction depending on initialization, we first repeatedly ran the algorithm with 100 different random initializations and chose the reconstruction that has the best measurement fit. Then we ran another 10,000 iterations with the chosen reconstruction to ensure convergence and report the metrics on the final reconstruction.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E Additional related works</head><p>Image reconstruction with plug-and-play priors Plug-and-Play priors (PnP) <ref type="bibr">[69]</ref> is an algorithmic framework that leverages off-the-shelf denoisers for solving imaging inverse problems.</p><p>Recognizing the equivalence between the proximal operator and finding the maximum a posteriori (MAP) solution to a denoising problem, PnP substitutes the proximal update in many optimization algorithms, such as ADMM <ref type="bibr">[13,</ref><ref type="bibr">56]</ref> and HQS <ref type="bibr">[82,</ref><ref type="bibr">80]</ref>, with generic denoising algorithms, particularly those based on deep learning <ref type="bibr">[49,</ref><ref type="bibr">82,</ref><ref type="bibr">80]</ref>. The PnP framework enjoys both convergence guarantees <ref type="bibr">[65,</ref><ref type="bibr">56]</ref> and strong empirical performance <ref type="bibr">[76,</ref><ref type="bibr">1]</ref> due to its compatibility with stateof-the-art learning-based denoising priors. Recent works have also proposed learning-based PnP frameworks that have direction interpretations from an optimization perspective <ref type="bibr">[20,</ref><ref type="bibr">26]</ref>. See <ref type="bibr">[36]</ref> for a comprehensive review on the theory and practice of PnP.</p><p>Posterior sampling with MCMC and learning priors Learning-based priors have also been considered in the Bayesian context <ref type="bibr">[35]</ref>, where one seeks to sample the posterior distribution defined under a learned prior. An important technique is denoising score matching (DSM) <ref type="bibr">[70]</ref>, which connects image denoising with learning the score function of an image distribution. Based on DSM, prior works have incorporated deep denoising priors into MCMC formulations, particularly focusing the Langevin Monte Carlo and its variants as they involve the score function of the target distribution <ref type="bibr">[40,</ref><ref type="bibr">34,</ref><ref type="bibr">41,</ref><ref type="bibr">66,</ref><ref type="bibr">54]</ref>. Recently, methods based on SGS have also gained increasing popularity <ref type="bibr">[53,</ref><ref type="bibr">19,</ref><ref type="bibr">6,</ref><ref type="bibr">27,</ref><ref type="bibr">78]</ref>. Unlike PnP methods based on optimization, these sampling methods possess the ability to generate diverse solutions and quantify the uncertainty of solution space.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Solving inverse problems with diffusion models</head><p>The remarkable performance of diffusion models <ref type="bibr">[33,</ref><ref type="bibr">63]</ref> on modelling image distributions makes them desirable choices as images priors for solving inverse problems. One popular approach is to leverage a pretrained unconditional model and modify the reverse diffusion process during inference to enforce data consistency <ref type="bibr">[73,</ref><ref type="bibr">18,</ref><ref type="bibr">17,</ref><ref type="bibr">60,</ref><ref type="bibr">39,</ref><ref type="bibr">61,</ref><ref type="bibr">62,</ref><ref type="bibr">8,</ref><ref type="bibr">44,</ref><ref type="bibr">84,</ref><ref type="bibr">58]</ref>. Despite of the promising performance of these methods, they usually involve approximations and empirically driven designs that are hard to justify theoretically and may lead to inconsistent sample distributions. Another line of work learns task-specific models, which achieves higher accuracy at the cost of re-training models for new problems <ref type="bibr">[4,</ref><ref type="bibr">57,</ref><ref type="bibr">44]</ref>. Methods based on Particle Filtering and Sequential Monte Carlo are also considered to ensure asymptotic consistency <ref type="bibr">[11,</ref><ref type="bibr">23,</ref><ref type="bibr">74]</ref>. Diffusion models have also been considered as a prior for variational inference <ref type="bibr">[28,</ref><ref type="bibr">47]</ref> and pluy-and-play image reconstruction <ref type="bibr">[32,</ref><ref type="bibr">48]</ref>. In addition to the compressed sensing experiment presented in the main paper, we show another comparison on a Gaussian deblurring problem in Figure <ref type="figure">10</ref>. Here, the linear forward model A 2 R m&#8677;n is a 2D convolution matrix with a Gaussian blur kernel of size 7&#8677;7 and standard deviation 3.0. Similar to the compressed sensing experiment, both methods yield accurate reconstructions of the mean. However, in terms of the posterior standard deviation, DPS exhibits a notable difference from the ground truth, whereas our method achieves a significantly more accurate result.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>F Additional experimental results</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>F.2 Linear inverse problems</head><p>We provide visual comparisons for the Gaussian deblur and super-resolution problems in Figure <ref type="figure">11</ref>.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>F.3 Nonlinear inverse problems</head><p>We provide visual comparisons for the CDP reconstruction problem in Figure <ref type="figure">15</ref>, where we visualize one sample for each method. As shown by the red zoom-in boxes, PnP-DM can recover fine-grained features such as the hair threads that are missing in the reconstructions by the baselines. Additional reconstruction examples are given in Figure <ref type="figure">16</ref> for the CDP reconstruction problem.</p><p>We then show some additional reconstruction examples with comparison to DPS in Figure <ref type="figure">17</ref>. For each method, we visualize the best reconstruction out of four runs for each test image according to the PSNR value. While DPS failed on around half of the test images, our proposed method provided high-fidelity reconstructions on almost all test images. This comparison highlights the better robustness of our method over DPS.   Coded diffraction patterns DPS PnP-SGS DPnP Ground truth Ours: PnP-DM (EDM) Ours: PnP-DM (iDDPM) well with data mismatch values around 2. These samples exhibit a ring diameter consistent with the official EHT reconstruction in Figure <ref type="figure">1</ref> and share a common bright spot location at the lower half of the ring.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>F.5 Further analysis</head><p>Sensitivity analysis on the annealing schedule {&#8674; k } In Figure <ref type="figure">20</ref>, we present a sensitivity analysis on the annealing schedule {&#8674; k }. In particular, we show the PSNR curves of x k with different exponential decay rates &#8629; (left) and minimum coupling levels &#8674; min (right) for one linear (super-resolution) and one nonlinear (coded diffraction patterns) problem. We have the following conclusions based on the results. First, different decay rates lead to different rates of convergence, which corroborates with our theoretical insights that &#8674; plays the same role as the step size. The final level of PSNR is not sensitive to different decay rates, as all curves converge to the same level. Second, as &#8674; min decreases, the final PSNR becomes higher. This is as expected because the stationary distribution of the x k , &#8673; X should converge to the true target posterior, p(x|y), as &#8674; decreases.  coupling strength is achieved. Despite being run for 100 iterations in total, our method generates good images in around 40 iterations, which is around 30 seconds and 1600 NFEs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Convergence curves with intermediate visual examples In</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>G Licenses</head><p>We list the licenses of all the assets we used in this paper:    2.05 1.82 1.79 2.02 1.96 1.92 2.08 1.98 2.15 1.90 Indices used in teaser: 5, 11, 32, 50, 59, 88 Indices used here: 9, 14, 25, 29, 52, 54, 64, 74, 86, 99 Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? Answer: [Yes] Justification: We have included the code for reproducing the main experimental results of our work in the supplemental material.</p><p>Guidelines:</p><p>&#8226; The answer NA means that paper does not include experiments requiring code.</p><p>&#8226; Please see the NeurIPS code and data submission guidelines (<ref type="url">https://nips.cc/  public/guides/CodeSubmissionPolicy</ref>) for more details. &#8226; While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer.</p><p>Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). &#8226; The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (<ref type="url">https:  //nips.cc/public/guides/CodeSubmissionPolicy</ref>) for more details. &#8226; The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. &#8226; The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. &#8226; At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable).</p><p>&#8226; Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.">Experimental Setting/Details</head><p>Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results?</p><p>Answer: [Yes]</p><p>Justification: We have provided all the training and test details in the appendix.</p><p>Guidelines:</p><p>&#8226; The answer NA means that the paper does not include experiments.</p><p>&#8226; The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. &#8226; The full details can be provided either with the code, in appendix, or as supplemental material.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.">Experiment Statistical Significance</head><p>Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?</p><p>Answer: <ref type="bibr">[Yes]</ref> Justification: Due to the limited space and constraints of time and computational resources, we were unable to include error bars for our experiments over multiple runs. Alternatively, we evaluated our method and baselines based on multiple samples and various metrics. We conducted a uncertainty quantification analysis where we calculated the per-pixel statistics and confidence intervals. We also extensively included visual examples to better demonstrate the performance of the methods we considered in this paper. All of these efforts aimed to better reflect the significance of our improvement over existing methods.</p><p>Guidelines:</p><p>&#8226; The answer NA means that the paper does not include experiments.</p><p>&#8226; The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. &#8226; The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). &#8226; The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) &#8226; The assumptions made should be given (e.g., Normally distributed errors). &#8226; It should be clear whether the error bar is the standard deviation or the standard error of the mean.</p><p>&#8226; It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified. &#8226; For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). &#8226; If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. 8. Experiments Compute Resources Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? Answer: [Yes] Justification: We have provided details on our compute resources in the appendix. Guidelines: &#8226; The answer NA means that the paper does not include experiments. &#8226; The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. &#8226; The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. &#8226; The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). 9. Code Of Ethics Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics <ref type="url">https://neurips.cc/public/EthicsGuidelines</ref>? Answer: [Yes] Justification: We confirm that our research conform with the NeurIPS Code of Ethics. Guidelines: &#8226; The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics.</p><p>&#8226; If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. &#8226; The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). 10. Broader Impacts Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? Answer: [Yes] Justification: We have added a "Broarder Impacts" section in the main manuscript. Guidelines:</p><p>&#8226; The answer NA means that there is no societal impact of the work performed.</p><p>&#8226; If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. &#8226; Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. &#8226; The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. &#8226; The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. &#8226; If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="11.">Safeguards</head><p>Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)?</p><p>Answer: [NA] Justification: Our work does not involve models that have a high risk for misuse.</p><p>Guidelines:</p><p>&#8226; The answer NA means that the paper poses no such risks.</p><p>&#8226; Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. &#8226; Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. &#8226; We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort.</p><p>12. Licenses for existing assets Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?</p><p>Answer: [Yes]</p><p>Justification: We have properly credited the owners of all the assets used in the paper. Their licenses are listed in the footnotes and Appendix G.</p><p>Guidelines:</p><p>&#8226; The answer NA means that the paper does not use existing assets.</p><p>&#8226; The authors should cite the original paper that produced the code package or dataset.</p><p>&#8226; The authors should state which version of the asset is used and, if possible, include a URL. &#8226; The name of the license (e.g., CC-BY 4.0) should be included for each asset.</p><p>&#8226; For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. &#8226; If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. &#8226; For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. &#8226; If this information is not available online, the authors are encouraged to reach out to the asset's creators.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="13.">New Assets</head><p>Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?</p><p>Answer: [Yes]</p><p>Justification: We have documented the code we provide in the supplement.</p><p>Guidelines:</p><p>&#8226; The answer NA means that the paper does not release new assets.</p><p>&#8226; Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. &#8226; The paper should discuss whether and how consent was obtained from people whose asset is used. &#8226; At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="14.">Crowdsourcing and Research with Human Subjects</head><p>Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)?</p><p>Answer: <ref type="bibr">[NA]</ref> Justification: Our research does not involve crowdsourcing.</p><p>Guidelines:</p><p>&#8226; The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. &#8226; Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. &#8226; According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="15.">Institutional Review Board (IRB) Approvals or Equivalent for Research with Human Subjects</head><p>Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained?</p><p>Answer: [NA]</p><p>Justification: Our research does not involve human subjects.</p><p>Guidelines:</p><p>&#8226; The answer NA means that the paper does not involve crowdsourcing nor research with human subjects.</p><p>&#8226; Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. &#8226; We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. &#8226; For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>https://eventhorizontelescope.org/blog/public-data-release-event-horizon-telescope-2017-observations</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1"><p>https://github.com/LeviBorodenko/motionblur (license unknown)</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_2"><p>https://github.com/bahjat-kawar/ddrm (MIT license)</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_3"><p>https://github.com/achael/eht-imaging (GPL-3.0 license)</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_4"><p>https://github.com/NVlabs/edm/tree/main (Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public license)</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="6" xml:id="foot_5"><p>https://github.com/jychoi118/P2-weighting (MIT license)</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="7" xml:id="foot_6"><p>https://github.com/deepinv/deepinv (BSD-3-Clause license)</p></note>
		</body>
		</text>
</TEI>
