Convergence of score-based generative modeling for general data distributions

Holden Lee, Jianfeng Lu, Yixin Tan

Introduction

Diffusion models have gained huge popularity in recent years in machine learning, as a method to learn and generate new samples from a data distribution. Score-based generative modeling (SGM), as a particular kind of diffusion model, uses learned score functions (gradients of the log-pdf) to transform white noise to the data distribution through following a stochatic differential equation. While SGM has achieved state-of-the-art performance for artificial image and audio generation [SE19, Dat+19, Gra+19, SE20, Son+20, Men+21, Son+21a, Son+21, Jin+22], including being a key component of text-to-image systems [Ram+22], our theoretical understanding of these models is still nascent.

In particular, basic questions on the convergence of the generated distribution to the data distribution remain unanswered. Recent theoretical work on SGM has attempted to answer these questions [De ̵+21, LLT22, De ̵22], but they either suffer from exponential dependence on parameters or rely on strong assumptions on the data distribution such as functional inequalities or smoothness, which are rarely satisfied in practical situations. For example, considering the hallmark application of generating images from text, we expect the distribution of images to be (a) multimodal, and hence not satisfying functional inequalities with reasonable constants, and (b) supported on lower-dimensional manifolds, and hence not smooth. However, SGM still performs remarkably well in these settings. Indeed, this is one relative advantage to other approaches to generative modeling such as generative adversarial networks, which can struggle to learn multimodal distributions [ARZ18].

In this work, we aim to develop theoretical convergence guarantees with polynomial complexity for SGM under minimal data assumptions.

Given samples from a data distribution PdataP_{\textup{data}}, the problem of generative modeling is to learn the distribution in a way that allows generation of new samples. A general framework for many score-based generative models is where noise is injected into PdataP_{\textup{data}} via a forward SDE [Son+20]

where x~0∼P~0:=Pdata\widetilde{x}_{0}\sim\widetilde{P}_{0}:=P_{\textup{data}}. Let p~t\widetilde{p}_{t} denote the density of x~t\widetilde{x}_{t}. Remarkably, x~t\widetilde{x}_{t} also satisfies a reverse-time SDE,

where w~t\widetilde{w}_{t} is a backward Brownian motion [And82]. Because the forward process transforms the data distribution to noise, the hope is to use the backwards process to transform noise into samples.

Given L2L^{2}-error bounds of the score function, how close is the distribution generated by (2) (with score estimate s(x,t)s(x,t) in place of ∇ln⁡p~t\nabla\ln\widetilde{p}_{t}, and appropriate discretization) to the data distribution PdataP_{\textup{data}}?

We note it is more realistic to consider L2L^{2} rather than L∞L^{\infty}-error, and this makes the analysis more challenging. Indeed, prior work on Langevin Monte Carlo [EHZ21] and related sampling algorithms only apply when the score function is known exactly, or with suitable modification, known up to L∞L^{\infty}-error. L2L^{2}-error has a genuinely different effect from L∞L^{\infty}-error, as it can cause the stationary distribution for Langevin Monte Carlo to be arbitrarily diffferent [LLT22], necessitating a “medium-time" analysis.

In addition, we hope to obtain a result with as few structural assumptions as possible on PdataP_{\textup{data}}, so that it can be useful in realistic scenarios where SGM is applied.

2 Prior work on convergence guarantees

We highlight two recent works which make progress on this problem. [LLT22] are the first to give polynomial convergence guarantees in TV distance under L2L^{2}-accurate score for a reasonable family of distributions. They introduce a framework to reduce the analysis under L2L^{2}-accurate score to L∞L^{\infty}-accurate score. However, they rely on the data distribution satisfying smoothness conditions and a log-Sobolev inequality—a strong assumption which essentially limits the guarantees to unimodal distributions.

[De ̵22] instead make minimal data assumptions, giving convergence in Wasserstein distance for distributions with bounded support M\mathcal{M}. In particular, this covers the case of distributions supported on lower-dimensional manifolds, where guarantees in TV distance are unattainable. However, for general distributions, their guarantees have exponential dependence on the diameter of M\mathcal{M} and the inverse of the desired error (exp⁡(O(diam⁡(M)2/ε))\exp(O(\operatorname{diam}(\mathcal{M})^{2}/\varepsilon))), and for smooth distributions, an improved, but still exponential dependence on the growth rate of the Hessian ∇2ln⁡p~t\nabla^{2}\ln\widetilde{p}_{t} as the noise approaches 0 (exp⁡(O~(Γ))\exp(\widetilde{O}(\Gamma)) for distributions with ∥∇2ln⁡p~t∥≤Γ/σt2\left\|{\nabla^{2}\ln\widetilde{p}_{t}}\right\|\leq\Gamma/\sigma_{t}^{2}).

We note that other works also analyze the generalization error of a learned score estimate [BMR20, De ̵22]. This is an important question because without further assumptions, learning an L2L^{2}-accurate score estimate requires a number of samples exponential in the dimension. As this is beyond the scope of our paper, we assume that an L2L^{2}-accurate score estimate is obtainable.

3 Our contributions

In this work, we analyze convergence in the most general setting of distributions of bounded support, as in [De ̵22]. We give Wasserstein bounds for any distribution of bounded support (or sufficiently decaying tails), and TV bounds for distributions under smoothness assumptions, that are polynomial in all parameters, and do not rely on the data distribution satisfying any functional inequality. This gives theoretical grounding to the empirical success of SGM on data distributions that are often multimodal and non-smooth.

We streamline the χ2\chi^{2}-based analysis of [LLT22], with significant changes as to completely remove the use of functional inequalities. In particular, the biggest challenge—and our key improvement—is to bound a certain KL-divergence without reliance on a global functional inequality. For this, we prove a key lemma that distributions which are close in χ2\chi^{2}-divergence have score functions that are close in L2L^{2} (which may be of independent interest), and then a structural result that the distributions arising from the diffusion process can be slightly modified as to satisfy the desired inequality, through decomposition into distributions that do satisfy a log-Sobolev inequality.

Upon finishing our paper, we learned of a concurrent and independent work [Che+22] which obtained theoretical guarantees for score-based generative modeling under similarly general assumptions on the data distribution. We note that although our bounds are obtained under similar assumptions (with our assumption of the score estimate accuracy slightly weaker than theirs), our proof techniques are quite different. Following the “bad set” idea from [LLT22], we derived a change-of-measure inequality with Theorem 7.1, while the analysis in [Che+22] is based on the Girsanov approach.

Main results

To state our results, we will consider a specific type of SGM called denoising diffusion probabilistic modeling (DDPM) [HJA20], where in the forward SDE (1), f(x,t)=−12g(t)2xf(x,t)=-\frac{1}{2}g(t)^{2}x for some non-decreasing function gg to be chosen. The forward process is an Ornstein-Uhlenbeck process with time rescaling: x~t\widetilde{x}_{t} has the same distribution as

Given an estimate score function s(x,t)s(x,t) approximating ∇ln⁡p~t(x)\nabla\ln\widetilde{p}_{t}(x), we can simulate the reverse process (reparameterizing t\mapsfromT−tt\mapsfrom T-t and denoting pt:=p~T−tp_{t}:=\widetilde{p}_{T-t})

with the exponential integrator discretization [ZC22], where hk=tk+1−tkh_{k}=t_{k+1}-t_{k} and ηk+1∼N(0,Id)\eta_{k+1}\sim N(0,I_{d}):

We initialize z0z_{0} with a prior distribution that approximates p0=p~Tp_{0}=\widetilde{p}_{T} for sufficiently large TT:

While we focus on DDPM, we note that the continuous process underlying DDPM is equivalent to that of score-matching Langevin diffusion (SMLD) under reparameterization in time and space (see [LLT22, §C.2]). We will further take g≡1g\equiv 1 for convenience in stating our results.

Our goal is to obtain a quantitative guarantee for the distance between the distribution qtKq_{t_{K}} for ztKz_{t_{K}} (for appropriate tK≈Tt_{K}\approx T) and PdataP_{\textup{data}}, under a L2L^{2}-score error guarantee. In the following, we assume a sequence of discretization points 0=t0<t1<⋯<tK≤T0=t_{0}<t_{1}<\cdots<t_{K}\leq T has been chosen.

For any t∈{T−t0,…,T−tK}t\in\{T-t_{0},\ldots,T-t_{K}\}, the error in the score estimate is bounded in L2(p~t)L^{2}(\widetilde{p}_{t}):

We note that the gradient ∇ln⁡p~t\nabla\ln\widetilde{p}_{t} grows as 1σt2\frac{1}{\sigma_{t}^{2}} as t→0t\to 0, so this is a reasonable assumption, and quantitatively weaker than a uniform bound over tt.

For simplicity, we assume bounded support when stating our main theorems, but note that our results generalize to distributions with sufficiently fast power decay. In the application of image generation, pixel values are bounded, so Assumption 2 is satisfied with RR typically on the order of d\sqrt{d}.

