Source-linked AI summary

Sampling is as easy as learning the score: theory for diffusion models with minimal data assumptions

Sitan Chen, Sinho Chewi, Jerry Li, Yuanzhi Li, Adil Salim, Anru R. Zhang

arXiv:2209.11215v3cs.LGmath.ST

TL;DR

The paper asks whether accurate score estimation is enough for score-based generative models to converge to realistic data distributions despite difficult training analysis and discretization errors. It develops convergence analyses for DDPMs under broad assumptions, showing polynomial guarantees while leaving score learnability unresolved.

  • Problem

    The paper studies whether accurate score estimation implies that score-based generative models converge to the true data distribution in realistic settings.

  • Method

    The paper analyzes DDPMs using forward stochastic differential processes and Girsanov’s theorem to control discretization error alongside score-estimation and initialization errors.

  • Results

    Under L2-accurate score estimation and broadly non-log-concave data distributions, the paper obtains convergence guarantees that scale polynomially in the problem parameters.

  • Takeaways & Limitations

    The results provide theoretical support for the empirical success of score-based generative models when the score function is learned with small L2 error.

  • Takeaways & Limitations

    The paper does not address when neural networks can learn the score function well, so it does not provide end-to-end guarantees.

Abstract

from arXiv · show

We provide theoretical convergence guarantees for score-based generative models (SGMs) such as denoising diffusion probabilistic models (DDPMs), which constitute the backbone of large-scale real-world generative models such as DALL$\cdot$E 2. Our main result is that, assuming accurate score estimates, such SGMs can efficiently sample from essentially any realistic data distribution. In contrast to prior works, our results (1) hold for an $L^2$-accurate score estimate (rather than $L^\infty$-accurate); (2) do not require restrictive functional inequality conditions that preclude substantial non-log-concavity; (3) scale polynomially in all relevant problem parameters; and (4) match state-of-the-art complexity guarantees for discretization of the Langevin diffusion, provided that the score error is sufficiently small. We view this as strong theoretical justification for the empirical success of SGMs. We also examine SGMs based on the critically damped Langevin diffusion (CLD). Contrary to conventional wisdom, we provide evidence that the use of the CLD does not reduce the complexity of SGMs.

1 Introduction

The paper develops polynomial-time convergence guarantees for SGMs under L2 score error and broad, highly non-log-concave data assumptions. It also frames sampling as reducible to score learning and finds no theoretical complexity advantage for CLD over DDPM.

  • Background: SGMs use a forward process to transform data into noise and a reverse process, requiring estimated forward-process scores, to generate samples.Score estimates are typically learned with neural networks using a score-matching objective.
  • Motivation: Prior guarantees were limited by non-quantitative or super-polynomial bounds, strong distributional assumptions, or requirements for L∞-accurate scores.These limitations impede applicability to high-dimensional, multimodal, and realistic data distributions.
  • Contributions: Under A1–A3, including Lipschitz forward-process scores, finite second moment, and finite Gaussian-relative KL divergence, the analysis avoids log-concavity, LSI, and dissipativity assumptions.The resulting scope includes arbitrarily non-log-concave distributions.
  • Contributions: With sufficiently accurate L2 score estimates, DDPM reaches ε-close total variation distance in eO(L^2d/ε^2) iterations, matching state-of-the-art Langevin discretization guarantees.The theorem uses an appropriate step size and the stated accuracy condition on score estimation.
  • Implications: The results provide a black-box reduction from sampling to learning the forward-process score and imply information-computation gaps for score estimation of several natural high-dimensional distributions.The reduction applies to distributions satisfying the paper’s mild assumptions.
  • Contributions: For bounded-support distributions, early stopping yields polynomial Wasserstein guarantees, while the standard theorem excludes lower-dimensional manifold-supported data from nontrivial total-variation guarantees.The output distribution has full support, motivating the Wasserstein formulation for the manifold setting.
  • CLD: The CLD analysis provides theoretical evidence that critically damped Langevin diffusion does not improve dimension dependence or complexity relative to DDPM.This contrasts with intuition and numerical evidence from log-concave sampling that suggested possible acceleration.

2 Background on SGMs

