betaFeedback

WorksMathematics

Diffusion Removes Langevin's Conditioning Dependence: A Sharp Gaussian Analysis

Abstract

Despite their empirical success, why diffusion models overcome the bottlenecks of classical score-based samplers remains unclear. In this work, we leverage Gaussian distributions to isolate this phenomenon. We establish 2-Wasserstein convergence bounds for optimized hyperparameters, showing that diffusion processes achieve a sampling error of O(dλmax⁡log⁡N/N)O(\sqrt{dλ_{\max}}\log N/N), where dd is the dimension, NN the number of sampling steps, and λmax⁡λ_{\max} the largest eigenvalue of the target covariance matrix. Unadjusted and underdamped Langevin dynamics suffer from an additional κ\sqrtκ factor, where κκ is the condition number. These rates follow from spectral bounds which are sharp: we confirm them via matching first-order asymptotics as N→∞N\rightarrow\infty. Our analysis provides a rigorous characterization, in the Gaussian setting, of how time-dependent score trajectories remove condition-number dependence during sampling. By contrast, in the learning phase, we show that estimating the unnoised score by gradient descent leads to essentially the same estimator as estimating a noisy score, which suggests that the benefits of noising do not come from the learning phase.

Introduction

Since their introduction, diffusion models [32, 33, 17, 34] have achieved state-of-the-art performance across a wide range of domains [10, 24, 18, 37]. Training diffusion models requires estimating the gradient of the log-density (the so-called score) of a noisy version of the target. Then samples are produced by iterative denoising through a formula involving this score. Taking a step back, iterative score-based sampling strategies long predate modern diffusion models, as epitomized by the celebrated Langevin algorithm [27, 30] and its many variants such as underdamped Langevin [25]. The key factors explaining their success compared to those more classical algorithms are still unclear: what exact role does the noising process in diffusion models play, and how does it interact with the learning and sampling phases?

Our primary goal in this work is to prove a separation in sampling efficiency between diffusion models and Langevin dynamics in terms of their dependence on the condition number. This sheds light on the practical effectiveness of diffusion models on ill-conditioned distributions such as natural images [16, 12]. To do so, we consider the class of (centered) Gaussian targets. Naturally, sampling from a Gaussian distribution is not our primary concern here. Rather, we use this analytically tractable setting to derive sharp convergence rates accompanied by matching asymptotics, in order to highlight how diffusion models overcome limitations of other score-based sampling methods. As discussed below, deriving tight condition-number dependence for more general target classes such as log-concave distributions is a long-standing open problem [6, 8], which is outside the scope of the present paper. Additionally, we focus for most of the paper on the sampling phase, comparing the sampling convergence rates of diffusion, unadjusted Langevin algorithm (ULA) and underdamped Langevin dynamics (ULD). Assuming access to the true score yields a clean analysis and the separation between diffusion and Langevin, hence for simplicity we focus on this case. The connection with the estimation of the score in the learning phase is discussed in the latter part of our work.

Contributions. We establish upper bounds on the 2-Wasserstein error between the target distribution and the distribution sampled from the diffusion, ULA and ULD. Convergence rates are derived in § 2 by optimizing these bounds with respect to hyperparameters (see Table 1 for summary). The bounds for diffusion and for Langevin differ by a factor proportional to the square root of the condition number. Thanks to explicit computations of the Wasserstein errors, we confirm these rates via matching first-order asymptotics. By contrast, in the learning phase, we show in § 3 that estimating the unoised score by gradient descent leads to essentially the same estimator as estimating a noisy score, the two differing only in how they regularize the directions unseen in the data, which suggests that the benefits of noising do not come from the learning phase.