These are the only assumptions we need to obtain a polynomial complexity guarantee. We also consider the following stronger smoothness assumption, which is Assumption A.6 in [De ̵22] and will give better dependencies. Note that [De ̵22, Theorem I.8] shows a (nonuniform) version of Assumption 3 holds when p0p_{0} is a smooth density on a convex submanifold.

The following bound of the Hessian of the log-pdf holds for any t>0t>0 and xx:

Finally, the following smoothness assumption on p~0\widetilde{p}_{0} will allow us to obtain TV guarantees.

PdataP_{\textup{data}} admits a density p~0∝e−V(x)\widetilde{p}_{0}\propto e^{-V(x)} where V(x)V(x) is LL-smooth.

We are now ready to state our main theorems.

Suppose that Assumption 1 and 2 hold with R≥dR\geq\sqrt{d}. Then there is a sequence of discretization points 0=t0<t1<⋯<tN<T0=t_{0}<t_{1}<\cdots<t_{N}<T with N=O(poly⁡(d,R,1/εTV⁡,1/εW))N=O(\operatorname{poly}(d,R,1/\varepsilon_{\operatorname{TV}},1/\varepsilon_{\textup{W}})) such that if εσ=O~(εTV⁡6.5εW5R9d2.25)\varepsilon_{\sigma}=\widetilde{O}\left({\frac{\varepsilon_{\operatorname{TV}}^{6.5}\varepsilon_{\textup{W}}^{5}}{R^{9}d^{2.25}}}\right), then the distribution qtNq_{t_{N}} of the output ztNz_{t_{N}} of DDPM is εTV⁡\varepsilon_{\operatorname{TV}}-close in TV distance to a distribution that is εW\varepsilon_{W} in W2W_{2}-distance from PdataP_{\textup{data}}. If in addition Assumption 3 holds with C≥R2C\geq R^{2}, it suffices for εσ=O~(εTV⁡4C2d)\varepsilon_{\sigma}=\widetilde{O}\left({\frac{\varepsilon_{\operatorname{TV}}^{4}}{C^{2}d}}\right) (note that the O~(⋅)\widetilde{O}(\cdot) hides logarithmic dependence on εW\varepsilon_{\textup{W}}).

This result is perhaps surprising at first glance, as it is well known that for sampling algorithms such as Langevin Monte Carlo, structural assumptions on the target distribution—such as a log-Sobolev inequality—are required to obtain similar theoretical guarantees, even with the knowledge of the exact score function. The key reason that we can do better is that we utilize a sequence of score functions sts_{t} along the reverse SDE, which is not available in standard sampling settings. Moreover, we choose TT large enough so that q0=ppriorq_{0}=p_{\textup{prior}} is close to p0p_{0}, and it suffices to track the evolution of the true process (2), that is, maintain rather than decrease the error. To some extent, this result shows the power of DDPM and other reverse SDE-based methods compared with generative modeling based on standard Langevin Monte Carlo.

A statement with more precise dependencies, and which works for unbounded distributions with sufficiently decaying tails, can be found as Theorem 7.2. We note that under the Hessian bound (Assumption 3), up to logarithmic factors, the same score error bound suffices to obtain a fixed TV distance to a distribution arbitrarily close in W2W_{2} distance. By truncating the resulting distribution, we can also obtain purely Wasserstein error bounds.

In the same setting as Theorem 2.1, consider the distribution q^tN\widehat{q}_{t_{N}} of the truncated output x^tN\widehat{x}_{t_{N}} of DDPM. If Assumptions 1 and 2 hold with R≥dR\geq\sqrt{d} and εσ=O~(εW18R22d2.25)\varepsilon_{\sigma}=\widetilde{O}\left({\frac{\varepsilon_{\textup{W}}^{18}}{R^{22}d^{2.25}}}\right), then with appropriate (polynomial) choice of parameters, W2(q^tK,Pdata)≤εWW_{2}(\widehat{q}_{t_{K}},P_{\textup{data}})\leq\varepsilon_{\textup{W}}. If in addition Assumption 3 holds with C≥R2C\geq R^{2}, then εσ=O~(εW8C2R8d)\varepsilon_{\sigma}=\widetilde{O}\left({\frac{\varepsilon_{\textup{W}}^{8}}{C^{2}R^{8}d}}\right) suffices.

With an extra assumption on the smoothness of PdataP_{\text{data}}, we can also obtain purely TV error bounds:

A more precise statement can be found as Theorem 7.3, which also works more generally with sufficient tail decay. We note that this result can be derived directly by combining Theorem 7.2 and a TV error bound between PdataP_{\text{data}} and ptNp_{t_{N}} (Lemma 6.4) depending on the smoothness of PdataP_{\text{data}}.

Proof overview

Our proof uses the framework by [LLT22] to convert guarantees under L∞L^{\infty}-accurate score function to under L2L^{2}-accurate score function. For the analysis under L∞L^{\infty}-accurate score function, we interpolate the discrete process with estimated score, zt∼qtz_{t}\sim q_{t}, and derive a differential inequality

We bound resulting error terms, making ample use of the Donsker-Varadhan variational principle to convert expectations to be under ptp_{t}. Under small enough step sizes, this shows that χ2(qt∣∣pt)\chi^{2}(q_{t}||p_{t}) grows slowly (Theorem 4.10), which suffices as χ2\chi^{2}-divergence decays exponentially in the forward process.

The most challenging error term to deal with is the KL divergence term KL⁡(qtψt∣∣pt)\operatorname{KL}(q_{t}\psi_{t}||p_{t}). Our main innovation over the analysis of [LLT22] is bounding this term without a global log-Sobolev inequality for ptp_{t}. We note that it suffices for ptp_{t} to be a mixture of distributions each satisfying a log-Sobolev inequality, with the logarithm of the minimum mixture weight bounded below, and in Lemma 5.2, we show that we can decompose any distributed of bounded support in this manner if we move a small amount of its mass.

In Section 6, we show that this does not significantly affect the estimate of the score function, by interpreting the score function as solving a Bayesian inference problem: that of de-noising a noised data point. More precisely, we show in Lemma 6.5 that the difference between the score functions of two different distributions can be bounded in L2L^{2} in terms of their χ2\chi^{2}-divergence, which may be of independent interest.

Finally, we reduce from the L2L^{2} to L∞L^{\infty} setting by bounding the probabilities of hitting a bad set where the score error is large, and carefully choose parameters (Section 7). This gives a TV error bound to p~δ\widetilde{p}_{\delta}—the forward distribution at small positive time. Finally, we can bound the Wasserstein distance of p~δ\widetilde{p}_{\delta} to P~0\widetilde{P}_{0} (in the general case) or the TV distance (under additional smoothness of P~0\widetilde{P}_{0}.)

In Section A we show that the Hessian is always bounded by O(dσt2)O\left({\frac{d}{\sigma_{t}^{2}}}\right) with high probability (cf. Assumption 3). We speculate that a high-probability rather than uniform bound on the Hessian (as in Lemma 4.13) can be used to obtain better dependencies, and leave this as an open problem.

We let p~t\widetilde{p}_{t} denote the density of x~t\widetilde{x}_{t} under the forward process (1). Note that x0∼P~0x_{0}\sim\widetilde{P}_{0} may not admit a density, but x~t\widetilde{x}_{t} will for t>0t>0. For the reverse process, we use the notation pt=p~T−tp_{t}=\widetilde{p}_{T-t}, xt=x~T−tx_{t}=\widetilde{x}_{T-t}. We defined mtm_{t} and σt\sigma_{t} in (2),

and note that p~t=(Mmt♯P~0)∗φσt2\widetilde{p}_{t}=(M_{m_{t}\sharp}\widetilde{P}_{0})*\varphi_{\sigma_{t}^{2}}, where Mm(x)=mxM_{m}(x)=mx denotes multiplication by mm, F♯PF_{\sharp}P denotes the pushforward of the measure PP by FF, and φσ2\varphi_{\sigma^{2}} is the density of N(0,σ2Id)N(0,\sigma^{2}I_{d}). When g≡1g\equiv 1, we note the bound σt2≤min⁡{1,t}\sigma_{t}^{2}\leq\min\{1,t\} and σt2=Θ(min⁡{1,t})\sigma_{t}^{2}=\Theta(\min\{1,t\}).

We will let ztz_{t} denote the (interpolated) discrete process (see (12)) and let qtq_{t} be the density of ztz_{t}. We define

and note that qtψtq_{t}\psi_{t} is a probability density. We defined Gt′,t=∫t′tg(T−s)2 dsG_{t^{\prime},t}=\int_{t^{\prime}}^{t}g(T-s)^{2}\,ds in (6).

We denote the estimated score function by either s(x,t)s(x,t) and st(x)s_{t}(x) interchangeably.

