Posterior Sampling by Combining Diffusion Models with Annealed Langevin Dynamics

Zhiyang Xun, Shivam Gupta, Eric Price

Introduction

Diffusion models are currently the leading approach to generative modeling of images. Diffusion models are based on learning the “smoothed scores” sσ2(x)s_{\sigma^{2}}(x) of the modeled distribution p(x)p(x). Such scores can be approximated from samples of p(x)p(x) by optimizing the score matching objective ; and given good L2L^{2}-approximations to the scores, p(x)p(x) can be efficiently sampled using an SDE or an ODE .

Much of the promise of generative modeling lies in the prospect of applying the modeled p(x)p(x) as a prior: combining it with some other information yy to perform a search over the manifold of plausible images. Many applications, including MRI reconstruction, deblurring, and inpainting, can be formulated as linear measurements

Researchers have developed a number of heuristics to approximate posterior sampling using the smoothed scores, including DPS , particle filtering methods , DiffPIR , and second-order approximations . Unfortunately, unlike for unconditional sampling, these methods do not converge efficiently and robustly to the posterior distribution. In fact, a lower bound shows that no algorithm exists for efficient and robust posterior sampling in general . But the lower bound uses an adversarial, bizarre distribution p(x)p(x) based on one-way functions; actual image manifolds are likely much better behaved. Can we find an algorithm for provably efficient, robust posterior sampling for relatively nice distributions pp? That is the goal of this paper: we describe conditions on pp under which efficient, robust posterior sampling is possible.

A close relative to diffusion model sampling is Langevin dynamics, which is a different method for sampling that uses an SDE involving the unsmoothed score s0s_{0}. Unlike diffusion, Langevin dynamics is in general slow and not robust to errors in approximating the score. To be efficient, Langevin dynamics needs stronger conditions, like that p(x)p(x) is log-concave and that the score estimation error satisfies an MGF bound (meaning that large errors are exponentially unlikely).

However, Langevin dynamics adapts very well to posterior sampling: it works for posterior sampling under exactly the same conditions as it does for unconditional sampling. The difference from diffusion models is that the unsmoothed conditional score s0(x∣y)s_{0}(x\mid y) can be computed from the unconditional score s0(x)s_{0}(x) and the explicit measurement model p(y∣x)p(y\mid x), while the smoothed conditional score (which diffusion needs) cannot be easily computed.

So the current state is: diffusion models are efficient and robust for unconditional sampling, but essentially always inaccurate or inefficient for posterior sampling. No algorithm for posterior sampling is efficient and robust in general. Langevin dynamics is efficient for log-concave distributions, but still not robust. Can we make a robust algorithm for this case?

Can we do posterior sampling with log-concave p(x)p(x) and LpL^{p}-accurate scores?

Our first result answers this in the affirmative. Algorithm˜1 uses a diffusion model for initialization, followed by an annealed version of Langevin dynamics, to do posterior sampling for log-concave p(x)p(x) with just L4L^{4}-accurate scores. Annealing is necessary here; see Appendix˜F for why standard Langevin dynamics would not suffice in this setting.

The score estimates s^σ2(x)\widehat{s}_{\sigma^{2}}(x) of the smoothed distributions pσ2(x)=p(x)∗N(0,σ2Id)p_{\sigma^{2}}(x)=p(x)*\mathcal{N}(0,\sigma^{2}I_{d}) have finite L4L^{4} error, i.e.,

For precise bounds on the polynomials, see Theorem˜E.6. To understand the parameters, ∥A∥ηα\frac{\|A\|}{\eta\sqrt{\alpha}} should be viewed as the signal-to-noise ratio of the measurement.

Global log-concavity, as required by Theorem 1.1, is simple to state but a fairly strong condition. In fact, Algorithm 1 only needs a local log-concavity condition.

As motivation, consider MRI reconstruction. Given the MRI measurement yy of xx, we would like to get as accurate an estimate x^\widehat{x} of xx as possible. We expect the image distribution p(x)p(x) to concentrate around a low-dimensional manifold. We also know that existing compressed sensing methods (e.g., the LASSO ) can give a fairly accurate reconstruction x0x_{0}; not as accurate as we are hoping to achieve with the full power of our diffusion model for p(x)p(x), but still pretty good. Then conditioned on x0x_{0}, we know basically where xx lies on the manifold; if the manifold is well behaved, we only really need to do posterior sampling on a single branch of the manifold. The posterior distribution on this branch can be log-concave even when the overall p(x)p(x) is not.

In the theorem below, we suppose we are given a Gaussian measurement x0=x+N(0,σ2Id)x_{0}=x+\mathcal{N}(0,\sigma^{2}I_{d}) for some σ\sigma, and that the distribution pp is nearly log-concave in a ball polynomially larger than σ\sigma. We can then converge to p(x∣x0,y)p(x\mid x_{0},y).

Then, there exist K1,K2=poly⁡(d,m,∥A∥ση,1ε)K_{1},K_{2}=\operatorname*{poly}(d,m,\frac{\|A\|\sigma}{\eta},\frac{1}{\varepsilon}) and K3=poly⁡(d,m,∥A∥ση,1ε,Lσ2)K_{3}=\operatorname*{poly}(d,m,\frac{\|A\|\sigma}{\eta},\frac{1}{\varepsilon},{L}\sigma^{2}) such that: Given a Gaussian measurement x0=x+N(0,σ2Id)x_{0}=x+\mathcal{N}(0,\sigma^{2}I_{d}) of x∼px\sim p with σ≤R/(K1+2τ)\sigma\leq R/(K_{1}+2\tau). If εscore≤1K2σ\varepsilon_{\text{score}}\leq\frac{1}{K_{2}\sigma}, then there exists an algorithm that takes K3K_{3} iterations to sample from a distribution p^(x∣x0,y)\widehat{p}(x\mid x_{0},y) such that

If pp is globally log-concave, we can set σ=∞\sigma=\infty so x0x_{0} is independent of xx and recover Theorem 1.1; but if we have local information then this just needs local log-concavity. For precise bounds and a detailed discussion of the algorithm, see Section˜E.2.

The largest eigenvalue of ∇2log⁡p(x)\nabla^{2}\log p(x) quantifies the extent to which the distribution departs from log-concavity at a given point. In Figure 1, we show an instance of a locally nearly log-concave distribution: xx is uniformly on the unit circle plus N(0,w2I2)\mathcal{N}(0,w^{2}I_{2}). This distribution is very far from globally log-concave, but it is nearly log-concave within a ww-width band of the unit circle. See Section˜E.4 for details.

Compressed Sensing.

In compressed sensing, one would like to estimate xx as accurately as possible from yy. There are many algorithms under many different structural assumptions on xx, most notably the LASSO if xx is known to be approximately sparse . The LASSO does not use much information about the structure of p(x)p(x), and one can hope for significant improvements when p(x)p(x) is known. Posterior sampling is known to be near-optimal for compressed sensing: if any algorithm achieves rr error with probability 1−δ1-\delta, then posterior sampling achieves at most 2r2r error with probability 1−2δ1-2\delta. But, as we discuss above, posterior sampling cannot be efficiently computed in general.

We can use Theorem 1.2 to construct a competitive compressed sensing algorithm under a “local” log-concavity condition on pp. Suppose we have a naive compressed sensing algorithm (e.g., the LASSO) that recovers the true xx to within RR error; and pp is usually log-concave within an R⋅poly⁡R\cdot\operatorname*{poly} ball; then if any exponential time algorithm can get rr error from yy, our algorithm gets 2r2r error in polynomial time.

Consider attempting to accurately reconstruct xx from y=Ax+ξy=Ax+\xi. Suppose that:

Information theoretically (but possibly requiring exponential time or using exact knowledge of p(x)p(x)), it is possible to recover x^\widehat{x} from yy satisfying ∥x^−x∥≤r\left\lVert\widehat{x}-x\right\rVert\leq r with probability 1−δ1-\delta over x∼px\sim p and yy.

We have access to a “naive” algorithm that recovers x0x_{0} from yy satisfying ∥x0−x∥≤R\left\lVert x_{0}-x\right\rVert\leq R with probability 1−δ1-\delta over x∼px\sim p and yy.

For R′=R⋅poly⁡(d,m,∥A∥Rη,1δ)R^{\prime}=R\cdot\operatorname*{poly}(d,m,\frac{\left\lVert A\right\rVert R}{\eta},\frac{1}{\delta}),

Then we give an algorithm that recovers x^\widehat{x} satisfying ∥x^−x∥≤2r\left\lVert\widehat{x}-x\right\rVert\leq 2r with probability 1−O(δ)1-O(\delta), in poly⁡(d,m,∥A∥Rη,1δ)\operatorname*{poly}(d,m,\frac{\left\lVert A\right\rVert R}{\eta},\frac{1}{\delta}) time, under Assumption 1 with εscore<1poly⁡(d,m,∥A∥Rη,1δ,LR2)R\varepsilon_{\text{score}}<\frac{1}{\operatorname*{poly}(d,m,\frac{\left\lVert A\right\rVert R}{\eta},\frac{1}{\delta},LR^{2})R}.

That is, we can go from a decent warm start to a near-optimal reconstruction, so long as the distribution is locally log-concave, with radius of locality depending on how accurate our warm start is. To our knowledge this is the first known guarantee of this kind. Per the lower bound , such a guarantee would be impossible without any warm start or other assumption.

Figure 2 illustrates the sampling process of Corollary˜1.3. The initial estimate x0x_{0} may lie well outside the bulk of p(x)p(x); with just an L4L^{4} error bound, the unsmoothed score at x0x_{0} could be extremely bad. We add a bit of spherical Gaussian noise to x0x_{0}, then treat this as a spherical Gaussian measurement of xx, i.e., x+N(0,RI)x+\mathcal{N}(0,RI); for spherical Gaussian measurements, the posterior p(x∣x0)p(x\mid x_{0}) can be sampled robustly and efficiently using the diffusion SDE. We take such a sample x1x_{1}, which now won’t be too far outside the distribution of p(x)p(x), then use x1x_{1} as initialization for annealed Langevin dynamics to sample from p(x∣y)p(x\mid y). The key part of our paper is that this process will never evaluate a score with respect to a distribution far from the distribution it was trained on, so the process is robust to error in the score estimates.

Notation and Background

There are several ways to sample from pp using the scores. Langevin dynamics is a classical MCMC method that considers the following overdamped Langevin Stochastic Differential Equation (SDE):

where BtB_{t} is standard Brownian motion. The stationary distribution of this SDE is pp, and discretized versions of it, such as the Unadjusted Langevin Algorithm (ULA), are known to converge rapidly to p(x)p(x) when p(x)p(x) is strongly log-concave . One can replace the true score s(x)s(x) with an approximation s^\widehat{s}, as long as it satisfies a (fairly strong) MGF condition

