Benign Overfitting Does Not Occur in Diffusion Models


Abstract

Benign overfitting and double descent have come to shape our understanding of generalization in deep learning, establishing that overfitting is not only compatible with good generalization but can actively benefit it. Diffusion models share much of the machinery of standard deep learning, so it is natural to assume that they also exhibit these properties. In this work, we show that this assumption is largely incorrect. We first establish fundamental impossibility results showing that, unless the sample size grows exponentially with the data dimension, overfitting and good generalization cannot occur simultaneously. Consequently, the population loss follows a classical U-shaped curve in model complexity rather than exhibiting double descent. Analyzing a simplified setting, we identify a key difference between regression and score matching: regression benefits from an alignment between the target and the empirical covariance; score matching admits no such alignment, leaving overfitting irreparably harmful. We further identify implicit regularization stemming from time-smoothness of the score and early stopping during training as mechanisms that prevent such overfitting and verify our findings with high-dimensional image generation experiments. Our results reveal that generalization in diffusion models is governed by mechanisms distinct from those of traditional regression, motivating the development of new theory.

Tyler Farghly\(^{1,}\) Benjamin Dupuis\(^{1,}\) Alain Durmus\(^{2,}\) Umut Şimşekli\(^{1,}\)
\(^{1}\)INRIA - École Normale Supérieure - PSL Research University - CNRS, France
\(^{2}\)École Polytechnique - CMAP - IP Paris, France

1 Introduction↩︎

Diffusion models are a popular class of deep generative models [1][3]. Their key insight is to reframe generation as the reversal of a noising process, characterized by a score function. Estimation of this score function turns out to be equivalent to a denoising problem that can be solved by training a neural network on a simple regression-like objective [4][6]. Despite their conceptual simplicity, they are capable of achieving state-of-the-art performance in a wide range of applications [7][12], and appear in many of the most widely deployed generative AI systems [13].

The widespread success of diffusion models naturally raises questions about the mechanisms underpinning their strengths, motivating a growing body of theoretical work on diffusion models [14][17]. Of particular interest is the question of generalization [18][20]: understanding when a score network trained on finite data faithfully represents the underlying distribution, rather than memorizing the training set. This question is further sharpened by practical concerns around data privacy [21], making a principled understanding of the generalization-memorization tradeoff both scientifically and practically important.

Figure 1: (Left) 2-layer random feature network regression, displaying the classical double descent curve. (Right) 2-layer random feature network diffusion, showing the absence of benign overfitting. Details on the setup and hyperparameters for these experiments are available in 9.1.

Alongside these developments, an extensive body of theory has sought to explain how overparameterized neural networks generalize. These models famously challenge the classical bias–variance tradeoff by generalizing well despite perfectly memorizing noisy training data [22], [23]—a phenomenon known as benign overfitting [24]. This is explained by theoretical analysis showing that generalization is maintained by a form of self-induced regularization that occurs in the overparameterized regime. Furthermore, when taken as a function of model complexity, the test error exhibits a double descent [25]: it first decreases, peaks near the interpolation threshold, and then decreases again as model size grows (see 1, left). This behavior was first identified empirically in high-dimensional problems [26] and then theoretically grounded through the analysis of random feature models [27]. Together, these theories form a now widely internalized picture: in highly overparameterized models, fitting the training data perfectly is not only compatible with generalization but, in the right regime, actively beneficial.

One of the benefits of the diffusion model framework is that it reuses much of the previously existing machinery of deep learning, using existing neural network architectures, training with standard optimization algorithms (e.g., ADAM [28]), and fitting by minimizing a regression-like objective [2], [5]. As a result, it is tempting to conclude that the previously mentioned deep learning phenomena are at work, and benign overfitting and double descent carry over more or less intact. In this work, we show that such an assumption is largely incorrect. While several recent works have hinted that diffusion models may be incapable of benign overfitting [20], [29], [30] and other recent works have explored the relationship between over-training and memorization [19], [31], the claim that benign overfitting and double descent do not occur in diffusion models is yet to receive rigorous empirical or theoretical investigation.

For diffusion models, we show that in most practical settings, it is fundamentally impossible to have both the train and test losses simultaneously small, invalidating benign overfitting. We further show that, instead of a double descent curve, the excess risk forms a U-shaped curve with increasing complexity, akin to the classical bias–variance tradeoff. This is illustrated in the random feature network experiment in 1 where the excess risk forms a U-shape that tapers off as the width of the network grows large. In 2, we see how this phenomenon affects high-dimensional image generation problems based on a U-Net architecture [1], [32], showing that as the number of U-Net features is increased, the over-trained diffusion model goes from low quality generation, to generalization, and then towards exactly memorizing the train set. Through a combination of fundamental theoretical results, simplified models, and high-dimensional experiments, we explore this phenomenon, the mechanisms underpinning it and how diffusion models generalize in spite of it.

Concretely, we present the following contributions:

  • In 3, we derive fundamental negative results showing that the population and empirical score matching loss cannot be simultaneously small in practical settings, unless the sample size grows exponentially with data dimension, regardless of the score network architecture.

  • In 4, through the analysis of a linear random feature model, we provide a precise understanding of the interplay between model complexity, overfitting and noise scale. By comparing with a classical regression setup, we illustrate the key differences that prevent benign overfitting from occurring in score matching.

  • In 5, we continue the analysis of 4, identifying key components of the score matching framework that can act as implicit regularization and help prevent overfitting in practice. More precisely, we identify the role of time-smoothness of the score and discuss the role of early stopping during training.

  • We validate our theoretical findings by experiments conducted in high-dimensional image generation settings.

Notations. For probability measures \(\mu\) and \(\nu\) in \({\mathbb{R}^d}\), if \(\mu\) is absolutely continuous with respect to \(\nu\), denoted by \(\mu \ll \nu\), we denote \(\mathrm{d}\mu/\mathrm{d}\nu\) its density. If \(\mu \ll \nu\), the Kullback-Leibler (KL) divergence is \(\mathrm{KL}\left(\mu || \nu \right) = \int \log (\mathrm{d}\mu / \mathrm{d}\nu) \mathrm{d}\mu\), the relative Fisher information is \(\mathscr{J}(\mu || \nu) = \int \Vert \nabla \log (\mathrm{d}\mu / \mathrm{d}\nu) \Vert^2 \mathrm{d}\mu\), the Fisher information is \(\mathscr{J}(\nu) = \int \Vert \nabla \log(\mathrm{d}\nu / \mathrm{d}x) \Vert^2 \mathrm{d}\nu\). For \(a,b \in \mathbb{R}\), \(a \wedge b = \min(a,b)\), \(a \vee b = \max(a,b)\), and \(a_+ = a \vee 0\).

a

b

c

Figure 2: We train a DDPM U-Net model on a subset of CIFAR10 to convergence. We observe train and test error for different configurations of the model, varying the number of features (NF) in the U-Net. (Left) Test and train error at convergence varying NF and thus, varying the number of parameters in the model. (Center) The same setting but for the population negative log-likelihood. (Right) Generated samples for different NF values alongside the closest train image for \(\text{NF}=8\). Details of the experiment are given in Appendix 9.2..

2 Background↩︎

By learning to reverse a noising process, diffusion models approximate a distribution \(\nu\) on \(\mathbb{R}^d\) from a dataset sampled from \(\nu\). We briefly review this construction and fix the notation used in the paper.

Noising process. The noising process is given by an SDE of Ornstein–Uhlenbeck-type in \({\mathbb{R}^d}\), \[\label{eq:forward-process-sde} \mathrm{d}{X_t}= -\kappa {X_t}\mathrm{d}t + \sqrt{2} \mathrm{d}\mathrm{B}_t\;, \qquad {X}_0 \sim \nu\;,\tag{1}\] where \(\kappa \geq 0\) and \(\mathrm{B}_t\) is a standard \(d\)-dimensional Brownian motion. We assume that \(\mathbb{E}_{X\sim\nu} [ \Vert X \Vert^2 ] < \infty\). It is well-known that \({X_t}|{X}_0 \sim \mathrm{N}(\alpha_t {X}_0, \sigma_t^2 {\mathrm{I}}_d)\), where the mean and variance are given by \[\label{eq:cond95score95form} \alpha_t = e^{- \kappa t} \;, \qquad \sigma^2_t = \kappa^{-1} (1 - \alpha_t^2) \;,\tag{2}\] with the convention \(\sigma_t^2 = 2t\) when \(\kappa=0\). Fixing a time horizon \(T > 0\) and writing \({Y}_t := {X}_{T-t}\), the classical result of [33], [34] identifies the law of the time-reversed process as the solution of \[\mathrm{d}{Y}_t = \kappa {Y}_t \mathrm{d}t + 2 \nabla \log {p}_{T-t}({Y}_t) \mathrm{d}t + \sqrt{2} \mathrm{d}\mathrm{B}_t\;, \qquad {Y}_0 \sim {p}_T \;,\] where \(p_t\) denotes the density of \(X_t\). Thus, if we could simulate \({Y}_t\) starting from \({Y}_0 \sim {p}_T\), we would obtain samples \(Y_T \sim \nu\). The only unknown quantity is the score function \(\nabla \log {p}_t\), which must be learned from data. Once we have an approximate score function \(\hat{s}:{\mathbb{R}^d}\times [0,T] \to {\mathbb{R}^d}\), we generate samples by numerically simulating \[\mathrm{d}\widehat{{Y}}_t = \kappa \widehat{{Y}}_t \mathrm{d}t + 2 \hat{s}(\widehat{{Y}}_t, t) \mathrm{d}t + \sqrt{2} \mathrm{d}\mathrm{B}_t\;, \qquad {Y}_0 \sim q_0 \;.\] For \(\kappa > 0\), we set \(q_0=\mathrm{N}(0, \kappa^{-1} {\mathrm{I}}_d)\) as it approximates \(p_T\) for large \(T\), and for \(\kappa = 0\), we set \(q_0 = \mathrm{N}(0, 2 T {\mathrm{I}}_d)\). We denote by \(q_t\) the probability density of \(\widehat{{Y}}_t\) for \(t \in [0, T]\).

Score matching. The score function is approximated using a deep neural network. Ideally, the goal is to minimize the (population) explicit score matching (ESM) loss, \[\begin{align} {\mathscr{L}_{\mathrm{ESM}}}({s}, t) := \mathbb{E}\big [ \big \| {s}(t, {X_t}) - \nabla \log p_t({X_t}) \big \|^2 \big ]\;, \qquad {\mathscr{L}_{\mathrm{ESM}}}({s}, \varpi) = \int {\mathscr{L}_{\mathrm{ESM}}}({s}, t) \, \mathrm{d}\varpi(t)\;, \end{align}\] where \(\varpi\) is some non-negative measure on \([0, T]\). While the time-weighting \(\varpi\) can be chosen freely, a canonical choice is the evidence lower bound (ELBO) weighting, \(\varpi_{\operatorname{ELBO}}^\epsilon (\mathrm{d}t) = \mathbb{1}_{[\epsilon, T]}(t)\), for \(\epsilon > 0\). Under this weighting, the explicit score matching loss upper bounds the marginal KL divergence with \(\mathrm{KL}\left({p}_\epsilon || {{q}}_{T-\epsilon} \right) \leq {\mathscr{L}_{\mathrm{ESM}}}(s, \varpi_{\operatorname{ELBO}}^\epsilon) + \mathrm{KL}\left({p}_T || q_0 \right)\). Since the ESM loss depends on the intractable score \(\nabla \log p_t\), a tractable alternative is considered: the (population) denoising score matching (DSM) loss, \[{\mathscr{L}_{\mathrm{DSM}}}(s, \varpi) := \int \mathbb{E}[\ell_t(s, X_0)] \mathrm{d}\varpi(t)\;, \qquad \ell_t(s, X_0) := \mathbb{E}\big [ \big \| s(t, {X_t}) - \nabla \log p_{t\vert 0}({X_t}|X_0) \big \|^2 \big | X_0 \big ]\;,\] where \(p_{t|0}(\cdot|\cdot)\) is the density of \(X_t\) given \(X_0\). This loss is equal to the ESM loss up to a constant whilst only using the simpler conditional score \(\nabla \log p_{t\vert 0}\), turning the learning problem into a denoising problem [5], [6]. It is then estimated using a dataset \(S = \{Z_i\}_{i=1}^n \sim \nu^{\otimes n}\), leading to the empirical DSM loss, \[\begin{align} \label{eq:emp95dsm} {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s, \varpi) := \frac{1}{n} \sum_{i=1}^n \int \ell_t (s, Z_i) \, \mathrm{d}\varpi(t) \;, \qquad n \geq 1\;. \end{align}\tag{3}\] We also define the empirical ESM loss, related to the above by an additive data-dependent constant, \[\begin{align} \label{eq:emp95esm} {\widehat{\mathscr{L}}_{\mathrm{ESM}}}({s}, t) := \mathbb{E}\big [ \big \| {s}(t, {\widehat{X}_t}) - \nabla \log \hat{p}_t({\widehat{X}_t}) \big \|^2 \big | S \big ]\;, \qquad {\widehat{\mathscr{L}}_{\mathrm{ESM}}}({s}, \varpi) = \int {\widehat{\mathscr{L}}_{\mathrm{ESM}}}({s}, t) \, \mathrm{d}\varpi(t)\;, \end{align}\tag{4}\] where \(\mathrm{d}{\widehat{X}_t}= -\kappa {\widehat{X}_t}\mathrm{d}t + \sqrt{2} \mathrm{d}\mathrm{B}_t,\) \(\require{upgreek} {\widehat{X}}_0 \sim n^{-1} \sum_{i=1}^n \updelta_{Z_i}\) and for \(t>0\), \(\hat{p}_t\) is the density of \({\widehat{X}_t}\).

3 Fundamental limitations of overfitting in diffusion models↩︎

Benign overfitting occurs when good generalization performance is achieved despite interpolating training data. In this section, we derive impossibility results that show that this cannot happen in diffusion models without an exceedingly large sample size. Unlike [sec:fine-grainded-linear-analysis,sec:preventing-overfitting], the results presented here hold regardless of the score network architecture. In this sense, they identify fundamental limitations of the score matching framework itself, rather than of any particular class of models.

3.1 Warm-up: A Fisher information lower bound↩︎

We begin with the following simple lemma, which is a generic lower bound on the sum of the population and empirical ESM losses. The proof can be found in 8.1.1.

Lemma 1. Let \(t \in (0,T]\), for any measurable score function \(s: {\mathbb{R}^d}\times [0,T] \to {\mathbb{R}^d}\), we have \[\begin{align} \label{eq:fisher-lower-bound} \mathbb{E}_{} [ {\widehat{\mathscr{L}}_{\mathrm{ESM}}}(s, t) + {\mathscr{L}_{\mathrm{ESM}}}(s, t) ] \geq \frac{1}{2} \mathbb{E}_{} \left[ \mathscr{J}(\hat{p}_t || p_t) \right] \;. \end{align}\tag{5}\] In particular, if \(\mathscr{J}(\nu) < +\infty\), we have that \(\inf_s \mathbb{E}_{} [ {\widehat{\mathscr{L}}_{\mathrm{ESM}}}(s, t) + {\mathscr{L}_{\mathrm{ESM}}}(s, t) ] \to +\infty\) as \(t \to 0^+\).

1 shows that for both the empirical and population score matching losses to be small, we must have the empirical and population measures \(\hat{p}_t\) and \(p_t\) close also. The measure of closeness here is the relative Fisher information, which under additional concentration assumptions, can be shown to upper bound the KL divergence (see 8.1.2). As \(\hat{p}_t\) is initialized at the empirical distribution \(\require{upgreek} n^{-1} \sum_{i=1}^n \updelta_{Z_i}\) where \((Z_1,\dots, Z_n) \sim \nu^{\otimes n}\), this suggests that benign overfitting only happens when the sample size is large enough. We make this argument precise in the next subsection.

3.2 A quantitative lower bound under time-integration↩︎

We now refine the previous result by obtaining lower bounds on the amount of data required for the empirical and population losses to be small simultaneously. The lower bound is a function of the effective dimension of the data distribution \(\nu\) which we capture through the lower Rényi dimension \(d'\), formally defined in 7.1. In cases where \(\nu\) is supported on a compact manifold, \(d'\) is exactly the manifold dimension. We also extend Lemma 1 by considering the full time-integrated loss as opposed to an individual time-slice, requiring only that the weighting \(\varpi\) has positive non-decreasing density on an interval. The bound is generic and holds for any random score function \(\hat{s}\) that can be taken as a function of training data. Given a real-valued function \(w\), we define the generalized inverse \(w^{-}(r) := \inf \{t : w(t) \geq r\}\), with the convention \(\inf \emptyset = \infty\).