A random variable XX is subgaussian with constant CC if

We consider the error between the exact backwards SDE (4) and the exponential integrator with estimated score (5). In this section, we bound the error assuming that the score estimate ss is accurate in L∞L^{\infty}.

For any t∈{T−t0,…,T−tK}t\in\{T-t_{0},\ldots,T-t_{K}\}, the error in the score estimate is bounded:

for some non-decreasing function ε∞,t2\varepsilon_{\infty,t}^{2}.

In Section 7, we will relax this condition to score function being accurate in L2L^{2}.

First, we construct the following continuous-time process which interpolates the discrete-time process (5), for t∈[tk,tk+1]t\in[t_{k},t_{k+1}]:

where Gt′,tG_{t^{\prime},t} is defined in (6).

Letting qtq_{t} be the distribution of ztz_{t} and ptp_{t} be the distribution of xtx_{t}, we have by [LLT22, Lemma A.2] that

To bound (14), we use the following lemma.

Suppose that (11) holds for t=T−tkt=T-t_{k}, ∇ln⁡ptk(x)\nabla\ln p_{t_{k}}(x) is LT−tkL_{T-t_{k}}-Lipschitz, gg is non-decreasing, and that hk≤120LT−tkg(T−tk)2h_{k}\leq\frac{1}{20L_{T-t_{k}}g(T-t_{k})^{2}}. Then we have for t∈[tk,tk+1]t\in[t_{k},t_{k+1}] that

We bound the second term on the RHS of (14). By Lemma 4.1,

by definition of ε∞,t\varepsilon_{\infty,t}, so by Lemma 4.3,

The condition on hkh_{k} and the fact that gg is non-decreasing implies 192Gtk,t2LT−tk2≤12192G_{t_{k},t}^{2}L_{T-t_{k}}^{2}\leq\frac{1}{2}. Rearranging gives

Substituting into (15) and that inequality into (14) give the conclusion. ∎

Suppose that hk≤12g(T−tk)2h_{k}\leq\frac{1}{2g(T-t_{k})^{2}}. Then for t∈[tk+1,tk]t\in[t_{k+1},t_{k}],

Consider (13). The assumption on hkh_{k} implies Gtk,t≤Gtk,tk+1≤12G_{t_{k},t}\leq G_{t_{k},t_{k+1}}\leq\frac{1}{2}, so exp⁡(12Gtk,t)−1≤Gtk,t\exp\left({\frac{1}{2}G_{t_{k},t}}\right)-1\leq G_{t_{k},t}. Let YY denote the last term of (13). Then

Again using Gtk,t≤12G_{t_{k},t}\leq\frac{1}{2}, rearranging gives

Note that Y:=∫tktexp⁡(12∫tkt′g(T−t′′)2 dt′′)g(t′) dwt′Y:=\int_{t_{k}}^{t}\exp\left({\frac{1}{2}\int_{t_{k}}^{t^{\prime}}g(T-t^{\prime\prime})^{2}\,dt^{\prime\prime}}\right)g(t^{\prime})\,dw_{t^{\prime}} is a Gaussian random vector with variance

(Note that this calculation shows that the continuous-time process (12) does agree with the discrete-time process (5) at t=tk+1t=t_{k+1}.) Using the Donsker-Varadhan variational principle, for any random variable XX,

Now following [Che+21, Theorem 4], we set c=18(exp⁡(Gtk,t)−1)c=\frac{1}{8(\exp(G_{t_{k},t})-1)}, so that

Substituting everything into (17) gives the desired inequality. ∎

In order to bound the RHS in Lemma 4.2, we need to bound all four of these quantities, which we do in Lemma 4.5, 4.6, 4.8, and Section 5, respectively. The main innovation in our analysis compared to [LLT22] is a new way to bound KK, which we present in a separate section.

(In other words, this is the usual Orlicz norm applied to ∥X∥2\left\|{X}\right\|_{2}.)

By the Donsker-Varadhan variational principle,

The following bounds KVK_{V}; note that the proof does not depend on the definition of qtq_{t}, only that it is a probability density.

We use the following lemma to bound KΔVK_{\Delta V} in Lemma 4.8.

Suppose that hk≤14Lg(T−tk)2h_{k}\leq\frac{1}{4Lg(T-t_{k})^{2}} where ∇ln⁡pt\nabla\ln p_{t} is LT−tL_{T-t}-smooth (LT−t≥1L_{T-t}\geq 1) and L=max⁡t∈[tk,tk+1]LT−tL=\max_{t\in[t_{k},t_{k+1}]}L_{T-t}. For t∈[tk,tk+1]t\in[t_{k},t_{k+1}],

We have the following relationship for t∈[tk,tk+1]t\in[t_{k},t_{k+1}]:

where pα(x)=αdp(αx)p_{\alpha}(x)=\alpha^{d}p(\alpha x), α=e12∫tktg(T−s)2 ds\alpha=e^{\frac{1}{2}\int_{t_{k}}^{t}g(T-s)^{2}\,ds} and σ2=1−e−∫tktg(T−s)2 ds\sigma^{2}=1-e^{-\int_{t_{k}}^{t}g(T-s)^{2}\,ds}. Observe that since hk≤14g(T−tk)2h_{k}\leq\frac{1}{4g(T-t_{k})^{2}},

so the hypothesis of Lemma 4.7 is satisfied. Using Lemma 4.7, we obtain

Now we put everything together. Write Gt=Gtk,tG_{t}=G_{t_{k},t} for short. Suppose LtL_{t} is non-increasing. By Lemma 4.2,

By Lemma 4.8, KΔV≤25LT−t2(8Gtd+Gt2Kz)+100LT−t2Gt2KVK_{\Delta V}\leq 25L_{T-t}^{2}(8G_{t}d+G_{t}^{2}K_{z})+100L_{T-t}^{2}G_{t}^{2}K_{V}, so

By Lemma 4.5, Kz≤∥xt∥2,ψ22(K+ln⁡2)K_{z}\leq\left\|{x_{t}}\right\|_{2,\psi_{2}}^{2}(K+\ln 2), and by Corollary 4.6, KV≤4χ2(qt∣∣pt)+1⋅Ept(qtpt)+2dLK_{V}\leq\frac{4}{\chi^{2}(q_{t}||p_{t})+1}\cdot\mathscr{E}_{p_{t}}\left({\frac{q_{t}}{p_{t}}}\right)+2dL, so

Now, if hk≤εhk′20g(T−tk)2LT−tk+1h_{k}\leq\frac{\varepsilon^{\prime}_{h_{k}}}{20g(T-t_{k})^{2}L_{T-t_{k+1}}}, then

Let MT−t:=∥xt∥2,ψ22M_{T-t}:=\left\|{x_{t}}\right\|_{2,\psi_{2}}^{2}. Assume that K≤AT−tχ2(qt∣∣pt)+1+BT−tK\leq\frac{A_{T-t}}{\chi^{2}(q_{t}||p_{t})+1}+B_{T-t}. Then we obtain

If εhk′≤min⁡{148(AT−tMT−t+4),1128LT−tAT−t}\varepsilon^{\prime}_{h_{k}}\leq\min\left\{{\frac{1}{\sqrt{48(A_{T-t}M_{T-t}+4)}},\frac{1}{128L_{T-t}A_{T-t}}}\right\}, then

If εhk′≤min⁡{ε′g(T−t)24(T−tk)((BT−t+ln⁡2)MT−t+2dLT−t),ε′24g(T−t)2(T−t)LT−t(8BT−t+6d+16ln⁡2)}\varepsilon^{\prime}_{h_{k}}\leq\min\left\{{\frac{\sqrt{\varepsilon^{\prime}}}{g(T-t)\sqrt{24(T-t_{k})((B_{T-t}+\ln 2)M_{T-t}+2dL_{T-t})}},\frac{\varepsilon^{\prime}}{24g(T-t)^{2}(T-t)L_{T-t}(8B_{T-t}+6d+16\ln 2)}}\right\}, we get

Taking ε′=εln⁡(TT−tN)\varepsilon^{\prime}=\frac{\varepsilon}{\ln\left({\frac{T}{T-t_{N}}}\right)} then gives the following Theorem 4.10. We first introduce a technical assumption.

Assumption 5 holds for ε∞,t\varepsilon_{\infty,t}.

∥x~t∥2,ψ22≤Mt\left\|{\widetilde{x}_{t}}\right\|_{2,\psi_{2}}^{2}\leq M_{t}.

The KL bound KL⁡(ψtqt∣∣pt)≤AT−tχ2(qt∣∣pt)+1+BT−t\operatorname{KL}(\psi_{t}q_{t}||p_{t})\leq\frac{A_{T-t}}{\chi^{2}(q_{t}||p_{t})+1}+B_{T-t} holds for any density qtq_{t} and t<tNt<t_{N}, where ψt(x)=qt(x)/pt(x)χ2(qt∣∣pt)+1\psi_{t}(x)=\frac{q_{t}(x)/p_{t}(x)}{\chi^{2}(q_{t}||p_{t})+1}.