AlgorithmAsymptotic equivalentε\varepsilon-complexity
ULAΘ(λmax⁡Tr⁡(Σ−1)log⁡NN)\Theta\left(\lambda_{\max}\sqrt{\operatorname{Tr}(\Sigma^{-1})}\frac{\log N}{N}\right)O~(κ+dκλmax⁡ε)\widetilde{O}\left(\kappa+\frac{\sqrt{d\kappa\lambda_{\max}}}{\varepsilon}\right)
ULDΘ(λmax⁡Tr⁡(Σ−1)log⁡NN)\Theta\left(\lambda_{\max}\sqrt{\operatorname{Tr}(\Sigma^{-1})}\frac{\log N}{N}\right)O~(κ+dκλmax⁡ε)\widetilde{O}\left(\kappa+\frac{\sqrt{d\kappa\lambda_{\max}}}{\varepsilon}\right)
DiffusionΘ(Tr⁡Σlog⁡NN)\Theta\left(\sqrt{\operatorname{Tr}\Sigma}\frac{\log N}{N}\right)O~(dλmax⁡ε)\widetilde{O}\left(\frac{\sqrt{d\lambda_{\max}}}{\varepsilon}\right)

Table 1. Convergence rates and ε\varepsilon-complexities for the Gaussian target. Rates are the orders of W2(PN,P)W_2(\mathbb{P}_N,\mathbb{P}) as N→∞N \to\infty for fixed Σ\Sigma (Theorems 1 and 3). The ε\varepsilon-complexity is the iteration budget NN needed to achieve W2(PN,P)≤εW_2(\mathbb{P}_N,\mathbb{P}) \le\varepsilon, where O~\widetilde{O} hides logarithmic factors. Diffusion models remove both the conditioning factor κ\sqrt{\kappa} of Langevin samplers and the burn-in of order κ\kappa.