In particular, showed that Langevin dynamics needs an MGF bound for convergence, and an LpL^{p}-accurate score estimator for any 1≤p<∞1\leq p<\infty is insufficient.

An alternative approach, used by diffusion models, is to involve the smoothed scores. Starting from x0∼N(0,Id)x_{0}\sim\mathcal{N}(0,I_{d}), one can follow a different SDE :

for a particular smoothing schedule σt\sigma_{t}; the result xTx_{T} is exponentially close (in TT) to being drawn from p(x)p(x). This also has efficient discretizations , does not require log-concavity, and only requires an L2L^{2} guarantee such as

to accurately sample from p(x)p(x). One can also run a similar ODE with similar guarantees but faster .

Posterior sampling.

and want to sample from p(x∣y)p(x\mid y). The unsmoothed score sy(x):=∇xlog⁡p(x∣y)s_{y}(x):=\nabla_{x}\log p(x\mid y) is easily computed by Bayes’ rule:

Thus we can run the Langevin SDE (3) with the same properties: if p(x∣y)p(x\mid y) is strongly log-concave and the score estimate satisfies the MGF error bound (4), it will converge quickly and accurately.

Naturally, researchers have looked to diffusion processes for more general and robust posterior sampling methods. The main difficulty is that the smoothed score of the posterior involves ∇xlog⁡p(y∣xσt2)\nabla_{x}\log p(y\mid x_{\sigma_{t}^{2}}) rather than the tractable unsmoothed term ∇xlog⁡p(y∣x)\nabla_{x}\log p(y\mid x). Because the smoothed score is hard to evaluate exactly, a range of approximation techniques has been proposed . One prominent example is the DPS algorithm . Other methods include Monte Carlo/MCMC-inspired approximations , singular value decomposition and transport tilting , and schemes that combine corrector steps with standard diffusion updates . These approaches have shown strong empirical performance, and several provide guarantees under additional structure of the linear measurement; however, general guarantees for fast and robust posterior sampling remain limited beyond these restricted regimes.

Several recent studies use various annealed versions of the Langevin SDE as a key component in their diffusion-based posterior sampling method and achieve strong empirical results. Still, these methods provide no theoretical guidance on two key aspects: how to design the annealing schedule and why annealing improves robustness. None of these approaches come with correctness guarantees for the overall sampling procedure.

Comparison with Computational Lower Bounds.

One can efficiently obtain an LpL^{p}-accurate estimate of the smoothed score of pp, so diffusion models can sample from pp.

Any sub-exponential time algorithm that takes y=Ax+N(0,η2Im)y=Ax+\mathcal{N}(0,\eta^{2}I_{m}) as input and outputs a sample from the posterior p(x∣y)p(x\mid y) fails on most yy with high probability.

To illustrate why the extra observation helps, consider the following simplified version of the hardness instance:

Here, f:{0,1}d/2→{0,1}d/2f:\{0,1\}^{d/2}\to\{0,1\}^{d/2} is a one‑way permutation — it takes exponential time to compute f−1(x)f^{-1}(x) for most x∈{0,1}d/2x\in\{0,1\}^{d/2}. δ(⋅)\delta(\cdot) is the Dirac delta function, and we choose σ≪d−1/2\sigma\ll d^{-1/2}. Thus, p(x)p(x) is a mixture of 2d/22^{d/2} well‑separated Gaussians centered at the points (s,f(s))(s,f(s)).

and let rnd⁡(y)\operatorname{rnd}(y) denote the vertex of {0,1}d\{0,1\}^{d} closest to yy. Then the posterior p(x∣y)p(x\mid y) is approximately a Gaussian centered at (f−1(rnd⁡(y)),rnd⁡(y))(f^{-1}(\operatorname{rnd}(y)),\operatorname{rnd}(y)) with covariance σ2Id\sigma^{2}I_{d}. Generating a single sample would therefore reveal f−1(rnd⁡(y))f^{-1}(\operatorname{rnd}(y)), which requires exp⁡(Ω(d))\exp(\Omega(d)) time.

However, suppose we have a coarse estimate x0x_{0} satisfying ∥x0−x∥<1/3\|x_{0}-x\|<1/3 (e.g., obtained by compressed sensing). Then, x0x_{0} uniquely identifies the correct (s,f(s))(s,f(s)) with f(s)=rnd⁡(y)f(s)=\operatorname{rnd}(y), and the remaining task is just sampling from a Gaussian. Therefore, this hard instance becomes easy once we have localized the task and does not contradict our Theorem˜1.2.

We are able to handle the hard instance above well because it is exactly the type of distribution our approach is designed for: despite its complex global structure, it exhibits well-behaved local properties. This gives an important conceptual takeaway from our work: the hardness of posterior sampling may only lie in localizing xx within the exponentially large high-dimensional space.

Therefore, although posterior sampling is an intractable task in general, it is still possible to design a robust, provably correct posterior sampling algorithm — once we have localized the distribution. We view our work as a first step towards this goal.

Techniques

The algorithm we propose is clean and simple, but the proof is quite involved. Before we dive into the details, we provide a high-level overview of the intuitions behind the algorithm, concentrating on the illustrative case where the prior density p(x)p(x) is α\alpha-strongly log-concave. Under this assumption, every posterior density p(x∣y)p(x\mid y) is also α\alpha-strongly log-concave. Therefore, posterior sampling could, in principle, be performed using classical Langevin dynamics.

The challenge arises because we lack access to the exact posterior score sy(x)s_{y}(x). We only possess an estimator derived from an estimate s^(x)\widehat{s}(x) of the prior score s(x)s(x):

˜1 implies an L4L^{4} accuracy of s^y\widehat{s}_{y} on average, but how do we use this to support Langevin dynamics, which demands exponentially decaying error tails?

Why can diffusion models succeed with merely L2L^{2}-accurate scores, whereas Langevin dynamics require MGF accuracy?

Both diffusion models and Langevin dynamics utilize SDEs. The L2L^{2} error in the score-dependent drift term relates directly to the KL divergence between the true process (using s(x)s(x)) and the estimated process (using s^(x)\widehat{s}(x)). Consequently, bounding the L2L^{2} score error with respect to the current distribution p^t\widehat{p}_{t} controls the KL divergence.

Diffusion models leverage this property effectively. The forward process transforms data into a Gaussian, and the reverse generative process starts exactly from this Gaussian. At any time tt, suppose p^t\widehat{p}_{t} is close to pσt2p_{\sigma_{t}^{2}}, then

by the L2L^{2} accuracy assumption. This keeps the process close to the ideal process, ensuring overall small error.

Langevin dynamics, by contrast, often starts from an arbitrary, not predefined initial distribution pinitialp_{\text{initial}}. An LpL^{p} score accuracy guarantee with respect to ptargetp_{\text{target}} alone does not ensure accuracy for points xtx_{t} that are not on the distributional manifold of ptargetp_{\text{target}} (consider running Langevin starting from x0x_{0} in Figure˜2). Therefore, a stronger MGF error bound is needed to prevent this from happening.

2 Adapting Langevin Dynamics for Posterior Sampling

While we can only use Langevin-type dynamics for posterior sampling, we possess a source of effective starting points: we can sample x0∼p(x)x_{0}\sim p(x) efficiently using the unconditional diffusion model. Intuitively, x0x_{0} already lies on the data manifold. The score estimator s^y(x)\widehat{s}_{y}(x) initially satisfies:

As the dynamics evolves, the distribution p(xt)p(x_{t}) transitions from p(x)p(x) towards p(x∣y)p(x\mid y). If xtx_{t} converges to p(x∣y)p(x\mid y), we again expect reasonable accuracy on average:

Hence the estimator is accurate at the start and at convergence. The open question concerns the intermediate segment of the trajectory: does xtx_{t} wander into regions where the prior score s^(x)\widehat{s}(x) is unreliable? Ideally, the time-marginal of xtx_{t}, averaged over yy, remains close to p(x)p(x) throughout.

3 Annealing via Mixing Steps

In fact, even though x0x_{0} and x∞x_{\infty} both have marginal p(x)p(x), so the score estimate s^(x)\widehat{s}(x) is accurate on average at those times, this is not true at intermediate times. In Figure˜3, we illustrate this with a simple Gaussian example: x0x_{0} and x∞x_{\infty} have distribution N(0,I)\mathcal{N}(0,I) while xtx_{t} has marginal N(0,cI)\mathcal{N}(0,cI) for a constant c<1c<1. An LpL^{p} error bound under x∼N(0,I)x\sim\mathcal{N}(0,I) does not give an L2L^{2} error bound under x∼N(0,cI)x\sim\mathcal{N}(0,cI), which means Langevin dynamics may not converge to the right distribution. A very strong accuracy guarantee like the MGF bound is needed here.

However, consider the case where the target posterior p(x∣y)p(x\mid y) is very close to the initial prior p(x)p(x), such as when the measurement noise η\eta is very large (low signal-to-noise ratio). Langevin dynamics between close distributions typically converges rapidly. This suggests a key insight: if the required convergence time TT is short, the process xtx_{t} might not deviate substantially from its initial distribution p(x0)p(x_{0}). In such short-time regimes, an L2L^{2} score error bound relative to p(x0)p(x_{0}) could potentially suffice to control the dynamics. While p(x)p(x) itself is already a good approximation for p(x∣y)p(x\mid y) when η\eta is very large, this motivates a general strategy.

Instead of a single, potentially long Langevin run from p(x)p(x) to p(x∣y)p(x\mid y), we introduce an annealing scheme using multiple mixing steps. Given the measurement parameters (A,η,y)(A,\eta,y), we construct a decreasing noise schedule η1>η2>⋯>ηN=η\eta_{1}>\eta_{2}>\dots>\eta_{N}=\eta. Correspondingly, we generate a sequence of auxiliary measurements y1,y2,…,yN=yy_{1},y_{2},\dots,y_{N}=y such that each yiy_{i} is distributed as Ax+N(0,ηi2Im)Ax+\mathcal{N}(0,\eta_{i}^{2}I_{m}) and yiy_{i} is appropriately coupled to yi+1y_{i+1} (specifically, yi∼N(yi+1,(ηi2−ηi+12)Im)y_{i}\sim\mathcal{N}(y_{i+1},(\eta_{i}^{2}-\eta_{i+1}^{2})I_{m}) conditional on yi+1y_{i+1}). This creates a sequence of intermediate posterior distributions p(x∣yi)p(x\mid y_{i}).

An admissible schedule (formally defined in Definition˜D.1) ensures that:

η1\eta_{1} is sufficiently large, making p(x∣y1)p(x\mid y_{1}) close to the prior p(x)p(x).

Consecutive ηi\eta_{i} and ηi+1\eta_{i+1} are sufficiently close, making p(x∣yi)p(x\mid y_{i}) close to p(x∣yi+1)p(x\mid y_{i+1}).