g(t),At,Bt,Lt,Mtg(t),A_{t},B_{t},L_{t},M_{t} have at most polynomial growth and decay (with some constant cc).

Then there is some constant c′c^{\prime} (depending on cc) such that if the step sizes satisfy

This follows from the above calculations and the observation that if we replace F(T−t)F(T-t) by F(T−tk)F(T-t_{k}), for some FF satisfying the power growth and decay assumption, then we change the bound by at most a constant factor, because the step size satisfies hk=tk+1−tk≤T−tk2h_{k}=t_{k+1}-t_{k}\leq\frac{T-t_{k}}{2}. ∎

We specialize this theorem in the case of distributions with bounded support. Note that although not every initial distribution p~t\widetilde{p}_{t} may satisfy a KL inequality as required by condition 3 of Theorem 30, Lemma 5.2 will give the existence of a distribution that does, and is close in TV-error. Later in Section 6, we show that this will have a small effect on the score function, and hence allow us to prove our main theorems.

Suppose that Assumptions 5 and 2 hold, R2≥dR^{2}\geq d, g≡1g\equiv 1, and that P~0\widetilde{P}_{0} is such that the KL inequality (30) holds. Let δ=T−tN\delta=T-t_{N}. If 0<δ,ε<120<\delta,\varepsilon<\frac{1}{2}, hk=O(εmax⁡{T−tk,(T−tk)−3}R4dln⁡(Tδ)ln⁡(RδεK))h_{k}=O\left({\frac{\varepsilon}{\max\{T-t_{k},(T-t_{k})^{-3}\}R^{4}d\ln\left({\frac{T}{\delta}}\right)\ln\left({\frac{R}{\delta\varepsilon_{K}}}\right)}}\right), then for any 0≤k≤N0\leq k\leq N,

For g≡1g\equiv 1, note that σT−t2=Θ(min⁡{T−t,1})\sigma_{T-t}^{2}=\Theta(\min\{T-t,1\}). From Lemma 4.13, we can choose

We now check the requirements on hkh_{k}. We need

As long as R2=Ω(d)R^{2}=\Omega(d) and ε<1\varepsilon<1, the last equation implies all the others. Plugging this into Theorem 4.10 gives the result. ∎

Above, we use the Hessian bound ∥∇2ln⁡pt(x)∥≤R2σt4\left\|{\nabla^{2}\ln p_{t}(x)}\right\|\leq\frac{R^{2}}{\sigma_{t}^{4}} given in Lemma 4.13. Under the stronger smoothness assumption given by Assumption 3, we can take the step sizes to be larger.

Suppose that Assumptions 5, 2, 3 hold, C≥R2≥dC\geq R^{2}\geq d, g≡1g\equiv 1, and that P~0\widetilde{P}_{0} is such that the KL inequality (30) holds. Let δ=T−tN\delta=T-t_{N}. If 0<δ,ep<120<\delta,ep<\frac{1}{2} and ε<1/T\varepsilon<1/\sqrt{T}, hk=O(εmax⁡{T−tk,(T−tk)−1}C2dln⁡(Tδ)ln⁡(RδεK))h_{k}=O\left({\frac{\varepsilon}{\max\{T-t_{k},(T-t_{k})^{-1}\}C^{2}d\ln\left({\frac{T}{\delta}}\right)\ln\left({\frac{R}{\delta\varepsilon_{K}}}\right)}}\right), then for any 0≤k≤N0\leq k\leq N,

We instead have the bound Lt=Cσt2L_{t}=\frac{C}{\sigma_{t}^{2}}. The requirement (22) stays the same, while (23) is implied by εhk′=O(1/C)\varepsilon^{\prime}_{h_{k}}=O(1/C). Inequality (24), for T−tk≤1T-t_{k}\leq 1, is implied by

Finally, the last requirement is implied by

and for C≥R2C\geq R^{2}, ε≤1/T\varepsilon\leq 1/\sqrt{T}, implies all the others. ∎

In this section we give bounds on the Hessian (LtL_{t}, Lemma 4.13), initial χ2\chi^{2} divergence χ2(q0∣∣p0)\chi^{2}(q_{0}||p_{0}) (Lemma 4.14), and Orlicz norm (MtM_{t}, Lemma 4.15).

Therefore, for P~0\widetilde{P}_{0} supported on BR(0)B_{R}(0), R≥1R\geq 1, we have

The covariance of a distribution supported on a set of radius RR is bounded by R2R^{2} in operator norm. Inequality (25) then follows from (28).

For (26), note that p~t=Mmt♯P~0∗φσt2\widetilde{p}_{t}=M_{m_{t}\sharp}\widetilde{P}_{0}*\varphi_{\sigma_{t}^{2}}, where mtm_{t} is given by (2) and MmM_{m} denotes multiplication by mm. Since Mmt♯P~0M_{m_{t}\sharp}\widetilde{P}_{0} is supported on BmtR(0)⊂BR(0)B_{m_{t}R}(0)\subset B_{R}(0) and σt≤1\sigma_{t}\leq 1, the result follows. ∎

Suppose that P~0\widetilde{P}_{0} is supported on BR(0)B_{R}(0). Let pprior=N(0,(1−eG0,t)Id)p_{\textup{prior}}=N(0,(1-e^{G_{0,t}})I_{d}). Then

and for 0<ε<120<\varepsilon<\frac{1}{2} and G0,T≥ln⁡(4R2ε2)∨1G_{0,T}\geq\ln\left({\frac{4R^{2}}{\varepsilon^{2}}}\right)\vee 1, we have χ2(pprior∣∣p~T)≤ε2\chi^{2}(p_{\textup{prior}}||\widetilde{p}_{T})\leq\varepsilon^{2}.

We have for x0∼P~0x_{0}\sim\widetilde{P}_{0} that

Using convexity of χ2\chi^{2}-divergence then gives the result. For G0,T≥ln⁡(4R2ε2)∨1G_{0,T}\geq\ln\left({\frac{4R^{2}}{\varepsilon^{2}}}\right)\vee 1, we have

Suppose P~0\widetilde{P}_{0} is supported on BR(0)B_{R}(0). Then for X∼p~tX\sim\widetilde{p}_{t},

where mt,σtm_{t},\sigma_{t} are as in (2) and C1C_{1} is an absolute constant.

Let Y∼P~0Y\sim\widetilde{P}_{0} s.t. X=mtY+σtξX=m_{t}Y+\sigma_{t}\xi for some ξ∼N(0,Id)\xi\sim N(0,I_{d}) independent of YY. Define U=∥X∥2:=(∑i=1dXi2)1/2U=\left\|{X}\right\|_{2}:=\left({\sum_{i=1}^{d}X_{i}^{2}}\right)^{1/2}, then for p≥1p\geq 1,

where Γ\Gamma is the commonly used gamma function and C1C_{1} is an absolute constant. Therefore

where K=2mtR+3C1σtdK=2m_{t}R+3C_{1}\sigma_{t}\sqrt{d}. Now consider V=U/KV=U/K, then for some λ>0\lambda>0 small enough, by Taylor expansion,

provided that 2eλ2<12e\lambda^{2}<1, in which case the geometric series above converges. To bound this quantity further, we can use the numeric inequality 1/(1−x)≤e2x1/(1-x)\leq e^{2x} which is valid for x∈[0,1/2]x\in[0,1/2]. It follows that

Bounding the KL divergence

In this section, we bound the quantity K=KL⁡(ψtqt∣∣pt)K=\operatorname{KL}(\psi_{t}q_{t}||p_{t}), where ψt\psi_{t} is as in (8). While ptp_{t} is defined by the DDPM process, in this section we do not assume qtq_{t} is the density of the discretized process; rather, it is any density for which Ept(qtpt)\mathscr{E}_{p_{t}}\left({\frac{q_{t}}{p_{t}}}\right) and χ2(qt∣∣pt)\chi^{2}(q_{t}||p_{t}) are finite.

where wj>0w_{j}>0, ∑j=1mwj=1\sum_{j=1}^{m}w_{j}=1, and each P~j,0\widetilde{P}_{j,0} is a probability measure. For t>0t>0, let p~t\widetilde{p}_{t} and p~j,t\widetilde{p}_{j,t} be the densities obtained by running the forward DDPM process (1) for time tt, and pt=p~T−tp_{t}=\widetilde{p}_{T-t}, pj,t=p~j,T−tp_{j,t}=\widetilde{p}_{j,T-t}. Let wmin⁡=min⁡1≤j≤mwjw_{\min}=\min_{1\leq j\leq m}w_{j} and suppose all the P~j,t\widetilde{P}_{j,t} satisfy a log-Sobolev constant with constant CtC_{t}. Then for any qtq_{t}, where ψt\psi_{t} is as in (8)