Theorem 1. Suppose that \(\varpi\) is a positive measure supported in \([\epsilon, T]\) with \(\epsilon > 0\) and non-decreasing density \(w : [\epsilon, T] \to \mathbb{R}_+\), that \(\nu\) has finite second moments, and that both \(T\) and \(d\) are sufficiently large. Suppose that the random score function \(\hat{s}\) satisfies \[\mathbb{E}_S[{\widehat{\mathscr{L}}_{\mathrm{ESM}}}(\hat{s}, \varpi)] \leq \varepsilon \;,\] for some \(\varepsilon \leq w(T) / 32\). Then, if any of the following conditions hold: \[\begin{align} \label{eq:negative95sm95loss950} \mathbb{E}_S[{\mathscr{L}_{\mathrm{ESM}}}(\hat{s}, \varpi)] \leq \varepsilon, \quad \text{ or } \quad \mathbb{E}_S[{\mathscr{L}_{\mathrm{ESM}}}(\hat{s}, \varpi_{\operatorname{ELBO}}^\epsilon)] \leq \tfrac{1}{32}, \quad \text{ or } \quad \mathrm{KL}\left({p}_\delta || {q}_{T-\delta} \right) \leq \tfrac{1}{32}, \end{align}\tag{6}\] and \(\delta := w^{-}(32\varepsilon)\) is sufficiently small, then it follows that, \[\begin{align} n \geq (8 \sqrt{d} \sigma_\delta )^{- \frac{d'}{2}} \;, \end{align}\] where \(d'\) is the lower Rényi dimension of \(\nu\).

The assumption on the measure \(\varpi\), encompasses several standard choices of time-weighting within the continuous training framework [2]. In the following remark, we consider several of these, obtaining closed-form bounds.

Remark 1. Under the ELBO weighting \(\varpi = \varpi^\epsilon_{\mathrm{ELBO}}\), the sample size lower bound becomes \(n \geq (8\sigma_\epsilon \sqrt{d})^{-d'/2}\) for \(\epsilon\) sufficiently small. Under the variance weighting \(w(t) = \sigma_t^2\), commonly used for training [1], the analogous bound is \(n \geq (2(32\varepsilon \vee \sigma_\epsilon)\sqrt{d})^{-d'/2}\) for \(\varepsilon, \epsilon\) sufficiently small. Most strikingly, when \(\epsilon = 0\) and \(\varepsilon \leq \tfrac{1}{32}\limsup_{t \to 0^+} w(t)\), there is no sample size at which benign overfitting can occur: \(\mathbb{E}[{\widehat{\mathscr{L}}_{\mathrm{ESM}}}(\hat{s}, \varpi)] \leq \varepsilon\) necessarily implies \(\mathbb{E}[{\mathscr{L}_{\mathrm{ESM}}}(\hat{s}, \varpi)] > \varepsilon\), \(\mathbb{E}[{\mathscr{L}_{\mathrm{ESM}}}(\hat{s}, \varpi^0_{\mathrm{ELBO}})] > {1}/{32}\), and \(\mathrm{KL}\left(p_\delta || q_{T-\delta} \right) > {1}/{32}\).

We highlight that the lower bound is increasing exponentially in the intrinsic dimension and depends on \(\epsilon\), supporting both the idea that manifold distributed data is beneficial to diffusion models and that early stopping in the reverse process can benefit generalization [15], [20], [35], [36]. Since many popular implementations of diffusion models take \(\epsilon \in \left\{ 10^{-3}, 10^{-5} \right\}\), the expectation that the amount of data scales with \(\epsilon^{-d'/2}\) is unreasonably strong. Thus, in most practical settings, diffusion models will not exhibit the property of benign overfitting.

The proof, presented in 8.1.3, uses a similar approach as 1, showing that for empirical and population losses to be small, \(\hat{p}_t\) and \(p_t\) must be close. Instead of the Fisher information, we derive a connection to the total variation via an argument based on Girsanov’s theorem.

4 Fine-grained analysis on linear RFNNs↩︎

Figure 3: Linear random features under 1. (Left) time is fixed at t = 10^{-1} and \psi_p varies. (Center) \psi_d is fixed at 10^2 and t varies. (Right) time integrated losses (as in 5.1) with \pi the uniform distribution on [0,T]. Train error denotes the empirical DSM loss with the weighting used in training in practice. Test error is the population ESM loss with ELBO weighting.

Section 3 establishes at a general level that benign overfitting cannot occur in diffusion models in most practical settings. However, it does not reveal how overfitting manifests, nor how it depends on the interplay between model size, data dimension, and noise scale. To get a finer understanding, we now analyze a concrete and tractable model class: two-layer linear random feature networks [37], similar to the linear activation case of the models considered in [19], [38], [39]. Despite the simplicity of the linear setting, it has been central to the theoretical analysis of benign overfitting and double descent [25], [40], suggesting that it is rich enough to capture overfitting in diffusion models.

Setup. We study \(2\)-layer linear score networks of the form \(s_{W,A} : x \mapsto A W x\), where \(W \in \mathbb{R}^{p \times d}\) is fixed and \(A \in \mathbb{R}^{d \times p}\) is a trainable parameter. We fix a time \(t \in (0,T]\) and consider the minimization of the empirical risk defined by \(A \mapsto \sigma_t^2 {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W,A}, t)\). We denote by \(\mathbf{\Sigma}\) the covariance matrix of the data distribution \(\nu\) and define the empirical covariance matrix \(\widehat{\mathbf{\Sigma}}:= n^{-1} \sum_{i=1}^n Z_i Z_i^T\) along with \(\mathbf{\Sigma}_t := \alpha_t^2 \mathbf{\Sigma}+ \sigma_t^2 {\mathrm{I}}_d\) and \(\widehat{\mathbf{\Sigma}}_t := \alpha_t^2 \widehat{\mathbf{\Sigma}} + \sigma_t^2 {\mathrm{I}}_d\).

In the following lemma, we characterize the DSM and ESM loss associated with the empirical risk minimization problem. The proof can be found in 8.2.

Lemma 2. Assume that \(W\) has full rank and take \(\widehat{A} \in \mathop{\mathrm{arg\,min}}{\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W, A}, t)\). Let \(\Omega_t := \widehat{\mathbf{\Sigma}}_t^{-1}\) if \(p \geq d\) and \(\Omega_t := W^T (W \widehat{\mathbf{\Sigma}}_t W^T)^{-1} W\) if \(p < d\). Then, \(\widehat{A}W = -\Omega_t\) and, \[\begin{align} \sigma_t^2 {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W,\widehat{A}}, t) = d - \sigma_t^2 {\mathrm{Tr}}( \Omega_t ) \;, \qquad {\mathscr{L}_{\mathrm{ESM}}}(s_{W, \widehat{A}}, t) = \| ( \Omega_t - \mathbf{\Sigma}_t^{-1} ) \mathbf{\Sigma}_t^{1 / 2} \|_{\mathrm{F}}^2 \;. \end{align}\]

For \(p\geq d\), the ESM and DSM loss at \(\widehat{A}\) are independent of \(p\). By the proof of 2, this is because the empirical risk minimization (ERM) problem becomes equivalent to the ERM associated with a \(d\)-dimensional linear model (independent of \(p\)), similar to [30]. See 8.2 for details. We specify our setup further in the next assumption.

Assumption 1. \(W\in\mathbb{R}^{p \times d}\) has \(\mathrm{N}(0,1)\) i.i.d. entries, \(A\in\mathbb{R}^{d \times p}\) and \(\nu = \mathrm{N}(0, \beta{\mathrm{I}}_d)\), with \(\beta > 0\).

The next proposition is a precise characterization of overfitting in a proportional asymptotic regime.

Proposition 1 (Overfitting in linear networks). Under 1, we consider the limit \(d,n,p \to \infty\) such that \(p / n \to \psi_p\) and \(d / n \to \psi_d\). When \(\psi_d, \psi_p > 1\), we have, almost-surely, \[\begin{align} \label{eq:linear-asymptotics-fixed-time-population} \frac{1}{d} {\mathscr{L}_{\mathrm{ESM}}}(s_{W,\widehat{A}}, t) \to \frac{1}{\alpha_t^2 \beta + \sigma_t^2} \bigg ( \frac{\psi_p \wedge \psi_d - 1}{\psi_d} \frac{\alpha_t^4 \beta^2}{\sigma_t^4} + \left( 1 - \frac{\psi_p}{\psi_d} \right)_+ \bigg ) + \mathcal{O}_{} \left( \frac{1}{\psi_d} \right) \;, \end{align}\qquad{(1)}\] where \(\widehat{A} \in \mathop{\mathrm{arg\,min}}{\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W, A}, t)\). For the empirical risk, we have \[\begin{align} \label{eq:linear-asymptotics-fixed-time-empirical} \frac{\sigma_t^2}{d} {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W, \widehat{A}}, t) \to \frac{1}{\psi_d} + \left( 1 - \frac{\psi_p}{\psi_d} \right)_+ + \mathcal{O}_{} \left( \frac{1}{\psi_d (\psi_p \wedge \psi_d)} \right) \;. \end{align}\qquad{(2)}\]

Proposition 1 demonstrates how the population loss is a U-shaped function of model complexity, captured by the relative model width, \(\psi_p\). When \(\psi_p > \psi_d\), we observe that the empirical risk of ?? is of order \(\mathcal{O}_{} \left( \psi_d^{-1} \right)\) and can, therefore, become arbitrarily small and interpolate training data when the data dimension is large. In the same regime, we observe that the population score matching loss is of order \(\sigma_t^{-4}\) and therefore explodes as \(t\to 0^+\). This can also be observed clearly in 3, displaying the exact asymptotics of the risks, obtained in the proofs in 8.2. It demonstrates that interpolation and generalization are mutually incompatible. We also study the dependence on \(t\) in 3, showing that the rate of explosion of the excess risk as \(t \to 0^+\) depends on the model complexity.

Comparison with regression. To understand how these results differ from traditional regression, we consider a multi-output regression problem with the same data and architecture. Given a target \(B_\star \in \mathbb{R}^{d \times d}\) and noiseless labels \(Y_i := B_\star Z_i\), we minimize the empirical risk \(A \mapsto n^{-1} \sum_{i=1}^n \left\Vert s_{W, A}(Z_i) - Y_i \right\Vert^2 + \lambda\left\Vert AW \right\Vert_{\mathrm{F}}^2\). We focus on the overparameterized regime \(p > d > n\) and \(\lambda = 0\), where minimizers \(A\) satisfy \((AW - B_\star) \widehat{\mathbf{\Sigma}} = 0\). Since \(\widehat{\mathbf{\Sigma}}\) has rank \(n < d\) a.s., this gives a \(d(d-n)\)-dimensional affine subspace of solutions for \(AW\), contrasting sharply with 2, where score matching produces a unique value of \(A W = -\widehat{\mathbf{\Sigma}}_t^{-1}\) even without regularization.

The excess risk for the regression problem is given directly by \(\| (AW - B_\star) \mathbf{\Sigma}^{1/2} \|_{\mathrm{F}}^2\). The expression has a similar form as the score matching ESM loss in Lemma 2 once replacing \(B_\star\) with \(-\mathbf{\Sigma}_t^{-1}\), and \(\mathbf{\Sigma}\) with \(\mathbf{\Sigma}_t\) in the weighting. To resolve the under-determination, we consider the ridgeless limit \(\lambda \to 0^+\), recovering the minimum-norm interpolator. This projects \(AW\) on the orthogonal of \(\mathrm{ker}(\widehat{\mathbf{\Sigma}})\), leading to the excess risk \(\| B_\star \, \Pi_{\mathrm{ker}(\widehat{\mathbf{\Sigma}})} \mathbf{\Sigma}^{1/2} \|_{\mathrm{F}}^2\), where \(\Pi_{\mathrm{ker}(\widehat{\mathbf{\Sigma}})}\) is the column-wise projection onto the kernel of \(\widehat{\mathbf{\Sigma}}\). Thus, generalization can occur in the overparameterized regime due to two factors: (i) the minimum-norm bias projects \(AW\) on the orthogonal of \(\mathrm{ker}(\widehat{\mathbf{\Sigma}})\); (ii) the residual is small when \(B_\star\) aligns with \(\widehat{\mathbf{\Sigma}}^{1/2}\) within the kernel of \(\widehat{\mathbf{\Sigma}}\). This is made precise in the benign overfitting literature that identifies a form of self-induced regularization resulting from alignment [24], [40].

The picture is fundamentally different for score matching. First, since the empirical problem exactly determines the solution \(AW = - \widehat{\mathbf{\Sigma}}_t^{-1}\), there can be no minimum-norm bias that projects \(AW\) orthogonally to \(\mathrm{ker}(\widehat{\mathbf{\Sigma}})\). Moreover, whereas \(B_\star\) could reasonably align with \(\mathbf{\Sigma}^{1/2}\) on the null space in such a way that makes their product small, it is less likely that \(-\mathbf{\Sigma}_t^{-1}\) aligns in the same way with \(\mathbf{\Sigma}_t^{1/2}\). Indeed, if \(\mathbf{\Sigma}\) is not full rank, we have \(\| \mathbf{\Sigma}_t^{-1} \Pi_{\mathrm{ker}(\widehat{\mathbf{\Sigma}})} \mathbf{\Sigma}_t^{1/2} \|_{\mathrm{F}}^2 \geq (d-n)\sigma_t^{-2}\) which explodes as \(t \to 0\). This is made precise in the proof of 1, leading to the first term of ?? , corresponding to the contribution of the null space of \(\widehat{\mathbf{\Sigma}}\) to the ESM loss.

5 Preventing overfitting in diffusion models↩︎

The absence of benign overfitting in diffusion models suggests that regularization is required to achieve good generalization in the overparameterized regime. In this section, we show that the score matching framework contains forms of implicit regularization that help prevent overfitting.

5.1 Implicit regularization due to time smoothness↩︎

In most practical applications of diffusion models, a single neural network is trained across multiple noise levels. Whilst primarily done for efficiency, the resulting time-smoothness of the score function has been shown empirically to benefit generalization in diffusion models [41]. Here, we study the impact of time-smoothness of the score estimator in the setting of 4 by considering the extreme case where it is time-independent.

Setup. We parameterize the score network as in 4 with \(p > d\) and we consider a time weighting \(\varpi\) which is a probability distribution on \([0,T]\) such that we can define the probability measure \(\pi(\mathrm{d}t) \propto \sigma_t^{-2} \varpi(\mathrm{d}t)\). For any distribution \(\omega \in \left\{ \pi, \varpi \right\}\) on \([0,T]\), we write \[\begin{align} \alpha_\omega^2 := \int \alpha_t^2 \mathrm{d}\omega(t)\;, \quad \sigma_\omega^2 := \int \sigma_t^2 \mathrm{d}\omega(t)\;, \quad \mathbf{\Sigma}_\omega := \int \mathbf{\Sigma}_t \mathrm{d}\omega(t)\;, \quad \widehat{\mathbf{\Sigma}}_\omega := \int \widehat{\mathbf{\Sigma}}_t \mathrm{d}\omega(t)\;. \end{align}\] In the next lemma, we characterize the empirical risk minimization in this setting.

Lemma 3. Assume that \(p > d\) and \(W\) is full-rank. Then, any \(\widehat{A}\in \mathop{\mathrm{arg\,min}}_A {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{A,W}, \varpi)\) satisfies \(\widehat{A}W = -\widehat{\mathbf{\Sigma}}^{-1}_\varpi\) and we have \[\begin{align} {\mathscr{L}_{\mathrm{ESM}}}(s_{\widehat{A},W}, \pi) = \| ( \widehat{\mathbf{\Sigma}}_\varpi^{-1} - \mathbf{\Sigma}_\pi^{-1} ) \mathbf{\Sigma}_\pi^{1 / 2} \|_{\mathrm{F}}^2 + {\mathrm{C}}_\pi \;, \quad {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{\widehat{A},W}, \varpi) = d \sigma_\pi^{-2} - {\mathrm{Tr}}(\widehat{\mathbf{\Sigma}}_\varpi^{-1}) \;, \end{align}\] where \({\mathrm{C}}_\pi \geq 0\) is given in the proof in 11 . \({\mathrm{C}}_\pi\) is \(0\) only when \(\pi\) is a Dirac distribution.

Remark 2 (Equivalence with ridge). By 3, we have \(\widehat{A}W = -(\alpha_\varpi^2 \widehat{\mathbf{\Sigma}}+ \sigma_\varpi^2 {\mathrm{I}}_d)^{-1} = - \widehat{\mathbf{\Sigma}}_\varpi^{-1}\). As \(\varpi\) is a probability distribution, there exists \(t_\varpi > 0\) such that \(\alpha_{t_\varpi}^2 = \alpha_\varpi^2\). Thus, for any \(t < t_\varpi\), we have \[\begin{align} \widehat{\mathbf{\Sigma}}_\varpi = \eta_{t,\varpi}^{-1} ( \widehat{\mathbf{\Sigma}}_t + 2\lambda_{t,\varpi} {\mathrm{I}}_d) \;, \quad 2\lambda_{t,\varpi} := \eta_{t,\varpi} (\sigma_\varpi^2 - \sigma_t^2) > 0 \;, \quad \eta_{t,\varpi} := \alpha_t^2 / \alpha_\varpi^2 \;, \end{align}\] and so, we see that \(\eta_{t, \varpi}^{-1} \widehat{A}\in \mathop{\mathrm{arg\,min}}_A ({\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{A,W}, t) + \lambda_{t,\varpi} \Vert AW \Vert^2)\). Therefore, in this case, considering the time-integrated loss is formally similar to adding ridge regularization for small times \(t < t_\varpi\).