Start with a sample X0∼p(x)X_{0}\sim p(x). Since η1\eta_{1} is large, p(x)p(x) is close to p(x∣y1)p(x\mid y_{1}), so X0X_{0} serves as an approximate sample X1∼p^(x∣y1)X_{1}\sim\widehat{p}(x\mid y_{1}).

For i=1i=1 to N−1N-1: Run Langevin dynamics for a short time TiT_{i}, starting from the previous sample Xi∼p^(x∣yi)X_{i}\sim\widehat{p}(x\mid y_{i}), targeting the next posterior p(x∣yi+1)p(x\mid y_{i+1}) using the score s^yi+1(x)\widehat{s}_{y_{i+1}}(x). Let the result be Xi+1∼p^(x∣yi+1)X_{i+1}\sim\widehat{p}(x\mid y_{i+1}).

The final sample XN∼p^(x∣yN)X_{N}\sim\widehat{p}(x\mid y_{N}) approximates a draw from the target posterior p(x∣y)p(x\mid y).

The core idea behind this annealing scheme is to actively control the process distribution p(xt)p(x_{t}), ensuring it remains on the manifold of the prior p(x)p(x). By design, each mixing step i→i+1i\to i+1 connects two statistically close intermediate posteriors, p(x∣yi)p(x\mid y_{i}) and p(x∣yi+1)p(x\mid y_{i+1}). This closeness guarantees that a short Langevin run TiT_{i} can mix them, and this short duration prevents p(xt)p(x_{t}) from drifting significantly away from the step’s starting distribution p^(x∣yi)\widehat{p}(x\mid y_{i}), and we can then argue that

This contrasts fundamentally with a single long Langevin run, where xtx_{t} could venture far "off-manifold" into regions of poor score accuracy. By inserting frequent checkpoints that re-anchor the process, our annealing method substitutes such strong assumptions with structural control: the frequent “checkpoints” p(x∣yi)p(x\mid y_{i}) ensure the process is repeatedly localized to regions where the L4L^{4} accuracy suffices. While error is incurred in each step, maintaining proximity to the manifold keeps this error small. The overall approach hinges on demonstrating that these small, per-step errors accumulate controllably across all NN steps.

This strategy, however, requires rigorous analysis of three key technical challenges:

How to bound the required convergence time TiT_{i} for the transition from p(x∣yi)p(x\mid y_{i}) to p(x∣\penalty10000 yi+1)p(x\mid\penalty 10000\ y_{i+1})? In particular, what happens when pp only has local strong log-concavity?

How to bound the error incurred during a single mixing step of duration TiT_{i}, given the L4L^{4} score error assumption on the prior score estimate?

How to ensure the total error accumulated across all NN mixing steps remains small?

Addressing these questions forms the core of our proof.

In Appendix˜A, we show that for globally strongly log-concave distributions pp, Langevin dynamics converges rapidly from p(x∣yi)p(x\mid y_{i}) to p(x∣yi+1)p(x\mid y_{i+1}). We extend this convergence analysis to locally strongly log-concave distributions in Appendix˜B. In Appendix˜C, we provide bounds on the errors incurred by score errors and discretization in Langevin dynamics. In Appendix˜D, we show how to design the noise schedule to control the accumulated error of the full process. In Appendix˜E, we conclude the analysis for Algorithm˜1, and apply it to establish the main theorems.

Experiments

To validate our theoretical analysis and assess real-world performance, we study three inverse problems on FFHQ–256256 : inpainting, 4×4\times super-resolution, and Gaussian deblurring. Experiments use 1k validation images and the pre-trained diffusion model from . Forward operators are specified as in : inpainting masks 30%–70%30\%\text{–}70\% of pixels uniformly at random; super-resolution downsamples by a factor of 44; deblurring convolves the ground-truth with a Gaussian kernel of size 61×6161\times 61 (std. 3.03.0). We first obtain initial reconstructions x0x_{0} via Diffusion Posterior Sampling (DPS) , then refine them with our annealed Langevin sampler to draw samples close to p(x∣x0,y)p(x\mid x_{0},y). To control runtime, we sweep the step size while keeping the annealing schedule fixed.

For each step size, we report the per-image L2L^{2} distance to the ground truth and the FID of the resulting sample distribution (Figure 4). Across all three tasks, increasing the time devoted to annealed Langevin decreases L2L^{2} but increases FID; in the inpainting setting, when the step size is sufficiently small, our method surpasses DPS on both metrics. Qualitatively, our reconstructions better preserve ground-truth attributes compared to DPS (Figures 5 and 6). All experiments were run on a cluster with four NVIDIA A100 GPUs and required roughly two hours per task.

Acknowledgments