Related work. For ULA, a similar analysis of the two error terms was already performed, for example, by Durmus et al. [ [11], Wibisono [ [38] and specifically in the Gaussian case by Pedregosa [2023]. Building upon these works, we perform hyperparameter optimization and compute the asymptotic equivalent (rather than upper bounds). Many works have studied ULD in the log-concave case, see, e.g., Cheng et al. [ [6], Dalalyan and Riou-Durand [ [8], Leimkuhler et al. [ [26], Kim et al. [ [23] for studies of the stochastic Euler scheme and Euler–Maruyama (EM) integrators. This line of work yields loose dependence on the condition number due to the bias term induced by non-vanishing step-sizes (see, e.g., Eq. (11) in Dalalyan and Riou-Durand [ [8] with a κ3/2\kappa^{3/2} in the complexity bound compared to our κ\sqrt{\kappa}). A line of work has proved improved condition dependence for Gaussian targets [31, 3, 14], albeit with more complex integrators (splitting, random step-sizes, or Metropolis corrections). To our knowledge, the tight study of the bias of ULD for a Gaussian target and the EM integrator is a novel contribution.

For diffusion models, Pierret and Galerne [ [29] derive and numerically analyze error terms for Gaussian targets, but do not analytically derive optimal hyperparameters, discuss the dependence on the condition number, nor derive asymptotic equivalents. Closer are the works by Hurault et al. [ [19] and Hurault et al. [ [20], which derive Wasserstein bounds for Gaussian data and discuss optimal hyperparameter choices depending on the covariance spectrum. A key difference with our work is that their analysis holds asymptotically for small step-sizes, whereas we make a fully non-asymptotic analysis (albeit in less generality), which enables us to capture the interaction between the step-size and other parameters, and to derive optimal step complexity with respect to our bounds. Wasserstein bounds beyond the Gaussian case are given for instance by Strasman et al. [ [35], Beyler and Bach [ [5].

Sampling: diffusion removes the condition-number dependence

Problem setup

We denote by P\mathbb{P} the target dd-dimensional centered Gaussian distribution N(0,Σ)\mathcal{N}(0, \Sigma). Let (λi)1≤i≤d(\lambda_i)_{1 \le i \le d} denote the eigenvalues of the positive-definite covariance matrix Σ\Sigma, and λmin⁡\lambda_{\min} and λmax⁡\lambda_{\max} be respectively the smallest and largest eigenvalues. The ratio

κ:=λmax⁡λmin⁡\kappa:= \frac{\lambda_{\max}}{\lambda_{\min}}

is the condition number of Σ\Sigma, which measures the degree of anisotropy of P\mathbb{P}. Ill-conditioning is a classical source of difficulty for Langevin-based sampling methods, as their convergence rates typically deteriorate with κ\kappa [6, 8].

Let pp denote the Lebesgue density of P\mathbb{P}. We define the score ss of the target distribution as

s:x↦∇log⁡p(x)=−Σ−1x.s:x \mapsto\nabla\log p(x) = -\Sigma^{-1}x.

We assume that the score is known exactly in this section; the learning problem is studied separately in § 3.

We measure sampling error in the 2-Wasserstein distance, denoted by W2W_2. For two centered Gaussians whose covariance matrices Σ1\Sigma_1 and Σ2\Sigma_2 commute, the distance reduces to the Fréchet distance ∥Σ11/2−Σ21/2∥F\lVert\Sigma_1^{1/2} - \Sigma_2^{1/2} \rVert_F, with ∥⋅∥F\lVert\cdot\rVert_F the Frobenius norm [13]. For each sampling scheme, we denote by Pk\mathbb{P}_k the law of its kk-th iterate.

Time-homogeneous Langevin samplers. We first consider the Langevin process associated with P\mathbb{P},

dXt=s(Xt) dt+2 dWt,t∈R+,X0=0,(1)\mathrm{d}X_t = s(X_t)\,\mathrm{d}t + \sqrt{2}\,\mathrm{d}W_t,\quad t \in\mathbb{R}_+,\quad X_0 = 0, \tag*{(1)}

where (Wt)(W_t) is a standard Brownian motion.

The unadjusted Langevin algorithm (ULA) [7] is simply the Euler–Maruyama discretization of the SDE in (1). Given a step-size η\eta, an iteration budget NN, and a sequence (ξk)(\xi_k) of independent standard Gaussian vectors in Rd\mathbb{R}^d, it is defined by

{X0=0,∀k∈{0,…,N−1},Xk+1=Xk+ηs(Xk)+2ηξk.(2)\begin{cases} X_0 = 0,\\ \forall k \in\{0,\ldots,N-1\},\quad X_{k+1} = X_k + \eta s(X_k) + \sqrt{2\eta}\xi_k. \tag*{(2)} \end{cases}

We next consider underdamped Langevin dynamics (ULD) [6], which introduces an auxiliary velocity variable into the Langevin dynamics with the aim of accelerating convergence:

\begin{cases} \mathrm{d}X_t = V_t\,\mathrm{d}t,\\ \mathrm{d}V_t = -\gamma V_t\,\mathrm{d}t + s(X_t)\,\mathrm{d}t + \sqrt{2\gamma}\,\mathrm{d}W_t, \end{cases} \quad t \in\mathbb{R}_+, \tag*{(3)}\end{cases}

with initialization X0=V0=0X_0 = V_0 = 0, where γ>0\gamma> 0 is the friction coefficient. We discretize these dynamics using the Euler–Maruyama scheme, yielding with the same notation as above

{Xk+1=Xk+ηVk,Vk+1=(1−ηγ)Vk+ηs(Xk)+2ηγξk.(4)\begin{cases} X_{k+1} = X_k + \eta V_k,\\ V_{k+1} = (1-\eta\gamma)V_k + \eta s(X_k) + \sqrt{2\eta\gamma}\xi_k. \tag*{(4)} \end{cases}

Time-inhomogeneous diffusion sampler. Diffusion-based sampling follows a different principle [32, 34]: rather than sampling directly with the score of the target distribution, it constructs a family of perturbed distributions and uses a time-dependent score along this family. Many conventions exist; we study the following one because it leads to telescoping cancellations in the computations, greatly simplifying our analysis (see Appendix § 8.§ 2.1). Concretely, for a general (centered) target Q\mathbb{Q}, consider the forward noising process

{dXt=dWt,t∈[0,T],X0=X∼Q,\begin{cases} \mathrm{d}X_t = \mathrm{d}W_t, \quad t \in[0,T],\\ X_0 = X \sim\mathbb{Q}, \end{cases}

whose marginal Qt\mathbb{Q}_t at time tt has Lebesgue density qtq_t and score st:=∇log⁡qts_t := \nabla\log q_t. The forward diffusion gradually smooths the target distribution, and TT is chosen large enough so that QT≈N(0,TI)\mathbb{Q}_T \approx\mathcal{N}(0,T I), a distribution that is straightforward to sample from. Sampling proceeds by reversing this transformation, i.e., by simulating the reverse-time SDE Anderson, [2]

{dYt=sT−t(Yt) dt+dWt,t∈[0,T−δ],Y0∼N(0,TI),(5)\begin{cases} \mathrm{d}Y_t = s_{T-t}(Y_t)\,\mathrm{d}t + \mathrm{d}W_t, \quad t \in[0,T-\delta],\\ Y_0 \sim\mathcal{N}(0,T I), \tag*{(5)} \end{cases}

where N(0,TI)\mathcal{N}(0,T I) replaces the intractable true marginal QT\mathbb{Q}_T and δ>0\delta> 0 is an early-stopping threshold, standard in the analysis of diffusion models, where it prevents a possible blow-up of the score as t→0t \to0 [9, 4]. In our Gaussian setting Q=P\mathbb{Q} = \mathbb{P}, all these quantities are explicit: the marginal at time tt is Qt=N(0,Ct)\mathbb{Q}_t = \mathcal{N}(0,C_t) with Ct=Σ+tIC_t = \Sigma+ tI, and

st:x↦−Ct−1x,s_t : x \mapsto-C_t^{-1}x,

whose Lipschitz constant (λmin⁡+t)−1(\lambda_{\min}+t)^{-1} is bounded by (λmin⁡+δ)−1(\lambda_{\min}+\delta)^{-1} on [δ,T][\delta,T].

Since information about the target is concentrated near t=T−δt = T-\delta, we discretize (5) using a decreasing sequence of step-sizes (ηk)(\eta_k) instead of a constant η\eta. We fix a decreasing grid T=τ0>τ1>⋯>τN=δT = \tau_0 > \tau_1 > \cdots> \tau_N = \delta defining τk=τk−1−ηk\tau_k = \tau_{k-1} - \eta_k for k∈{1,…,N}k \in\{1,\ldots,N\}. The diffusion algorithm we study is then

{Y0∼N(0,TI),∀k=1,…,N,Yk=Yk−1+ηksτk−1(Yk−1)+ηkξk.(6)\begin{cases} Y_0 \sim\mathcal{N}(0,T I),\\ \forall k = 1,\ldots,N,\quad Y_k = Y_{k-1} + \eta_k s_{\tau_{k-1}}(Y_{k-1}) + \sqrt{\eta_k}\xi_k. \tag*{(6)} \end{cases}

The main difference between diffusion and Langevin lies in the use of a time-dependent score sts_t in the former. Langevin methods only use the target score ss, and therefore operate under a fixed geometry governed by κ\kappa. This leads, as we will show in Theorem 1, to a penalizing κ\sqrt{\kappa} factor in the convergence rate. In contrast, diffusion progressively modifies the geometry of the score along the sampling trajectory. Indeed, note that the condition number associated with sts_t is

References

  1. [1]Alnur Ali, Edgar Dobriban, and Ryan Tibshirani. The implicit regularization of stochastic gradient flow for least squares. In International Conference on Machine Learning (ICML), pages 233–244, 2020. (cited on page 10)arxiv.org/abs/2003.07802
  2. [2]Brian D. O. Anderson. Reverse-time diffusion equation models. Stochastic Processes and their Applications, 12(3): 313–326, 1982. (cited on page 4)DOI
  3. [3]Simon Apers, Sander Gribling, and Dániel Szilágyi. Hamiltonian Monte Carlo for efficient Gaussian sampling: long and random steps. Journal of Machine Learning Research, 25(348):1–30, 2024. (cited on page 2)
  4. [4]Joe Benton, Valentin De Bortoli, Arnaud Doucet, and George Deligiannidis. Nearly d-linear convergence bounds for diffusion models via stochastic localization. In International Conference on Learning Representations (ICLR), 2024. (cited on pages 4 and 8)arxiv.org/abs/2308.03686
  5. [5]Eliot Beyler and Francis Bach. Convergence of deterministic and stochastic diffusion-model samplers: a simple analysis in Wasserstein distance. arXiv preprint arXiv:2508.03210, 2025. (cited on page 3)arxiv.org/abs/2508.03210
  6. [6]Xiang Cheng, Niladri S. Chatterji, Peter L. Bartlett, and Michael I. Jordan. Underdamped Langevin MCMC: a non-asymptotic analysis. In Conference on Learning Theory (COLT), pages 300–323, 2018. (cited on pages 2 and 3)arxiv.org/abs/1707.03663
  7. [7]Arnak S. Dalalyan. Theoretical guarantees for approximate sampling from smooth and log-concave densities. Journal of the Royal Statistical Society Series B: Statistical Methodology, 79(3):651–676, 2017. (cited on page 3)arxiv.org/abs/1412.7392
  8. [8]Arnak S. Dalalyan and Lionel Riou-Durand. On sampling from a log-concave density using kinetic Langevin diffusions. Bernoulli, 26(3):1956–1988, 2020. (cited on pages 2 and 3)arxiv.org/abs/1807.09382
  9. [9]Valentin De Bortoli. Convergence of denoising diffusion models under the manifold hypothesis. Transactions on Machine Learning Research, 2022. (cited on page 4)arxiv.org/abs/2208.05314
  10. [10]Prafullla Dhariwal and Alexander Nichol. Diffusion models beat GANs on image synthesis. In Advances in Neural Information Processing Systems (NeurIPS), volume 34, pages 8780–8794, 2021. (cited on page 1)
  11. [11]Alain Durmus, Szymon Majewski, and Błażej Miasojedow. Analysis of Langevin Monte Carlo via convex optimization. Journal of Machine Learning Research, 20(73):1–46, 2019. (cited on page 2)
  12. [12]David J. Field. Relations between the statistics of natural images and the response properties of cortical cells. Journal of the Optical Society of America A, 4(12):2379–2394, 1987. (cited on page 1)pubmed.ncbi.nlm.nih.gov/3430225
  13. [13]Matthias Gelbrich. On a formula for the L²-Wasserstein metric between measures on Euclidean and Hilbert spaces. Mathematische Nachrichten, 147(1):185–203, 1990. (cited on pages 3 and 16)DOI
  14. [14]Nicolaï Gouraud, Pierre Le Bris, Adrien Majka, and Pierre Monmarché. HMC and underdamped Langevin united in the unadjusted convex smooth case. SIAM/ASA Journal on Uncertainty Quantification, 13(1):278–303, 2025. (cited on page 2)arxiv.org/abs/2202.00977
  15. [15]Suriya Gunasekar, Jason Lee, Daniel Soudry, and Nathan Srebro. Characterizing implicit bias in terms of optimization geometry. In International Conference on Machine Learning (ICML), 2018. (cited on page 9)arxiv.org/abs/1802.08246
  16. [16]Florentin Guth, Simon Coste, Valentin De Bortoli, and Stéphane Mallat. Wavelet score-based generative modeling. In Advances in Neural Information Processing Systems (NeurIPS), volume 35, pages 478–491, 2022. (cited on page 1)
  17. [17]Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems (NeurIPS), volume 33, pages 6840–6851, 2020. (cited on page 1)arxiv.org/abs/2006.11239
  18. [18]Emiel Hoogeboom, Victor Garcia Satorras, Clément Vignac, and Max Welling. Equivariant diffusion for molecule generation in 3D. In International Conference on Machine Learning (ICML), pages 8867–8887, 2022. (cited on page 1)arxiv.org/abs/2203.17003
  19. [19]Samuel Hurault, Matthieu Terris, Thomas Moreau, and Gabriel Peyré. From score matching to diffusion: a fine-grained error analysis in the Gaussian setting. arXiv preprint arXiv:2503.11615, 2025. (cited on page 2)arxiv.org/abs/2503.11615
  20. [20]Samuel Hurault, Thomas Moreau, and Gabriel Peyré. Geometry-aware discretization error of diffusion models. arXiv preprint arXiv:2605.08392, 2026. (cited on page 2)arxiv.org/abs/2605.08392
  21. [21]Aapo Hyvärinen. Estimation of non-normalized statistical models by score matching. Journal of Machine Learning Research, 6(24):695–709, 2005. (cited on page 9)DOI
  22. [22]Eliahu I. Jury. A simplified stability criterion for linear discrete systems. Proceedings of the IRE, 50(6):1493–1500, 1962. (cited on page 24)DOI
  23. [23]Kyurae Kim, Samuel Gruffaz, Ji Won Park, and Alain Oliviero Durmus. Analysis of kinetic Langevin Monte Carlo under the stochastic exponential Euler discretization from underdamped all the way to overdamped. Electronic Journal of Statistics, 20(2):3106–3142, 2026. (cited on page 2)DOI
  24. [24]Zhifeng Kong, Wei Ping, Jiajia Huang, Kexin Zhao, and Bryan Catanzaro. DiffWave: A versatile diffusion model for audio synthesis. In International Conference on Learning Representations (ICLR), 2021. (cited on page 1)arxiv.org/abs/2009.09761
  25. [25]Ben Leimkuhler and Charles Matthews. Molecular Dynamics: With Deterministic and Stochastic Numerical Methods, volume 39 of Interdisciplinary Applied Mathematics. Springer, 2015. (cited on page 1)DOI
  26. [26]Benedict Leimkuhler, Daniel Paulin, and Peter A. Whalley. Contraction and convergence rates for discretized kinetic Langevin dynamics. SIAM Journal on Numerical Analysis, 62(3):1226–1258, 2024. (cited on page 2)DOI
  27. [27]Grigorios A. Pavliotis. Stochastic Processes and Applications: Diffusion Processes, the Fokker–Planck and Langevin Equations, volume 60 of Texts in Applied Mathematics. Springer, 2014. (cited on pages 1 and 6)DOI
  28. [29]Emile Pierret and Bruno Galerne. Diffusion models for Gaussian distributions: Exact solutions and Wasserstein errors. In International Conference on Machine Learning (ICML), pages 49355–49381, 2025. (cited on page 2)arxiv.org/abs/2405.14250
  29. [30]Gareth O. Roberts and Richard L. Tweedie. Exponential convergence of Langevin distributions and their discrete approximations. Bernoulli, 2(4):341–363, 1996. (cited on page 1)DOI
  30. [31]Ruoqi Shen and Yin Tat Lee. The randomized midpoint method for log-concave sampling. In Advances in Neural Information Processing Systems (NeurIPS), volume 32, 2019. (cited on page 2)arxiv.org/abs/1909.05503
  31. [32]Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In International Conference on Machine Learning (ICML), pages 2256–2265, 2015. (cited on pages 1 and 4)
  32. [33]Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. In Advances in Neural Information Processing Systems (NeurIPS), volume 32, 2019. (cited on page 1)arxiv.org/abs/1907.05600
  33. [34]Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations (ICLR), 2021. (cited on pages 1 and 4)
  34. [35]Stanilas Strasman, Antonio Ocello, Claire Boyer, Sylvain Le Corff, and Vincent Lemaire. An analysis of the noise schedule for score-based generative models. Transactions on Machine Learning Research, 2025. (cited on page 3)arxiv.org/abs/2402.04650
  35. [36]Pascal Vincent. A connection between score matching and denoising autoencoders. Neural Computation, 23(7): 1661–1674, 2011. (cited on page 9)DOI
  36. [37]Joseph L. Watson, David Juergens, Nathaniel R. Bennett, Brian L. Trippe, Jason Yim, Helen E. Eisenach, Woody Ahern, Andrew J. Borst, Robert J. Ragotte, Lukas F. Milles, et al. De novo design of protein structure and function with RFdiffusion. Nature, 620(7976):1089–1100, 2023. (cited on page 1)DOI
  37. [38]Andre Wibisono. Sampling as optimization in the space of measures: The Langevin dynamics as a composite optimization problem. In Conference on Learning Theory (COLT), 2018. (cited on page 2)arxiv.org/abs/1802.08089

Paper details

vlnc:W_qw2yxckb
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 9

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

LLMs

View statement
Looking for related papers…
Contents