Next, we make this observation precise by characterizing the asymptotic score matching losses.

Proposition 2. Under 1, we consider the limit \(d,n,p \to \infty\) such that \(p / n \to \psi_p\) and \(d / n \to \psi_d\). Let \(\widehat{A}\in \mathop{\mathrm{arg\,min}}_A {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W,A}, \varpi)\). When \(\psi_p > \psi_d > 1\), we have, almost-surely, \[\begin{align} \frac{{\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W,\widehat{A}}, \varpi)}{d} \to \frac{1}{\sigma_\pi^2} - \frac{1}{\sigma_\varpi^2} + \mathcal{O}(\psi_d^{-1}), \quad \frac{{\mathscr{L}_{\mathrm{ESM}}}(s_{W,\widehat{A}}, \pi )}{d} \to \mathrm{L}_\pi + \mathcal{O}(\psi_d^{-1}) , \end{align}\] where \({\mathrm{L}}_\pi \geq 0\) is a constant whose expression is given in 13 , and \(\sigma_\pi^{-2} - \sigma_\varpi^{-2} \geq 0\).

2 shows that time-smoothness effectively prevents the explosion of the population loss observed in 1. It also shows that the limiting empirical risk cannot be arbitrarily small as soon as \(\varpi\) is not a Dirac distribution (by similar calculations, we reach the same conclusion for \({\widehat{\mathscr{L}}_{\mathrm{ESM}}}(s_{W,\widehat{A}}, \varpi)\)). This contrasts with the fixed noise scale case of 1, even when \(\psi_d\) is large, suggesting that the time-smoothness prevents overfitting. Moreover, while in 1 the asymptotic ESM loss could explode as \(t \to 0^+\), in the present setting the ESM loss stays bounded, showing that the time-smoothness acts as a form of implicit regularization, as hinted in 2.

In the proof of 2 (see 8.3), we derive exact asymptotics for the population and empirical losses, which we report in the right figure in 3 (green curves). Using the asymptotics of the previous section, we compare it against an overfit linear score network that has independent weights at each time, corresponding to the completely non-time-smooth case (purple curves). We observe that time-smoothness increases the empirical risk while decreasing the population loss, showing that it is indeed acting as an implicit regularization mechanism.

We verify this in a practical image generation setting similar to 2, but considering a time-independent DDPM U-Net model trained across a range \([t, t+r]\) for varying \(r\). We evaluate train and test error at \(t\) to see how changing \(r\) affects the error. We present the results in [fig:no95time95exp] where we find that increasing \(r\) increases the train error at \(t\) and therefore is indeed preventing overfitting. Interestingly, the test error first decreases and then increases for large \(r\), suggesting a tradeoff on \(r\).

5.2 Implicit regularization via early stopping↩︎

Next, we study the impact of early stopping during the training of the score network. To this end, we fix a time \(t \in [0,T]\) and study the dynamics of the parameter \(A\) under gradient flow, \[\begin{align} \label{eq:gradient-flow-dynamics} \frac{\mathrm{d}}{\mathrm{d}\tau}A(\tau) = -p^{-1}\nabla_A (\sigma_t^2 {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W,A(\tau)}, t)) \;, \quad \tau \geq 0 \;, \end{align}\tag{7}\] where \(W \in \mathbb{R}^{p \times d}\) is as in 4, and the \(p^{-1}\) factor is ensuring a finite limit as \(p \to \infty\) [19]. Without loss of generality, we assume that \(A(0) = 0\). We show in 8.4 that in the limit \(p \to \infty\) with \((n,d)\) fixed, the matrix \(A(\tau) W\) converges to a finite limit following the gradient flow of a linear model (as shown in 8.4). Moreover, when \(\tau \to \infty\), \(A(\tau) W \to - \widehat{\mathbf{\Sigma}}^{-1}_t\), which leads to the same score matching bounds as in 1 for \(p > d\). In the next proposition, we show that for small enough values of \(\tau\), we avoid the explosion of the test loss in 1.

Proposition 3. Suppose that 1 holds and define \(\mathcal{E}_t(\tau,n,d,p) := {\mathscr{L}_{\mathrm{ESM}}}(s_{W,A(\tau)}, t)\). Then, \(\mathcal{E}_t(\tau,n,d,p)\) has an almost-sure limit \(\overline{\mathcal{E}}_t(\tau, n, d) := \lim_{p\to \infty} {\mathscr{L}_{\mathrm{ESM}}}(s_{W,A(\tau)}, t)\). Moreover, in the limit as \(n,d \to \infty\) with \(\lim(d / n) = \psi_d > 1\), we have, almost-surely \[\begin{align} \frac{1}{d}\overline{\mathcal{E}}_t(\tau, n, d) \longrightarrow \left( 1 - \frac{1}{\psi_d} \right) \frac{\left((\alpha_t^2 \beta + \sigma_t^2) \sigma_t^{-2} (1 - e^{-2\tau \sigma_t^4}) - 1 \right)^2 }{\alpha_t^2 \beta + \sigma_t^2} + \mathcal{O}_{} \left( \frac{1}{\psi_d} \right) \;, \end{align}\] In particular, if \(\tau = \mathcal{O}_{} \left( \sigma_t^{-2} \right)\), then the limit above is bounded as \(t \to 0^+\).

This result shows that early stopping prevents the explosion of the test loss as \(t \to 0\) given that the early stopping \(\tau\) is of order \(\sigma_t^{-2}\). This suggests that, despite not being benign, overfitting and memorization appear later in training, allowing early stopping to effectively prevent it, which aligns with recent results [19], [30]. The advantages of early stopping can also be observed in high-dimensional experiments: in [fig:train95unet], we report the evolution of the test and train errors for a U-Net across iterations, observing that there is a unique optimal stopping time where the ESM loss is controlled as the number of parameters grows.

Figure 4: Time-independent DDPM model evaluated at t=0.1. We train it on the range [t, t+r] and observe how increasing r can benefit generalization at time t. Details in Appendix 9.2.

6 Related works & Conclusion↩︎

Random features analysis & linear models. While we focus on quantifying overfitting, we also derive exact asymptotics of the losses in the proof of 1, complementing prior analyses [30], [38], [39]. As discussed in 4, the two-layer linear RFNNs analysis recovers linear diffusion models as a particular case, extending the regularized linear model analysis of [30]. In particular, we recover the conclusion that overfitting is driven by the null space. Recent work also studied the learning dynamics of diffusion models [30], [42], including RFNN settings [18], [19]. 5.2 supplements these approaches by quantifying the role of early stopping in mitigating overfitting in linear networks. Overall, we provide a fine-grained characterization of overfitting in linear RFNNs and, crucially, incorporate the time-smoothness of the models with time-integrated losses (5.1), which is beyond the scope of prior work.

Diffusion model generalization. In addition to the aforementioned works, there has been a lot of recent interest in the generalization properties of diffusion models [18], [43], [44]. In particular, minimax statistical rates have been obtained [12], [14], [15], the relationship with data geometry has been explored [31], [35], [45] and, more recently, algorithm-dependent generalization bounds were proposed for diffusion models [20], [29]. Our work offers a new but complementary perspective, by suggesting that the mechanisms causing generalization in diffusion models are fundamentally different from those in classical settings.