SGMs transform data into noise through a forward process and reverse noise into data using an estimated score function. DDPMs use score matching and discretized reverse dynamics, while CLD introduces a coupled velocity process.

  • DDPM uses an Ornstein–Uhlenbeck stochastic differential equation as its forward process.The OU process converges exponentially fast toward the standard Gaussian distribution γd.
  • The forward process maps data distribution q to pure noise, while the reverse process generates samples from q.
  • Score matching: Implementing the reverse process requires estimating the score ∇ln qt of the forward-process law from samples.Score matching trains a function, often a neural network, using an L2(qt) objective equivalent to a denoising-noise prediction objective.
  • Discretization and implementation: The implementable algorithm replaces the reverse score with estimates, freezes them over time intervals, and integrates the resulting linear SDE in closed form.Because qT is unavailable directly, initialization uses the approximation qT ≈ γd.
  • Critically damped Langevin diffusion: CLD augments the forward OU-style dynamics with a velocity variable, yielding a coupled system on phase space Rd × Rd.Its smoother position paths motivate lower discretization complexity in log-concave sampling, and prior empirical work reported improvements over DDPM.
  • Critically damped Langevin diffusion: The CLD reverse process estimates a score differentiated only with respect to the velocity coordinate.

3 Results

The paper gives polynomial convergence guarantees for DDPM under mild assumptions, including L2 score accuracy and highly non-log-concave data. It also finds no demonstrated complexity advantage for CLD under the analyzed assumptions.

  • DDPM assumptions: The assumptions exclude neither convexity nor dissipativity nor log-Sobolev inequalities, covering arbitrarily highly non-log-concave data distributions.
  • DDPM assumptions: The DDPM theorem assumes a Lipschitz forward score, a second-moment bound, and an L2 score-estimation error condition.The score-estimation assumption is motivated by the L2 score-matching objective.
  • DDPM guarantees: The DDPM guarantee scales polynomially in all relevant parameters and matches state-of-the-art Langevin diffusion discretization complexity.This comparison is stated without requiring higher-order smoothness assumptions.
  • Compactly supported data: For lower-dimensional manifold-supported data, total-variation guarantees are unavailable in general, so the analysis instead uses smoothing, early stopping, and Wasserstein control.The smoothed target qt is close to q in W2, while DDPM approaches qt in TV.
  • Compactly supported data: For compactly supported data, the paper derives polynomial guarantees in bounded-Lipschitz and Wasserstein metrics, including explicit iteration complexities and L2 score-error requirements.The Wasserstein result improves on prior exponential dependencies in the comparable setting.
  • CLD guarantees: The CLD theorem does not improve on the DDPM guarantee, and a lower bound shows its Girsanov-based analysis requires h ≲ 1/d for small path-space KL divergence.This yields iteration complexity linear in dimension and supports the conjecture that CLD does not improve SGMs over DDPM under these assumptions.
  • CLD limitations: The CLD analysis considers only SDE discretization error and leaves possible statistical benefits from easier score estimation for future work.Under the manifold hypothesis, the DDPM score blows up at t = 0, whereas the CLD velocity score is well-defined there.

4 Technical overview

The analysis separates initialization, score-estimation, and discretization errors, then uses information divergences and Girsanov’s theorem to handle score error under minimal assumptions.

  • Error decomposition: SGM analysis tracks score-estimation, discretization, and initialization errors separately.The reverse process is analyzed from either the ideal terminal law qT or the Gaussian initialization γd.
  • Choice of divergence: Wasserstein contraction is problematic because the reverse process can be expansive near terminal time and weaker conditions may yield exponential parameter dependence.Information divergences avoid this obstacle through the data-processing inequality.
  • Girsanov approach: The proof uses Girsanov’s theorem to compare path-space measures, requiring less stringent assumptions than interpolation analyses.This approach directly controls the score-estimation error under the true process rather than under the algorithm’s law.
  • Girsanov approach: L2 score accuracy is difficult for interpolation methods because the assumed error is measured under the true process, while the analysis needs it under the algorithm’s law.Girsanov’s approach avoids the involved change-of-measure step required by prior interpolation analyses.
  • Notation: The notation distinguishes the forward process, reverse process, SGM algorithm, and versions initialized at qT or γd.The forward process starts from q, while the SGM algorithm is initialized at the standard Gaussian measure γd.

5 Proofs for DDPM