While we need ptp_{t} to satisfy a log-Sobolev inequality to get a bound of the form Cχ2(qt∣∣pt)+1Ept(qtpt)\frac{C}{\chi^{2}(q_{t}||p_{t})+1}\mathscr{E}_{p_{t}}\left({\frac{q_{t}}{p_{t}}}\right) ([LLT22, Lemma C.8]), we note that if we allow additive slack, it suffices for ptp_{t} to be a mixture of distributions satisfying a log-Sobolev inequality, with the logarithm of the minimum mixture weight bounded below. In Lemma 5.2 we will see that we can almost decompose any distribution of bounded support in this manner, if we move a small amount of the mass.

By decomposition of entropy and the fact that each Pi,tP_{i,t} satisfies LSI with constant CT−tC_{T-t},

where the last inequality follows from noting wjf‾t(j)w_{j}\overline{f}_{t}(j) is a probability mass function on [m][m], so that f‾t(j)≤1wj\overline{f}_{t}(j)\leq\frac{1}{w_{j}} and

Suppose 0<εK<120<\varepsilon_{K}<\frac{1}{2}, and that P‾0\overline{P}_{0} is a probability measure such that P‾0(M)≥1−εK8\overline{P}_{0}(\mathcal{M})\geq 1-\frac{\varepsilon_{K}}{8}. Let N(M,σt2)\mathcal{N}\left({\mathcal{M},\frac{\sigma_{t}}{2}}\right) denote the covering number of M\mathcal{M} with balls of radius σt\sigma_{t}. Given δ>0\delta>0, there exists a distribution P~0\widetilde{P}_{0} such that χ2(P~0∣∣P‾0)≤εK\chi^{2}(\widetilde{P}_{0}||\overline{P}_{0})\leq\varepsilon_{K} and considering the DDPM process started with P~0\widetilde{P}_{0}, for all 0≤t≤T−δ0\leq t\leq T-\delta,

Partition M\mathcal{M} into disjoint subsets Mj\mathcal{M}_{j}, 1≤j≤N:=N(M,σδ/2)1\leq j\leq N:=\mathcal{N}(\mathcal{M},\sigma_{\delta}/2) of diameter at most σδ\sigma_{\delta}, and decompose

where pjp_{j} is supported on Mj\mathcal{M}_{j} and P∗=P‾0(⋅∣Mc)P_{*}=\overline{P}_{0}(\cdot|\mathcal{M}^{c}). We will zero out the coefficients of all small components: let Z=∑j:wj≥εK8NwjZ=\sum_{j:w_{j}\geq\frac{\varepsilon_{K}}{8N}}w_{j} and

Note that Z≥1−εK8−∑j:wj≤εK8N≥1−εK4Z\geq 1-\frac{\varepsilon_{K}}{8}-\sum_{j:w_{j}\leq\frac{\varepsilon_{K}}{8N}}\geq 1-\frac{\varepsilon_{K}}{4}. As probability distributions on [m]∪{∗}[m]\cup\{*\},

and hence the same bound holds for χ2(P~0∣∣P‾0)\chi^{2}(\widetilde{P}_{0}||\overline{P}_{0}). Note each Mmt♯P~j,0M_{m_{t}\sharp}\widetilde{P}_{j,0} is supported on a set of diameter mtσ≤σm_{t}\sigma\leq\sigma. By Theorem 1 of [CCN21], noting that

when Σ=σ2I\Sigma=\sigma^{2}I and ∥μ2−μ1∥≤σ\left\|{\mu_{2}-\mu_{1}}\right\|\leq\sigma, P~j,t=(Mmt♯P~j,0)∗φσ2\widetilde{P}_{j,t}=(M_{m_{t}\sharp}\widetilde{P}_{j,0})*\varphi_{\sigma^{2}} satisfies a log-Sobolev inequality with constant 6(1+e)σt26(1+e)\sigma_{t}^{2}. The result then follows from Lemma 5.1. For M=BR(0)\mathcal{M}=B_{R}(0), we use the bound N(BR(0),σδ/2)≤(1+4Rσδ)d\mathcal{N}(B_{R}(0),\sigma_{\delta}/2)\leq\left({1+\frac{4R}{\sigma_{\delta}}}\right)^{d} [Ver18, Corollary 4.2.13]. ∎

In the next section, we show that we can move a small amount of mass ε\varepsilon without significantly affecting the score function. This is necessary, as our guarantees on the score estimate are for the original distribution and not the perturbed one in Lemma 5.2.

The effect of perturbing the data distribution on the score function

In this section we consider the effect of perturbing the data distribution on the score function. The key observation is that the score function can be interpreted as the solution to an inference problem, that of recovering the original data point from a noisy sample, with data distribution as the given prior distribution. We show through a coupling argument that we can bound the difference between the score functions in terms of the distance between the two data distributions. This will allow us to “massage” the data distribution in order to optimally bound KL⁡(ψtqt∣∣pt)\operatorname{KL}(\psi_{t}q_{t}||p_{t}) in Section 5.

We first give a general lemma on denoising error from a mismatched prior.

Let εTV⁡=TV⁡(P0,x,P1,x)\varepsilon_{\operatorname{TV}}=\operatorname{TV}(P_{0,x},P_{1,x}) and εχ2=χ2(P0,x∣∣P1,x)\varepsilon_{\chi}^{2}=\chi^{2}(P_{0,x}||P_{1,x}). Then

For φ=φσ2\varphi=\varphi_{\sigma^{2}}, the upper bound is O(σ2εχ(d+ln⁡(1εTV⁡)))O\left({\sigma^{2}\varepsilon_{\chi}\left({d+\ln\left({\frac{1}{\varepsilon_{\operatorname{TV}}}}\right)}\right)}\right).

Note the tricky part of the proof is to deal with P1(dx1∣y0)P_{1}(dx_{1}|y_{0}), which can be thought of as inferring xx assuming the incorrect prior P1,xP_{1,x}, rather than the actual prior P0,xP_{0,x}.

so QQ is absolutely continuous with respect to P0,yP_{0,y} and P1,yP_{1,y}, and by assumption on the coupling,

Under P0,1P_{0,1}, when y0=y1y_{0}=y_{1}, we can couple P0(dx^0∣y0)P_{0}(d\widehat{x}_{0}|y_{0}) and P1(dx^1∣y0)P_{1}(d\widehat{x}_{1}|y_{0}) so that x0=x1x_{0}=x_{1} with probability min⁡{dQdP0,y,dQdP1,y}\min\left\{{\frac{dQ}{dP_{0,y}},\frac{dQ}{dP_{1,y}}}\right\}. Let P^(dx^0,dx^1∣y0)\widehat{P}(d\widehat{x}_{0},d\widehat{x}_{1}|y_{0}) denote this coupled distribution. Then as in Lemma 6.5,

which follows from the two inequalities (using (31))

From (32), and the fact that the distribution of (xi,yi)(x_{i},y_{i}) is the same as (x^i,yi)(\widehat{x}_{i},y_{i}) by Nishimori’s identity, we obtain

The first term satisfies ∫{y0≠y1}P0,1,y(dy0,dy1)∥r0(y0)∥2≤m(2)(εTV⁡)\int_{\{y_{0}\neq y_{1}\}}P_{0,1,y}(dy_{0},dy_{1})\left\|{r_{0}(y_{0})}\right\|^{2}\leq m^{(2)}(\varepsilon_{\operatorname{TV}}). For the second term, we note that Cauchy-Schwarz gives for any measures PP and QQ that

to switch from the measure P0,yP_{0,y} to P1,yP_{1,y}:

(Note that intentionally, the measure is P1,yP_{1,y}, though we use y0y_{0} for the variable.) Hence,

where we used the data processing inequality.

For φ=φσ2\varphi=\varphi_{\sigma^{2}}, we obtain by Lemma 6.6 that the bound is

We use this lemma to obtain a bound on the L2L^{2} score error under perturbation of the distribution, by interpreting the score as the solution to a de-noising problem.

Let p~t(i)\widetilde{p}_{t}^{(i)} be the density resulting from running (1) starting from P~(i)\widetilde{P}^{(i)}, and let σt\sigma_{t} be as in (2). Then for any t>0t>0,

where P~y,σ2(i)\widetilde{P}^{(i)}_{y,\sigma^{2}} is the “tilted" probability distribution defined by

By Bayes’s rule, this can be viewed as the conditional probability that x0=xx_{0}=x given xt=yx_{t}=y, where x0∼P~(i)x_{0}\sim\widetilde{P}^{(i)} and y=x0+σξy=x_{0}+\sigma\xi, ξ∼N(0,Id)\xi\sim N(0,I_{d}). Hence this fits in the framework of Lemma 6.1 and