Statistical lower bounds. Recent work analyzed memorization through the development of lower bounds [46]. In particular, 1 can be compared with [47], who showed that \(\mathscr{J}(\hat{p}_t || p_t) = {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(\nabla \log p_t, t) - {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(\nabla \log \hat{p}_t, t)\). This is of a different nature than the left-hand side of 5 , which is the sum of the empirical and population ESM losses for a generic score. That being said, the lower bounds on \(\mathscr{J}(\hat{p}_t || p_t)\) derived in [47] for mixture data could easily be combined with 1. Our results in 3.2 differ in that they consider a very generic setting and exploit the intrinsic dimension of the data in statistical guarantees. Note that 5 does not require any restrictive assumptions on \(\nu\), such as the log-Sobolev inequality used in [48].

6.0.0.1 Conclusion.

In this work, we showed that the phenomenon of benign overfitting, known to occur in many deep learning settings, does not occur in diffusion models. We first derive a fundamental limitation of score matching, showing that the empirical and population losses cannot be small without an exceedingly large training set. Then, through a combination of high-dimensional experiments and a fine-grained analysis in a simplified setting, we showed that the double descent phenomenon of deep learning does not occur and that the test error follows a U-shaped curve with respect to model complexity. Finally, by incorporating the time-smoothness of the score and early-stopped gradient dynamics into our experiments and linear network analysis, we demonstrated that these key components of score estimation can help prevent overfitting.

Acknowledgements↩︎

U.S. is partially supported by the French government under the management of Agence Nationale de la Recherche as part of the “Investissements d’avenir” program, reference ANR-19-P3IA-0001 (PRAIRIE 3IA Institute). T.F., B.D., and U.S. are supported by the European Research Council Starting Grant DYNASTY – 101039676. A.D. is supported by the France 2030 program with the reference ANR-25-PEIA-0001 (THEOREM project). A.D. is funded by the European Union (ERC-2022-SYG-OCEAN-101071601). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them. A.D. is supported by Hi! Paris and Agence Nationale de la Recherche (Grant 11-LABX-0047). This work received government funding administered by the National Research Agency (ANR) under the France 2030 program "Hi! PARIS", grant number ANR-23-IACL-0005. The authors would also like to thank George Deligiannidis, Giovanni Conforti and Francis Bach for inspiring discussions. This paper was partially motivated by a mid-seminar argument with Francis and the SIERRA team initiated by a statement similar to the title of this work.

7 Additional Technical Background↩︎

7.1 Intrinsic dimensions↩︎

Our main results in 3 are expressed in terms of the Rényi dimension of a Borel measure \(\mu\) on \({\mathbb{R}^d}\). This notion was first developed by [49] and then rigorously treated in [50], [51]. It is a standard notion in the theory of chaotic dynamical systems. We provide below the definition.

Definition 1 (Rényi dimension of a measure). Let \(\mu\) be a Borel probability measure on \({\mathbb{R}^d}\). The upper Rényi dimension of \(\mu\) is defined by \[\begin{align} \overline{\gamma} (\mu) := \limsup_{\delta \to 0} \left( \frac{1}{\log \delta} \log \left( \int \mu(B(x,\delta)) \mathrm{d}\mu(x) \right) \right) \;. \end{align}\] Similarly, the lower Rényi dimension of \(\mu\) is defined by \[\begin{align} \underline{\gamma} (\mu) := \liminf_{\delta \to 0} \left( \frac{1}{\log \delta} \log \left( \int \mu(B(x,\delta)) \mathrm{d}\mu(x) \right) \right) \;. \end{align}\]

Remark 3. The definition above is actually a particular case of the larger family of Rényi dimension, where it actually corresponds to the Rényi dimension of order \(2\). Note that 1 is also sometimes called the correlation dimension in the literature [51].

Remark 4. In particular, if a measure is supported on a smooth manifold and is Ahlfors regular (see [52], [53]) on this manifold, then the Rényi dimension of 1 is equal to the manifold dimension.

7.2 Random covariance matrices↩︎

We recall here some basic random matrix theory results related to random covariance matrices and the Marchenko-Pastur theorem. We invite the reader to consult [54] for additional details.

Given a symmetric matrix \(\mathbf{\Sigma}\in \mathbb{R}^{d \times d}\), we denote its spectrum by \(\mathrm{Spec}(\mathbf{\Sigma})\) (where the eigenvalues are counted with their multiplicity). The spectral measure of \(\Sigma\) is defined by \[\require{upgreek} \begin{align} \label{eq:spectral-measure} \widehat{\mu}_{\mathbf{\Sigma}} := \frac{1}{d} \sum_{\lambda \in \mathrm{Spec}(\mathbf{\Sigma})} \updelta_\lambda \;. \end{align}\tag{8}\] We recall below the celebrated Marchenko-Pastur theorem [55]. To this end, we first define the Marchenko-Pastur distribution below.

Definition 2 (Marchenko-Pastur distribution). Let \(\psi > 0\). The Marchenko-Pastur distribution with shape parameter \(\psi\), denoted here \(\mu_{\mathrm{MP}}^{(\psi)}\), is the probability distribution on \(\mathbb{R}_+\) defined by \[\require{upgreek} \begin{align} \mu_{\mathrm{MP}}^{(\psi)}(\mathrm{d}x) := \left( 1 - \frac{1}{\psi} \right)_+ \updelta_0 + \frac{\sqrt{(\psi^+ - x)(x - \psi^-)}}{2 \pi \psi x} \mathbb{1}_{[\psi^-, \psi^+]}(x) \mathrm{d}x \;, \end{align}\] where \(y_+ := \max(0,y)\), \(\psi^- = |1 - \sqrt{\psi}|^2\), and \(\psi^+ := (1 + \sqrt{\psi})^2\).

The Marchenko-Pastur’s theorem is given below.

Theorem 2 (Marchenko-Pastur’s theorem). Let \(X\) be random vector \({\mathbb{R}^d}\) with i.i.d. components with zero mean, unit variance, and uniformly bounded moments1 of order \(4 + \epsilon\) for some \(\epsilon > 0\). Define the empirical covariance matrix, \[\begin{align} \widehat{\mathbf{\Sigma}}:= \frac{1}{n} \sum_{i=1}^n X_i X_i^T\;, \end{align}\] with \(X_1, \dots, X_n\) i.i.d. copies of \(X\). Consider that \(d = d_n\) with \(\lim_{n \to \infty} (d_n / n) = \psi > 0\). Then, with probability one, the empirical measure \(\widehat{\mu}_{\widehat{\mathbf{\Sigma}}}\) converges weakly to the Marchenko-Pastur distribution with shape parameter \(\psi\).

8 Omitted Proofs↩︎

In this section, we present the omitted proofs of the results from [sec:fundamental-limitations,sec:fine-grainded-linear-analysis,sec:preventing-overfitting].

8.1 Omitted proofs of 3↩︎

8.1.1 Proof of 1.↩︎

We present below the proof of 1.

Proof. Let \(S := (Z_1,\dots,Z_n) \sim \nu^{\otimes n}\) be a dataset sampled from the data distribution. Let \(({\widehat{X}_t})_{t \geq 0}\) the Ornstein-Uhlenbeck process \(\mathrm{d}{\widehat{X}_t}= -\kappa {\widehat{X}_t}\mathrm{d}t + \sqrt{2} \mathrm{d}\mathrm{B}_t\) initialized at the empirical data distribution \(\require{upgreek} {\widehat{X}}_0 \sim \frac{1}{n} \sum_{i=1}^n \updelta_{Z_i}\). We denote by \(\hat{p}_t\) the probability density of \({\widehat{X}_t}\), conditioned on \(S := (Z_1,\dots,Z_n)\). Let \(s : [0,T] \times {\mathbb{R}^d}\to {\mathbb{R}^d}\) be an arbitrary measurable score function. By definition of the Fisher information and the triangle inequality (note that the expectation is over both the noise and the dataset), we have, for any \(t > 0\), \[\begin{align} \mathbb{E}_{} \left[ \mathscr{J}(\hat{p}_t || p_t) \right] &= \mathbb{E}_{} \left[ \left\Vert \nabla \log \hat{p}_t({\widehat{X}_t}) - \nabla \log p_t({\widehat{X}_t}) \right\Vert^2 \right] \\ &\leq 2\mathbb{E}_{} \left[ \left\Vert \nabla \log \hat{p}_t({\widehat{X}_t}) - s(t, {\widehat{X}_t}) \right\Vert^2 \right] + 2 \mathbb{E}_{} \left[ \left\Vert s(t, {\widehat{X}_t}) - \nabla \log p_t({\widehat{X}_t}) \right\Vert^2 \right]\\ &= 2\mathbb{E}_{} \left[ \left\Vert \nabla \log \hat{p}_t({\widehat{X}_t}) - s(t, {\widehat{X}_t}) \right\Vert^2 \right] + 2 \mathbb{E}_{} \left[ \left\Vert s(t, {X_t}) - \nabla \log p_t({X_t}) \right\Vert^2 \right]\;, \end{align}\] where the last equality follows as \(\operatorname{law}({X_t})\) is the marginal distribution of \({\widehat{X}_t}\) under \(S \sim \nu^{\otimes n}\). We immediately deduce that for any \(t > 0\), we have \[\begin{align} \mathbb{E}_{} \left[ \mathscr{J}(\hat{p}_t || p_t) \right] \leq 2 \mathbb{E}_{} \left[ {\mathscr{L}_{\mathrm{ESM}}}(s, t) + {\widehat{\mathscr{L}}_{\mathrm{ESM}}}(s, t) \right]\;. \end{align}\] For the second part of the statement, by the triangle inequality, we have that \[\begin{align} \mathbb{E}_{} \left[ \mathscr{J}(\hat{p}_t || p_t) \right] = \int_{{\mathbb{R}^d}}\mathbb{E}_{} \left[ \left\Vert \nabla \log \frac{\hat{p}_t}{p_t}(x) \right\Vert^2 \hat{p}_t(x) \right] \mathrm{d}x \geq \frac{1}{2} \mathbb{E}_{} \left[ \mathscr{J}(\hat{p}_t) \right] - \mathscr{J}(p_t) \;. \end{align}\] Note that \(\mathscr{J}(p_t) \le \alpha_t^{-2} \mathscr{J}(\nu) <+\infty\) under our assumptions. Then, the fact that \(\mathbb{E}_{} \left[ \mathscr{J}(\hat{p}_t) \right] \to +\infty\) as \(t\to 0^+\) follows from standard arguments. For the sake of completeness, let us provide a short proof in the case \(\kappa=0\) (without loss of generality, the other cases follow by the same computation by using the invariant distribution of the forward process instead of the Lebesgue measure as a reference measure). Let \(h(f) := -\int f(x) \log f(x) \mathrm{d}x\) denote the entropy functional, as soon as it is well-defined. As a consequence of the De-Bruijn’s identity and the fact that the Fisher information is non-increasing along the semigroup [56], we have, for \(t > s > 0\), that \[\begin{align} h(\hat{p}_t) - h(\hat{p}_s) = \int_s^t \mathscr{J}(\hat{p}_u) \mathrm{d}u \leq (t - s) \mathscr{J}(\hat{p}_s) \;. \end{align}\] Given \((Z_1,\dots,Z_n) \sim \nu^{\otimes n}\), we easily see that \[\begin{align} - h(\hat{p}_s) \geq -\frac{1}{n} \sum_{i=1}^n h(f_{Z_i, \sigma_s}) - \log(n) = -\frac{d}{2} \log(2 \pi e) + \frac{d}{2} \log(\sigma_s^{-2}) - \log(n) \;, \end{align}\] where \(f_{\mu,\sigma}\) is the density of \(\mathrm{N}(\mu, \sigma {\mathrm{I}}_d)\). Thus, if we fix \(t\) and let \(s \to 0^+\), \(\mathbb{E}_{} \left[ \mathscr{J}(\hat{p}_s) \right] \to +\infty\).

This concludes the proof. ◻

Remark 5. As an immediate consequence, for any positive Borel measure \(\varpi\) on \([0,T]\), we have \[\begin{align} \mathbb{E}_{} \left[ {\mathscr{L}_{\mathrm{ESM}}}(s, \varpi) + {\widehat{\mathscr{L}}_{\mathrm{ESM}}}(s, \varpi) \right] \geq \frac{1}{2} \int_{[0,T]}\mathbb{E}_{} \left[ \mathscr{J}(\hat{p}_t || p_t) \right] \mathrm{d}\varpi(t) \;. \end{align}\]

8.1.2 Lower bound under log-Sobolev inequalities↩︎

In this subsection, we present some additional results to complement 1. Our goal is to show that, under the assumption that the data distribution satisfies a logarithmic Sobolev inequality, we can obtain a similar lower bound to 1, where the relative Fisher information term can be replaced by other divergences, such as the total variation distance.

8.1.2.1 Conventions for probabilistic inequalities.

We define the total variation distance as \[\begin{align} \mathrm{TV}(\mu,\nu) := \sup_A |\mu(A) - \nu(A)|\;. \end{align}\] We say that a Borel probability distribution \(\nu\) satisfies the log-Sobolev inequality with constant \(\rho\) if for all differentiable \(f \in \mathrm{L}^1(\nu)\), we have \[\begin{align} \operatorname{Ent}_\nu(f) \leq \frac{\rho}{2} \int \frac{\left\Vert \nabla f \right\Vert^2}{f} \mathrm{d}\nu\;. \end{align}\] Equipped with these definitions, we have the following proposition.

Proposition 4. Assume that the data distribution satisfies the log-Sobolev inequality with constant \(\rho_0\). Let \(\varpi\) be a positive Borel measure on \([0,T]\), we have \[\begin{align} \mathbb{E}_{} \left[ {\mathscr{L}_{\mathrm{ESM}}}(s, \varpi) + {\widehat{\mathscr{L}}_{\mathrm{ESM}}}(s, \varpi) \right] \geq \int_{[0,T]} \frac{2}{\alpha_t^2 \rho_0 + \sigma_t^2} \mathbb{E}_{} \left[ \mathrm{TV} (p_t, \hat{p}_t)^2 \right] \mathrm{d}\varpi(t) \;. \end{align}\]

Proof. By stability of the log-Sobolev inequality under Lipschitz mappings and convolutions [57], we have that \(p_t\) satisfies the log-Sobolev inequality with constant \(\rho_t := \alpha_t^2 \rho_0 + \sigma_t^2\). Therefore, for any \(t>0\), we have \[\begin{align} \frac{1}{2}\mathscr{J}(\hat{p}_t || p_t) &\geq \frac{1}{\alpha_t^2 \rho_0 + \sigma_t^2} \mathrm{KL}\left(\hat{p}_t || p_t \right) \quad\text{(log-Sobolev inequality)} \\ &\geq \frac{2}{\alpha_t^2 \rho_0 + \sigma_t^2} \mathrm{TV}(\hat{p}_t, p_t)^2 \quad\text{(Pinsker's inequality)}\;. \end{align}\] The result immediately follows by integrating over \(\varpi\) and applying 1. ◻

Remark 6. We immediately see that, if \(\kappa > 0\), we have, \[\begin{align} \mathbb{E}_{} \left[ {\mathscr{L}_{\mathrm{ESM}}}(s, \varpi) + {\widehat{\mathscr{L}}_{\mathrm{ESM}}}(s, \varpi) \right] \geq \frac{2}{\max(\kappa^{-1}, \rho_0)} \int_{[0,T]} \mathbb{E}_{} \left[ \mathrm{TV} (p_t, \hat{p}_t)^2 \right] \mathrm{d}\varpi(t) \;. \end{align}\]

8.1.3 Proof of 1↩︎

Before giving the proof of 1, we provide some technical lemmas below. Recall that we denote by \(p_{t|0}(\cdot|x)\) the conditional density of \(X_t\) given \(X_0 = x\), defined by 2 .

Lemma 4. Given any \(x \in {\mathbb{R}^d}\) and \(Y \sim p_{\epsilon|0}(\cdot|x)\), we have that for any \(\Delta \geq 0\), \[\begin{gather} \mathbb{P}(\|Y - \alpha_\epsilon x\| \geq \sigma_\epsilon m + \Delta) \leq \exp \bigg ( - \frac{\Delta^2}{2\sigma_\epsilon^2} \bigg )\;,\\ \mathbb{P}(\|Y - \alpha_\epsilon x\| \leq \sigma_\epsilon m - \Delta) \leq \exp \bigg ( - \frac{\Delta^2}{2\sigma_\epsilon^2} \bigg )\;, \end{gather}\] where \(m = \mathbb{E}_{Z \sim \mathrm{N}(0, {\mathrm{I}}_d)}[\|Z\|]\).

Proof. By definition, we have that the random variable \(Z = \sigma_\epsilon^{-1} (Y - \alpha_\epsilon x)\) is a standard multivariate Gaussian. Thus, by Gaussian concentration of measure (see e.g., Section 5.4.2 of [56]), we have that for any 1-Lipschitz function \(f\), \[\mathbb{P}(f(Z) - \mathbb{E}[f(Z)] \geq t) \leq \exp(-t^2/2)\;.\] Choosing \(f(z) = \|z\|\) and \(f(z) = -\|z\|\) along with \(t = \Delta/\sigma_\epsilon\). ◻

The proof of 1 is based on the following proposition, providing a lower bound on the sample size, provided that two KL divergences associated to the population and empirical forward processes are both smaller than an absolute constant. Below, we use the following convention and notation for the total variation distance: \[\begin{align} \label{eq:tv95distance} \left\Vert \mu - \nu \right\Vert_{\mathrm{TV}} := \sup_A |\mu(A) - \nu(A)| \;, \end{align}\tag{9}\] for probability measure \(\mu\) and \(\nu\). We also recall that we denote by \(p_t\) the probability density of \(X_t\) following 1 and by \(\hat{p}_t\) the probability density of the process \(\mathrm{d}{\widehat{X}_t}= -\kappa {\widehat{X}_t}\mathrm{d}t + \sqrt{2} \mathrm{d}\mathrm{B}_t\) initialized at \(\require{upgreek} {\widehat{X}}_0 \sim \frac{1}{n} \sum_{i=1}^n \updelta_{Z_i}\), for \(t > 0\), where \(S := (Z_1, \dots,Z_n) \sim \nu^{\otimes n}\) is the dataset.

Proposition 5. Let \(\epsilon>0\). For any distribution \(\hat{\nu}\) on \(\mathbb{R}^d\), which might depend on the dataset \(S\), if \(\mathbb{E}_{} \left[ \mathrm{KL}\left(\hat{p}_\epsilon || \hat{\nu} \right) \right] \leq 1 / 16\) and \(\mathbb{E}_{} \left[ \mathrm{KL}\left({p}_\epsilon || \hat{\nu} \right) \right] \leq 1 / 16\), then we have \(n \geq n_{\min}(\epsilon)\), with, for \(\epsilon\) small enough \[\begin{align} \log n_{\min} (\epsilon) \geq -\frac{1}{2} \log \left( 8 \sqrt{d \vee \log(64)} \sigma_\epsilon \right) \underline{\gamma}(\nu) \;, \end{align}\] where \(\underline{\gamma}(\nu)\) is the lower Rényi dimension defined in 1.

Proof of Proposition 5. We begin with Pinsker’s inequality and the reverse triangle inequality for the total variation distance, which are used to obtain \[\begin{align} \mathbb{E}_{} \left[ \mathrm{KL}\left({p}_\epsilon || \hat{\nu} \right) \right] &\geq 2 \mathbb{E}[ \|p_\epsilon - \hat{\nu}\|_{\operatorname{TV}}^2 ]\\ &\geq 2 \mathbb{E}\Big [ (\|p_\epsilon - \hat{p}_\epsilon\|_{\operatorname{TV}} - \|\hat{p}_\epsilon - \hat{\nu}\|_{\operatorname{TV}})^2 \Big ]\\ &\geq 2 \bigg ( \sqrt{\mathbb{E}_{} \left[ \|p_\epsilon - \hat{p}_\epsilon\|^2_{\operatorname{TV}} \right]} - \sqrt{ \mathbb{E}_{} \left[ \|\hat{p}_\epsilon - \hat{\nu}\|_{\operatorname{TV}}^2 \right]} \bigg )^2 \;, \end{align}\] where the final inequality follows from the triangle inequality in weighted \(\mathrm{L}^2\)-norm. Since, we have \(2\mathbb{E}[\|\hat{p}_\epsilon - \hat{\nu}\|_{\operatorname{TV}}^2] \leq \mathbb{E}_{} \left[ \mathrm{KL}\left(\hat{p}_\epsilon || \hat{\nu} \right) \right] \leq 1/16\), we conclude from this that if \(\mathbb{E}_{} \left[ \mathrm{KL}\left({p}_\epsilon || \hat{\nu} \right) \right]\leq 1/16\) then \(\mathbb{E}[\|p_\epsilon - \hat{p}_\epsilon\|_{\operatorname{TV}}^2] \leq \frac{1}{8}\).

We now identify a test set to lower bound the total variation using that for any Borel set \(A\), \[\|p_\epsilon - \hat{p}_\epsilon\|_{\operatorname{TV}} \geq |p_\epsilon(A) - \hat{p}_\epsilon(A)| \;.\] As in 4, we define \(m = \mathbb{E}_{Z \sim \mathrm{N}(0, {\mathrm{I}}_d)}[\|Z\|]\). We define the set \(A_R := \{y \in \mathbb{R}^d: y \notin B_{\sigma_\epsilon m + R}(\alpha_\epsilon Z_i), \forall i =1,\dots,n\}\) so that the empirical density is upper bounded by \[\hat{p}_\epsilon(A_R) \leq \frac{1}{N} \sum_{i=1}^N p_{\epsilon|0}(B_{m\sigma_\epsilon + R}(\alpha_\epsilon Z_i)^\complement|Z_i) = 1- p_{\epsilon, R} \;,\] where \(p_{\epsilon, R} := p_{\epsilon|0}(B_{m\sigma_\epsilon + R}(\mathbf{0})|\mathbf{0})\). Define the set \[\tilde{A}_R := \{y \in \mathbb{R}^d: \|y - Z_i\| \geq 2 (R + m \sigma_\epsilon)/\alpha_\epsilon, \forall i=1,\dots,n\} \;.\] The population density is lower bounded using that for any \(x \in \tilde{A}_R\), we have \(B_{m\sigma_\epsilon + R}(\alpha_\epsilon x) \subset A_R\) and hence, \[\begin{align} p_\epsilon(A_R) &\geq \int_{\tilde{A}_R} p_{\epsilon|0}(A_R|x) \nu(\mathrm{d}x)\\ &\geq \int_{\tilde{A}_R} p_{\epsilon|0}(B_{m\sigma_\epsilon + R}(\alpha_\epsilon x)|x) \nu(\mathrm{d}x)\\ &= \nu(\tilde{A}_R) p_{\epsilon, R} \;. \end{align}\] We further bound this using the union bound, \[\begin{align} \mathbb{E}_S[\nu(\tilde{A}_R)] &=1 - \mathbb{E}_{S} \left[ \mathbb{P}_{X \sim \nu} \left( \bigcup_{i=1}^n \{\|X - x_i\| < {2(R + m \sigma_\epsilon)}/{\alpha_\epsilon} \} \right) \right]\\ &\geq \left(1 - \sum_{i=1}^n \mathbb{E}[\mathbb{P}_{X \sim \nu}(\|X - x_i\| < 2 (R + m \sigma_\epsilon)/\alpha_\epsilon)]\right)_+\\ &= (1 - n \delta(2 (R + m \sigma_\epsilon)/\alpha_\epsilon))_+ \;, \end{align}\] where we define \(\delta(r) = \mathbb{E}_{X \sim \nu}[\nu(B_{r}(X))]\). The total variation is then lower bounded using \(A_R\) as a test set: \[\mathbb{E}[\|p_\epsilon - \hat{p}_\epsilon\|_{\operatorname{TV}}] \geq \mathbb{E}[p_\epsilon(A_R) - \hat{p}_\epsilon(A_R)] \geq \left( \left(1 - n \delta \left(\frac{2 (R + m \sigma_\epsilon)}{\alpha_\epsilon} \right)\right)_+ p_{\epsilon, R} - (1 - p_{\epsilon, R}) \right)_+ \;.\] To guarantee that this bound is non-trivial, we now choose \(R\) using Lemma 4. Setting \(R^2 = 2 \log(8) \sigma_\epsilon^2\), leads to the bound, \[p_{\epsilon, R} \geq 1 - \exp \bigg ( - \frac{R^2}{2 \sigma_\epsilon^2} \bigg ) \geq \frac{3}{4} \;.\] We also choose \(\epsilon\) such that \(\alpha_\epsilon \geq 1/2\) so that \(2(R + m\sigma_\epsilon)/\alpha_\epsilon \leq 8 \sqrt{d \vee \log(64)} \sigma_\epsilon\) and \(8 \sqrt{d \vee \log(64)} \sigma_\epsilon < 1\).

Thus, by Jensen’s inequality, we have the lower bound, \[\mathbb{E}[\|p_\epsilon - \hat{p}_\epsilon\|_{\operatorname{TV}}^2]^{1/2} \geq \frac{1}{4} \Big ( 3 (1 - n \delta(8 \sqrt{d \vee \log(64)} \sigma_\epsilon))_+ - 1 \Big )_+ \;.\] From this bound we deduce that, \[\begin{align} \mathbb{E}_{} \left[ \|p_\epsilon - \hat{p}_\epsilon\|_{\text{TV}}^2 \right] \leq \frac{1}{8} &\implies ( 3 (1 - n \delta(8 \sqrt{d \vee \log(64)} \sigma_\epsilon))_+ \leq 1 + \sqrt{2}\\ & \implies n \geq \frac{2 - \sqrt{2}}{3 \, \delta(8 \sqrt{d \vee \log(64)} \sigma_\epsilon)} =: n_{\min}(\epsilon) \;. \end{align}\] By the definition of the lower Rényi dimension in 1, we have that \[\begin{align} \underline{\gamma}(\nu) = \liminf_{\epsilon \to 0^+} \frac{\log \delta (8 \sqrt{d \vee \log(64)} \sigma_\epsilon)}{\log (8 \sqrt{d \vee \log(64)} \sigma_\epsilon)} \;. \end{align}\] Let \(\eta > 0\) be fixed, by definition, we have that there exists \(\epsilon_0\) such that, for all \(\epsilon < \epsilon_0\), we have \[\begin{align} \log n_{\min} (\epsilon) \geq \log \left( \frac{2 - \sqrt{2}}{3} \right) - \log \left( 8 \sqrt{d \vee \log(64)} \sigma_\epsilon \right) (\underline{\gamma}(\nu) - \eta) \;. \end{align}\] In particular, if \(\underline{\gamma}(\nu) > 0\), for \(\epsilon\) small enough, we have that \[\begin{align} \log n_{\min} (\epsilon) \geq -\frac{1}{2} \log \left( 8 \sqrt{d \vee \log(64)} \sigma_\epsilon \right) \underline{\gamma}(\nu) \;. \end{align}\] Moreover, if \(\underline{\gamma}(\nu) = 0\), then the above inequality is always verified. This concludes the proof. ◻

We can now present the proof of 1.

Proof of Theorem 1. Suppose that \(\mathbb{E}_{X \sim \nu}[\|X\|^2] = \sigma^2 < \infty\), \(T \geq 1 + \frac{1}{2\kappa} \log (32 (\sigma^2 + \kappa^{-1} d))\), and \(d \geq 5\). We begin by expressing the weighted ESM loss in terms of the standard ESM loss by using the fact that the density \(w\) of \(\varpi\) is non-decreasing on its support. We have, for \(\delta \geq \epsilon\), \[\begin{align} {\widehat{\mathscr{L}}_{\mathrm{ESM}}}(\hat{s}, \varpi) &= \int_\epsilon^T {\widehat{\mathscr{L}}_{\mathrm{ESM}}}(\hat{s}, t) w(t) \mathrm{d}t \geq w(\delta) {\widehat{\mathscr{L}}_{\mathrm{ESM}}}(\hat{s}, \varpi_{\mathrm{ELBO}}^\delta) \;, \end{align}\] where we recall \(\delta = w^{-1}(32 \varepsilon)\). By the assumption that \(\varepsilon \leq \sup(w) / 32\), we have, \[\mathbb{E}[{\widehat{\mathscr{L}}_{\mathrm{ESM}}}(\hat{s}, \varpi_{\mathrm{ELBO}}^\delta)] \leq \frac{\varepsilon}{w(\delta)} \leq \frac{1}{32} \;.\] Via the same argument, we also obtain that \(\mathbb{E}[{\mathscr{L}_{\mathrm{ESM}}}(\hat{s}, \varpi)] \leq \varepsilon\) implies that \(\mathbb{E}[{\mathscr{L}_{\mathrm{ESM}}}(\hat{s}, \varpi_{\mathrm{ELBO}}^\delta)] \leq 1/32\). Therefore it is sufficient to show that \(\mathbb{E}[{\widehat{\mathscr{L}}_{\mathrm{ESM}}}(\hat{s}, \varpi_{\mathrm{ELBO}}^\delta)] \leq 1/32,~ \mathbb{E}[{\mathscr{L}_{\mathrm{ESM}}}(\hat{s}, \varpi_{\mathrm{ELBO}}^\delta)] \leq 1/32\) leads to the lower bound on \(n\).

It follows from standard bounds based on Girsanov’s theorem that \[\begin{align} \mathrm{KL}\left(p_\delta || q_{T - \delta} \right) \leq {\mathscr{L}_{\mathrm{ESM}}}(\hat{s}, \varpi_{\mathrm{ELBO}}^\delta) + \mathrm{KL}\left(p_T || q_0 \right) \;,\\ \mathrm{KL}\left(\hat{p}_\delta || q_{T - \delta} \right) \leq {\widehat{\mathscr{L}}_{\mathrm{ESM}}}(\hat{s}, \varpi_{\mathrm{ELBO}}^\delta) + \mathrm{KL}\left(\hat{p}_T || q_0 \right) \;. \end{align}\] Using that \(q_0\) satisfies a logarithmic Sobolev inequality with constant \(\kappa^{-1}\), in combination with Corollary 2 of [58], we obtain the upper bound, \[\begin{align} \mathrm{KL}\left(p_T || q_0 \right) &\leq \exp(-2\kappa(T-s)) \mathrm{KL}\left(p_s || q_0 \right)\\ &\leq \frac{\exp(-2\kappa(T-s))}{4s} \operatorname{W}_2(p_0, q_0)^2 \;, \end{align}\] any \(s \in (0, T]\). Setting \(s = 1\), we obtain, \[\mathrm{KL}\left(p_T || q_0 \right) \leq \frac{\exp(-2 \kappa (T-1)) }{2} (\sigma^2 + \kappa^{-1} d) \;.\] By the lower bound assumption on \(T\), we have that \(\mathrm{KL}\left(p_T || q_0 \right) \leq 1/32\) and, via a similar argument, \(\mathbb{E}[ \mathrm{KL}\left(\hat{p}_T || q_0 \right) ] \leq 1/32\) also. Thus, it follows that \[\mathbb{E}_{} \left[ \mathrm{KL}\left(p_\delta || q_{T - \delta} \right) \right],~\mathbb{E}_{} \left[ \mathrm{KL}\left(\hat{p}_\delta || q_{T - \delta} \right) \right] \leq 1/16 \;.\] The result then follows immediately from Proposition 5. ◻

8.2 Omitted proofs of 4↩︎

In this section, we present the proofs of 2 and 1.

8.2.1 Proof of 2↩︎

We present below the proof of 2.

Proof. Let \((Z_1,\dots,Z_n) \in ({\mathbb{R}^d})^N\) be a dataset and \(W \in \mathbb{R}^{p \times d}\) be fixed. By assumption, \(W\) has full rank. Let \(\Xi \sim \mathrm{N}(0, {\mathrm{I}}_d)\). We can write the empirical risk as \[\begin{align} A \mapsto \frac{1}{n} \sum_{i=1}^n \mathbb{E}_{} \left[ \left\Vert \sigma_t AW (\alpha_t Z_i + \sigma_t \Xi) + \Xi \right\Vert^2 \right] \;. \end{align}\] As \(\mathbb{E}_{} \left[ \Xi \right] = 0\), we have \[\begin{align} \sigma_t^2 {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W,A}, t) &= d + \sigma_t^2 \frac{1}{n} \sum_{i=1}^n \mathbb{E}_{} \left[ {\mathrm{Tr}}\left( W^T A^T A W (\alpha_t Z_i + \sigma_t \Xi) (\alpha_t Z_i + \sigma_t \Xi)^T \right) \right] \\&\qquad + 2 \sigma_t^2 \mathbb{E}_{} \left[ {\mathrm{Tr}}\left( AW \Xi \Xi^T \right) \right] \\ &= d + \sigma_t^2 {\mathrm{Tr}}\left( A^T A W (\alpha_t^2 \widehat{\mathbf{\Sigma}} + \sigma_t^2 {\mathrm{I}}_d) W^T \right) + 2 \sigma_t^2 {\mathrm{Tr}}(AW) \\ &= d + \sigma_t^2 {\mathrm{Tr}}\left( A^T A W \widehat{\mathbf{\Sigma}}_t W^T \right) + 2 \sigma_t^2 {\mathrm{Tr}}(AW) \;. \end{align}\] Let \(A \in \mathop{\mathrm{arg\,min}}\widehat{\mathcal{R}}_{W,t} (\widehat{A})\), by taking the gradient above, we have \[\begin{align} \label{eq:gradient95zero95linear95net} A W \widehat{\mathbf{\Sigma}}_t W^T + W^T = 0 \;. \end{align}\tag{10}\]

Case 1 (\(p < d\)). By our assumptions, the matrix \(W\) has full rank, so its rank is \(p\) in this case. The matrix \(\widehat{\mathbf{\Sigma}}_t\) is always invertible, as soon as \(t > 0\); we also know that \(\mathrm{rank}(W) = \mathrm{rank}(W \widehat{\mathbf{\Sigma}}_t^{1 / 2})\), therefore, we conclude that \(\mathrm{rank}(W \widehat{\mathbf{\Sigma}}_t W^T) = p\), so the matrix \(W \widehat{\mathbf{\Sigma}}_t W^T \in \mathbb{R}^{p\times p}\) is invertible.

Therefore, the empirical risk minimizer is given by \[\begin{align} \widehat{A} := - W^T (W \widehat{\mathbf{\Sigma}}_t W^T)^{-1} \;. \end{align}\] Using 10 , we have that \[\begin{align} \sigma_t^2 {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W,\widehat{A}}, t) = d - \sigma_t^2 {\mathrm{Tr}}\left( W^T (W \widehat{\mathbf{\Sigma}}_t W^T)^{-1} W \right) \;. \end{align}\] To compute the score matching loss, we note that when \(\overrightarrow{X}_0 \sim \nu = \mathrm{N}(0,\mathbf{\Sigma})\), then \({X_t}\sim \mathrm{N}(0, \alpha_t^2 \Sigma + \sigma_t^2 {\mathrm{I}}_d) = \mathrm{N}(0, \mathbf{\Sigma}_t)\). Therefore, the score can be expressed as \[\begin{align} \nabla \log p_t(x) = -\mathbf{\Sigma}_t^{-1} x \;. \end{align}\] The score matching loss is then equal to \[\begin{align} {\mathscr{L}_{\mathrm{ESM}}}(s_{W,\widehat{A}}, t) = \mathbb{E}_{} \left[ \left\Vert \widehat{A} W (\alpha_t Z + \sigma_t \Xi) + \mathbf{\Sigma}_t^{-1} (\alpha_t Z + \sigma_t \Xi) \right\Vert^2 \right] \;, \end{align}\] with \((Z,\Xi) \sim \nu \otimes \mathrm{N}(0, {\mathrm{I}}_d)\). By symmetry of \(\widehat{A}W\), we obtain that \[\begin{align} {\mathscr{L}_{\mathrm{ESM}}}(s_{W,\widehat{A}}, t) &= \mathbb{E}_{} \left[ \left\Vert \widehat{A} W (\alpha_t Z + \sigma_t \Xi) + \mathbf{\Sigma}_t^{-1} (\alpha_t Z + \sigma_t \Xi) \right\Vert^2 \right] \\ &= {\mathrm{Tr}}\left( W^T \widehat{A}^T \widehat{A}W \mathbf{\Sigma}_t + 2 \widehat{A}W + \mathbf{\Sigma}^{-1}_t \right) \\ &= \left\Vert \left(W^T (W \widehat{\mathbf{\Sigma}}_t W^T)^{-1} W - \mathbf{\Sigma}_t^{-1} \right) \mathbf{\Sigma}_t^{1/2} \right\Vert_{\mathrm{F}}^2 \;. \end{align}\]

Case 2. (\(p\geq d\)) In this case, by similar argument as in the first case, we note that the matrix \(W \in \mathbb{R}^{p \times d}\) has full rank by assumption. Consider the linear map \(\Phi_W : \mathbb{R}^{d \times p} \to \mathbb{R}^{d \times d}\) defined by \(\Phi_W(A) = AW\). Then, we easily show that this map is almost-surely surjective, because the matrix \(W\) admits a left inverse \(W^+\) such that \(W^+ W = {\mathrm{I}}_d\) (which can be obtained from the singular value decomposition of \(W\)).

As both the empirical risk and the score matching loss depend only on \(A\) through the product \(AW\), we have that all the empirical risk minimizers \(\widehat{A}\) satisfy \(\widehat{A} W = \widehat{H} \in \mathbb{R}^{d \times d}\), with \(\widehat{H}\) the empirical minimizer of the following linear model: \[\begin{align} \widehat{H} \in \mathop{\mathrm{arg\,min}}_{H} \left\{ \frac{1}{n} \sum_{i=1}^n \mathbb{E}_{} \left[ \left\Vert \sigma_t H (\alpha_t Z_i + \sigma_t \Xi) + \Xi \right\Vert ^2 \right] \right\} \;, \quad (Z,\Xi) \sim \nu \otimes \mathrm{N}(0, {\mathrm{I}}_d) \;. \end{align}\] By similar computations as before, we easily show that \(\widehat{H} = -\widehat{\mathbf{\Sigma}}_t^{-1}\). Therefore, the minimum empirical risk is \[\begin{align} \sigma_t^2 {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W,\widehat{A}}, t) = d - \sigma_t^2 {\mathrm{Tr}}\left( \widehat{\mathbf{\Sigma}}_t^{-1} \right) \;. \end{align}\] Finally, the score matching loss can be expressed as \[\begin{align} {\mathscr{L}_{\mathrm{ESM}}}(s_{W,\widehat{A}}, t) &= {\mathrm{Tr}}\left( (\widehat{A} W + \mathbf{\Sigma}_t^{-1})^2 \mathbf{\Sigma}_t \right) = \left\Vert \left(\widehat{\mathbf{\Sigma}}_t^{-1} - \mathbf{\Sigma}_t^{-1} \right) \mathbf{\Sigma}_t^{1/2} \right\Vert_{\mathrm{F}}^2 \;. \end{align}\] This concludes the proof. ◻

8.2.2 Proof of 1↩︎

We prove 1 as a corollary of the following more general result, which gives the exact asymptotic behavior of the score matching loss and the empirical risk.

Proposition 6. Consider the same setup as in 1. Let \(\widehat{A}\in \mathop{\mathrm{arg\,min}}_A \widehat{\mathcal{R}}_{W,t} (A)\). If \(\psi_p > \psi_d\), we have \[\begin{align} \lim_{n \to \infty} \frac{1}{d} \inf_A \left( \sigma_t^2 {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W,A}, t) \right) = 1 - \sigma_t^2 \int \frac{\mathrm{d}\mu_{\mathrm{MP}}^{(\psi_d)} (\lambda)}{\alpha_t^2 \beta \lambda + \sigma_t^2} \;, \end{align}\] and \[\begin{align} \lim_{n \to\infty} {\mathscr{L}_{\mathrm{ESM}}}(s_{W,\widehat{A}}, t) = (\alpha_t^2 \beta + \sigma_t^2) \int \left( \frac{1}{\alpha_t^2 \beta \lambda + \sigma_t^2} - \frac{1}{\alpha_t^2 \beta + \sigma_t^2} \right)^2 \mathrm{d}\mu_{\mathrm{MP}}^{(\psi_d)} (\lambda) \;. \end{align}\] If \(\psi_p < \psi_d\), we have \[\begin{align} \frac{1}{d} \sigma_t^2 {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W,\widehat{A}}, t) \underset{n\to \infty}{\longrightarrow} 1 - \sigma_t^2 \frac{\psi_p}{\psi_d} \int \frac{1}{\alpha_t^2 \beta \lambda + \sigma_t^2} \mathrm{d}\mu_{\mathrm{MP}}^{(\psi_p)} (\lambda) \;, \end{align}\] and \[\begin{align} \frac{1}{d} {\mathscr{L}_{\mathrm{ESM}}}(s_{W,\widehat{A}}, t) \underset{n\to\infty}{\longrightarrow} (\alpha_t^2 \beta + \sigma_t^2) \frac{\psi_p}{\psi_d} \int \left( \frac{1}{\alpha_t^2 \beta \lambda + \sigma_t^2} - \frac{1}{\alpha_t^2 \beta + \sigma_t^2} \right)^2 \mathrm{d}\mu_{\mathrm{MP}}^{(\psi_p)} (\lambda) + \frac{1 - \frac{\psi_p}{\psi_d}}{\alpha_t^2 \beta + \sigma_t^2} \;. \end{align}\]

Proof. First, we note that in that case we have \(\mathbf{\Sigma}_t = (\alpha_t^2 \beta + \sigma_t^2) {\mathrm{I}}_d\). Moreover, we observe that, as the matrix \(W \in \mathbb{R}^{p \times d}\) has i.i.d. standard Gaussian entries, it has almost-surely full rank.

We can therefore apply 2, we distinguish two cases.

Case 1. (\(\psi_p > \psi_d\)) For \(n\) large enough, we have \(p > d\). In this case, by 2, the normalized empirical risk can be written as \[\begin{align} \frac{1}{d} \inf_A \left( \sigma_t^2 {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W,A}, t) \right) &= 1 - \sigma_t^2 \int \frac{\mathrm{d}\mu_{\beta^{-1} \widehat{\mathbf{\Sigma}}} (\lambda)}{\alpha_t^2 \beta \lambda + \sigma_t^2} \;, \end{align}\] where, for a positive definite matrix \(M\), \(\widehat{\mu}_{M}\) denotes the empirical spectral measure of \(M\), see 7.2.