The DDPM proof applies Girsanov’s theorem, approximation arguments, and stochastic-calculus discretization bounds to control divergence from the reverse process under L2 score error.

  • Girsanov comparison: Girsanov’s theorem converts a path-space measure change into an SGM law initialized at qT, enabling direct comparison with the reverse process.The resulting equality bounds the discrepancy between the SGM algorithm and the reverse process.
  • Technical conditions: Novikov’s condition may fail under the core assumptions, so the proof uses stopped-process and approximation arguments to extend the KL bound.The same issue applies even to a condition weaker than Novikov’s condition.
  • Discretization bound: Theorem 9 bounds DDPM discretization error when the score is L2-accurate and h ≲ 1/L.The bound combines score error with terms involving dimension, step size, Lipschitz smoothness, and the data’s second moment.
  • Discretization bound: The discretization analysis bounds score variation along the forward process using moment and movement estimates.The resulting terms include L2dh, L2h2∥Xkh∥2, and a score-gradient term evaluated along the process.
  • Final conversion: Pinsker’s inequality converts the final KL-divergence control into total-variation control.The proof combines this with convergence of the Ornstein–Uhlenbeck process and the discretization theorem.

6 Proofs for CLD

The CLD proof follows the same Girsanov-based strategy but finds no discretization advantage because its velocity coordinate remains rough and enters the reverse-process score.

  • CLD setup: The critically damped case γ = 2 is selected because the drift matrix has repeated spectrum {−1} and the calculations simplify substantially.The forward CLD includes both position and velocity variables.
  • Girsanov discretization: Theorem 15 analyzes CLD discretization under assumptions covering the reverse process and an L2-accurate score estimate.Its proof uses Girsanov’s theorem and approximation arguments analogous to the DDPM analysis.
  • Discretization comparison: The underdamped Langevin diffusion improves dimension dependence for log-concave sampling because the position process is smoother.That smoothness yields a score-gradient error of size O(dh2) in the underdamped setting.
  • Discretization comparison: CLD does not improve SGM dimension dependence because the reverse score depends on both position and velocity, while velocity increments are O(dh).The velocity process is not very smooth because it contains a Brownian-motion component.
  • Lower bound: A rigorous lower bound shows that the CLD discretization analysis is essentially tight, except possibly in its dependence on L.For the Gaussian setting, the KL lower bound scales with d h2 T.

7 Conclusion

The paper establishes polynomial convergence guarantees for SGMs with L2-accurate scores and arbitrarily non-log-concave data, while leaving score learnability unresolved.

  • Contributions: The results provide convergence guarantees under L2-accurate score estimation and arbitrarily non-log-concave data distributions, with polynomial parameter dependence.The authors present these guarantees as a step toward explaining SGMs’ empirical success.
  • Limitations: The main limitation is that the paper does not determine when neural networks can learn the score function well.Resolving score learning would be needed for end-to-end guarantees for SGMs.
  • Future direction: The paper poses whether score learning can be algorithmically easier than direct sampling in settings of interest.This question follows from interpreting the results as a reduction from sampling to score estimation.

A Derivation of the score matching objective

The section derives a tractable score matching objective from an initially unevaluable formulation using integration by parts and Gaussian identities for the OU process.

  • The score matching objective cannot be evaluated directly, even when expectations are replaced by empirical averages over samples.
  • Integration by parts rewrites the problematic second term in the objective.
  • The derivation uses the Gaussian integration by parts identity for vector fields and the Gaussian law γd = normal(0, Id).
  • The OU-process representation uses independent X0 ∼ q and Zt ∼ γd to define Xt.

B Regularization

The regularization analysis considers an OU process initialized from a distribution supported in a radius-R ball and derives bounds at a selected short time.

  • The regularization lemma assumes supp q ⊆ B(0, R) with R ≥ 1 and analyzes the OU process law qt at time t.
  • The OU process is represented as ¯Xt = exp(−t) ¯X0 + √(1−exp(−2t)) Z, with Gaussian noise independent of ¯X0.
  • For short times t ≲ 1, the analysis obtains the bound d ≲ R^2t^2 + dt.
  • The proof invokes a short-time regularization result and a bound along the OU process before applying the chosen time scale.
Loading 2209.11215v3…