For part 2, note that p~t(i)=(Mmt♯P~(i))∗φσt2\widetilde{p}^{(i)}_{t}=(M_{m_{t}\sharp}\widetilde{P}^{(i)})*\varphi_{\sigma_{t}^{2}}. Applying part 1 with P~(i)\mapsfromMmt♯P~(i)\widetilde{P}^{(i)}\mapsfrom M_{m_{t}\sharp}\widetilde{P}^{(i)} (which preserves χ2\chi^{2}-divergence) and σ=σt\sigma=\sigma_{t} gives the result.

Finally, we argue that a score estimate that is accurate with respect to p~t(1)\widetilde{p}^{(1)}_{t} will still be accurate with respect to p~t(0)\widetilde{p}^{(0)}_{t}, with high probability. When using this lemma, we will substitute in the bound from Lemma 6.2.

for t∈(0,T]t\in(0,T], and ∇ln⁡p~t(0)\nabla\ln\widetilde{p}_{t}^{(0)} is LtL_{t}-Lipschitz. Then for t∈(0,T]t\in(0,T] and any ε∞>0\varepsilon_{\infty}>0,

The first term is bounded by TV⁡(P~(0),P~(1))≤ε\operatorname{TV}(\widetilde{P}^{(0)},\widetilde{P}^{(1)})\leq\varepsilon. For the second term, by Chebyshev’s Inequality,

For the last term, again by Chebyshev’s Inequality,

We conclude the proof by combining the these three inequalities. ∎

Finally, we will need the following to obtain a TV error bound to p~0\widetilde{p}_{0} in Theorem 2.3.

where in the second inequality, we use the fact that 1−ex≤∣x∣1-e^{x}\leq\left|{x}\right| for all x≤0x\leq 0. Thus

where φ(y)\varphi(y) is the density of the dd-dimensional standard Gaussian distribution. Apply Minkowski’s inequality for integrals:

Now we conclude the proof by combining the bounds for TV⁡(p~t,q~t)\operatorname{TV}(\widetilde{p}_{t},\widetilde{q}_{t}) and TV⁡(p~0,q~t)\operatorname{TV}(\widetilde{p}_{0},\widetilde{q}_{t}):

where we use the fact that ln⁡x≤x−1\ln x\leq x-1 for all x≥1x\geq 1. Recall that αt=1/mt=et/2\alpha_{t}=1/m_{t}=e^{t/2} and σt2=1−e−t\sigma_{t}^{2}=1-e^{-t} when g≡1g\equiv 1. It suffices for

2 Perturbation under TV error

Although we will not need it in our proof, we note that we can derive a similar perturbation result under TV error, which might be of independent interest.

x0=x1x_{0}=x_{1} with probability 1−ε1-\varepsilon,

For notational clarity, we will denote draws from the conditional distribution as x^0\widehat{x}_{0} and x^1\widehat{x}_{1}, for example P0(dx^0∣y0)P_{0}(d\widehat{x}_{0}|y_{0}). We have

As in Lemma 6.2, under P0,1P_{0,1}, when y0=y1y_{0}=y_{1}, we can couple P0(dx^0∣y0)P_{0}(d\widehat{x}_{0}|y_{0}) and P1(dx^1∣y0)P_{1}(d\widehat{x}_{1}|y_{0}) so that x0=x1x_{0}=x_{1} with probability min⁡{dQdP0,y,dQdP1,y}\min\left\{{\frac{dQ}{dP_{0,y}},\frac{dQ}{dP_{1,y}}}\right\}. Let P^(dx^0,dx^1∣y0)\widehat{P}(d\widehat{x}_{0},d\widehat{x}_{1}|y_{0}) denote this coupled distribution. Then

Finally, for the second term (II), we use the fact that r1r_{1} is L1L_{1} Lipschitz and the coupling to conclude

We conclude the proof by combining the inequalities for (i), (ii), and (II).

3 Gaussian tail calculation

We use the following Gaussian tail calculation in the proof of Lemma 6.2.

Let μ\mu be the standard Gaussian measure on N(0,Id)N(0,I_{d}). Then

By the χ2\chi^{2} tail bound in [LM00], for t≥0t\geq 0,

so ∥X∥2\left\|{X}\right\|^{2} is stochastically dominated by a random variable with cdf F(y)=1−e−y−2d3F(y)=1-e^{-\frac{y-2d}{3}}. Then letting PYP_{Y} be the measure corresponding to FF,

We will state our results under a more general tail bound assumption.

R:→[0,∞)R:\to[0,\infty) is a function such that Pdata(BR(ε)(0))≥1−εP_{\textup{data}}(B_{R(\varepsilon)}(0))\geq 1-\varepsilon.

Our result will require R(ε)R(\varepsilon) to grow at most as a sufficiently small power of ε−1\varepsilon^{-1} as ε→0\varepsilon\to 0; in particular, this holds for subexponential distributions. By taking RR to be a constant function, this contains the assumption of bounded support (Assumption 2) as a special case.

We follow the framework of [LLT22] to convert guarantees under L∞L^{\infty}-accurate score estimate, to guarantees under L2L^{2}-accurate score estimate.

If Zk∈BkcZ_{k}\in B_{k}^{c} for all 0≤k≤n−10\leq k\leq n-1, then Zn=Z‾nZ_{n}=\overline{Z}_{n}.

χ2(q‾n∣∣pn)≤Dn2\chi^{2}(\overline{q}_{n}||p_{n})\leq D_{n}^{2}.

Let 0<εχ,εTV⁡,δ<120<\varepsilon_{\chi},\varepsilon_{\operatorname{TV}},\delta<\frac{1}{2}. Suppose that Assumption 6 for a sufficiently small value of cc that R0R_{0} is such that R(cεTV⁡3δ6εχ12R019d5)≤R0R\left({\frac{c\varepsilon_{\operatorname{TV}}^{3}\delta^{6}\varepsilon_{\chi}^{12}}{R_{0}^{19}d^{5}}}\right)\leq R_{0}, and R02≥dR_{0}^{2}\geq d. Suppose one of the following cases holds.

Let Pdata,s(⋅,t)P_{\textup{data}},s(\cdot,t) be such that Assumption 1 holds, with R02≥dR_{0}^{2}\geq d. Suppose that

where B=R04dln⁡(Tδ)ln⁡(R0dδεTV⁡εχ)B=R_{0}^{4}d\ln\left({\frac{T}{\delta}}\right)\ln\left({\frac{R_{0}d}{\delta\varepsilon_{\operatorname{TV}}\varepsilon_{\chi}}}\right), and we run (5) starting from ppriorp_{\textup{prior}} for time T=ln⁡(16R02εχ2)T=\ln\left({\frac{16R_{0}^{2}}{\varepsilon_{\chi}^{2}}}\right), N=O(B(T+1δ2)εχ2)N=O\left({\frac{B\left({T+\frac{1}{\delta^{2}}}\right)}{\varepsilon_{\chi}^{2}}}\right) steps with step sizes satisfying hk=O(εχ2Bmax⁡{T−tk,(T−tk)−3})h_{k}=O\left({\frac{\varepsilon_{\chi}^{2}}{B\max\{T-t_{k},(T-t_{k})^{-3}\}}}\right).

Let Pdata,s(⋅,t)P_{\textup{data}},s(\cdot,t) be such that Assumptions 1 and 3 hold, with C≥R02C\geq R_{0}^{2}. Suppose

where B=C2dln⁡(Tδ)ln⁡(R0dδεTV⁡εχ)B=C^{2}d\ln\left({\frac{T}{\delta}}\right)\ln\left({\frac{R_{0}d}{\delta\varepsilon_{\operatorname{TV}}\varepsilon_{\chi}}}\right), and we run (5) starting from ppriorp_{\textup{prior}} for time T=ln⁡(16R02εχ2)T=\ln\left({\frac{16R_{0}^{2}}{\varepsilon_{\chi}^{2}}}\right), N=O(B(T+ln⁡(1δ))εχ2)N=O\left({\frac{B\left({T+\ln\left({\frac{1}{\delta}}\right)}\right)}{\varepsilon_{\chi}^{2}}}\right) steps with step sizes satisfying hk=O(εχ2Bmax⁡{T−tk,(T−tk)−1})h_{k}=O\left({\frac{\varepsilon_{\chi}^{2}}{B\max\{T-t_{k},(T-t_{k})^{-1}\}}}\right).

Then the resulting distribution qtNq_{t_{N}} is such that qtNq_{t_{N}} is εTV⁡\varepsilon_{\operatorname{TV}}-far in TV distance from a distribution q‾tN\overline{q}_{t_{N}}, where q‾tN\overline{q}_{t_{N}} satisfies χ2(q‾tN∣∣ptN)≤εχ2\chi^{2}(\overline{q}_{t_{N}}||p_{t_{N}})\leq\varepsilon_{\chi}^{2}. In particular, taking εχ=εTV⁡\varepsilon_{\chi}=\varepsilon_{\operatorname{TV}}, we have TV⁡(qT,Pdata)≤2εTV⁡\operatorname{TV}(q_{T},P_{\textup{data}})\leq 2\varepsilon_{\operatorname{TV}}.