By the Marchenko-Pastur theorem (e.g. Theorem 2.4 of [54]), we know that, almost-surely, the measure \(\mu_{\beta^{-1} \widehat{\mathbf{\Sigma}}}\) converges weakly to the Marchenko-Pastur distribution with shape parameter \(\psi_d\), denoted \(\mu_{\mathrm{MP}}^{(\psi_d)}\), see 7.2. The map \(\lambda \mapsto (\alpha_t^2 \beta \lambda + \sigma_t^2)\) is bounded and continuous, therefore, we have \[\begin{align} \lim_{n \to \infty} \frac{1}{d} \inf_A \left( \sigma_t^2 {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W,A}, t) \right) = 1 - \sigma_t^2 \int \frac{\mathrm{d}\mu_{\mathrm{MP}}^{(\psi_d)} (\lambda)}{\alpha_t^2 \beta \lambda + \sigma_t^2} \;. \end{align}\] Similarly, we have, with \(\widehat{A}\in \mathop{\mathrm{arg\,min}}_A \widehat{\mathcal{R}}_{W,t} (A)\), \[\begin{align} {\mathscr{L}_{\mathrm{ESM}}}(s_{W,\widehat{A}}, t) &= \frac{1}{d}(\alpha_t^2 \beta + \sigma_t^2) \left\Vert \left(\widehat{\mathbf{\Sigma}}_t^{-1} - \mathbf{\Sigma}_t^{-1} \right) \mathbf{\Sigma}_t^{1/2} \right\Vert_{\mathrm{F}}^2 \\ &\underset{n \to \infty}{\longrightarrow} (\alpha_t^2 \beta + \sigma_t^2) \int \left( \frac{1}{\alpha_t^2 \beta \lambda + \sigma_t^2} - \frac{1}{\alpha_t^2 \beta + \sigma_t^2} \right)^2 \mathrm{d}\mu_{\mathrm{MP}}^{(\psi_d)} (\lambda) \;. \end{align}\]