This work is supported by the NSF AI Institute for Foundations of Machine Learning (IFML). ZX is supported by NSF Grant CCF-2312573 and a Simons Investigator Award (#409864, David Zuckerman).

References

Appendix A Langevin Convergence Between Strongly Log-concave Distributions

consider two random variables yiy_{i} and yi+1y_{i+1} defined as follows. First, draw x∼px\sim p. Then, generate

This is the ideal (no discretization, no score estimation error) version of the process (2) that we actually run. Our goal is to establish the following lemma.

Suppose the prior distribution p(x)p(x) is α\alpha-strongly log-concave. Then, running the process (6) for time

In this section, our goal is to bound χ2(p(x∣yi) ∥ p(x∣yi+1)){\chi^{2}\left(p(x\mid y_{i})\,\|\,p(x\mid y_{i+1})\right)}. Since the posterior distributions can be expressed as

Let Z1=yi+1−AxZ_{1}=y_{i+1}-Ax, and let Z2=yi−AxZ_{2}=y_{i}-Ax. Then we have

where ff is the density function for N(0,(ηi2−ηi+12)Im)N(0,(\eta_{i}^{2}-\eta_{i+1}^{2})I_{m}). Therefore,

Applying Markov’s inequality gives the result. ∎

Now we bound p(yi+1)p(yi)\frac{p(y_{i+1})}{p(y_{i})}. To make the lemma more self-contained, we abstract this a little bit.

where p(Y1)p(Y_{1}) and p(Y2)p(Y_{2}) are the densities of Y1Y_{1} and Y2Y_{2}, respectively.

Write Y1−s=e1Y_{1}-s=e_{1}, and note that Y2−s=e1+Z2Y_{2}-s=e_{1}+Z_{2}. Then define

This gives that for any Y1Y_{1}, Y2Y_{2}, and tt,

To bound sup⁡∥e1∥≤tG(e1)\sup_{\|e_{1}\|\leq t}G(e_{1}), we expand ϕ\phi as the dd-dimensional Gaussian probability density function:

Using the quadratic expansion ∥e1+Z2∥2=∥e1∥2+2⟨e1,Z2⟩+∥Z2∥2\|e_{1}+Z_{2}\|^{2}=\|e_{1}\|^{2}+2\langle e_{1},Z_{2}\rangle+\|Z_{2}\|^{2}, we rewrite:

Since ∥e1∥≤t\|e_{1}\|\leq t and ⟨e1,Z2⟩≤∥e1∥∥Z2∥\langle e_{1},Z_{2}\rangle\leq\|e_{1}\|\|Z_{2}\|, we bound

Therefore, for any Y1,Y2Y_{1},Y_{2}, and tt, we have

Bounding expectation over Z2Z_{2}.

We can apply results on the Gaussian moment generating functions to bound this. Using Lemma˜A.10 by setting α=η222(η12+η22)\alpha=\frac{\eta_{2}^{2}}{2(\eta_{1}^{2}+\eta_{2}^{2})}, β=tη2η12+η22\beta=\frac{t\eta_{2}}{\eta_{1}^{2}+\eta_{2}^{2}}, and γ=η124(η12+η22)\gamma=\frac{\eta_{1}^{2}}{4(\eta_{1}^{2}+\eta_{2}^{2})}, we have

where p(Y1)p(Y_{1}) and p(Y2)p(Y_{2}) are the densities of Y1Y_{1} and Y2Y_{2}, respectively.

Let t=(d+2ln⁡(2λ))η1t=(\sqrt{d}+\sqrt{2\ln(2\lambda)})\eta_{1}. By applying Laurent-Massart bounds (Lemma˜A.11), we have

By applying Markov’s inequality, for a large enough constant C>0C>0, we have

Cleaning up the bound a little bit, this implies that for a large enough constant C>0C>0,

Combining this with the probability that ∥Z∥≤t\left\lVert Z\right\rVert\leq t, a union bound gives that

Now we can bound the χ2\chi^{2}-diversity.

There exists a constant C>0C>0 such that for any λ>1\lambda>1,

By Lemma˜A.5, there exists a constant C>0C>0 such that

A union bound over these two implies that with probability of 1−1/λ1-1/\lambda,

where C′C^{\prime} is a positive constant. This concludes the lemma. ∎

A.2 Convergence time of Langevin dynamics

We present the following result on the convergence of Langevin dynamics:

Let pp and qq be probability distributions such that qq is an α\alpha-strong log-concave distribution. Consider the Langevin dynamics initialized with pp as the starting distribution. Then, for any t≥0t\geq 0, we have

Let pp and qq be probability distributions such that qq is an α\alpha-strong log-concave distribution. Consider the Langevin dynamics initialized with pp as the starting distribution. By running the diffusion for time

Now we show that the posterior distribution is even more strongly log-concave than prior distribution.

Suppose that p(x)p(x) is α\alpha-strongly log-concave. Then, the posterior density

By Bayes’ rule, the posterior density can be written (up to normalization) as

Since pp is α\alpha-strongly log‑concave, its negative log–density satisfies

Moreover, the Gaussian likelihood term has

Hence φ\varphi is α\alpha-strongly convex, and the posterior density p(x∣Ax+N(ηi2Im)=yi)∝e−φ(x)p(x\mid Ax+N(\eta_{i}^{2}I_{m})=y_{i})\propto e^{-\varphi(x)} is α\alpha-strongly log‑concave. ∎

By Lemma˜A.9, p(x∣yi+1)p(x\mid y_{i+1}) is alphaalpha-strongly log-concave. This allows us to apply Lemma˜A.8. Therefore, to achieve ε\varepsilon TV error in convergence, we only need to run the process for

Taking in the result in Lemma˜A.6, we have with 1−1λ1-\frac{1}{\lambda} probability over yiy_{i} and yi+1y_{i+1}, we only need

A.3 Utility Lemmas.

For all r≥0r\geq 0 and any γ>0\gamma>0, it is easy to check that by AM-GM inequality,

Taking r=∥Z∥r=\|Z\| and exponentiating both sides, we obtain

Multiplying both sides by exp⁡(α∥Z∥2)\exp\Bigl(\alpha\|Z\|^{2}\Bigr) yields

For Z∼N(0,Id)Z\sim\mathcal{N}(0,I_{d}) , when α+γ<12\alpha+\gamma<\tfrac{1}{2} we have

Let v∼N(0,Im)v\sim\mathcal{N}(0,I_{m}). For any t>0t>0,

Appendix B Convergence Between Locally Well-Conditioned Distributions

In the last section, we considered the convergence time between two posterior distributions of a globally strongly log-concave distribution. In this section, we will relax the assumption of global strong log-concavity and consider the convergence time between two distributions that are locally “well-behaved”. We give the following formal definition:

For δ∈[0,1)\delta\in[0,1) and R,L~,α∈(0,+∞]R,\widetilde{L},\alpha\in(0,+\infty], we say that a distribution pp is (δ,r,R,L~,α)(\delta,r,R,\widetilde{L},\alpha) mode-centered locally well-conditioned if there exists θ\theta such that

Pr⁡x∼p[x∈B(θ,r)]≥1−δ\Pr_{x\sim p}\left[x\in B(\theta,r)\right]\geq 1-\delta.

For x,y∈B(θ,R)x,y\in B(\theta,R), we have that ∥s(x)−s(y)∥≤L~α∥x−y∥\|s(x)-s(y)\|\leq\widetilde{L}{\alpha}\left\lVert x-y\right\rVert.

For x,y∈B(θ,R)x,y\in B(\theta,R), we have that ⟨s(y)−s(x),x−y⟩≥α∥x−y∥2\langle s(y)-s(x),x-y\rangle\geq\alpha\left\lVert x-y\right\rVert^{2}.

Again, we consider the following process PP, which is identical to process (6) we considered in the last section:

Our goal is to prove the following lemma:

Suppose pp is a (δ,r,R,L~,α)(\delta,r,R,\widetilde{L},\alpha) mode-centered locally well-conditioned distribution. Let C>0C>0 be a large enough constant. We consider the process PP running for time

In this section, we will assume that pp is (δ,r,R,L~,α)(\delta,r,R,\widetilde{L},\alpha) mode-centered locally well-conditioned. Without loss of generality, we assume that the mode of pp is at 0, i.e., θ=0\theta=0.

We consider the process P′P^{\prime} defined as the process PP conditioned on xt∈B(0,R)x_{t}\in B(0,R) for t∈[0,T]t\in[0,T].

Our goal is to prove the following lemma:

We start by decomposing the total variation distance between PP and P′P^{\prime} as follows:

Recall that the process P′P^{\prime} is defined as the law of PP conditioned on the event

where Fc={∃ t∈[0,T]: ∥xt∥≥R}\mathcal{F}^{c}=\{\exists\,t\in[0,T]:\,\|x_{t}\|\geq R\}.

Let E:={x0∈B(0,r)}\mathcal{E}:=\{x_{0}\in B(0,r)\} denote the event that the initial condition is “good.” Then, by the law of total probability,

Taking the expectation with respect to yiy_{i} and yi+1y_{i+1}, we obtain

and by the law of total probability, we have

with a≥0a\geq 0. Then, for any time horizon T>0T>0 and δ∈(0,1)\delta\in(0,1),

Define r(t)=∥xt∥r(t)=\|x_{t}\|. Although the Euclidean norm is not smooth at the origin, an application of Itô’s formula yields that, for xt≠0x_{t}\neq 0, one has

where u(t)=xt/∥xt∥u(t)=x_{t}/\|x_{t}\|. Using the bound ∥f(xt)∥≤a\|f(x_{t})\|\leq a and the hypothesis ⟨g(xt),xt⟩≤0\langle g(x_{t}),x_{t}\rangle\leq 0, it follows by the Cauchy–Schwarz inequality that

Discarding the nonnegative Itô correction term d−1∥xt∥ dt\frac{d-1}{\|x_{t}\|}\,dt (which can only increase the process), we deduce that

Since ∥u(s)∥=1\|u(s)\|=1 for all ss, the process β(t)\beta(t) is a standard one-dimensional Brownian motion with quadratic variation ⟨β⟩t=t\langle\beta\rangle_{t}=t. By a standard comparison theorem for one-dimensional stochastic differential equations, it follows that r(t)≤y(t)r(t)\leq y(t) almost surely for all t≥0t\geq 0; hence,

A classical application of the reflection principle for one-dimensional Brownian motion shows that, for any ρ>0\rho>0,

To incorporate the dd-dimensional nature of the noise, one may use a union bound over the dd coordinate processes of BtB_{t}, which yields that

Combining the foregoing estimates, we deduce that

For any δ∈(0,1)\delta\in(0,1) and T>0T>0, it holds that

Since ∥x∥≤r\|x\|\leq r with probability 1−δ1-\delta. Thus, with probability at least 1−2δ1-2\delta, it follows that

Since the probability satisfying the condition is at least 1−2δ1-2\delta, we have

Putting Lemma˜B.4 and Lemma˜B.8 together, we directly obtain Lemma˜B.3.

B.2 Concentration of Strongly Log-Concave Distributions

Before moving futher, we first prove that a strongly log-concave distribution is highly concentrated.

is 1-Lipschitz (by the triangle inequality), it follows that

A standard calculation using the fact that the covariance matrix of XX satisfies Cov⁡(X)⪯1αI\operatorname{Cov}(X)\preceq\frac{1}{\alpha}I gives

Let μ\mu and θ\theta denote the mean and the mode of distribution pp, respectively, where pp is α\alpha-strongly log-concave and univariate. Then, ∣μ−θ∣≤1α\left|\mu-\theta\right|\leq\frac{1}{\sqrt{\alpha}}.

This immediately gives us the following corollary.

This also implies that every α\alpha-strongly log-concave distribution is mode-centered locally well-conditioned.

Let pp be an α\alpha-strongly log-concave distribution. Suppose the score function of pp is LL-Lipschitz. Then, for any 0<δ<10<\delta<1, we have that pp is (δ,2dα+2log⁡(1/δ)α,∞,L/α,α)(\delta,2\sqrt{\frac{d}{\alpha}}+\sqrt{\frac{2\log(1/\delta)}{\alpha}},\infty,L/\alpha,\alpha) mode-centered locally well-conditioned.

B.3 Convergence to Target Distribution

Since pp is not globally strongly log-concave, we need to extend the distribution pp to a globally strongly log-concave distribution. We will use the following lemma to extend the distribution.

For each fixed z∈B(0,R)z\in B(0,R) the mapping φz\varphi_{z} has Hessian −αId-\alpha I_{d}, hence is α\alpha–strongly concave on the whole space. Because of (7) we have

Let pp be a dd-dimensional (δ,r,R,L~,α)(\delta,r,R,\widetilde{L},\alpha) mode-centered locally well-conditioned probability distribution with 0<δ≤1/20<\delta\leq 1/2 and α>0\alpha>0. Assume

Since p~=p/Z\widetilde{p}=p/Z on BB, we have

Therefore, IB≤12⋅4δ=2δI_{B}\leq\frac{1}{2}\cdot 4\delta=2\delta.

Now, we can consider process P~\widetilde{P} defined as

Because s(x)=∇ ⁣log⁡p~(x)s(x)=\nabla\!\log\widetilde{p}(x) for every x∈B(0,R)x\in B(0,R), the drift coefficients of PP and P~\widetilde{P} coincide on the event E\mathcal{E}, and hence conditioning on E\mathcal{E} gives P′=P~′P^{\prime}=\widetilde{P}^{\prime}.

Taking expectation over (yi,yi+1)(y_{i},y_{i+1}) gives

We start by considering another process P~s\widetilde{P}^{s} defined as

Combining this with Lemma˜B.15, we have that

Furthermore, by Lemma˜A.1 and our constraint on TT, we have that

Appendix C Control of Score Approximation and Discretization Errors

In this section, we consider these processes running for time TT:

Process P^\widehat{P}: Let 0=t1<⋯<tM=T0=t_{1}<\dots<t_{M}=T be the MM discretization steps with step size tj+1−tj=ht_{j+1}-t_{j}=h. For t∈[tj,tj+1]t\in[t_{j},t_{j+1}],

Note that P^\widehat{P} is exactly the process (2) we run in Algorithm˜1, except that we start from x0∼p(x∣yi)x_{0}\sim p(x\mid y_{i}).

We have shown that the process PP will converge to the target distribution p(x∣yi+1)p(x\mid y_{i+1}). We will show that the process P^\widehat{P} will also converge to p(x∣yi+1)p(x\mid y_{i+1}) with a small error

Let pp be a (δ,r,R,L~,α)(\delta,r,R,\widetilde{L},\alpha) mode-centered locally well-conditioned. Suppose the followings hold for a large enough constant C>0C>0:

T>C(mγi+log⁡(λ/ε)α)T>C\left(\frac{m\gamma_{i}+\log(\lambda/\varepsilon)}{\alpha}\right).

∥A∥4(T2m+TR2)≤ηi4Cγi2\|A\|^{4}(T^{2}m+TR^{2})\leq\frac{\eta_{i}^{4}}{C\gamma_{i}^{2}}.

R≥r+T∥A∥ηi+12(∥A∥r+ηi+1(m+2ln⁡(1/δ)))+2dTln⁡(2d/δ)R\geq r+\frac{T\|A\|}{\eta_{i+1}^{2}}\Bigl(\|A\|r+\eta_{i+1}\bigl(\sqrt{m}+\sqrt{2\ln(1/\delta)}\bigr)\Bigr)+2\sqrt{dT\ln(2d/\delta)}.

Then running P^\widehat{P} for time TT guarantees that with probability at least 1−1/λ1-1/\lambda over yiy_{i} and yi+1y_{i+1}, we have:

In this section, we assume pp is (δ,r,R,L~,α)(\delta,r,R,\widetilde{L},\alpha) mode-centered locally well-conditioned. Without loss of generality, we assume that the mode of pp is at 0, i.e., θ=0\theta=0. Let L:=L~αL:=\widetilde{L}\alpha, i.e., the Lipschitz constant inside the ball B(0,R)B(0,R).

We will also consider the following stochastic processes:

Process Q′Q^{\prime} is the process QQ conditioned on xt∈B(0,R)x_{t}\in B(0,R) for t∈[0,T]t\in[0,T].

Process P′P^{\prime} is the process PP conditioned on xt∈B(0,R)x_{t}\in B(0,R) for t∈[0,T]t\in[0,T].

Suppose ∥A∥4(T2m+TR2)≤ηi4ηi+14C(ηi2−ηi+12)2\|A\|^{4}(T^{2}m+TR^{2})\leq\frac{\eta_{i}^{4}\eta_{i+1}^{4}}{C(\eta_{i}^{2}-\eta_{i+1}^{2})^{2}} for a large enough constant CC.

By Girsanov’s theorem, for any trajectory x0,…,tx_{0,\dots,t},

where the Girsanov exponent MtM_{t} is given by

Since Q′Q^{\prime} is supported in B(0,R)B(0,R),

Now, for ζy:=∫0t∥Δby(xu)∥2du\zeta_{y}:=\int_{0}^{t}\|\Delta b_{y}(x_{u})\|^{2}du, we have that Mt∼N(−14ζy,12ζy)M_{t}\sim\mathcal{N}\left(-\frac{1}{4}\zeta_{y},\frac{1}{2}\zeta_{y}\right)

Note that ∥ηi2yi+1−ηi+12yi∥2\|\eta_{i}^{2}y_{i+1}-\eta_{i+1}^{2}y_{i}\|^{2} has mean ∥(ηi2−ηi+12)Ax∥2\|(\eta_{i}^{2}-\eta_{i+1}^{2})Ax\|^{2} and is subgamma with variance m(ηi+12ηi4−ηi+14ηi2)2m\left(\eta_{i+1}^{2}\eta_{i}^{4}-\eta_{i+1}^{4}\eta_{i}^{2}\right)^{2} and scale ηi+12ηi4−ηi+14ηi2\eta_{i+1}^{2}\eta_{i}^{4}-\eta_{i+1}^{4}\eta_{i}^{2}. Thus, for t∥A∥2≤ηi+12ηi2C(ηi2−ηi+12)t\|A\|^{2}\leq\frac{\eta_{i+1}^{2}\eta_{i}^{2}}{C\left(\eta_{i}^{2}-\eta_{i+1}^{2}\right)} we have

The first term can be bounded using Lemma˜C.4. Now we focus on the second term. Note that

Since ss is LL-Lipschitz in B(0,R)B(0,R), and using Lemma˜C.3, we have

where the last line follows from Markov’s inequality. The gives the result. ∎

We note that by our definition of γi\gamma_{i},

Then, combining Corollary C.6 with Lemmas B.3 and C.2, we have

The conditions in Lemmas B.3 and C.2 are satisfied by our assumptions, noting that ηi+1<ηi\eta_{i+1}<\eta_{i} implies the bound on RR holds for both processes.

Applying Markov’s inequality and combining Lemma˜B.2 with the above, we conclude the proof. ∎

Appendix D Admissible Noise Schedule

Recall that we can define process P^i\widehat{P}_{i} that converges from p(x∣yi)p(x\mid y_{i}) to p(x∣yi+1)p(x\mid y_{i+1}): Let 0=t1<⋯<tM=T0=t_{1}<\dots<t_{M}=T be the MM discretization steps with step size tj+1−tj=ht_{j+1}-t_{j}=h. For t∈[tj,tj+1]t\in[t_{j},t_{j+1}],

We have already proven that we can converge the process from p(x∣yi)p(x\mid y_{i}) to p(x∣yi+1)p(x\mid y_{i+1}) with good probability, as long as some conditions are satisfied. Those conditions actually depend on the choice of the schedule of ηi\eta_{i} and TiT_{i}. In this section, we will specify the schedule of ηi\eta_{i} and TiT_{i}.

Now we specify the schedule of ηi\eta_{i} and TiT_{i}.

We say a noise schedule η1>⋯>ηN\eta_{1}>\dotsb>\eta_{N} together with running times T1,⋯ ,TN−1T_{1},\dotsb,T_{N-1} is admissible (for a set of parameters C,α,λ,A,d,ε,η,RC,\alpha,\lambda,A,d,\varepsilon,\eta,R) if:

η1≥λ∥A∥εdα\eta_{1}\geq\frac{\lambda\|A\|}{\varepsilon}\sqrt{\frac{d}{\alpha}};

For all γi=(ηi/ηi+1)2−1\gamma_{i}=(\eta_{i}/\eta_{i+1})^{2}-1, we have γi≤1\gamma_{i}\leq 1 and

The reason we need to satisfy the last inequality is to satisfy the conditions in Lemma˜C.1. We formalize this in the following lemma.

Let C>0C>0 be a sufficiently large constant and pp be a (δ,r,R,L~,α)(\delta,r,R,\widetilde{L},\alpha) mode-centered locally well-conditioned distribution. For any δ,ε∈(0,1)\delta,\varepsilon\in(0,1) and λ>1\lambda>1, suppose

For any admissible schedule (ηi)i∈[N](\eta_{i})_{i\in[N]} and (Ti)i∈[N−1](T_{i})_{i\in[N-1]}, running the process P^i\widehat{P}_{i} for time TiT_{i} guarantees that with probability at least 1−1/λ1-1/\lambda over yiy_{i} and yi+1y_{i+1}:

It is straightforward to verify that an admissible schedule satisfies the first two conditions of Lemma˜C.1.

For the third condition regarding RR, our assumption states:

Given that Ti≲m+log⁡(λ/ε)αT_{i}\lesssim\frac{m+\log(\lambda/\varepsilon)}{\alpha}, this choice of RR is sufficient to satisfy the third condition in Lemma C.1.

Therefore, applying Lemma C.1 at each step ii, we obtain that with probability at least 1−1/λ1-1/\lambda over yiy_{i} and yi+1y_{i+1}:

We also want to prove the following two lemmas:

Let pp be a dd-dimensional (δ,r,R,L~,α)(\delta,r,R,\widetilde{L},\alpha) mode-centered locally well-conditioned distribution. For any δ∈(0,1)\delta\in(0,1), suppose

Then, suppose η1≥λ∥A∥εdα\eta_{1}\geq\frac{\lambda\|A\|}{\varepsilon}\sqrt{\frac{d}{\alpha}}, with probability at least 1−1λ1-\frac{1}{\lambda} over y1y_{1},

There exists an admissible noise such that

where ρ=∥A∥ηα\rho=\frac{\|A\|}{\eta\sqrt{\alpha}}.

In this part, we prove Lemma˜D.3, showing that any admissible schedule has a large enough η1\eta_{1}, enabling us to use p(x)p(x) to approximate p(x∣y1)p(x\mid y_{1}).

We have the following standard information-theoretic result.

Let pp be a dd-dimensional (δ,r,R,L~,α)(\delta,r,R,\widetilde{L},\alpha) mode-centered locally well–conditioned probability distribution. Assume

Lemma B.14 provides an α\alpha-strongly log–concave density p~\widetilde{p} satisfying

Applying Lemma˜D.6 to p~\widetilde{p} gives

Integrating in y1y_{1} and using the elementary fact

together with the above calculaion, yields

Since all admissible noise schedules satisfy η1≥λ∥A∥εdα\eta_{1}\geq\frac{\lambda\|A\|}{\varepsilon}\sqrt{\frac{d}{\alpha}}. This implies

By Markov’s inequality, with probability at least 1−1λ1-\frac{1}{\lambda} over y1y_{1},

D.2 Bound for NN Mixing Steps

Let a,x0>0a,x_{0}>0, and let c>0c>0. Consider the number sequence

For every B>0B>0, let k(B)k(B) be the minimum integer ii such that xi≥Bx_{i}\geq B. Then

We show in two steps that the time to go from x0x_{0} to 1/a1/a, then to BB. Define

We first show that k1≲(ax0)−ck_{1}\lesssim(ax_{0})^{-c}. Consider the quantities

and let j∗j^{*} be the smallest jj such that xNj≥1/ax_{N_{j}}\geq 1/a. If instead x0≥1/ax_{0}\geq 1/a already, then k1=0k_{1}=0 and there is nothing to prove.

Assume x0<1/ax_{0}<1/a. For each j<j∗j<j^{*} define

By monotonicity of the sequence (xi)(x_{i}), it follows that Nj+1≤Nj+tjN_{j+1}\leq N_{j}+t_{j}. Summing over jj up to j∗−1j^{*}-1 gives

By definition, Nj∗N_{j^{*}} is the first index ii such that xi≥1/ax_{i}\geq 1/a, so k1=Nj∗≲(ax0)−ck_{1}=N_{j^{*}}\lesssim(ax_{0})^{-c}.

Bound to achieve BB.

If B≤1/aB\leq 1/a, the bound already holds. Now we analyze how many steps Note that for every i≥k1i\geq k_{1},

Given parameters x0,a,b>0x_{0},a,b>0, consider sequence inductively defined by xi+1=(1+γi)xix_{i+1}=(1+\gamma_{i})x_{i}, where

Given BB, let k(B)k(B) be the minimum integer ii such that xi≥Bx_{i}\geq B. Then,

Case 1: x0≥b2/ax_{0}\geq b^{2}/a.

We always choose γi=xi/a\gamma_{i}=\sqrt{x_{i}/a}. We can verify that

and this satisfies the requirement for γi\gamma_{i}. By applying Lemma˜D.8, we have that

Case 2: x0≤B≤b2/ax_{0}\leq B\leq b^{2}/a.

We always choose γi=min⁡(xi/b,1)\gamma_{i}=\min(x_{i}/b,1). We can verify that

and this satisfies the requirement for γi\gamma_{i}. By applying Lemma˜D.8, we have that

Case 3: x0≤b2/a≤Bx_{0}\leq b^{2}/a\leq B.

We combine the bound for the first two cases, where we first go from x0x_{0} to b2/ab^{2}/a, then go from b2/ab^{2}/a to BB. Then we have

Now we describe how we construct an admissible noise schedule. Consider we start from η1′=η\eta_{1}^{\prime}=\eta, and for each ii, we iteratively choose γi′\gamma_{i}^{\prime} to be the maximum γ≤1\gamma\leq 1 such that

and then set ηi+1′=(1+γi′)(ηi′)2\eta_{i+1}^{\prime}=\sqrt{(1+\gamma_{i}^{\prime})(\eta^{\prime}_{i})^{2}}. We continue this process until we reach ηN′≥λ∥A∥εdα\eta_{N}^{\prime}\geq\frac{\lambda\|A\|}{\varepsilon}\sqrt{\frac{d}{\alpha}}. It is easy to verify that (ηN′,ηN−1′,…,η1′)(\eta_{N}^{\prime},\eta_{N-1}^{\prime},\ldots,\eta_{1}^{\prime}) is an admissible noise schedule. Now we bound the number of iterations NN.

Since for all γ\gamma, we have ∥A∥4(fT2(γ)m+fT(γ)R2)≤∥A∥4(mfT(γ)+R22m)2\|A\|^{4}(f_{T}^{2}(\gamma)m+f_{T}(\gamma)R^{2})\leq\|A\|^{4}(\sqrt{m}f_{T}(\gamma)+\frac{R^{2}}{2\sqrt{m}})^{2}, a sufficient condition for ∥A∥4(fT2(γ)m+fT(γ)R2)≤(ηi′)4Cγ2\|A\|^{4}(f_{T}^{2}(\gamma)m+f_{T}(\gamma)R^{2})\leq\frac{(\eta_{i}^{\prime})^{4}}{C\gamma^{2}} is that

Therefore, fixing ηi′\eta_{i}^{\prime}, we have that γi′\gamma_{i}^{\prime} is at least

Now we look at the inductive sequence starting from x1=η2x_{1}=\eta^{2}, and xi+1=(1+γ~i)xix_{i+1}=(1+\widetilde{\gamma}_{i})x_{i}, where

By Lemma˜D.9, we know that for any ηgoal>0\eta_{goal}>0, we can achieve xN≥ηgoal2x_{N}\geq\eta_{goal}^{2} within

Taking in ηgoal=λ∥A∥εdα\eta_{goal}=\frac{\lambda\|A\|}{\varepsilon}\sqrt{\frac{d}{\alpha}}, we conclude the lemma. ∎

Appendix E Theoretical Analysis of Algorithm˜1

In this section, we analyze the algorithm presented in Algorithm˜1. In ˜7, the algorithm initializes by drawing a sample from the prior distribution p(x)p(x) via the diffusion SDE, which introduces sampling error. demonstrated that this diffusion sampling error is polynomially small, with the exact magnitude depending on the discretization scheme chosen for the diffusion SDE. Since the focus of this paper is on enabling an unconditional diffusion sampling model to perform posterior sampling, the choice of diffusion discretization and its associated error are not not the focus of our analysis. Consequently, we omit the diffusion sampling error in the error analysis presented in this section. This omission does not impact the rigor of the theorems in the main paper, as the error is polynomially small.

Let C>0C>0 be a large enough constant. Let pp be a (δ,r,R,L~,α)(\delta,r,R,\widetilde{L},\alpha) mode-centered locally well-conditioned distribution. For every δ,ε∈(0,1)\delta,\varepsilon\in(0,1) and λ>1\lambda>1, suppose

Then running Algorithm˜1 will guarantee that

Let εstep:=C0(ε+λδ+λm+log⁡(λ/ε)α⋅(εdis+εscore))\varepsilon_{\text{step}}:=C_{0}\left(\varepsilon+\lambda\delta+\lambda\sqrt{\frac{m+\log(\lambda/\varepsilon)}{\alpha}}\cdot\left(\varepsilon_{\text{dis}}+\varepsilon_{\text{score}}\right)\right), where C0C_{0} is a constant large enough to absorb the implicit constants in Lemma˜D.3 and Lemma˜D.2.

We prove by induction that for each i∈[N]i\in[N]:

By the triangle inequality and data processing inequality:

Thus, the induction holds for i+1i+1, and the lemma follows for i=Ni=N. ∎

Let S1S_{1} and S2S_{2} be two random variables such that

Since Pr⁡[E]≥1−δ\Pr[E]\geq 1-\delta, we apply Markov’s inequality, and have

Hence, we have with probability 1−δε1-\frac{\delta}{\varepsilon} over yy,

Applying Lemma˜E.2 on Lemma˜E.1 gives the following corollary.

Let C>0C>0 be a large enough constant. Let pp be a (δ,r,R,L~,α)(\delta,r,R,\widetilde{L},\alpha) mode-centered locally well-conditioned distribution. For every δ,ε∈(0,1)\delta,\varepsilon\in(0,1) and λ>1\lambda>1, suppose

Define Then running Algorithm˜1 will guarantee that

Let ρ=∥A∥ηα\rho=\frac{\|A\|}{\eta\sqrt{\alpha}}. For all 0<ε,δ<10<\varepsilon,\delta<1, there exists

such that: suppose distribution pp is a (εK2,r~/α,R,L~,α)(\frac{\varepsilon}{K^{2}},\widetilde{r}/\sqrt{\alpha},R,\widetilde{L},\alpha) mode-centered locally well-conditioned distribution with R≥Km/αρR\geq\frac{\sqrt{K\sqrt{m}/\alpha}}{\rho}, and εscore≤α/mK2δ\varepsilon_{score}\leq\frac{\sqrt{\alpha/m}}{K^{2}\delta}; then Algorithm˜1 samples from a distribution p^(x∣y)\widehat{p}(x\mid y) such that

Furthermore, the total iteration complexity can be bounded by

To distinguish the ε\varepsilon and δ\delta in the lemma and the one in Corollary˜E.3, we will use εerror\varepsilon_{error} and δerror\delta_{error} to denote the ε\varepsilon and δ\delta in our lemma statement. We need to set parameters in Corollary˜E.3. For any given 0<δerror,εerror0<\delta_{error},\varepsilon_{error}, we set

and we set λ\lambda to be the minimum λ\lambda that satisfies

Now we verify the correctness. Taking in the bound for NN in Lemma˜D.4, we have

By the setting of our parameters, we have Nε≲εerrorN\varepsilon\lesssim\varepsilon_{error}, λδ≲εerror\lambda\delta\lesssim\varepsilon_{error}, and N/λεerror≲δerrorN/\lambda\varepsilon_{error}\lesssim\delta_{error}. This guarantees that

It is easy to verify our bound on RR satisfies the condition in Corollary˜E.3. Note that if a distribution is (δ,r,R,L~,α)(\delta,r,R,\widetilde{L},\alpha) mode-centered locally well-conditioned, then it is also (δ,r,R′,L~,α)(\delta,r,R^{\prime},\widetilde{L},\alpha) mode-centered locally well-conditioned for any R′≤RR^{\prime}\leq R. Therefore, we can set RR to be the minimum RR that satisfies the condition.

Therefore, we only need λNm+log⁡(λ/ε)α(εdis+εscore)≲εerror\lambda N\sqrt{\frac{m+\log(\lambda/\varepsilon)}{\alpha}}(\varepsilon_{dis}+\varepsilon_{score})\lesssim\varepsilon_{error}. This can be satisfied when

Note that the bound for the sum of NN mixing times can be bounded by

Therefore, the total iteration complexity is bounded by O~(Kmδerrorεerrorαh)\widetilde{O}(\frac{Km\delta_{error}\varepsilon_{error}}{\alpha h}),

By Lemma˜B.12, any α\alpha-strongly log-concave distribution that has LL-Lipschitz score is locally well-conditioned distribution pp is (δ,2dα+2log⁡(1/δ)α,∞,L/α,α)(\delta,2\sqrt{\frac{d}{\alpha}}+\sqrt{\frac{2\log(1/\delta)}{\alpha}},\infty,L/\alpha,\alpha) mode-centered locally well-conditioned. Therefore, take this into Lemma˜E.4, we have the following result.

such that: suppose εscore≤α/mK2δ\varepsilon_{score}\leq\frac{\sqrt{\alpha/m}}{K^{2}\delta}, then Algorithm˜1 samples from a distribution p^(x∣y)\widehat{p}(x\mid y) such that

Furthermore, the total iteration complexity can be bounded by

To enhance clarity, we state our result in terms of expectation and established the following theorem:

such that: suppose εscore≤α/mK2ε\varepsilon_{score}\leq\frac{\sqrt{\alpha/m}}{K^{2}\varepsilon}, then Algorithm˜1 samples from a distribution p^(x∣y)\widehat{p}(x\mid y) such that

Furthermore, the total iteration complexity can be bounded by

The analysis above is restricted to strongly log-concave distributions, where ∇2log⁡p(x)≺0\nabla^{2}\log p(x)\prec 0. However, this directly implies that we can use our algorithm to perform posterior sampling on log-concave distributions, for which ∇2log⁡p(x)⪯0\nabla^{2}\log p(x)\preceq 0.

E.2 Gaussian Measurement

In this section, we prove Theorem˜1.2. In Algorithm˜2, we describe how to make Algorithm˜1 work on the Gaussian case.

We first verify that suppose ˜1 holds, we can also have L4L^{4}-accurate estimates for the smoothed scores of px0p_{x_{0}}, so this satisfies the requirement of running Algorithm˜1. We need to use the following lemma, with proof deferred to Section˜E.5.

Then, the gradient of the log-likelihood log⁡p(Z∣Y)\log p(Z\mid Y) with respect to YY is given by

Using this, we can calculate the smoothed conditional score given x0x_{0}:

For any smoothing level t≥0t\geq 0, suppose we have score estimate s^t2(x)\widehat{s}_{t^{2}}(x) of the smoothed distributions pt2(x)=p(x)∗N(0,t2Id)p_{t^{2}}(x)=p(x)*\mathcal{N}(0,t^{2}I_{d}) that satisfies

Then we can calculate a score estimate s^x0,t2(x)\widehat{s}_{x_{0},t^{2}}(x) of the distribution px0,t2(x)=px0(x)∗N(0,t2Id)p_{x_{0},t^{2}}(x)=p_{x_{0}}(x)*\mathcal{N}(0,t^{2}I_{d}) such that

Let x(t)∼pt2x^{(t)}\sim p_{t^{2}}. Then, for any value of x(t)x^{(t)}, we have

Note that the second term is exactly in the form of Lemma˜E.8, so we can calculate this exaclty. For the first term, we use our score estimate s^t2(x(t))\widehat{s}_{t^{2}}(x^{(t)}) for it. In this way, we have that for any xx,

Suppose ˜1 holds for our prior distribution pp. Then with 1−δ1-\delta probability over x0x_{0}: we have smoothed score estimates for px0p_{x_{0}} with L4L^{4} error bounded by εscore4/δ\varepsilon_{score}^{4}/\delta; in other words, ˜1 holds for px0p_{x_{0}}, where εscore\varepsilon_{score} is substituted with εscore/δ1/4\varepsilon_{score}/\delta^{1/4}.

To capture the behavior of a Gaussian measurement more accurately, we first define a relaxed version of mode-centered locally well-conditioned distribution.

For δ∈[0,1)\delta\in[0,1) and R,L~,α∈(0,+∞]R,\widetilde{L},\alpha\in(0,+\infty], we say that a distribution pp is (δ,r,R,L~,α)(\delta,r,R,\widetilde{L},\alpha) locally well-conditioned if there exists θ\theta such that

Pr⁡x∼p[x∈B(θ,r)]≥1−δ\Pr_{x\sim p}\left[x\in B(\theta,r)\right]\geq 1-\delta.

For x,y∈B(θ,R)x,y\in B(\theta,R), we have that ∥s(x)−s(y)∥≤L~α∥x−y∥\|s(x)-s(y)\|\leq\widetilde{L}{\alpha}\left\lVert x-y\right\rVert.

For x,y∈B(θ,R)x,y\in B(\theta,R), we have that ⟨s(y)−s(x),x−y⟩≥α∥x−y∥2\langle s(y)-s(x),x-y\rangle\geq\alpha\left\lVert x-y\right\rVert^{2}.

Note that this definition can still imply that the distribution is mode-centered local well-conditioned, due to the following fact:

If R>4drR>4dr, then there exists θ′∈B(θ,4dr)\theta^{\prime}\in B(\theta,4dr) with ∇log⁡p(θ′)=0\nabla\log p(\theta^{\prime})=0.

We defer its proof to Section˜E.5. This implies the following lemma:

Let pp be a (δ,r,R,L~,α)(\delta,r,R,\widetilde{L},\alpha) locally well conditioned distribution with R>9drR>9dr and δ<0.1\delta<0.1. Then pp is (δ,(4d+1)r,R−4dr,L~,α)(\delta,(4d+1)r,R-4dr,\widetilde{L},\alpha) mode-centered locally well conditioned.

This gives a version of Lemma˜E.4 for locally well-conditioned distributions as a corollary:

Let ρ=∥A∥ηα\rho=\frac{\|A\|}{\eta\sqrt{\alpha}}. For all 0<ε,δ<10<\varepsilon,\delta<1, there exists

such that: suppose distribution pp is a (εK2,r~/α,R,L~,α)(\frac{\varepsilon}{K^{2}},\widetilde{r}/\sqrt{\alpha},R,\widetilde{L},\alpha) mode-centered locally well-conditioned distribution with R≥Km/αρR\geq\frac{\sqrt{K\sqrt{m}/\alpha}}{\rho}, and εscore≤α/mK2δ\varepsilon_{score}\leq\frac{\sqrt{\alpha/m}}{K^{2}\delta}. Then Algorithm˜1 samples from a distribution p^(x∣y)\widehat{p}(x\mid y) such that

Furthermore, the total iteration complexity can be bounded by

The reason we want this relaxed notion of locally well-conditioned is that, this captures the behavior of a Gaussian measurement. First note that:

for r=σ(d+2log⁡1δδ′)r=\sigma(\sqrt{d}+\sqrt{2\log\frac{1}{\delta\delta^{\prime}}}).

Again, we defer its proof to Section˜E.5. This implies the following lemma.

Given a Gaussian measurement x0=x+N(0,σ2Id)x_{0}=x+\mathcal{N}(0,\sigma^{2}I_{d}) of x∼px\sim p with

Let x0=x+N(0,σ2Id)x_{0}=x+N(0,\sigma^{2}I_{d}), where x∼px\sim p. Then, suppose RR. with probability at least 1−3δ1-3\delta probability over x0x_{0}, px0p_{x_{0}} is (δ,σ(d+4log⁡1δ),R/2,2Lσ2+2,12σ2)(\delta,\sigma(\sqrt{d}+\sqrt{4\log\frac{1}{\delta}}),R/2,2L\sigma^{2}+2,\frac{1}{2\sigma^{2}}) locally well-conditioned.

Let us check the locally well-conditioned conditions with θ=x0\theta=x_{0} one by one. The concentration follows directly from Lemma˜E.15, incurring an error probability of δ\delta.

By our choice of σ\sigma, we have that whenever −LId⪯∇2log⁡p(x)⪯(τ2/R2)Id-LI_{d}\preceq\nabla^{2}\log p(x)\preceq(\tau^{2}/R^{2})I_{d},

This satisfies the Lipschitzness and the strong log-concavity condition by giving an additional error probability of 2δ2\delta. ∎

This gives us the main lemma for our local log-concavity case:

Let ρ=∥A∥ση\rho=\frac{\|A\|\sigma}{\eta}. There exists

such that: suppose R2≥(Kmρ2+4τ)σ2R^{2}\geq(\frac{K\sqrt{m}}{\rho^{2}}+4\tau)\sigma^{2} and εscore≤1K2mσ\varepsilon_{score}\leq\frac{1}{K^{2}\sqrt{m}\sigma}, then Algorithm˜2 samples from a distribution p^(x∣x0,y)\widehat{p}(x\mid x_{0},y) such that

Furthermore, the total iteration complexity can be bounded by

Combining Corollary˜E.10 with Lemma˜E.16 enables us to apply Lemma˜E.14 and proves the lemma. ∎

Expressing this in expectation, we have the following theorem.

Let ρ=∥A∥ση\rho=\frac{\|A\|\sigma}{\eta}. There exists

such that: given a Gaussian measurement x0=x+N(0,σ2Id)x_{0}=x+\mathcal{N}({0,\sigma^{2}I_{d}}) of x∼px\sim p with R2≥(Kmρ2+4τ)σ2R^{2}\geq(\frac{K\sqrt{m}}{\rho^{2}}+4\tau)\sigma^{2}, and εscore≤1K2mσ\varepsilon_{score}\leq\frac{1}{K^{2}\sqrt{m}\sigma}; then Algorithm˜2 samples from a distribution p^(x∣x0,y)\widehat{p}(x\mid x_{0},y) such that

Furthermore, the total iteration complexity can be bounded by

E.3 Compressed Sensing

In this section, we prove Corollary˜1.3. We first describe the sampling procedure in Algorithm˜3. Now we verify its correctness.

Let ρ=∥A∥Rη\rho=\frac{\|A\|R}{\eta}. There exists

such that: suppose (R′)2≥(Kmρ2+4τ)R2(R^{\prime})^{2}\geq(\frac{K\sqrt{m}}{\rho^{2}}+4\tau)R^{2} and εscore≤1K2mR\varepsilon_{score}\leq\frac{1}{K^{2}\sqrt{m}R}, then conditioned on ∥x0−x∥≤R\|x_{0}-x\|\leq R, ˜4 of Algorithm˜3 samples from a distribution p^\widehat{p} (depending on x0′x_{0}^{\prime} and yy) such that

Furthermore, the total iteration complexity can be bounded by

This is a direct application of Lemma˜E.17. The sole difference is that x0′x_{0}^{\prime} follows x0+N(0,σ2Id)x_{0}+\mathcal{N}(0,\sigma^{2}I_{d}) instead of x+N(0,σ2Id)x+\mathcal{N}(0,\sigma^{2}I_{d}). Because ∥x0−x∥≤R\|x_{0}-x\|\leq R, x0′x_{0}^{\prime} remains sufficiently close to xx for the local Hessian condition to hold, so the proof of Lemma E.17 carries over verbatim. ∎

Now we explain why we want to sample from p(x∣x+N(0,σ2Id)=x0′,Ax+ξ=y)p(x\mid x+\mathcal{N}(0,\sigma^{2}I_{d})=x_{0}^{\prime},Ax+\xi=y). Essentially, the extra Gaussian measurement won’t hurt the concentration of p(x∣y)p(x\mid y) itself. We abstract it as the following lemma:

Define Z=X+εZ=X+\varepsilon where ε∼N(0,σ2Id)\varepsilon\sim\mathcal{N}(0,\sigma^{2}I_{d}) is independent of (X,Y)(X,Y). If

then for X^∼p(X∣Y,Z)\widehat{X}\sim p(X\mid Y,Z) one has

Fix YY and draw an auxiliary point X~∼p(X∣Y)\widetilde{X}\sim p(X\mid Y). Let Z′=X~+ε′Z^{\prime}=\widetilde{X}+\varepsilon^{\prime} with ε′∼N(0,σ2Id)\varepsilon^{\prime}\sim\mathcal{N}(0,\sigma^{2}I_{d}) independent of everything else. On the event

ZZ and Z′Z^{\prime} are Gaussians with the same covariance σ2Id\sigma^{2}I_{d} and means XX and X~\widetilde{X}. Pinsker’s inequality combined with the KL divergence between the two Gaussians gives

because Pr⁡[Ec]≤δ\Pr[E^{c}]\leq\delta by the hypothesis on p(X∣Y)p(X\mid Y).

For the set A={(Y,Z,X^):∥X−X^∥>r}A=\{(Y,Z,\widehat{X}):\lVert X-\widehat{X}\rVert>r\} the total-variation bound gives

Consider the random variables in Algorithm˜3. Suppose that

Information theoretically, it is possible to recover x^\widehat{x} from yy satisfying ∥x^−x∥≤r\left\lVert\widehat{x}-x\right\rVert\leq r with probability 1−δ1-\delta over x∼px\sim p and yy.

Pr⁡[∥x0−x∥≤R]≥1−δ\Pr\left[\left\lVert x_{0}-x\right\rVert\leq R\right]\geq 1-\delta.

Then drawing sample x^∼p(x∣x+N(0,σ2Id)=x0′,Ax+ξ=y)\widehat{x}\sim p(x\mid x+\mathcal{N}(0,\sigma^{2}I_{d})=x_{0}^{\prime},Ax+\xi=y) would give that

Then by Lemma˜E.20, suppose we have x′=x+N(0,σ2Id)x^{\prime}=x+\mathcal{N}({0,\sigma^{2}I_{d}}), then

Note that whenever ∥x−x0∥≤r\|x-x_{0}\|\leq r, we have

Consider attempting to accurately reconstruct xx from y=Ax+ξy=Ax+\xi. Suppose that:

Information theoretically, it is possible to recover x^\widehat{x} from yy satisfying ∥x^−x∥≤r\left\lVert\widehat{x}-x\right\rVert\leq r with probability 1−δ1-\delta over x∼px\sim p and yy.

We have access to a “naive” algorithm that recovers x0x_{0} from yy satisfying ∥x0−x∥≤R\left\lVert x_{0}-x\right\rVert\leq R with probability 1−δ1-\delta over x∼px\sim p and yy.

Let ρ=∥A∥Rηδ\rho=\frac{\|A\|R}{\eta\delta}. There exists

such that: suppose for R′=(R/δ)⋅Kmρ2+4τR^{\prime}=(R/\delta)\cdot\sqrt{\frac{K\sqrt{m}}{\rho^{2}}+4\tau},

Then we give an algorithm that recovers x^\widehat{x} satisfying ∥x^−x∥≤2r\left\lVert\widehat{x}-x\right\rVert\leq 2r with probability 1−O(δ)1-O(\delta), in poly⁡(d,m,∥A∥Rη,1δ)\operatorname*{poly}(d,m,\frac{\left\lVert A\right\rVert R}{\eta},\frac{1}{\delta}) time, under Assumption 1 with εscore<1K2m(R/δ)\varepsilon_{score}<\frac{1}{K^{2}\sqrt{m}(R/\delta)}.

By our assumption and Lemma˜E.19, we have that we are sampling from p(x∣x+N(0,σ2Id)=x0′,Ax+ξ=y)p(x\mid x+\mathcal{N}(0,\sigma^{2}I_{d})=x_{0}^{\prime},Ax+\xi=y) with δ\delta TV error with 1−O(δ)1-O(\delta) probability. By Lemma˜E.21, this would recover xx within distance 2r2r with 1−O(δ)1-O(\delta) probaility. Combining the two gives the result. ∎

Setting τ=0\tau=0 would give Corollary˜1.3 as a corollary.

E.4 Ring example

Rotational invariance gives p(x)=p(r)p(x)=p(r) with

Write f(r)=log⁡p(r)f(r)=\log p(r) and set z=r/w2>0z=r/w^{2}>0. Using I0′(z)=I1(z)I_{0}^{\prime}(z)=I_{1}(z), we get the first and second derivatives:

For r>0r>0, the eigenvalues of ∇2log⁡p\nabla^{2}\log p are

The Turán inequality I1(z)2−I0(z)I2(z)≥0I_{1}(z)^{2}-I_{0}(z)I_{2}(z)\geq 0 implies λr(r)≤−1/w2\lambda_{r}(r)\leq-1/w^{2}; thus, the largest eigenvalue is λt(r)\lambda_{t}(r).

Since I1(z)/I0(z)≤1I_{1}(z)/I_{0}(z)\leq 1 for all z>0z>0 and I1(z)/I0(z)≤z/2I_{1}(z)/I_{0}(z)\leq z/2 for 0<z≤10<z\leq 1,

A standard score–covariance identity shows

The rest follows by combining Lemma˜E.23 and Lemma˜E.24. ∎

Hence, we can apply Theorem˜1.2 on our ring distribution pp and get the following corollary:

Suppose ∥A∥w/η=O(1)\|A\|w/\eta=O(1). Then, if σ≤cw\sigma\leq cw and εscore≤cw−1\varepsilon_{score}\leq cw^{-1} for sufficiently small constant c>0c>0, Algorithm˜2 takes a constant number of iterations to sample from a distribution p^(x∣x0,y)\widehat{p}(x\mid x_{0},y) such that

E.5 Deferred Proof

Since Z∣Y∼N(μZ∣Y,ΣZ∣Y)Z\mid Y\sim\mathcal{N}(\mu_{Z\mid Y},\Sigma_{Z\mid Y}), the log-likelihood function is

To compute the gradient with respect to YY, we focus on the term involving μZ∣Y\mu_{Z\mid Y}:

Differentiating with respect to YY gives:

Since μZ∣Y=σ22(σ12+σ22)−1Y\mu_{Z\mid Y}=\sigma_{2}^{2}(\sigma_{1}^{2}+\sigma_{2}^{2})^{-1}Y, we have

Substituting the inverse of the covariance matrix ΣZ∣Y\Sigma_{Z\mid Y}, we get

and the final expression for the gradient is

Let μ=arg⁡max⁡q\mu=\arg\max q; strong concavity gives ∇log⁡q(μ)=0\nabla\log q(\mu)=0 and uniqueness of μ\mu. Assume for contradiction that ∥μ−θ∥≥4dr\|\mu-\theta\|\geq 4dr. Set λ=2r/∥μ−θ∥≤1/(2d)\lambda=2r/\|\mu-\theta\|\leq 1/(2d) and define

Then det⁡Dτ=(1−λ)d\det D\tau=(1-\lambda)^{d} and τ(B(θ,r))=B(θ′,(1−λ)r)\tau\bigl(B(\theta,r)\bigr)=B(\theta^{\prime},(1-\lambda)r) with θ′=τ(θ)⊂B(θ,R)\theta^{\prime}=\tau(\theta)\subset B(\theta,R). Along any ray starting at μ\mu the function t↦log⁡q(μ+t(x−μ))t\mapsto\log q(\mu+t(x-\mu)) is strictly decreasing for t≥0t\geq 0; hence q(τ(x))≥q(x)q(\tau(x))\geq q(x) for every xx.

Because λ≤1/(2d)\lambda\leq 1/(2d), (1−λ)d≥e−1/2>0.6(1-\lambda)^{d}\geq e^{-1/2}>0.6. Multiplying by CC and using p=Cqp=Cq on B(θ,R)B(\theta,R) gives

The two balls B(θ,r)B(\theta,r) and B(θ′,(1−λ)r)B(\theta^{\prime},(1-\lambda)r) are disjoint, so 1≥0.9+0.541\geq 0.9+0.54, a contradiction. Thus ∥μ−θ∥<4dr\|\mu-\theta\|<4dr.

Because 4dr<R4dr<R we have μ∈B(θ,R)\mu\in B(\theta,R) and here ∇log⁡p=∇log⁡q\nabla\log p=\nabla\log q; consequently ∇log⁡p(μ)=0\nabla\log p(\mu)=0. Putting θ′=μ\theta^{\prime}=\mu completes the proof. ∎

Let Q(x~)=Pr⁡x∼px~[∥x−x~∥>r]Q(\widetilde{x})=\Pr_{x\sim p_{\widetilde{x}}}[\|x-\widetilde{x}\|>r]. We want to show that with probability at least 1−δ′1-\delta^{\prime} over x~\widetilde{x}, Q(x~)≤δQ(\widetilde{x})\leq\delta. This is equivalent to showing that Pr⁡x~[Q(x~)>δ]≤δ′\Pr_{\widetilde{x}}[Q(\widetilde{x})>\delta]\leq\delta^{\prime}.

We use Markov’s inequality. For any δ>0\delta>0:

Using p(x1,x~)=p(x~∣x1)p(x1)p(x_{1},\widetilde{x})=p(\widetilde{x}\mid x_{1})p(x_{1}), we can change the order of integration:

We need to show PG(r/σ)≤δδ′P_{G}(r/\sigma)\leq\delta\delta^{\prime}. We use the standard Gaussian concentration inequality: for W∼N(0,Id)W\sim N(0,I_{d}) and t≥0t\geq 0,

We want PG(r/σ)≤δδ′P_{G}(r/\sigma)\leq\delta\delta^{\prime}. So we set e−t2/2=δδ′e^{-t^{2}/2}=\delta\delta^{\prime}. This implies t2/2=log⁡(1/(δδ′))t^{2}/2=\log(1/(\delta\delta^{\prime})), so t=2log⁡(1/(δδ′))t=\sqrt{2\log(1/(\delta\delta^{\prime}))}. This choice of tt is real and non-negative since δ,δ′∈(0,1)\delta,\delta^{\prime}\in(0,1) implies δδ′∈(0,1)\delta\delta^{\prime}\in(0,1), so log⁡(1/(δδ′))≥0\log(1/(\delta\delta^{\prime}))\geq 0. We set r/σ=d+t=d+2log⁡(1/(δδ′))r/\sigma=\sqrt{d}+t=\sqrt{d}+\sqrt{2\log(1/(\delta\delta^{\prime}))}. Thus, for r=σ(d+2log⁡1δδ′)r=\sigma\left(\sqrt{d}+\sqrt{2\log\frac{1}{\delta\delta^{\prime}}}\right), we have PG(r/σ)≤δδ′P_{G}(r/\sigma)\leq\delta\delta^{\prime}.

This means that Pr⁡x~[Q(x~)≤δ]≥1−δ′\Pr_{\widetilde{x}}[Q(\widetilde{x})\leq\delta]\geq 1-\delta^{\prime}, which is the desired statement:

Appendix F Why Standard Langevin Dynamics Fails

As discussed in Section˜3, after we get an initial sample X0∼pX_{0}\sim p on the manifold, a natural attempt to get a sample from pyp_{y} is to simply run vanilla Langevin SDE starting from X0X_{0}:

where s^(x)\widehat{s}(x) is an approximation to the true score ∇log⁡p(x)\nabla\log p(x). We now show that under any LpL^{p} score accuracy assumption, the score error could get exponentially large as the dynamics evolves.

We first consider the simplest one–dimensional Gaussian case of (13). Suppose p=N(0,1)p=\mathcal{N}(0,1), A=1A=1, and noise ξ=N(0,η2)\xi=\mathcal{N}(0,\eta^{2}); so y∼N(0,1+η2)y\sim\mathcal{N}(0,1+\eta^{2}). Then with the perfect score estimator s^(Xt)=∇log⁡p(Xt)=−Xt\widehat{s}(X_{t})=\nabla\log p(X_{t})=-X_{t}, (13) reduces to

Recall that the hope of guaranteeing the robustness using only an LpL^{p} guarantee is that at any time tt, averaging XtX_{t} over yy will preserve the original law pp. We now show that this hope is unfounded even in this simplest case.

Let XtX_{t} follow (14). Averaging over y∼N(0,1+η2)y\sim\mathcal{N}(0,1+\eta^{2}), XtX_{t} is Gaussian with mean and variance

where α:=1+η2η2>1\alpha:=\frac{1+\eta^{2}}{\eta^{2}}>1. In particular, Var⁡(Xt)=1−12(1+η2)\operatorname{Var}(X_{t})=1-\frac{1}{2(1+\eta^{2})} at time t⋆:=η2ln⁡21+η2t^{\star}:=\tfrac{\eta^{2}\ln 2}{1+\eta^{2}}.

Because X0,BX_{0},B are independent of yy, conditional moments are

Applying the law of total variance with Var⁡(y)=1+η2\operatorname{Var}(y)=1+\eta^{2} gives the stated formula.

Since X0X_{0} and BB are independent of yy, conditioning on yy gives

Using α=(1+η2)/η2\alpha=(1+\eta^{2})/\eta^{2} and simple algebra, this simplifies to

which is at most 11 and attains 1−1/[2(1+η2)]1-1/[2(1+\eta^{2})] when e−αt=1/2e^{-\alpha t}=1/2, that is at t⋆t^{\star}. ∎

Thus Var⁡(Xt)\operatorname{Var}(X_{t}) first shrinks below 11 (by a constant factor bounded away from 11 when η\eta is small) before relaxing back to equilibrium. The phenomenon is harmless in one dimension but is catastrophic in high dimension.

High-dimensional amplification.

Let p=N(0,Id)p=\mathcal{N}(0,I_{d}), take A=IdA=I_{d}, and set η2=0.1\eta^{2}=0.1. Then with the perfect score estimator, (13) reduces to

By Lemma F.1 applied coordinatewise, at time t⋆:=η2ln⁡21+η2t^{\star}:=\tfrac{\eta^{2}\ln 2}{1+\eta^{2}}, averaging over yy yields

Hence Xt⋆X_{t^{\star}} is exponentially more concentrated in high dimension. We next show that this concentration amplifies score-estimation errors exponentially with the dimension.

for some constant c>0c>0 depending only on kk.

Fix k>1k>1 and 0<ε<10<\varepsilon<1. Let σ2=611∈(0,1)\sigma^{2}=\tfrac{6}{11}\in(0,1) and choose ρ∈(0,min⁡{1/2, 1/σ2−1})\rho\in\bigl(0,\min\{1/2,\,1/\sigma^{2}-1\}\bigr). Define the shell

Write m:=Pr⁡x∼p ⁣[x∈Sρ]m:=\Pr_{x\sim p}\!\left[x\in S_{\rho}\right] and q:=Pr⁡x∼pt⋆ ⁣[x∈Sρ]q:=\Pr_{x\sim p_{t^{\star}}}\!\left[x\in S_{\rho}\right]. Since ∥X∥2/σ2∼χd2\|X\|^{2}/\sigma^{2}\sim\chi^{2}_{d} under pt⋆p_{t^{\star}}, the chi-square concentration inequality Lemma˜A.11 gives

Since (1+ρ)σ2<1(1+\rho)\sigma^{2}<1, the Chernoff left-tail bound for χd2\chi^{2}_{d} yields

Moreover ∥e(x)∥≡M\|e(x)\|\equiv M on SρS_{\rho}, hence

Using m≤e−Idm\leq e^{-Id} we have M=ε m−1/k≥ε e(I/k)dM=\varepsilon\,m^{-1/k}\geq\varepsilon\,e^{(I/k)d}. Setting

which depends only on σ\sigma and kk, gives