Note that the condition on RR can be satisfied if R(ε)=o(R−1/19)R(\varepsilon)=o(R^{-1/19}) (no effort has been made to optimize the exponent).

We invoke Lemma 5.2 for a εK\varepsilon_{K} to be chosen, to obtain a distribution P~0\widetilde{P}_{0} on BR0(0)B_{R_{0}}(0), where R0≥R(εK/8)R_{0}\geq R(\varepsilon_{K}/8). Let B=R04dln⁡(Tδ)ln⁡(R0δεK)B=R_{0}^{4}d\ln\left({\frac{T}{\delta}}\right)\ln\left({\frac{R_{0}}{\delta\varepsilon_{K}}}\right) and B=C2dln⁡(Tδ)ln⁡(R0δεK)B=C^{2}d\ln\left({\frac{T}{\delta}}\right)\ln\left({\frac{R_{0}}{\delta\varepsilon_{K}}}\right) in case 1 and case 2, respectively; our choice of εK=O(εTV⁡2δ6n2R06)\varepsilon_{K}=O\left({\frac{\varepsilon_{\operatorname{TV}}^{2}\delta^{6}}{n^{2}R_{0}^{6}}}\right) will give the definition of BB in the theorem statement. In the following, we define p~t\widetilde{p}_{t} with P~0\widetilde{P}_{0}, rather than PdataP_{\textup{data}}, as the initial distribution. Note that since TV⁡(Pdata,P~0)≤εK=o(εTV⁡)\operatorname{TV}(P_{\textup{data}},\widetilde{P}_{0})\leq\sqrt{\varepsilon_{K}}=o(\varepsilon_{\operatorname{TV}}) (and the same holds for their evolutions under (1)), it suffices to consider convergence to p~δ\widetilde{p}_{\delta}.

We first define the bad sets where the error in the score estimate is large,

for some ε∞,t\varepsilon_{\infty,t} to be chosen.

Given t≥0t\geq 0, let t−=tkt_{-}=t_{k} where kk is such that t∈[tk,tk+1)t\in[t_{k},t_{k+1}). Given bad sets BtB_{t}, define the interpolated process on [tk,tk+1)[t_{k},t_{k+1}) by

In other words, simulate the reverse SDE using the score estimate as long as the point is in the good set at the previous discretization timepoint tkt_{k}, and otherwise use the actual gradient ∇ln⁡pt\nabla\ln p_{t}. Let q‾t\overline{q}_{t} denote the distribution of z‾t\overline{z}_{t} when z‾0∼q0\overline{z}_{0}\sim q_{0}. Note that this process is defined only for purposes of analysis, as we do not have access to ∇ln⁡pt\nabla\ln p_{t}. As before, we let denote qtq_{t} the distribution of ztz_{t} defined by (12).

We can couple this process with the exponential integrator (5) using ss so that as long as xtm∉BT−tmx_{t_{m}}\not\in B_{T-t_{m}}, the processes agree, thus satisfying condition 1 of Theorem 7.1.

Then by choice of hkh_{k} and either Corollary 4.11 or 4.12, when ∫0tnεt2 dt=O(1)\int_{0}^{t_{n}}\varepsilon_{t}^{2}\,dt=O(1),

where ε=εχ24\varepsilon=\frac{\varepsilon_{\chi}^{2}}{4}. For χ2(q‾tk∣∣ptk)\chi^{2}(\overline{q}_{t_{k}}||p_{t_{k}}) to be bounded by εχ2\varepsilon_{\chi}^{2}, it suffices for the terms in (37) to be bounded by εχ22,εχ24,εχ24\frac{\varepsilon_{\chi}^{2}}{2},\frac{\varepsilon_{\chi}^{2}}{4},\frac{\varepsilon_{\chi}^{2}}{4}; this is implied by

For this to be bounded by εTV⁡\varepsilon_{\operatorname{TV}}, it suffices for

We bound (42) crudely, as the dependence on εK\varepsilon_{K} will be logarithmic. Using εtk2=εσ2/σtk4\varepsilon_{t_{k}}^{2}=\varepsilon_{\sigma}^{2}/\sigma_{t_{k}}^{4}, it suffices that

We will return to this after deriving a condition on εσ\varepsilon_{\sigma}. It remains to bound (38) and (41). We break up the timepoints depending on whether T−t>1T-t>1. Let

and uk=T−tk′u_{k}=T-t_{k}^{\prime}, where tncoarse−1≤T−1≤t1′t_{n^{\textup{coarse}}-1}\leq T-1\leq t_{1}^{\prime}. Let hk′=tk+1′−tk′h_{k}^{\prime}=t_{k+1}^{\prime}-t_{k}^{\prime}. Note the “fine” timepoints will be closer together than the “coarse” timepoints. We break up the integral (38) and the sum (41) into the parts involving the coarse and fine timepoints. For (38), it suffices to have

so it suffices to take ε∞,T−tk2≍εχ2T\varepsilon_{\infty,T-t_{k}}^{2}\asymp\frac{\varepsilon_{\chi}^{2}}{T}. Let α=3\alpha=3 in case 1 and α=1\alpha=1 in case 2. For the fine part, recalling our choice of hk′h_{k}^{\prime}, it suffices to have (note we can redefine εt=εtk\varepsilon_{t}=\varepsilon_{t_{k}} when t∈[tk,tk+1)t\in[t_{k},t_{k+1}) without any harm)

Note that in light of the required step sizes, we can take ncoarse≍T2Bεχ2n^{\textup{coarse}}\asymp\frac{T^{2}B}{\varepsilon_{\chi}^{2}}. Considering the equality case of Hölder’s inequality on \eqrefe:1fine1/3\eqrefe:2fine2/3\eqref{e:1fine}^{1/3}\eqref{e:2fine}^{2/3} suggests that we take

Note that the number of steps needed in the fine part is O(Bεχ2δ2)O\left({\frac{B}{\varepsilon_{\chi}^{2}\delta^{2}}}\right) in the first case and O(Bεχ2)ln⁡(1δ)O\left({\frac{B}{\varepsilon_{\chi}^{2}}}\right)\ln\left({\frac{1}{\delta}}\right) in the second case. We can check that (47) and (48) make (44) and (46) satisfied.

Finally, we calculate the denominator for εσ\varepsilon_{\sigma}. In case 1, note that starting from T−t0′=O(1)T-t_{0}^{\prime}=O(1) and taking steps of size hk′≍εχ2B(T−tk′)3h_{k}^{\prime}\asymp\frac{\varepsilon_{\chi}^{2}}{B(T-t_{k}^{\prime})^{3}}, it takes nfine=Θ(Bεχ2δ2)n^{\textup{fine}}=\Theta\left({\frac{B}{\varepsilon_{\chi}^{2}\delta^{2}}}\right) steps to reach T−t=δT-t=\delta.

but note that the first bound is more stringent. Now, returning to (43), we see that it suffices to take εK=O(1d(εTV⁡δ5/2εχ11/2R09d9/4)2+β)\varepsilon_{K}=O\left({\frac{1}{d}\left({\frac{\varepsilon_{\operatorname{TV}}\delta^{5/2}\varepsilon_{\chi}^{11/2}}{R_{0}^{9}d^{9/4}}}\right)^{2+\beta}}\right) for any β>0\beta>0 (this will “solve” the log⁡(1/εK)\log(1/\varepsilon_{K}) appearing in BB.)

In case 2, we have instead uk=exp⁡(−Θ(εχ2Bk))u_{k}=\exp\left({-\Theta\left({\frac{\varepsilon_{\chi}^{2}}{B}k}\right)}\right) so

Let Pdata,s(⋅,t)P_{\textup{data}},s(\cdot,t) be such that Assumption 1 holds. Suppose that

where B=R04dln⁡(TR02L2εTV⁡2)ln⁡(R03dL2εTV⁡3εχ)B=R_{0}^{4}d\ln\left({\frac{TR_{0}^{2}L^{2}}{\varepsilon_{\operatorname{TV}}^{2}}}\right)\ln\left({\frac{R_{0}^{3}dL^{2}}{\varepsilon_{\operatorname{TV}}^{3}\varepsilon_{\chi}}}\right), and we run (5) starting from ppriorp_{\textup{prior}} for time T=ln⁡(16R02εTV⁡2)T=\ln\left({\frac{16R_{0}^{2}}{\varepsilon_{\operatorname{TV}}^{2}}}\right), N=O(B(T+(R0LεTV⁡)4)εTV⁡2)N=O\left({\frac{B\left({T+\left({\frac{R_{0}L}{\varepsilon_{\operatorname{TV}}}}\right)^{4}}\right)}{\varepsilon_{\operatorname{TV}}^{2}}}\right) steps with step sizes satisfying hk=O(εχ2Bmax⁡{T−tk,(T−tk)−3})h_{k}=O\left({\frac{\varepsilon_{\chi}^{2}}{B\max\{T-t_{k},(T-t_{k})^{-3}\}}}\right).