Case 2. (\(\psi_p < \psi_d\)) For \(n\) large enough, we have \(d > p\) In this case, we note (see the proof of 2) that the matrix \(W\) is almost surely of rank \(p\). Therefore, we can write the singular value decomposition of \(W\) in the form \(W = U \Lambda V^T\), where \(U \in \mathbb{R}^{p \times p}\) is orthonormal, \(\Lambda \in \mathbb{R}^{p \times p}\) is a diagonal matrix with positive diagonal coefficients, and \(V \in \mathbb{R}^{d \times p}\) is column orthonormal (\(V^T V = {\mathrm{I}}_p\)).

With these notations and noting that \(V^T V = {\mathrm{I}}_p\), we have, almost-surely, that \[\begin{align} \frac{1}{d} \sigma_t^2 {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W,\widehat{A}}, t) &= 1 - \frac{\sigma_t^2}{d} {\mathrm{Tr}}\left( V \Lambda U^T(U\Lambda V^T \widehat{\mathbf{\Sigma}}_t V \Lambda U^T)^{-1} U \Lambda V^T \right) \\ &= 1 - \frac{\sigma_t^2}{d} {\mathrm{Tr}}\left( V ( V^T \widehat{\mathbf{\Sigma}}_t V )^{-1} V^T \right)\\ &= 1 - \frac{\sigma_t^2}{d} {\mathrm{Tr}}\left( ( V^T \widehat{\mathbf{\Sigma}}_t V )^{-1} \right) \;. \end{align}\] Now we observe that \[\begin{align} V^T\widehat{\mathbf{\Sigma}}_t V = \alpha_t^2 V^T \widehat{\mathbf{\Sigma}}V + \sigma_t^2 {\mathrm{I}}_p = \frac{\alpha_t^2}{n} \sum_{i=1}^n V^T Z_i (V^T Z_i)^T + \sigma_t^2 {\mathrm{I}}_p \;. \end{align}\] Recall that \((Z_1,\dots, Z_n) \sim \mathrm{N}(0, \beta {\mathrm{I}}_d)^{\otimes n}\) and that \(V\) is column orthonormal (actually, it is even uniformly distributed) and independent of \((Z_1,\dots, Z_n)\). By independence and invariance by rotation of \(\mathrm{N}(0, \beta {\mathrm{I}}_d)\), we have that \(V^T Z_i \sim \mathrm{N}(0, \beta{\mathrm{I}}_p)\). Moreover, we have that \((V^T Z_1,\dots, V^T Z_n) \sim \mathrm{N}(0, \beta {\mathrm{I}}_p)^{\otimes n}\). Thus, we can apply the \(p\)-dimensional version of the Marchenko-Pastur theorem, which gives that \[\begin{align} \frac{1}{d} \sigma_t^2 {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W,\widehat{A}}, t) \underset{n\to \infty}{\longrightarrow} 1 - \sigma_t^2 \frac{\psi_p}{\psi_d} \int \frac{1}{\alpha_t^2 \beta \lambda + \sigma_t^2} \mathrm{d}\mu_{\mathrm{MP}}^{(\psi_p)} (\lambda) \;. \end{align}\] By 2, we have \[\begin{align} \frac{1}{d} {\mathscr{L}_{\mathrm{ESM}}}(s_{W,\widehat{A}}, t) &= \frac{1}{d} \left\Vert \left(W^T (W \widehat{\mathbf{\Sigma}}_t W^T)^{-1} W - \mathbf{\Sigma}_t^{-1} \right) \mathbf{\Sigma}_t^{1/2} \right\Vert_{\mathrm{F}}^2\\ &= \frac{\alpha_t^2 \beta + \sigma_t^2}{d} \left\Vert \left(V ( V^T \widehat{\mathbf{\Sigma}}_t V )^{-1} V^T - \mathbf{\Sigma}_t^{-1} \right) \right\Vert_{\mathrm{F}}^2\;. \end{align}\] Recall that \(\mathbf{\Sigma}_t = (\alpha_t^2 \beta + \sigma_t^2) {\mathrm{I}}_d\). By the Pythagorean theorem, we have \[\begin{align} \frac{1}{d} {\mathscr{L}_{\mathrm{ESM}}}(s_{W,\widehat{A}}, t) &= \frac{\alpha_t^2 \beta + \sigma_t^2}{d} \left( \left\Vert V ( V^T \widehat{\mathbf{\Sigma}}_t V )^{-1} V^T - \frac{VV^T}{\alpha_t^2 \beta + \sigma_t^2} \right\Vert_{\mathrm{F}}^2 + \frac{\left\Vert {\mathrm{I}}_d - VV^T \right\Vert_{\mathrm{F}}^2}{(\alpha_t^2 \beta + \sigma_t^2)^2} \right) \\ &= \frac{\alpha_t^2 \beta + \sigma_t^2}{d} \left( \left\Vert ( V^T \widehat{\mathbf{\Sigma}}_t V )^{-1} - \frac{{\mathrm{I}}_p}{\alpha_t^2 \beta + \sigma_t^2} \right\Vert_{\mathrm{F}}^2 + \frac{{\mathrm{Tr}}\left( {\mathrm{I}}_d - V V^T \right)}{(\alpha_t^2 \beta + \sigma_t^2)^2} \right) \\ &= \frac{\alpha_t^2 \beta + \sigma_t^2}{d} \left( \left\Vert ( V^T \widehat{\mathbf{\Sigma}}_t V )^{-1} - \frac{{\mathrm{I}}_p}{\alpha_t^2 \beta + \sigma_t^2} \right\Vert_{\mathrm{F}}^2 + \frac{d - p}{(\alpha_t^2 \beta + \sigma_t^2)^2} \right) \;. \end{align}\] By the arguments above (for the empirical risk), we observe that we can apply the \(p\) dimensional version of the Marchenko-Pastur theorem to the first term, this gives, almost-surely, \[\begin{align} \frac{1}{d} {\mathscr{L}_{\mathrm{ESM}}}(s_{W,\widehat{A}}, t) \underset{n\to\infty}{\longrightarrow} (\alpha_t^2 \beta + \sigma_t^2) \frac{\psi_p}{\psi_d} \int \left( \frac{1}{\alpha_t^2 \beta \lambda + \sigma_t^2} - \frac{1}{\alpha_t^2 \beta + \sigma_t^2} \right)^2 \mathrm{d}\mu_{\mathrm{MP}}^{(\psi_p)} (\lambda) + \frac{1 - \frac{\psi_p}{\psi_d}}{\alpha_t^2 \beta + \sigma_t^2} \;. \end{align}\] This concludes the proof. ◻

We present below the proof of 1.

Proof. (of 1) We apply 6 and focus on the case where \(\psi_p \wedge\psi_d > 1\). Then, in both cases below, the Marchenko-Pastur distributions appearing in 6 have a mass at zero, which we exploit to obtain our estimates. Let \(f_{\mathrm{MP}}^{(\psi)}\) denote the bulk density of the Marchenko-Pastur distribution with shape parameter \(\psi > 0\). Note that this is only a probability density when \(\psi \leq 1\), see 7.2.

Case 1. (\(\psi_p > \psi_d\)). Then, we have, almost-surely, \[\begin{align} \lim_{n \to \infty}\frac{1}{d} \inf_A \left( \sigma_t^2 {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W,A}, t) \right) = 1 - \sigma_t^2 \left(1 - \frac{1}{\psi_d} \right) \frac{1}{\sigma_t^2} - \sigma_t^2 \int \frac{f_{\mathrm{MP}}^{(\psi_d)}(\lambda)}{\alpha_t^2 \beta \lambda + \sigma_t^2} \mathrm{d}\lambda \;. \end{align}\] The bulk density \(f_{\mathrm{MP}}^{(\psi_d)}\) is supported on \([(\sqrt{\psi_d} - 1)^2, (\sqrt{\psi_d} + 1)^2]\) and we have \(\int f_{\mathrm{MP}}^{(\psi_d)}(\lambda) \mathrm{d}\lambda = \psi_d^{-1}\). Therefore, we have, almost-surely \[\begin{align} \lim_{n \to \infty}\frac{1}{d} \inf_A \left( \sigma_t^2 {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W,A}, t) \right) = \frac{1}{\psi_d} + \mathcal{O}_{} \left( \frac{1}{\psi_d^2} \right) \;, \end{align}\] as \(\psi_d \to \infty\). For the score matching loss, we have similarly that, almost-surely, \[\begin{align} \lim_{n \to \infty} \left(\frac{1}{d} {\mathscr{L}_{\mathrm{ESM}}}(s_{W,\widehat{A}}, t) \right) &= \left( 1 - \frac{1}{\psi_d} \right) \frac{\alpha_t^4 \beta^2}{\sigma_t^4(\alpha_t^2 \beta + \sigma_t^2)} \\& \qquad+ (\alpha_t^2 \beta + \sigma_t^2) \int \left( \frac{1}{\alpha_t^2 \beta \lambda + \sigma_t^2} - \frac{1}{\alpha_t^2 \beta + \sigma_t^2} \right)^2 f_{\mathrm{MP}}^{(\psi_d)} (\lambda) \mathrm{d}\lambda \\ &= \left( 1 - \frac{1}{\psi_d} \right) \frac{\alpha_t^4 \beta^2}{\sigma_t^4(\alpha_t^2 \beta + \sigma_t^2)} + \mathcal{O}_{} \left( \frac{1}{\psi_d} \right) \;. \end{align}\]

Case 2. (\(\psi_p < \psi_d\)) In that case, by very similar computations, we obtain \[\begin{align} \lim_{n \to \infty}\frac{1}{d} \inf_A \left( \sigma_t^2 {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{W,A}, t) \right) &= 1 - \frac{\psi_p}{\psi_d} \left(1 - \frac{1}{\psi_p} \right) - \sigma_t^2 \frac{\psi_p}{\psi_d} \int \frac{f_{\mathrm{MP}}^{(\psi_p)}(\lambda)}{\alpha_t^2 \beta \lambda + \sigma_t^2} \mathrm{d}\lambda \\ &= 1 + \frac{1}{\psi_d} - \frac{\psi_p}{\psi_d} + \mathcal{O}_{t} \left( \frac{1}{\psi_p \psi_d} \right) \;. \end{align}\] Finally, for the score matching loss, we obtain \[\begin{align} \lim_{n \to \infty} \left(\frac{1}{d} {\mathscr{L}_{\mathrm{ESM}}}(s_{W,\widehat{A}}, t) \right) &= \frac{\psi_p}{\psi_d}\left( 1 - \frac{1}{\psi_p} \right) \frac{\alpha_t^4 \beta^2}{\sigma_t^4(\alpha_t^2 \beta + \sigma_t^2)} + \frac{1 - \frac{\psi_p}{\psi_d}}{\alpha_t^2 \beta + \sigma_t^2} \\& \qquad+ (\alpha_t^2 \beta + \sigma_t^2) \frac{\psi_p}{\psi_d} \int \left( \frac{1}{\alpha_t^2 \beta \lambda + \sigma_t^2} - \frac{1}{\alpha_t^2 \beta + \sigma_t^2} \right)^2 f_{\mathrm{MP}}^{(\psi_p)} (\lambda) \mathrm{d}\lambda \\ &= \frac{\psi_p}{\psi_d}\left( 1 - \frac{1}{\psi_p} \right) \frac{\alpha_t^4 \beta^2}{\sigma_t^4(\alpha_t^2 \beta + \sigma_t^2)} + \frac{1 - \frac{\psi_p}{\psi_d}}{\alpha_t^2 \beta + \sigma_t^2} + \mathcal{O}_{} \left( \frac{1}{\psi_d} \right) \;. \end{align}\]

The result follows by rearranging the terms. ◻

8.3 Omitted proofs of 5.1↩︎

In this section, we present the proofs of 5.1, related to the impact of the time integration in the score matching loss.

8.3.1 Proof of 3↩︎

Proof. (of 3) By calculations similar to the proof of 2, we can write the denoising score matching loss as \[\begin{align} {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{A,W}, \varpi) &= \sigma_\pi^{-2} \int_{[0,T]}\left( d + \sigma_t^2 {\mathrm{Tr}}( A^T A W \widehat{\mathbf{\Sigma}}_t W^T ) + 2\sigma_t^2 {\mathrm{Tr}}(AW) \right) \mathrm{d}\pi(t) \\ &= \frac{d}{\sigma_\pi^2} + {\mathrm{Tr}}( W^T A^T A W \widehat{\mathbf{\Sigma}}_\varpi ) + 2 {\mathrm{Tr}}(AW) \;. \end{align}\] By reasoning as in the proof 2, we observe that (because \(p>d\)) all empirical risk minimizers \(\widehat{A}\) satisfy \[\begin{align} \widehat{A}W = -\widehat{\mathbf{\Sigma}}_\varpi^{-1} \;. \end{align}\] Therefore, the minimum empirical risk is equal to \[\begin{align} \inf_A {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{A,W}, \varpi) = \frac{d}{\sigma_\pi^2} - {\mathrm{Tr}}\left( \widehat{\mathbf{\Sigma}}_\varpi^{-1} \right) \;. \end{align}\] Again, by similar calculations as in the proof of 2, we can express the population score matching loss as \[\begin{align} {\mathscr{L}_{\mathrm{ESM}}}(s_{\widehat{A},W}, \pi) = \int_{[0,T]}\mathbb{E}_{} \left[ \left\Vert \widehat{A}W (\alpha_t Z + \sigma_t \Xi) + \mathbf{\Sigma}_t^{-1} (\alpha_t Z + \sigma_t \Xi) \right\Vert^2 \right] \mathrm{d}\pi(t) \;. \end{align}\] with \((Z,\Xi) \sim \nu \otimes \mathrm{N}(0, I_d)\). Therefore, we have \[\begin{align} {\mathscr{L}_{\mathrm{ESM}}}(s_{\widehat{A},W}, \pi) &= \int_{[0,T]}{\mathrm{Tr}}\left( \widehat{\mathbf{\Sigma}}_\varpi^{-2} \mathbf{\Sigma}_t - 2 \widehat{\mathbf{\Sigma}}_\varpi^{-1} + \mathbf{\Sigma}^{-1}_t \right) \mathrm{d}\pi(t)\\ &= {\mathrm{Tr}}\left( \widehat{\mathbf{\Sigma}}_\varpi^{-2} \mathbf{\Sigma}_\pi - 2 \widehat{\mathbf{\Sigma}}_\varpi^{-1} + \int_{[0,T]}\mathbf{\Sigma}_t^{-1} \mathrm{d}\pi(t) \right)\\ &= \left\Vert \left( \widehat{\mathbf{\Sigma}}_\varpi^{-1} - \mathbf{\Sigma}_\pi^{-1} \right) \mathbf{\Sigma}_\pi^{1 / 2} \right\Vert_{\mathrm{F}}^2 + {\mathrm{C}}_\pi \;, \end{align}\] with \[\begin{align} \label{eq:time-integrated-ESM95constant} {\mathrm{C}}_\pi := {\mathrm{Tr}}\left( \int_{[0,T]}\mathbf{\Sigma}_t^{-1} \mathrm{d}\pi(t) - \mathbf{\Sigma}_\pi^{-1} \right) \;. \end{align}\tag{11}\] By diagonalizing \(\Sigma_t\) and using Jensen’s inequality, we see that \({\mathrm{C}}_\pi \geq 0\). ◻