Let Pdata,s(⋅,t)P_{\textup{data}},s(\cdot,t) be such that Assumptions 1 and 3 hold, with C≥R02C\geq R_{0}^{2}. Suppose

where B=C2dln⁡(TR02L2εTV⁡2)ln⁡(R03dL2εTV⁡4)B=C^{2}d\ln\left({\frac{TR_{0}^{2}L^{2}}{\varepsilon_{\operatorname{TV}}^{2}}}\right)\ln\left({\frac{R_{0}^{3}dL^{2}}{\varepsilon_{\operatorname{TV}}^{4}}}\right), and we run (5) starting from ppriorp_{\textup{prior}} for time T=ln⁡(16R02εTV⁡2)T=\ln\left({\frac{16R_{0}^{2}}{\varepsilon_{\operatorname{TV}}^{2}}}\right), N=O(B(T+ln⁡(R0LεTV⁡))εTV⁡2)N=O\left({\frac{B\left({T+\ln\left({\frac{R_{0}L}{\varepsilon_{\operatorname{TV}}}}\right)}\right)}{\varepsilon_{\operatorname{TV}}^{2}}}\right) steps with step sizes satisfying hk=O(εχ2Bmax⁡{T−tk,(T−tk)−1})h_{k}=O\left({\frac{\varepsilon_{\chi}^{2}}{B\max\{T-t_{k},(T-t_{k})^{-1}\}}}\right).

Then the resulting distribution qtNq_{t_{N}} is such that qtNq_{t_{N}} is εTV⁡\varepsilon_{\operatorname{TV}}-far in TV distance from the data distribution PdataP_{\text{data}}.

With the result of Theorem 7.2, we see that TV⁡(qtN,ptN)≤2εTV⁡\operatorname{TV}(q_{t_{N}},p_{t_{N}})\leq 2\varepsilon_{\operatorname{TV}}. Now by Lemma 6.4, if we further assume

then TV⁡(ptN,Pdata)≤εTV⁡\operatorname{TV}(p_{t_{N}},P_{\text{data}})\leq\varepsilon_{\operatorname{TV}}. We conclude the proof by triangle inequality and replacing the δ\delta-dependence with O(εTV⁡2R02L2)O(\frac{\varepsilon_{\operatorname{TV}}^{2}}{R_{0}^{2}L^{2}}) in the previous theorem. ∎

If PdataP_{\textup{data}} is subexponential with a fixed constant, note that Assumption 6 holds with R(ε)=O(ln⁡(1ε))R(\varepsilon)=O\left({\ln\left({\frac{1}{\varepsilon}}\right)}\right) and hence R0R_{0} is logarithmic in all parameters. ∎

2 Wasserstein error guarantees

If T−tN=δT-t_{N}=\delta, then W2(p~0,p~δ)≤σδ≤δW_{2}(\widetilde{p}_{0},\widetilde{p}_{\delta})\leq\sigma_{\delta}\leq\sqrt{\delta}. Choosing δ=εW2\delta=\varepsilon_{\textup{W}}^{2}, we see by Theorem 7.2 it suffices to take

Simplifying gives εσ=o~(εTV⁡6.5εW5R9d2.25)\varepsilon_{\sigma}=\widetilde{o}\left({\frac{\varepsilon_{\operatorname{TV}}^{6.5}\varepsilon_{\textup{W}}^{5}}{R^{9}d^{2.25}}}\right). If Assumption 3 also holds, then it suffices to take

Simplifying gives εσ=o~(εTV⁡4C2d)\varepsilon_{\sigma}=\widetilde{o}\left({\frac{\varepsilon_{\operatorname{TV}}^{4}}{C^{2}d}}\right). ∎

To obtain purely Wasserstein error guarantees, we include an extra step of replacing any sample ztN∼qtNz_{t_{N}}\sim q_{t_{N}} falling outside BR(0)B_{R}(0) by . Suppose T−tN=δT-t_{N}=\delta. Let q^tN\widehat{q}_{t_{N}} be the resulting distribution. Then

We choose δ=εW24\delta=\frac{\varepsilon_{\textup{W}}^{2}}{4} so the first term is ≤εW2\leq\frac{\varepsilon_{\textup{W}}}{2}. It suffices to bound the second term W2(p~δ,q^tN)W_{2}(\widetilde{p}_{\delta},\widehat{q}_{t_{N}}) also by εW2\frac{\varepsilon_{\textup{W}}}{2}. We bound it in terms of TV⁡(p~δ,q^tN)\operatorname{TV}(\widetilde{p}_{\delta},\widehat{q}_{t_{N}}) using the fact that q^tN\widehat{q}_{t_{N}} is supported on BR(0)B_{R}(0) and using a Gaussian tail calculation for p~δ\widetilde{p}_{\delta}. Consider a coupling of xtN=x~δ∼p~δx_{t_{N}}=\widetilde{x}_{\delta}\sim\widetilde{p}_{\delta} and z^tN∼q^tN\widehat{z}_{t_{N}}\sim\widehat{q}_{t_{N}} such that xδ≠z^tNx_{\delta}\neq\widehat{z}_{t_{N}} with probability εTV⁡\varepsilon_{\operatorname{TV}}. Express x~δ=mδx~0+σδξ\widetilde{x}_{\delta}=m_{\delta}\widetilde{x}_{0}+\sigma_{\delta}\xi where x~0∼p~0\widetilde{x}_{0}\sim\widetilde{p}_{0}. Now

where the bound on the second term uses Lemma 6.6. Using R2≥dR^{2}\geq d, we see that it suffices to choose εTV⁡=O(εW2R2)\varepsilon_{\operatorname{TV}}=O\left({\frac{\varepsilon_{\textup{W}}^{2}}{R^{2}}}\right) for appropriate choice of constants. By Theorem 7.2, it suffices to take

Simplifying gives o~(εW18R22d2.25)\widetilde{o}\left({\frac{\varepsilon_{\textup{W}}^{18}}{R^{22}d^{2.25}}}\right).

Simplifying gives εσ=o~(εW8C2R8d)\varepsilon_{\sigma}=\widetilde{o}\left({\frac{\varepsilon_{\textup{W}}^{8}}{C^{2}R^{8}d}}\right). ∎

References

Appendix A High-probability bound on the Hessian

In this section we obtain a high-probability bound on the Hessian of ln⁡p~t\ln\widetilde{p}_{t}, i.e., the Jacobian of the score function.

To see why we expect Hessian to usually be smaller than the worst-case bound given by Lemma 4.13, note that we can express (27) and (28) as

where X∼μX\sim\mu and Y=X+σξY=X+\sigma\xi, ξ∼N(0,Id)\xi\sim N(0,I_{d}). We expect that the random variable Y−XY-X is distributed as N(0,σ2Id)N(0,\sigma^{2}I_{d}), which suggests that the covariance (50) may be bounded by 1σ2\frac{1}{\sigma^{2}} rather than 1σ\frac{1}{\sigma} with high probability. Indeed, we can easily construct an example where the worst case of Lemma 4.13 is attained—for example, μ=12(δ−v+δv)\mu=\frac{1}{2}(\delta_{-v}+\delta_{v}) for ∥v∥2=R\left\|{v}\right\|_{2}=R, at x=0x=0—but this point has exponentially small probability density under μ∗φσ2\mu*\varphi_{\sigma^{2}}.

The following lemma uses a ε\varepsilon-net argument to bound the operator norm of the variance of a conditional distribution, with high probability.

when we take λ=∥X∥ψ2ln⁡(2⋅5dε)\lambda=\left\|{X}\right\|_{\psi_{2}}\sqrt{\ln\left({\frac{2\cdot 5^{d}}{\varepsilon}}\right)}. By [Ver18, Lemma 4.4.1], the operator norm can be bounded by the norm on an ε\varepsilon-net,

From this we obtain the desired high-probability bound.

There is a universal constant CC such that the following holds. For any starting distribution P~0\widetilde{P}_{0}, letting P~t\widetilde{P}_{t} be the law of the DDPM process (1) at time tt, we have

Note that there is no dependence on the radius.

Apply (50) with μ=Mmt♯P~0\mu=M_{m_{t}\sharp}\widetilde{P}_{0} to obtain ∇2ln⁡p~t\nabla^{2}\ln\widetilde{p}_{t}. Noting that Y−X∼N(0,σ2Id)Y-X\sim N(0,\sigma^{2}I_{d}) is subgaussian with ∥Y−X∥ψ2≤C2σ\left\|{Y-X}\right\|_{\psi_{2}}\leq C_{2}\sigma for some universal constant C2C_{2}, the result follows from Lemma A.1. ∎