Remark 7 (Case where \(p\leq d\).). By proceeding like in the proof of 2, we have that \[\begin{align} \inf_A {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{A,W}, \varpi) = \frac{d}{\sigma_\pi^2} - {\mathrm{Tr}}\left( W^T (W\widehat{\mathbf{\Sigma}}_\varpi W^T )^{-1} W \right) \;. \end{align}\] Similarly, for the explicit score matching loss, we have \[\begin{align} {\mathscr{L}_{\mathrm{ESM}}}(s_{\widehat{A},W}, \pi)\left\Vert \left(W^T (W \widehat{\mathbf{\Sigma}}_\varpi W^T)^{-1} W - \mathbf{\Sigma}_\pi^{-1} \right) \mathbf{\Sigma}_\pi^{1/2} \right\Vert_{\mathrm{F}}^2 + {\mathrm{C}}_\pi \;, \end{align}\] where \(\widehat{A}= -(W \widehat{\mathbf{\Sigma}}_\varpi W^T)^{-1}\) is the empirical risk minimizer. These formulas are used to obtain the exact asymptotics presented in 3, using very similar computations as in the proofs of 4.

Remark 8 (Case where \(\pi\) is the uniform distribution and \(\kappa=1\).). In that case, we have \[\begin{align} \frac{1}{d} {\mathrm{C}}_\pi = \frac{1}{T} \int_0^T \frac{\mathrm{d}t}{\alpha_t^2 \beta + \sigma_t^2} - \frac{1}{\alpha_\pi^2 \beta + \sigma_\pi^2} \;. \end{align}\] We easily see that \[\begin{align} \alpha_\pi^2 = \frac{1}{T} \int_0^T e^{-2t} \mathrm{d}t = \frac{1 - e^{-2T}}{2T} \;, \quad \sigma_\pi^2 = 1 - \frac{1 - e^{-2T}}{2T} \;. \end{align}\] Therefore, we have \[\begin{align} \frac{1}{d} {\mathrm{C}}_\pi &= \frac{1}{T} \int_0^T \frac{\mathrm{d}t}{e^{-2t} \beta + 1 - e^{-2t}} - \frac{2T}{\beta (1 - e^{-2T}) + 2T - 1 + e^{-2T}} \\ &= \frac{1}{2T} \log \left( \frac{e^{2T} + \beta - 1}{\beta} \right) - \frac{2T}{\beta (1 - e^{-2T}) + 2T - 1 + e^{-2T}} \;. \end{align}\] Therefore, we have \[\begin{align} \label{eq:time-integrated-constant-uniform-case} \frac{1}{d} {\mathrm{C}}_\pi = \frac{1}{2T}\log \left(\frac{ 1 + e^{-2T} (\beta - 1) }{\beta} \right) + \frac{\beta (1 - e^{-2T}) - 1 + e^{-2T}}{\beta (1 - e^{-2T}) + 2T - 1 + e^{-2T}} = \mathcal{O}_{} \left( \frac{1}{T} \right) \;. \end{align}\tag{12}\]

8.3.2 Proof of 2↩︎

We provide below the proof of 2. We first provide, in the next proposition, the exact asymptotics of the score matching losses in the case of time-integrated losses.

Proposition 7. Consider the same setup as in 2, we have \[\begin{align} \lim_{n \to \infty} \left( \frac{1}{d} \inf_A {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{A,W}, \varpi) \right) &= \frac{1}{\sigma_\pi^2} - \int \frac{\mathrm{d}\mu_{\mathrm{MP}}^{(\psi_d)} (\lambda)}{\alpha_\varpi^2 \beta \lambda + \sigma_\varpi^2} \;, \end{align}\] and \[\begin{align} \lim_{n\to\infty} \left( \frac{1}{d}{\mathscr{L}_{\mathrm{ESM}}}(s_{\widehat{A}, W}, \pi)\right) = (\alpha_\pi^2 \beta + \sigma_\pi^2) \int \left( \frac{1}{\alpha_\varpi^2 \beta \lambda + \sigma_\varpi^2} - \frac{1}{\alpha_\pi^2 \beta + \sigma_\pi^2} \right)^2 \mathrm{d}\mu_{\mathrm{MP}}^{(\psi_d)} (\lambda) + \overline{{\mathrm{C}}}_\pi \;, \end{align}\] where, as before, \(\mu_{\mathrm{MP}}^{(\psi_d)}\) is the Marchenko-Pastur distribution with shape parameter \(\psi_d\), and \[\begin{align} \label{eq:normalized95C95pi} \overline{{\mathrm{C}}}_\pi := \int_{[0,T]}\frac{\pi(\mathrm{d}t)}{\alpha_t^2 \beta + \sigma_t^2} - \frac{1}{\alpha_\pi^2 \beta + \sigma_\pi^2} \geq 0 \;. \end{align}\qquad{(3)}\]

Proof. Assume that \(\psi_p > \psi_d\). Then, by 2 (using the same notations), we have \[\begin{align} \frac{1}{d} \inf_A {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{A,W}, \varpi) &= \frac{1}{\sigma_\pi^2} - \int \frac{\mathrm{d}\mu_{\beta^{-1}\widehat{\mathbf{\Sigma}}} (\lambda)}{\alpha_\varpi^2 \beta \lambda + \sigma_\varpi^2} \;. \end{align}\] By the Marchenko-Pastur’s theorem, we have \[\begin{align} \lim_{n \to \infty} \left( \frac{1}{d} \inf_A {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{A,W}, \varpi) \right) &= \frac{1}{\sigma_\pi^2} - \int \frac{\mathrm{d}\mu_{\mathrm{MP}}^{(\psi_d)} (\lambda)}{\alpha_\varpi^2 \beta \lambda + \sigma_\varpi^2} \;. \end{align}\] Similarly, the score matching loss can be expressed as \[\begin{align} \frac{1}{d}{\mathscr{L}_{\mathrm{ESM}}}(s_{\widehat{A}, W}, \pi) = \frac{\alpha_\pi^2 \beta + \sigma_\pi^2}{d} \left\Vert \widehat{\mathbf{\Sigma}}_\varpi^{-1} - \frac{{\mathrm{I}}_d}{\alpha_\pi^2 \beta + \sigma_\pi^2} \right\Vert_{\mathrm{F}}^2 + \frac{{\mathrm{C}}_\pi}{d} \;, \end{align}\] where \({\mathrm{C}}_\pi\) is defined in the proof of 3. Under 1, we observe that \({\mathrm{C}}_\pi / d\) is independent of \(d\), and therefore we can define \[\begin{align} \overline{{\mathrm{C}}}_\pi := \frac{{\mathrm{C}}_\pi}{d} = \int_{[0,T]}\frac{\pi(\mathrm{d}t)}{\alpha_t^2 \beta + \sigma_t^2} - \frac{1}{\alpha_\pi^2 \beta + \sigma_\pi^2} \geq 0 \;, \end{align}\] where the inequality follows from Jensen’s inequality. By applying the Marchenko-Pastur theorem, we obtain \[\begin{align} \lim_{n\to \infty} \left( \frac{1}{d}{\mathscr{L}_{\mathrm{ESM}}}(s_{\widehat{A}, W}, \pi) \right) = (\alpha_\pi^2 \beta + \sigma_\pi^2) \int \left( \frac{1}{\alpha_\varpi^2 \beta \lambda + \sigma_\varpi^2} - \frac{1}{\alpha_\pi^2 \beta + \sigma_\pi^2} \right)^2 \mathrm{d}\mu_{\mathrm{MP}}^{(\psi_d)} (\lambda) + \overline{{\mathrm{C}}}_\pi \;. \end{align}\] This concludes the proof. ◻

Remark 9. Based on 7, we can easily extend these derivations to the case \(\psi_p < \psi_d\).

We present below the proof of 2.

Proof. (of 2) Assume that \(\psi_p > \psi_d > 1\), then the Marchenko-Pastur has a mass at zero in all the cases below. By 7, we immediately have \[\begin{align} \lim_{n \to \infty} \left( \frac{1}{d} \inf_A {\widehat{\mathscr{L}}_{\mathrm{DSM}}}(s_{A,W}, \varpi) \right) &= \frac{1}{\sigma_\pi^2} - \frac{1}{\sigma_\varpi^2} \left( 1 - \frac{1}{\psi_d} \right) - \int \frac{f_{\mathrm{MP}}^{(\psi_d)} (\lambda)}{\alpha_\varpi^2 \beta \lambda + \sigma_\varpi^2} \mathrm{d}\lambda \\ &= \frac{1}{\sigma_\pi^2} - \frac{1}{\sigma_\varpi^2} + \frac{1}{\psi_d \sigma_\varpi^2} + \mathcal{O}_{} \left( \frac{1}{\psi_d^2} \right) \;. \end{align}\] Note that, by the Cauchy-Schwarz inequality, we always have \(\sigma_\pi^{-2} \geq \sigma_\varpi^{-2}\). Similarly, the asymptotic score matching loss satisfies \[\begin{align} \lim_{n\to \infty} \left( \frac{1}{d}{\mathscr{L}_{\mathrm{ESM}}}(s_{\widehat{A}, W}, \pi) \right) = \left( 1 - \frac{1}{\psi_d} \right) \frac{(\alpha_\pi^2 \beta + \sigma_\pi^2 - \sigma_\varpi^2)^2}{\sigma_\varpi^4 (\alpha_\pi^2 \beta + \sigma_\pi^2)} + \overline{{\mathrm{C}}}_\pi + \mathcal{O}_{} \left( \frac{1}{\psi_d} \right) \;. \end{align}\] The proof follows by defining \[\begin{align} \label{eq:Lrm95pi95constant} \mathrm{L}_\pi := \frac{(\alpha_\pi^2 \beta + \sigma_\pi^2 - \sigma_\varpi^2)^2}{\sigma_\varpi^4 (\alpha_\pi^2 \beta + \sigma_\pi^2)} + \overline{{\mathrm{C}}}_\pi \end{align}\tag{13}\] This concludes the proof. ◻

8.4 Proof of 5.2↩︎

We present below the proof of 3.

Proof. (of 3) Step 1. We start by solving the gradient flow dynamics of 7 .

We can expand the gradient flow dynamics as \[\begin{align} \frac{\mathrm{d}}{\mathrm{d}\tau}A(\tau) = -2 p^{-1} \sigma_t^2 A(\tau) W \widehat{\mathbf{\Sigma}}_t W^T - 2 p^{-1} \sigma_t^2 W^T \;. \end{align}\] We can assume, without loss of generality, that \(p > d\). Then, by reasoning as in the proof of 1, we observe that the matrix \(W^T W \in \mathbb{R}^{d \times d}\) is almost-surely invertible. Therefore, we can define \(\tilde{A} := (W^T W)^{-1} A W\) and we have almost-surely that \[\begin{align} \frac{\mathrm{d}}{\mathrm{d}\tau} \tilde{A}(\tau) = -2 p^{-1} \sigma_t^2 \tilde{A}(\tau) \widehat{\mathbf{\Sigma}}_t W^T W - 2 p^{-1} \sigma_t^2 {\mathrm{I}}_d \;. \end{align}\] Taking into account that the initialization satisfies \(A(0) = 0\), we deduce that \[\begin{align} \tilde{A}(\tau) = - (\widehat{\mathbf{\Sigma}}_t W^T W)^{-1} \left( {\mathrm{I}}_d - e^{-2\tau p^{-1} \sigma_t^2 \widehat{\mathbf{\Sigma}}_t W^T W} \right) \;. \end{align}\] Therefore, we have \[\begin{align} A(\tau) W = - \widehat{\mathbf{\Sigma}}_t^{-1} \left( {\mathrm{I}}_d - e^{-2\tau p^{-1} \sigma_t^2 \widehat{\mathbf{\Sigma}}_t W^T W} \right) \in \mathbb{R}^{d \times d} \;. \end{align}\] By the strong law of large numbers, we have, almost-surely (for fixed \(n\), \(d\), and \(\tau\)), that \(p^{-1} W^T W \to {\mathrm{I}}_d\) as \(p\to\infty\). Thus, almost-surely, we have \[\begin{align} \label{eq:gradient-flow-infinite-width-limit} \lim_{p\to \infty} (A(\tau)W) = - \widehat{\mathbf{\Sigma}}_t^{-1} \left( {\mathrm{I}}_d - e^{-2\tau \sigma_t^2 \widehat{\mathbf{\Sigma}}_t } \right) \in \mathbb{R}^{d \times d} \;. \end{align}\tag{14}\]

Step 2. By computations similar to the proof of 2 and 1, we have (for fixed \((p,d,n)\)) \[\begin{align} \mathcal{E}_t(\tau, n, d, p) := {\mathscr{L}_{\mathrm{ESM}}}(s_{W, A(\tau)}, t) = \left\Vert \left( \widehat{\mathbf{\Sigma}}_t^{-1} \left( {\mathrm{I}}_d - e^{-2\tau p^{-1} \sigma_t^2 \widehat{\mathbf{\Sigma}}_t W^T W} \right) - \mathbf{\Sigma}_t^{-1} \right) \mathbf{\Sigma}_t^{1 / 2} \right\Vert_{\mathrm{F}}^2 \;. \end{align}\] Therefore, by the law of large numbers, we have almost surely that \[\begin{align} \lim_{p\to \infty} \mathcal{E}(\tau,n,d, p) &= \left\Vert \left( \widehat{\mathbf{\Sigma}}_t^{-1} \left( {\mathrm{I}}_d - e^{-2\tau \sigma_t^2 \widehat{\mathbf{\Sigma}}_t } \right) - \mathbf{\Sigma}_t^{-1} \right) \mathbf{\Sigma}_t^{1 / 2} \right\Vert_{\mathrm{F}}^2 \\ &= (\alpha_t^2 \beta + \sigma_t^2) \left\Vert \widehat{\mathbf{\Sigma}}_t^{-1} \left( {\mathrm{I}}_d - e^{-2\tau \sigma_t^2 \widehat{\mathbf{\Sigma}}_t } \right) - \mathbf{\Sigma}_t^{-1} \right\Vert_{\mathrm{F}}^2 =: \overline{\mathcal{E}}_t(\tau, n, d) \;. \end{align}\] Recall that we take \(n,d \to \infty\) with \(\psi_d := \lim(d / n) > 1\). Therefore, we can apply the Marchenko-Pastur theorem and obtain, through similar computations as in the proof of 1, that \[\begin{align} \lim_{n\to\infty}\frac{1}{d}\overline{\mathcal{E}}_t(\tau, n, d) &= (\alpha_t^2 \beta + \sigma_t^2) \int \left( \frac{1 - e^{-2\tau \sigma_t^2 (\alpha_t^2 \beta \lambda + \sigma_t^2)}}{\alpha_t^2 \beta \lambda + \sigma_t^2} - \frac{1}{\alpha_t^2 \beta + \sigma_t^2} \right)^2 \mathrm{d}\mu_{\mathrm{MP}}^{(\psi_d)}(\lambda)\\ &= \left( 1 - \frac{1}{\psi_d} \right) \frac{\left((\alpha_t^2 \beta + \sigma_t^2) \left( 1 - e^{-2\tau \sigma_t^4 } \right) - \sigma_t^2 \right)^2}{\sigma_t^4 (\alpha_t^2 \beta + \sigma_t^2)} + \mathcal{O}_{} \left( \frac{1}{\psi_d} \right) \;. \end{align}\] This concludes the proof. ◻

9 Experimental details↩︎

In this section, we provide some additional details on the experiments presented in the main text.

9.1 Random features experiments↩︎

In this short subsection, we quickly describe the empirical setup for the diffusion random feature experiment presented in 1.

9.1.0.1 Regression experiments.

In the regression experiment presented in 1, we use a classical random feature regression setting. We consider a data distribution of the form \[\require{upgreek} \begin{align} y_i = \langle \upbeta_\star, x_i \rangle + \sigma \epsilon_i \;, \quad x_i \sim \mathrm{N}(0, {\mathrm{I}}_d)\;, \quad \epsilon \sim \mathrm{N}(0, 1) \;, \end{align}\] where \(\epsilon_i\) and \(x_i\) are independent and we sample \(n\) i.i.d. pairs \((x_i,y_i)\) for \(i \in \left\{ 1,\dots,n \right\}\). We consider a model of the form \[\begin{align} f_{A,W}(x) = \frac{A}{\sqrt{p}} \varrho \left( \frac{W}{\sqrt{d}} x \right) \;, \end{align}\] where \(A \in \mathbb{R}^{d \times p}\), \(W \in \mathbb{R}^{p \times d}\) is a random matrix with i.i.d. standard Gaussian entries, and \(\varrho (x) := \max(x,0)\) is the ReLU activation.

We consider the minimization of the empirical risk \[\begin{align} \widehat{A}\in \mathop{\mathrm{arg\,min}}_A \left\{ \frac{1}{n} \sum_{i=1}^n (y_i - f_{A,W}(x_i))^2 + \frac{\lambda}{\sqrt{p}} \left\Vert A \right\Vert_{\mathrm{F}}^2 \right\} \;, \end{align}\] with \(\lambda\) a ridge regularization parameter.

Then, we evaluate the test (using a validation set) and train risk evaluated at the empirical risk minimizer \(\widehat{A}\) and report it in 1.

Hyperparameters details. In 1, we use \(n=10^2\), \(d=20\), \(N_g = 10\), \(\lambda = 10^{-4}\), and \(p \in [5, 4 \cdot 10^2]\).

9.1.0.2 Diffusion experiments.

We consider the following family of random features score networks, which is similar to existing works [19], [38], for \(x \in {\mathbb{R}^d}\) \[\begin{align} f_{A,W}(x) = \frac{A}{\sqrt{p}} \varrho \left( \frac{W}{\sqrt{d}} x \right) \;, \end{align}\] where \(A \in \mathbb{R}^{d \times p}\), \(W \in \mathbb{R}^{p \times d}\) is a random matrix with i.i.d. standard Gaussian entries, and \(\varrho (x) := \max(x,0)\) is the ReLU activation. For the data distribution, we take the data distribution to by \(\nu = \mathrm{N}(0, d^{-1}{\mathrm{I}}_d)\).

Given a fixed \(t > 0\), a random \(W\) and a dataset \(S^{(n)} := (Z_1,\dots,Z_n) \sim \nu^{\otimes n}\), we consider the minimization of the regularized empirical risk, defined by \[\begin{align} A \mapsto \frac{1}{n} \sum_{i=1}^n \mathbb{E}_{\Xi} \left[ \left\Vert \sigma_t f_{A,W} (\alpha_t Z_i + \sigma_t \Xi) + \Xi \right\Vert^2 \right] + \frac{\lambda}{\sqrt{p}} \left\Vert A \right\Vert_{\mathrm{F}}^2 \;, \end{align}\] with \(\Xi \sim \mathrm{N}(0,{\mathrm{I}}_d)\) and \(\lambda\) a ridge regularization parameter. An important difference with the regression case above is that, in order to make the empirical risk minimization tractable, we use a Monte Carlo approximation of the expectation over \(\Xi \sim \mathrm{N}(0,{\mathrm{I}}_d)\). Given an integer \(N_g \in \mathbb{N}^\star\) and \((\xi_{ij})_{1 \leq i \leq n,~1 \leq j \leq N_g} \sim \mathrm{N}(0,{\mathrm{I}}_d)^{\otimes (n N_g)}\), we therefore compute \[\begin{align} \widehat{A}\in \mathop{\mathrm{arg\,min}}_A \left\{ \frac{1}{n} \sum_{i=1}^n \sum_{j=1}^{N_g} {\left\Vert \sigma_t f_{A,W} (\alpha_t Z_i + \sigma_t \xi_{ij}) + \xi_{ij} \right\Vert^2} + \frac{\lambda}{\sqrt{p}} \left\Vert A \right\Vert_{\mathrm{F}}^2 \right\} \end{align}\] by noting that it can be written as the solution of a linear regression problem. This procedure is similar to [39].

After estimating \(A\), we compute the empirical and population denoising score matching loss, where the latter is estimated using a validation set. The hyperparameters details are provided below.

Hyperparameters details. In 1, we use \(\kappa = 1\), \(n=2 \cdot 10^4\), \(t = 10^{-1}\), \(d=3\), \(N_g = 10\), \(\lambda = 10^{-4}\), and \(p \in [2, 10^4]\).

9.2 High-dimensional experiments↩︎

Our experiments are performed using an implementation of the DDPM model from [2]. We use the configuration titledvp.ddpm.cifar10_continuous which implements the DDPM model of [1] but for the continuous-time variance preserving setting. The architecture is a U-Net [32] with the encoder and decoder each consisting of four resolution levels \((32\times32, 16\times16, 8\times8, 4\times4)\), with two residual blocks per level and utilizes self-attention at a resolution of \(16\times16\). The model is conditioned on time, with the timestep encoded via a sinusoidal embedding and injected into each residual block.

For figures 2 and [fig:train95unet] we modify the number of features (NF) parameter (denoted nf in the configuration file and taking a default value of \(128\)). This parameter defines the base channel width used throughout the model which is multiplied by \(m = 1, 2, 2, 2\) to produce the actual channel widths for each of the four resolution levels. The number of parameters in the model scales quadratically with channel width. We consider NF\(\in \{2, 4, 8, 16, 32, 64, 128\}\) to see how the number of parameters affects overparameterization. Some technical modifications to the code were required to support smaller values of NF.

For all high-dimensional experiments we use CIFAR-10 but restrict to the first \(1,000\) examples to make overfitting easier to achieve. Evaluation is performed on the full \(10,000\) held-out examples. We train the model with the default setup in the codebase (ADAM with \(10\%\) dropout and EMA decay \(0.9999\)) and we train for \(1,000,000\) iterations, which is larger than typical to better guarantee overfitting. In the experiments of Figure 2 we choose the checkpoint with smallest train loss. The samples generated on the right-hand side of Figure 2 uses the DDIM implementation in the codebase to generate samples with a fixed seed across NF values. We perform log-likelihood calculations using the bpd implementation in the codebase.

For the experiment in Figure [fig:no95time95exp], we consider the DDPM network but we restrict the access of the neural network to the time input. However, we do still scale the network properly according to the time input. We then train the model as usual but restrict the time variable to the range \([t, t + r]\) for \(t=0.1\) and \(r \in [0.0001, 0.00032, 0.001, 0.0032, 0.01, 0.032, 0.1, 0.5]\). We then evaluate the train and test error at \(t\) to obtain the plot.

9.3 Compute resources↩︎

Our experiments were run on an Amazon EC2 G6e (g6e.xlarge) instance which has a single NVIDIA L40S Tensor Core GPU.

9.4 Licenses↩︎

Codebases:

  • Score-Based Generative Modeling through Stochastic Differential Equations [2]: Apache License 2.0.

Datasets:

  • CIFAR-10 [59]: MIT license.

References↩︎

[1]
J. Ho, A. Jain, and P. Abbeel, “Denoising diffusion probabilistic models,” in Advances in neural information processing systems, 2020, vol. 33, pp. 6840–6851.
[2]
Y. Song, J. Sohl-Dickstein, D. P. Kingma, A. Kumar, S. Ermon, and B. Poole, “Score-based generative modeling through stochastic differential equations,” in International conference on learning representations, 2021.
[3]
J. Sohl-Dickstein, E. Weiss, N. Maheswaranathan, and S. Ganguli, “Deep unsupervised learning using nonequilibrium thermodynamics,” in Proceedings of the 32nd international conference on machine learning, 2015, pp. 2256–2265.
[4]
Y. Song and S. Ermon, “Generative modeling by estimating gradients of the data distribution,” in Advances in neural information processing systems, 2019, vol. 32.
[5]
P. Vincent, “A Connection Between Score Matching and Denoising Autoencoders,” Neural Computation, vol. 23, no. 7, pp. 1661–1674, Jul. 2011, doi: 10.1162/NECO_a_00142.
[6]
A. Hyvärinen, “Estimation of non-normalized statistical models by score matching,” Journal of Machine Learning Research, vol. 6, no. 24, pp. 695–709, 2005.
[7]
P. Dhariwal and A. Nichol, “Diffusion models beat GANs on image synthesis,” in Advances in neural information processing systems, 2021, vol. 34, pp. 8780–8794.
[8]
P. Esser et al., “Scaling rectified flow transformers for high-resolution image synthesis,” in Forty-first international conference on machine learning, 2024.
[9]
R. Rombach, A. Blattmann, D. Lorenz, P. Esser, and B. Ommer, “High-resolution image synthesis with latent diffusion models,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition (CVPR), 2022, pp. 10684–10695.
[10]
C. Saharia et al., “Photorealistic text-to-image diffusion models with deep language understanding,” in Advances in neural information processing systems, 2022, vol. 35.
[11]
J. L. Watson et al., “De novo design of protein structure and function with RFdiffusion,” Nature, vol. 620, no. 7976, pp. 1089–1100, Aug. 2023.
[12]
K. Zhang, H. Yin, F. Liang, and J. Liu, “Minimax optimality of score-based diffusion models: Beyond the density lower bound assumptions,” in Proceedings of the 41st international conference on machine learning, 2024, vol. 235, pp. 60134–60178.
[13]
L. Yang et al., “Diffusion models: A comprehensive survey of methods and applications,” ACM Comput. Surv., vol. 56, no. 4, 2023.
[14]
K. Oko, S. Akiyama, and T. Suzuki, “Diffusion models are minimax optimal distribution estimators,” in Proceedings of the 40th international conference on machine learning, 2023, vol. 202, pp. 26517–26582.
[15]
I. Azangulov, G. Deligiannidis, and J. Rousseau, “Convergence of diffusion models under the manifold hypothesis in high-dimensions.” 2024, [Online]. Available: https://arxiv.org/abs/2409.18804.
[16]
J. Benton, V. D. Bortoli, A. Doucet, and G. Deligiannidis, “Nearly d-linear convergence bounds for diffusion models via stochastic localization,” in The twelfth international conference on learning representations, 2024.
[17]
G. Conforti, A. Durmus, and M. G. Silveri, “KL convergence guarantees for score diffusion models under minimal data assumptions,” SIAM Journal on Mathematics of Data Science, vol. 7, no. 1, pp. 86–109, 2025.
[18]
P. Li, Z. Li, H. Zhang, and J. Bian, “On the generalization properties of diffusion models,” in Advances in neural information processing systems, 2023, vol. 36.
[19]
T. Bonnaire, R. Urfin, G. Biroli, and M. Mezard, “Why Diffusion Models Don’t Memorize: The Role of Implicit Dynamical Regularization in Training,” in The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.
[20]
T. Farghly, P. Rebeschini, G. Deligiannidis, and A. Doucet, “Implicit regularisation in diffusion models: An algorithm-dependent generalisation analysis,” in The fourteenth international conference on learning representations, 2026.
[21]
N. Carlini et al., “Extracting training data from diffusion models.” 2023, [Online]. Available: https://arxiv.org/abs/2301.13188.
[22]
C. Zhang, S. Bengio, M. Hardt, B. Recht, and O. Vinyals, Understanding deep learning requires rethinking generalization,” in International conference on learning representations (ICLR), 2017.
[23]
S. Shalev-Shwartz and S. Ben-David, Understanding machine learning: From theory to algorithms. Cambridge University Press, 2014.
[24]
P. L. Bartlett, P. M. Long, G. Lugosi, and A. Tsigler, “Benign Overfitting in Linear Regression,” Proceedings of the National Academy of Sciences, vol. 117, no. 48, pp. 30063–30070, Dec. 2020.
[25]
M. Belkin, D. Hsu, S. Ma, and S. Mandal, “Reconciling modern machine learning practice and the bias-variance trade-off,” Proceedings of the National Academy of Sciences, vol. 116, no. 32, pp. 15849–15854, Aug. 2019.
[26]
P. Nakkiran, G. Kaplun, Y. Bansal, T. Yang, B. Barak, and I. Sutskever, “Deep Double Descent: Where Bigger Models and More Data Hurt,” ICLR 2020, Dec. 2019.
[27]
S. Mei and A. Montanari, “The Generalization Error of Random Features Regression: Precise Asymptotics and the Double Descent Curve,” Communications on Pure and Applied Mathematics, vol. 75, no. 4, pp. 667–766, Apr. 2022.
[28]
D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization,” in ICLR (poster), 2015.
[29]
B. Dupuis, D. Shariatian, M. Haddouche, A. Durmus, and U. Simsekli, “Algorithm- and data-dependent generalization bounds for score-based generative models,” in 39th conference on neural information processing systems (NeurIPS 2025), 2025.
[30]
C. Merger and S. Goldt, “Generalization dynamics of linear diffusion models,” in EurIPS 2025 workshop on principles of generative modeling (PriGM), 2025.
[31]
J. Pidstrigach, “Score-based generative models detect manifolds,” in Advances in neural information processing systems, 2022, vol. 35, pp. 35852–35865.
[32]
O. Ronneberger, P. Fischer, and T. Brox, “U-net: Convolutional networks for biomedical image segmentation,” in International conference on medical image computing and computer-assisted intervention, 2015, pp. 234–241.
[33]
U. G. Haussmann and E. Pardoux, “Time reversal of diffusions,” The Annals of Probability, vol. 14, no. 4, pp. 1188–1205, 1986.
[34]
B. D. O. Anderson, “Reverse-time diffusion equation models,” Stochastic Processes and their Applications, vol. 12, no. 3, pp. 313–326, 1982.
[35]
T. Farghly, P. Potaptchik, S. Howard, G. Deligiannidis, and J. Pidstrigach, “Diffusion models and the manifold hypothesis: Log-domain smoothing is geometry adaptive,” in The thirty-ninth annual conference on neural information processing systems, 2026.
[36]
V. D. Bortoli, “Convergence of denoising diffusion models under the manifold hypothesis,” Transactions on Machine Learning Research, 2022.
[37]
A. Rahimi and B. Recht, “Random features for large-scale kernel machines,” in Advances in neural information processing systems, 2007, vol. 20.
[38]
A. J. George and N. Macris, “Asymptotic Learning Curves for Diffusion Models with Random Features Score and Manifold Data.” arXiv, Mar. 2026, doi: 10.48550/arXiv.2603.22962.
[39]
A. J. George, R. Veiga, and N. Macris, “Denoising Score Matching with Random Features: Insights on Diffusion Models from Precise Learning Curves,” arXiv preprint at arXiv:2502.00336, 2025.
[40]
T. Hastie, A. Montanari, S. Rosset, and R. J. Tibshirani, “Surprises in high-dimensional ridgeless least squares interpolation,” The Annals of Statistics, vol. 50, no. 2, pp. 949–986, 2022.
[41]
X. Li et al., “Understanding representation dynamics of diffusion models via low-dimensional modeling,” in Advances in neural information processing systems, 2025, vol. 38, pp. 107365–107404.
[42]
G. Biroli, T. Bonnaire, V. de Bortoli, and M. Mézard, “Dynamical regimes of diffusion models,” Nature Communications, vol. 15, 2024.
[43]
Z. Kadkhodaie, F. Guth, E. P. Simoncelli, and S. Mallat, “Generalization in diffusion models arises from geometry-adaptive harmonic representations,” in The twelfth international conference on learning representations, 2024.
[44]
S. Chakraborty, Q. Berthet, and P. L. Bartlett, “Generalization properties of score-matching diffusion models for intrinsically low-dimensional data.” 2026, [Online]. Available: https://arxiv.org/abs/2603.03700.
[45]
Y. He, Y. Qiu, and M. Tao, “Diffusion model’s generalization can be characterized by inductive biases toward a data-dependent ridge manifold,” arXiv [stat.ML], Feb. 2026.
[46]
S. Buchanan, D. Pai, Y. Ma, and V. D. Bortoli, “On the edge of memorization in diffusion models.” 2025, [Online]. Available: https://arxiv.org/abs/2508.17689.
[47]
Z. Ye, Q. Zhu, M. Tao, and M. Chen, “Provable separations between memorization and generalization in diffusion models,” in The fourteenth international conference on learning representations, 2026.
[48]
F. Koehler, A. Heckett, and A. Risteski, “Statistical efficiency of score matching: The view from isoperimetry,” in The eleventh international conference on learning representations, 2023.
[49]
I. Procaccia, P. Grassberger, and H. G. E. Hentschel, Proceedings of the conference held in Sitges/Barcelona, 1982“On the characterization of chaotic motions,” in Dynamical systems and chaos, 1983, vol. 179, pp. 212–222.
[50]
Y. B. Pesin, Dimension theory in Dynamical systems - contemporary views and applications. The University of Chicago Press, 1997.
[51]
Ya. B. Pesin, “On rigorous mathematical definitions of correlation dimension and generalized spectrum for dimensions,” Journal of Statistical Physics, vol. 71, no. 3, pp. 529–547, May 1993, doi: 10.1007/BF01058436.
[52]
P. Mattila, M. Moran, and J. Rey, “Dimension of a measure,” Studia mathematica 142 (3), 2000.
[53]
K. Falconer, Fractal Geometry - Mathematical Foundations and Applications. Wiley, 2014.
[54]
R. Couillet and Z. Liao, Random Matrix Methods for Machine Learning, 1st ed. Cambridge University Press, 2022.
[55]
V. A. Marchenko and L. A. Pastur, “Distribution of eigenvalues for some sets of random matrices,” Mathematics of the USSR-Sbornik, vol. 1, pp. 457–483, 1967.
[56]
D. Bakry, I. Gentil, and M. Ledoux, Analysis and Geometry of Markov Diffusion Operators. Springer, 2014.
[57]
D. Chafai, “Entropies, convexity, and functional inequalities,” Kyoto Journal of Mathematics, vol. 44, no. 2, Jan. 2004, Accessed: Oct. 31, 2023. [Online].
[58]
F. Otto and C. Villani, “Comment on: Hypercontractivity of HamiltonJacobi equations,’ by SBobkov, IGentil and MLedoux,” Journal de Mathématiques Pures et Appliquées, vol. 80, no. 7, pp. 697–700, 2001.
[59]
A. Krizhevsky, “Learning multiple layers of features from tiny images,” Master’s thesis, University of Tront, 2009.

  1. We refer to Theorem 2.4 of [54] for a discussion on the different conditions required by the Marchenko-Pastur theorem.↩︎