A theory of learning data statistics in diffusion models, from easy to hard Lorenzo Bardone, Claudia Merger, Sebastian Goldt Abstract While diffusion models have emerged as a powerful class of generative models, their learning dynamics remain poorly understood. We address this issue first by empirically showing that standard diffusion models trained on natural images exhibit a distributional simplicity bias, learning simple, pair-wise input statistics before specializing to higher-order correlations. We reproduce this behaviour in simple denoisers trained on a minimal data model, the mixed cumulant model, where we precisely control both pair-wise and higher-order correlations of the inputs. We identify a scalar invariant of the model that governs the sample complexity of learning pair-wise and higher-order correlations that we call the diffusion information exponent , in analogy to related invariants in different learning paradigms. Using this invariant, we prove that the denoiser learns simple, pair-wise statistics of the inputs at linear sample complexity, while more complex higher-order statistics, such as the fourth cumulant, require at least cubic sample complexity. We also prove that the sample complexity of learning the fourth cumulant is linear if pair-wise and higher-order statistics share a correlated latent structure. Our work describes a key mechanism for how diffusion models can learn distributions of increasing complexity. 1 Introduction Introduced only ten years ago, diffusion models [ 47 , 23 , 48 ] quickly reached state-of-the-art performance in generative modeling. Yet our theoretical understanding of why these models learn so efficiently remains limited compared to our understanding of neural networks in “standard” supervised learning. For example, one robust finding in both classical and recent studies of supervised learning has been that neural networks exhibit a simplicity bias – they first learn simpler features of their target before moving to more complex features. This effect can be seen both in time during training, or as a function of the training set size. Simplicity biases were shown first in the context of learning a target function over Gaussian inputs [ 41 , 44 , 45 , 1 , 17 , 8 ] , in autoencoders [ 26 ] , and experimentally for image classification [ 25 ] ; a similar effect can also be seen in the kernel regime [ 19 , 35 ] . More recently, a distributional simplicity bias , whereby neural networks first rely on pair-wise input statistics before exploiting higher-order input correlations was shown both theoretically and experimentally in image classification [ 24 , 34 , 37 , 5 ] and next-token prediction [ 38 , 6 , 20 , 21 ] . Whether similar principles govern the distributional learning dynamics of diffusion models remains an open question. Here, we show through a combination of careful experiments and a rigorous analysis of SGD dynamics in simplified models that denoising diffusion models exhibit a distributional simplicity bias. Our main experimental contribution is a demonstration of distributional simplicity bias in standard U-net based denoisers trained in a denoising diffusion paradigm on an image modeling task, see Fig. 1 and Section 2 . Specifically, we find for the first \approx 10^{3} steps of training, a U-Net trained to denoise CIFAR10 images achieves the same test loss on the CIFAR10 test set as it does on samples from a Gaussian distribution that have the same mean and covariance as the CIFAR10 images. In other words, the denoiser only relies on pair-wise correlations between pixels to denoise images up to that point in training. Only after about 10^{3} steps of SGD, the network starts to exploit the higher-order correlations between pixels, which is evidenced by the lower loss of the denoiser on real images, where such correlations are present, than on the Gaussian surrogate model. We discuss this experiment in more detail in Section 2 . Figure 1: Sequential learning in diffusion models. a) Test loss of diffusion model and loss on CIFAR-10 clones during training. Vertical dotted lines mark training stages of images generated from the model shown in panels d)-g). All curves are averages over 3 initializations of the network models and 5\cdot 10^{3} test data. Shaded areas report standard deviation over random initialization. Panel b) reports the same as a), but for denoising samples with fixed level of noise x=e^{-t}x_{0}+\sqrt{1-e^{-2t}}z where x_{0} is a data point and noise z\sim{\mathcal{N}\left(0,\text{Id}\right)} . c) Test loss of a neural network trained on the mixed cumulant model with dimension d=10^{2} a fixed level of noise, evaluated on clones of the data set. All curves in panel c) are averages over 5 initializations of the network model and 10^{4} test data. d)-g) Samples generated from U-nets [ 40 ] on CIFAR-10 at various training stages. How can we describe this distributional simplicity bias theoretically? While several works have examined the dynamics of score denoising in simplified models [ 28 , 11 , 22 , 33 , 51 ] , they either consider random feature denoisers or model data as drawn from a Gaussian distribution, and hence cannot account for genuine feature learning of higher-order input correlations. Feature learning in non-linear autoencoders, arguably the simplest class of denoiser neural networks, on a reconstruction task was analysed by [ 36 , 14 ] . More recently, [ 12 , 13 ] extended this approach to analyse the learning dynamics of auto-encoders trained in a diffusion paradigm at linear sample complexity. Here, we instead characterise the learning dynamics in a solvable model of the learning dynamics of score diffusion by identifying a key invariant that governs the sample complexity at which a denoising diffusion model recovers information carried by pair-wise and higher-order correlations, going beyond linear sample complexity. For our main theoretical results , … 1. …we prove nearly sharp thresholds for the number of samples required by a simple denoiser to learn from higher-order correlations ( Section 4.1 ); 2. …we rigorously establish the distributional simplicity bias of denoising diffusion models by proving a separation of timescales between learning pair-wise and higher-order correlations ( Section 4.2 ); 3. …we demonstrate that constraining SGD to the unit sphere, often considered a minor technical detail, is crucial for efficient learning in this model: unconstrained SGD can remain confined near the trivial solution, while spherical SGD exhibits successful learning dynamics, whose timescales we explicitly characterize ( Section 4.3 ). 4. …we analyse this effect in more detail in the special case where we choose the optimal denoiser ( Section 4.4 ). Our results thus describe a key mechanism for how denoising diffusion models learn distributions of increasing complexity. On the technical level, we identify a scalar invariant of the loss that describes the initial stages of the learning dynamics, which we call the diffusion information exponent k^{*} by analogy to similar invariants found for the single/multi-index problems like the information exponent [ 7 ] , which allows us to establish nearly sharp thresholds on the sample complexity of learning specific statistical features of the data. 2 A distributional simplicity bias in denoising diffusion models Diffusion models are trained by adding increasing amounts of Gaussian i.i.d. noise to real data until the original data is no longer discernible from pure noise. A neural network is trained to reverse this process by predicting and removing the noise step by step. To learn to denoise data in this way, the model must make use of the statistics of the data it is trained on, i.e. it must infer the characteristic properties of the distribution of the data. After training, one starts from random noise and iteratively removes the noise predicted by the model to obtain new, realistic samples. To measure which statistics of the data the model is exploiting, we evaluate the model on several clone datasets, which share statistical properties of the real dataset during training [ 37 ] . Here, our original dataset are grayscale CIFAR-10 images [ 27 ] , on which we train a U-net architecture [ 40 ] using denoising score matching [ 48 , 23 ] . Each clone is a data set of inputs sampled from a Gaussian, whose mean (“mean”) or mean and covariance (“mean + cov”) have been fitted to the images in CIFAR-10. We detail their generation and show examples of the clone data sets in Section A.1 . The test loss measures the models’ ability to predict the noise added to the images, both real images and those of the clones. If the model has equal performance on the real data and a clone dataset, this means that, despite the real data having a far richer statistic than the clone, the model has not learnt to use those statistics to predict the noise yet. In this case, we choose the clones to reproduce statistics that can be inferred from the data directly (the mean and the covariance). Figure 1 a) shows that as training progresses, the diffusion model specializes more and more: at first, the performance on all test sets (real data and clones) is equal. At later training stages, the models’ performance on the more specialized clones improves, whereas its performance on less specialized clones stagnates, meaning that the model has learnt to exploit the statistics of the data that go beyond the one of the clones it outperforms. We show the samples obtained from these models at various training stages in Fig. 1 a)-f). We repeat the same experiment with the CelebA data set and find the same sequential learning behaviour, see Section A.2 . We report details on the training procedure in A.2.1 . This experiment substantiates the claim that lower order statistics (i.e. mean and covariance) are learnt in the initial phases of learning, whereas higher-order statistics are learnt later. In the following, we will introduce a model which allows us to explain this sequential learning property of the neural network from lower to higher order statistics. 3 Setup for our theoretical analysis We will analyse the dynamics of projected stochastic gradient descent (pSGD) for a simple, non-linear denoiser trained on inputs sampled from a non-Gaussian distribution. We now describe in detail the diffusion paradigm we analyse, the input distribution we use, and the denoiser we will train. 3.1 Denoising diffusion We model the diffusion process following a standard approach, see for instance [ 10 ] ; all the details are in Section B.2 . The diffusion process is defined on a time interval t\in[0,T] , with P_{0} the unknown distribution that we want to learn to sample from, and a distribution over latent variables P_{T}\approx\mathcal{N}(0,\mathbbm{1}_{d}) . The dynamics are described by the following SDE: \frac{{\text{d}}x}{{\text{d}}t}=-x{\text{d}}t+{\text{d}}\mathcal{W}_{t}, (1) where \mathcal{W}_{t}\in\mathbb{R}^{d} is a d dimensional Wiener process. The solution at time t can be written in distribution as: x(t)\overset{\mathscr{D}}{=}e^{-t}x(0)+\sqrt{\Delta_{t}}z (2) where x(0)\sim P_{0} , z\sim\mathcal{N}(0,\mathbbm{1}_{d}) and \Delta_{t}=1-e^{-2t} . The goal in diffusion models is learning the score of the density at intermediate times, which is given by \mathcal{F}_{i}(x,t)=\frac{\partial\log P_{t}(x)}{\partial x_{i}}=-\frac{x_{i}-\mathbb{E}\,[x_{i}(0)|x(t)=x]e^{-t}}{\Delta_{t}}, (3) where the last equality, called Tweedie’s formula , is at the core of the feasibility of diffusion models. It gives a recipe on how to approximate the score via empirical averages of the noised process. The objective then becomes learning \mathcal{F} , which allows one to realize the reverse SDE [ 3 ] and to generate new samples from pure noise. Here, we will not treat the generation process, but focus on learning the score from data. To do this, one usually uses a mean-square objective for a collection of fixed time intervals. Let us denote \mathcal{S}_{t}^{w}(x) the approximated score that depends on weight w . The loss function for diffusion time t can be rewritten, up to a constant, as \mathcal{L}(w)=\\ \frac{1}{2}\underset{\begin{subarray}{c}x_{0}\sim\mathbb{P}_{0}\\ z\sim\mathcal{N}(0,\mathbbm{1}_{d})\end{subarray}}{\mathbb{E}}\norm{S^w_t(x_0 e^{-t}+\sqrt{\Delta_t} z)+\frac{z}{\sqrt{\Delta_t}}}^{2}, (4) see Section B.2 for a derivation. The loss in Eq. 4 can be well approximated having just samples from P_{0} , which allows to estimate the integral over x_{0} . The additional Gaussian integral over z in Eq. 4 is a term that is peculiar to diffusion models. To perform the subsequent analysis, we must decompose the loss into Hermite polynomials. To this end, we use Stein’s lemma ( Section B.1 in the appendix), following the approach of [ 46 ] , to rewrite the loss and apply the Hermite decomposition. 3.2 Input distribution We draw samples x from the mixed cumulant model (MCM) of [ 5 ] . The idea of the mixed cumulant model is to generate inputs that appear isotropically Gaussian in all directions except along the two vectors, or “spikes”, u,v\in\mathbb{R}^{d} . This means that taking linear projections of inputs sampled from the mixed cumulant model along a fixed, random direction w\in\mathbb{R}^{d} , \lambda^{\mu}=w\cdot x^{\mu} , results in random variables \lambda^{\mu} that follow a standard normal distribution with high probability. However, there are two special directions that a generative model needs to learn: first, the covariance spike u , along which inputs are still normally distributed, but with higher variance, defined by the signal-to-noise ratio \beta_{u} . The second special direction is the cumulant spike v : projecting inputs along this cumulant spike yields a non-Gaussian distribution; by constraining the variance of this distribution to be equal to one, we ensure that the cumulant spike v can only be discovered using higher-order statistics of the inputs, making it harder to detect. We construct samples x^{\mu},\,\mu\in[n] of the mixed cumulant model thus: x^{\mu}=\sqrt{\beta_{u}}\lambda^{\mu}u+\sqrt{\beta_{v}}\nu^{\mu}v+z^{\mu} (5) where \beta_{u}\in\mathbb{R},\beta_{v}\in[0,1] are constant signal to noise ratios that modulate the intensity of the signal, \lambda^{\mu}\sim\mathcal{N}(0,1) and \nu^{\mu}\sim\text{Rademacher}(1/2) are latent variables, and z^{\mu}\sim\mathcal{N}(0,\mathbbm{1}-\beta_{v}vv^{\top}) is high-dimensional noise. 3.3 Denoiser and learning algorithm We consider the simplest architecture that is able to learn the score of a MCM with one non-Gaussian spike (the explicit derivation of the target score is in appendix B.3 ). The denoiser takes the form of a rank-1 non-linear autoencoder with a skip connection S^{w}_{t}(x)=-x-\sigma(w\cdot x)w. (6) Autoencoders of this type have been studied before for reconstruction [ 36 , 13 , 32 ] and for denoising diffusion [ 13 ] . To train the denoiser weight w , we update an initial weight w_{0}\sim\text{Unif}(\mathbb{S}^{d-1}) via online projected SGD (pSGD): \tilde{w}_{\tau+1}=w_{\tau}-\eta_{d}\nabla_{\text{sph}}\mathscr{L}(w_{\tau},x_{\tau}),\quad w_{\tau+1}=\frac{\tilde{w}_{\tau+1}}{\norm{\tilde w_{\tau+1}}} (7) where \mathscr{L}(w,x) is the sample-wise loss that substitutes the average over \mathbb{P}_{0} in Eq. 4 with the evaluation on a sample x\sim\mathbb{P}_{0} . \nabla_{\text{sph}} is the spherical gradient: \nabla_{\text{sph}}f(w)=(\mathbbm{1}-ww^{\top})\nabla f(w) . We analyse projected SGD rather than standard SGD mainly because it improves the network’s ability to learn the score in our controlled setting. We discuss how using non-projected SGD impacts learning in Section 4.3 . We simplify \nabla_{\text{sph}}\mathscr{L} , by expanding the square in Eq. 4 , differentiating with respect to w and then applying Stein Section B.1 to remove the integral over z . At each training time \tau , \mathscr{L} is computed on a new independent sample x_{\tau}\sim\mathbb{P}_{0} . We obtain a formula that depends only on samples of x\sim\mathbb{P}_{t} , not z : \nabla_{\text{sph}}\mathscr{L}_{t}(w,x)=(\mathbbm{1}_{d}-ww^{\top})F_{\sigma}(x\cdot w) (8) where we have defined the effective nonlinearity F_{\sigma}(x\cdot w):=\sigma^{\prime\prime}(x\cdot w)-\sigma^{\prime}(x\cdot w)\sigma(x\cdot w)-\sigma(x\cdot w)-\sigma^{\prime}(x\cdot w)x\cdot w, (9) The detailed derivation is given in appendix Section B.4 . 4 Theoretical analysis of score denoising Our goal is now to establish the sample complexities required to learn certain statistical structures of the inputs like the covariance and cumulant spikes u and v with the diffusion model. Our strategy will be to identify a scalar invariant that describes the initial stages of the learning dynamics, which we call the diffusion information exponent k^{*} by analogy to similar invariants found for single/multi-index problems like the information exponent [ 7 ] ), generative exponent [ 16 ] , or the leap index [ 17 ] . Here, we extend these ideas to the diffusion setting. The main technical difference compared to their setting is that they assumed a Gaussian distribution over inputs with identity covariance; here we analyse a non-isotropic, non-Gaussian input distribution, using the methodology of [ 5 ] . To highlight the difficulty of learning higher-order correlations using denoising diffusion, we start by considering a setting where inputs only carry non-trivial structure in their higher-order correlations, meaning that the covariance signal-to-noise ratio is \beta_{u}=0 . In this case, the only relevant order parameter to describe the learning dynamics is the overlap \alpha=w\cdot v between the weight vector of the denoiser and the cumulant spike. This overlap is small at initialization, of order \alpha=\Theta\left(\nicefrac{{1}}{{\sqrt{d}}}\right) . We will say that the autoencoder has learnt the higher-order correlations if the autoencoder has “weakly recovered” the cumulant spike v , i.e. when the overlap \alpha=w\cdot v\sim O(1) . This transition from diminishing to macroscopic overlap \alpha marks the exit of the search phase of stochastic gradient descent, and it often requires most of the runtime of online SGD [ 7 ] . 4.1 The diffusion information exponent determines the sample complexity for recovering data structure We now introduce the diffusion information exponent , which determines the sample complexity required to learn correlations of different orders. We expand both the effective non-linearity F_{\sigma} and the likelihood ratio L_{t}:=\frac{\mathrm{d}P_{t}}{\mathrm{d}\mathcal{N}(0,\mathbbm{1}_{d})} in the Hermite basis (see Section B.1 ), with coefficients (c_{i}^{F})_{i\in\mathbb{N}} and (c_{j}^{L})_{j\in\mathbb{N}} , respectively. The Hermite coefficients of F_{\sigma} encode the properties of the loss function together with the chosen nonlinearity \sigma , while the Hermite coefficients of the likelihood ratio characterize the structure of the data distribution. The hardness of the inference task in the online regime is governed by how these two sequences of coefficients interact. When the learning rate is sufficiently small, the noisy online dynamics are well approximated by the gradient flow of the population loss. Then the evolution of the overlap \alpha_{\tau} is dominated by the leading non-vanishing contribution in the Hermite expansions, yielding \alpha_{\tau+1}=\alpha_{\tau}+\eta_{d}\,c^{L}_{k^{\star}}\,c^{F}_{k^{\star}-1}\,\alpha_{\tau}^{\,k^{\star}-1}+O\!\left(\alpha_{\tau}^{\,k^{\star}}\right). We define k^{\star} , the diffusion information exponent , as the smallest integer k such that the k -th Hermite coefficient of the likelihood ratio and the (k-1) -th Hermite coefficient of F_{\sigma} are both non-zero. Intuitively, k^{\star} identifies the lowest-order statistical feature of the data that is both present in the distribution and exploitable by the combination of the mean-squared error loss and the nonlinearity \sigma . As a consequence, starting from a random initialization, it takes on the order of d^{\,k^{\star}-1} iterations—and hence samples, since we are in the online regime—to reach recovery of the spike v , as made precise in the propositions that follow. Assumption 4.1 (Essential) . \sigma and \mathbb{P} are such that \nabla_{\mathrm{sph}}\mathcal{L}(\alpha) is strictly negative for all \alpha\in(0,1) Assumption 4.2 (Technical) . Define H_{d}(x,w):=\mathscr{L}(x,w)-\mathcal{L}(w) We assume the following estimates hold for some C_{1}>0 , \varepsilon>0 : \displaystyle\sup_{w\in\mathbb{S}^{d-1}}\mathbb{E}\,\left[\left(\nabla_{\mathrm{sph}}H_{d}(x,w)\cdot v\right)^{2}\right] \displaystyle\leq C_{1} (10) \displaystyle\sup_{w\in\mathbb{S}^{d-1}}\mathbb{E}\,\left[\norm{\nabla_{\mathrm{sph}}H_d(x,w)}^{4+\varepsilon}\right] \displaystyle\leq C_{1}d^{(4+\varepsilon)/2} (11) Proposition 4.3 (Positive result) . Assume that L_{t}(x\cdot v) is the likelihood ratio of a sub-Gaussian random variable, and \sigma an activation function such that F_{\sigma} satisfies Section 4.1 and 4.2 . Denote with k^{*} the information exponent of the loss \mathcal{L} and let \hat{n}(d,k^{*}) be a sample complexity threshold defined as: \begin{cases}\hat{n}(d,1)=\omega(d)\\ \hat{n}(d,2)=\omega(d\log^{2}d)\\ \hat{n}(d,k)=\omega(d^{k-1}\log^{2}d)&k\geq 3\end{cases} then the application of \hat{n}(d,k^{*}) steps of projected gradient descent with step size \eta_{d} satisfying \frac{1}{\hat{n}}\ll\eta_{d}\ll\frac{1}{\sqrt{\hat{n}d}} (12) starting from isotropic initialization w\sim\text{Unif}(\mathbb{S}^{d-1}) leads to: \lim_{d\to\infty}|v\cdot w(\hat{n}(d,k^{*}))|=1. (13) Where the limit holds in probability and in L^{p} for all p\geq 1 . Proposition 4.4 (Negative result) . In the setting of the previous propositions, if n(d)=o(\hat{n}(d,k^{*})) and \eta_{d}=\begin{cases}O\left(\frac{1}{d}\right)&k^{*}=1,2\\ \eta_{d}=O\left(\frac{1}{\sqrt{n(d)d}}\right)&k^{*}\geq 3\end{cases} the online SGD with learning rate \eta_{d} will fail to reach weak recovery: \lim_{d\to\infty}\sup_{\tau\leq n(d)}|v\cdot w(\tau)|=0 (14) where the limit is in probability and in L^{p} for any p\geq 1 . Proof. Sections 4.1 and 4.1 are essentially corollaries of theorems 1.3 and 1.4 in [ 7 ] . We explain the details in appendix B.4 . ∎ Together, Sections 4.1 and 4.1 show how the diffusion information exponent k^{\star} governs the sample complexity of online SGD: the model can only recover the planted direction v after it has seen a number of samples roughly on the order of d^{k^{*}-1} , and not before. For our setting given by Eq. 5 with \beta_{u}=0,\beta_{v}>0 , we find k^{*}=4 , meaning that recovery of the cumulant spike takes a number of samples larger than cubic in the dimension. We note that in the setting of Section 4.1 and 4.1 , the lower bounds of [ 50 ] for algorithmic detection of the cumulant spike u apply, which suggest that the cumulant spike v can be weakly recovered by a polynomial-time algorithm with d^{k^{*}/2} samples, which is less than the sample complexity that we found for online SGD. In analogy to Gaussian single-index models, we expect that the smoothing techniques of [ 9 , 15 ] could reduce the sample complexity from n\gtrsim d^{k^{*}-1} down to n\gtrsim d^{k^{*}/2} , at the cost of fine-tuning the activation function of the denoiser to the relevant cumulant of the data distribution; see [ 39 ] for an example of effect in the context of independent component analysis. Even reducing the sample complexity to d^{k^{\star}/2} would not fully account for the rapid separation from Gaussian clones observed in Fig. 1 . This gap likely reflects the highly idealized nature of our setting, where higher-order statistics are completely isolated; in the next section, we study how interactions between low and higher-order information qualitatively change this picture. 4.2 Simplicity bias in denoising diffusion We now add back the covariance spike \beta_{u} to our data model, which is carried by the covariance. This corresponds more closely to the setting found in real tasks, where both lower and higher order statistics are present in the data. The dynamics in this case are more complex, and the sample complexity required to learn the structure in the higher-order correlations depends on whether there are correlations among latent variables, as illustrated by the next proposition. Assumption 4.5 . The link function \sigma is a thrice differentiable function, with bounded first, second and third order derivatives. Hence F(z)=\sigma^{\prime\prime}(z)-\sigma^{\prime}(z)\sigma(z)-\sigma(z)-\sigma^{\prime}(z)z is a globally Lipschitz function, hence F belongs to the space of square integrable function with respect to the density of \mathcal{N}(0,\mathbbm{1}) for all t (being all sub-Gaussian distributions). Assume moreover that \sigma is so that F satisfies the following conditions \displaystyle c_{1}^{F} \displaystyle=\underset{z\sim\mathcal{N}(0,1)}{\mathbb{E}\,}[F(z)h_{1}(z)]>0 (15) \displaystyle c_{3}^{F} \displaystyle=\underset{z\sim\mathcal{N}(0,1)}{\mathbb{E}\,}[F(z)h_{3}(z)]<0 (16) Proposition 4.6 . Under Section 4.2 , consider pSGD Eq. 7 dynamics trained on \mathscr{L} defined as Eq. 8 , with data distributed as a mixed cumulant model Eq. 5 . Then: 1. with independent latent variables \lambda^{\mu} , \nu^{\mu} and learning rate \eta_{d}\to 0 as d\to\infty , as long as n=o_{d}\left(\min\left(\frac{d}{\eta^{2}_{d}},d^{3}\right)\right) , we have that \lim_{d\to\infty}\sup_{\tau\leq n}|w_{\tau}\cdot v|=0\ \text{in $L^{p}$ for every $p\geq 1$.} 2. with a number of samples n=\theta_{d}d , with \theta_{d}=\Omega(\log^{2}d) and growing at most polynomially in d ; step size \eta_{d} chosen so that \frac{1}{\theta_{d}}\ll\eta_{d}\ll\frac{1}{\sqrt{\theta_{d}}} pSGD reaches weak recovery in a time \tau_{u}\leq n i.e. there exists \iota>0 independent of d such that for \tau\geq\tau_{u} , with high probability w_{\tau}\cdot u\geq\iota . Moreover, in the case of positive correlation of latent variables \mathbb{E}\,[\lambda^{\mu}\nu^{\mu}]>0, conditioning on having matching sign at initialization: (v\cdot w_{0})(u\cdot w_{0})>0 , weak recovery is achieved also for the cumulant spike v in a time \tau_{v}\leq n . The first part of Section 4.2 is a negative result: the cumulant spike cannot be recovered at linear sample complexity. The second part of this statement is instead a positive result: pSGD weakly recovers the covariance spike u , and hence learns about the pair-wise statistics, in quasi-linear sample complexity. For the cumulant spike v instead, we find that if the latent variables \lambda^{\mu} and \nu^{\mu} are uncorrelated, pSGD will need at least d^{3} samples to weakly recover v (as for single spike models, see Section 4.1 ), and hence learn about higher-order correlations. This clear separation of timescales for the recovery of u and v rigorously establishes the distributional simplicity bias: the model learns pair-wise statistics (long) before higher-order correlations. However, if latent variables have a positive correlation, pSGD will recover the spike v with \Theta\left(d\text{polylog}(d)\right) samples. A similar speed-up due to correlated latent variables was found by [ 5 ] for supervised classification. We provide the proof in Section B.5 . We show an example of a neural network trained on the mixed cumulant model in Fig. 1 c). This model exhibits the same sequential learning property as conventionally trained diffusion models on image data, see Fig. 1 a), b). Figure 2: Examples of the contraction term \Lambda for different choices of activation \sigma . \sigma^{*} denotes the matched functional form of the score Eq. B.14 for different values of the diffusion time t . 4.3 The importance of the spherical constraint for SGD In order to consider a setting slightly closer to practice, we now remove the spherical constraint on SGD. The optimization algorithm then becomes simply: \begin{cases}w_{0}\sim\text{Unif}(\mathbb{S}^{d-1})\\ w_{\tau+1}=w_{\tau}-\eta_{d}\nabla\mathscr{L}(w_{\tau},x_{\tau})&\tau>1\end{cases} (17) Surprisingly, this simple change can let performances of the denoiser greatly deteriorate, as we now discuss. We can see this loss of performance most clearly in the single spike case with \beta_{u}=0 . Expanding the gradient of the population loss, we notice that the removal of the spherical constraint leads to appearance of an additional, radial term. Recalling the notation for the overlap with the hidden spiked direction \alpha_{\tau}=v\cdot w_{\tau} , we have: \displaystyle-\nabla\mathcal{L}_{t}(w_{\tau}) \displaystyle=-\mathbb{E}\,[\nabla\mathscr{L}(w_{\tau},x_{\tau})] (18) \displaystyle=\underbrace{\left(\frac{c_{k^{*}}^{L}c_{k^{*}-1}^{\tilde{F}}}{(k^{*}-1)!}\alpha_{\tau}^{k^{*}-1}+O(\alpha_{\tau}^{k^{*}})\right)v}_{\text{signal term}}+\underbrace{\left(c_{1}^{\tilde{F}}+c_{0}^{G_{\sigma}}+O(\alpha_{\tau})\right)w_{\tau}}_{\text{additional radial term}}, (19) where (c_{i}^{\tilde{F}})_{i\in\mathbb{N}} and (c_{j}^{G})_{j\in\mathbb{N}} are the Hermite coefficients of the functions: \displaystyle\tilde{F}_{\sigma}(x_{w},||w||) \displaystyle=\sigma^{\prime\prime}(x_{w})||w||^{2}-\sigma^{\prime}(x_{w})\sigma(x_{w})||w||^{2} (20) \displaystyle-\sigma(x_{w})-\sigma^{\prime}(x_{w})x_{w}, \displaystyle G_{\sigma}(x_{w}) \displaystyle=2\sigma^{\prime}(x_{w})-\sigma^{2}(x_{w}). Due to the fact that we are not considering w to have fixed norm, the coefficients (c_{i}^{\tilde{F}})_{i\in\mathbb{N}} and (c_{j}^{G})_{j\in\mathbb{N}} depend on ||w|| and are defined by the formula (see also Section B.6 for more details on the expansion): \displaystyle c_{k}^{\tilde{F}}(||w||) \displaystyle:=\underset{x\sim\mathcal{N}(0,\mathbbm{1})}{\mathbb{E}}\left[\partial^{k}\tilde{F}_{\sigma}(w\cdot x)\right] (21) \displaystyle c_{k}^{G}(||w||) \displaystyle=\underset{x\sim\mathcal{N}(0,\mathbbm{1})}{\mathbb{E}}\left[\partial^{k}G_{\sigma}(w\cdot x)\right] (22) We can immediately see that the additional radial term strongly impacts the dynamics; in particular, in case \sigma is an odd function (which implies c^{\tilde{F}}_{0}=0 ) or c^{L}_{1}=0 , it is the leading contribution in Eq. 18 . Zooming in on this case, many choices of \sigma (especially if we pick \sigma to be able to perfectly match the score, see Fig. 2 and Section 4.4 ) imply that c_{1}^{\tilde{F}}+c_{0}^{G}<0 , so it acts as a weight decay term that pushes w_{\tau+1} towards zero. In case c^{L}_{2} not large enough, the weight decay term overwhelms the signal term, leading to contraction dynamics that converge to zero. In the next two paragraphs we will analyse the rigorous statement and interpret its implication. Proposition 4.7 . In the setting described in Section 4.3 with c_{1}^{L}c_{0}^{\tilde{F}}=0 (for instance, this is verified when \sigma is an odd function), with a population loss that can be expanded as Eq. 18 , with a \mathcal{C}^{\infty} link function \sigma such that \Lambda(||w||):=(1+c_{2}^{L})c_{1}^{\tilde{F}}(||w||)+c_{0}^{G} and \Lambda(||w||)\leq-k_{0}<0 for all ||w||\leq\Gamma . Suppose we initialize such that ||w_{0}||<\Gamma and \alpha_{0}\to 0 as d\to\infty . We perform SGD as in Eq. 17 with step size \eta , such that \lim_{d\to\infty}\eta=0 . Then there exists \bar{d} such that for d>\bar{d} the sequences \alpha_{\tau}:=w_{\tau}\cdot v and ||w_{\tau}|| satisfy the following upper bound for all \tau with probability that goes to 1 as d\to\infty : \displaystyle\alpha_{\tau} \displaystyle\leq\bar{\gamma}^{\tau}\alpha_{0}+r_{d} (23) \displaystyle\norm{w_\tau} \displaystyle\leq\bar{\delta}^{\tau}||w_{0}||+s_{d} (24) where 0<\bar{\gamma},\bar{\delta}<1 and r_{d},s_{d}\to 0 as d\to\infty . In particular \bar{d} is such that \alpha_{\tau}\leq\alpha_{0} and ||w_{\tau}||\leq||w_{0}|| for all \tau\geq 0 . The proof is presented in Section B.6 in the appendix. Proposition 4.3 shows that for many choices of nonlinearity \sigma SGD dynamics initialized isotropically with w_{0}\sim\text{Unif}(\mathbb{S}^{d-1}) cannot escape an attracting minimum at w=0 : both the overlap \alpha_{\tau} and then norm ||w_{\tau}|| shrink to 0 without ever surpassing their value at initialization. It may seem counterintuitive to see a phenomenology that is so different from the case of projected SGD discussed in Sections 4.1 , 4.1 and 4.2 . It turns out that this effect is due to precise properties of the data structure and the architecture that we are considering. First, we need to highlight the assumptions: c_{1}^{L}c_{0}^{\tilde{F}}=0 means that data structures with low information exponent , c_{1}^{L}\neq 0 are less likely to show this behavior: in these cases the strong linear correlations in the data strongly push the gradient of the loss towards non-trivial solutions, counterbalancing the attraction that the additional radial term in Eq. 18 may present. In case of information exponent larger than one ( c_{1}^{L}=0 ), it is the assumption \Lambda(||w||)=(1+c_{2}^{L})c_{1}^{\tilde{F}}(||w||)+c_{0}^{G}<0 (25) that regulates the attracting behavior of the fixed point w=0 . We can see in Fig. 2 that it is possible to classify common activation functions based on this property (note that non-smooth functions such as ReLU or ReLU 2 violate the regularity assumptions of Section 4.3 , but it is still possible to work with smoothed versions of these nonlinearities). It is worth pointing out that in practice, it is possible to manually tweak \sigma via small rescaling so that the sign of \Lambda can change. An example is the case of \sigma=-\tanh : it is possible to consider a scaled version \xi\to-\frac{\tanh(10\xi)}{10} ( green line in Fig. 2 ) for which \Lambda is always positive. Note that the choice of the sign for \sigma is driven by the necessity of requiring C^{\tilde{F}_{\sigma}}_{3}C_{4}^{L}\geq 0 , otherwise the signal term in equation 18 would push in the wrong direction. 4.4 The case of the optimal denoiser A particular case that it is worth to discuss in detail is the choice of \sigma that could optimally represent the score of the data distribution (see the derivation of Eq. B.14 in the appendix). For a fixed diffusion time t , we define the matched denoiser as \sigma^{*}_{t}(\xi)=-\frac{e^{-t}}{\Delta_{t}}\left(e^{-t}\xi-\tanh\left(\frac{\xi e^{-t}}{\Delta_{t}}\right)\right). (26) The denoiser \sigma^{*}_{t} has the property that it is the function that can reach the smallest population loss value, attained for w=v , and its functional form can be derived by simply going through the steps in the derivation of Eq. 4 backwards, see Section B.2 . Studying the optimization problem with \sigma^{*}_{t} is the analog of studying denoising diffusion in the teacher-student scenario : a setting in which the architecture that needs to perform inference has the same structure of the data generating process, and only needs to infer the weights (see for instance [ 18 ] for a review). In our setting, for all times t\in(0,1) , \sigma^{*} satisfies the assumptions of Section 4.3 and the sub-optimal solution w=0 is the effective attractor of the dynamics. This is the first example known to the authors of a model in which the teacher-student scenario is suboptimal with respect to the choice of the non-linearity. We can single out two factors that explain why the solution w=0 is more stable than in other settings. 1. The most trivial contribution is given by the employment of MSE loss which provides the contraction term \sigma^{2}(x_{w}) inside G_{\sigma} . Even though this is an obvious contribution, it is worth to point it out since many other theoretical works on single/multi index Gaussian models in supervised learning consider different loss functions, such as correlation loss studied in [ 15 , 5 ] , that do not have this property. 2. The nature of the score denoising tasks. Indeed, part of the push towards 0 in the case of \sigma^{*} is due to the term 2(\sigma^{*})^{\prime}(x_{w}) in G_{\sigma} . This term comes from integrating out the additional Gaussian noise present in equation 4 via Stein’s lemma ( Section B.1 ), a specific contribution that is not present in usual supervised setting. Figure 3: Normalized overlap of first-layer weights of neural networks of varying depth trained with Adam on inputs drawn from the mixed cumulant model, Eq. 5 , at d=100 . All curves are averages over 5 random initializations of the neural networks. 4.5 The role of overparametrization and depth We investigated how more flexible architectures can learn higher-order statistics without task-specific tuning of the nonlinearity by training multi-layer autoencoders (matched to Eq. 6 ) and feed-forward residual networks on the MCM model ( Fig. 3 , see Section A.3 for experimental details). We measure learning by the maximal overlap w^{\top}v/\|w\| between the first-layer weights and the spiked direction. We observe that over-parameterization can mitigate the curse predicted by Section 4.3 . In Fig. 3 , a wide two-layer autoencoder trained with Adam is able to learn the hidden direction v with the activations ReLU and ReLU 2 , even though \Lambda<0 for both these nonlinearities, and we recall that \Lambda<0 implies that training a single-neuron autoencoder with unprojected GD would get stuck near the trivial solution w=0 . Indeed, we show in Fig. A.4 that Adam applied to a narrow architecture remains stuck at zero. The over-parametrisation thus helps the network to escape the trivial solution. Over-parametrisation is well known to speed up learning in different settings, like learning two-layer ReLU networks [ 42 ] or phase retrieval [ 43 ] . For the two-layer networks in Fig. A.4 a), it could be that the repulsive interactions between neurons in wide networks [ 31 ] spread neurons apart and counteract the contraction toward w=0 predicted by the single-neuron dynamics. Understanding this mechanism more precisely is an interesting direction for future work. Width and depth, however, affect learnability in different ways. As depth increases, ReLU 2 networks lose the ability to recover the spike, likely due to exploding activations induced by repeated squaring. Strikingly, deeper networks with \tanh or sigmoid activations do recover the spike. As discussed in Section 4.3 , simple reparametrizations can flip the sign of \Lambda , so that an activation violating the condition of Section 4.3 can be transformed into an equivalent learnable representation. This suggests a possible role of depth: early layers can implement data-dependent transformations that effectively reparameterize the input seen by later layers, improving the conditioning of the nonlinearity and thereby restoring learnability without explicit tuning of \sigma . 5 Concluding perspectives We demonstrated experimentally that diffusion models learn statistics of increasing complexity over training, where complexity is defined via the order of the cumulants exploited by the model. In the mixed cumulant model, we rigorously analyze this phenomenon and show that learning is governed by the diffusion information exponent k^{*} , which determines the sample complexity required to recover a given statistic and depends on both the architecture and the data distribution; correlated latent variables facilitate learning. While our theoretical analysis focuses on a simple denoiser with a single hidden unit and a single non-Gaussian direction, the diffusion information exponent can in principle be computed for richer architectures and more structured data models. We further compare two optimization protocols and show that SGD projected on the sphere outperforms its unconstrained counterpart, which can be trapped by a suboptimal attracting solution at \|w\|=0 for several common nonlinearities. Numerical experiments indicate that increasing network width and depth restores the ability to learn higher-order statistics, suggesting that both overparametrization and depth can mitigate unfavorable nonlinearities without explicit fine-tuning. Overall, our results show that diffusion models exhibit a distributional simplicity bias beyond supervised learning: when data or model expressivity is limited, they reliably learn lower-order statistics before higher-order ones. Code availability The code to reproduce our experiments is available at https://github.com/ClaudiaMer/DiffusionEasy2Hard . Appendix A Details on experiments A.1 The clones To generate the clone datasets, we first determine the mean \mu and the covariance \Sigma of the test datasets for both CelebA and CIFAR-10. We then sample the "mean" clone from a Gaussian distribution with mean \mu and identity covariance. We then sample the "mean + cov." clone from a Gaussian distribution with matching mean and covariance. We show examples of these datasets in Fig. A.1 and Fig. A.2 . Figure A.1: Samples from the different "clones" as well as the test data set. a) shows images drawn from the mean clone which follows a Gaussian distribution with matching mean to the CIFAR-10 dataset and identity covariance. In b), we additionally match the covariance matrix of the Gaussian distribution to the CIFAR-10 dataset. c) shows 9 images from the CIFAR-10 dataset. Figure A.2: Samples from the different "clones" as well as the test data set. a) shows images drawn from the mean clone which follows a Gaussian distribution with matching mean to the CelebA dataset and identity covariance. In b), we additionally match the covariance matrix of the Gaussian distribution to the CelebA dataset. c) shows 9 images from the CelebA dataset. A.2 Sequential learning in CelebA data In Fig. A.3 we report the outcome of the sequential learning experiment on 10^{5} CelebA data [ 29 ] , which we downscale to 80\times 80 greyscale pixels. We observe the same sequential learning behavior as for the CIFAR-10 data. We observe that the loss curves are more noisy than the ones for CIFAR-10, we expect these effects to be due to the finite learning rate used during training. Figure A.3: Training Unets on CelebA data. a)-d) samples generated from the model at various training stages. e) Test loss of the model on clones of the dataset during training. Vertical dotted lines mark training stages of images generated from the model shown in panels a)-d). f)-g) same as e), but for fixed level of noise. All curves are averaged over 2 initializations of the network models and 5\cdot 10^{3} test data. Shaded areas report standard deviation over random initialization. A.2.1 Training hyperparameters We use diffusion models with a Unet architecture [ 40 ] , T=10^{3} levels of noise and sinusoidal embedding for t . For the CIFAR-10 data reported in 1 , we use the Adam optimizer with learning rate 10^{-}3 . For the CelebA data reported in A.3 , we reduce the learning rate to 10^{-4} . For both data sets we use a batchsize of 10^{2} samples. A.3 Learning the MCM model In this section, we describe the different architectures trained on the MCM model. We sort these descriptions by the figures they correspond to. Fig. 1 c): n -layer feedforward network with linear skip connection. Let x\in\mathbb{R}^{d} be the input drawn according to Eq. 5 with \beta_{u}=10^{2},\beta_{v}=1 ,. The network defines a sequence of hidden representations \{h^{(k)}\}_{k=1}^{d-1}\subset\mathbb{R}^{m} as follows: \displaystyle h^{(1)} \displaystyle=g\!\left(W_{1}x\right), (A.1) \displaystyle h^{(k)} \displaystyle=g\!\left(W_{k}h^{(k-1)}\right),\qquad k=2,\dots,n-1, (A.2) where W_{1}\in\mathbb{R}^{m\times d} , W_{k}\in\mathbb{R}^{m\times m} for k\geq 2 are learnable weight matrices, g(\cdot) is an element-wise nonlinearity, and \lambda\in\mathbb{R} is a fixed residual scaling parameter, which we set to one. The output of the network is given by f(x)=\alpha x+W_{\mathrm{out}}\,h^{(n-1)}+Ax+b, (A.3) where W_{\mathrm{out}}\in\mathbb{R}^{d\times m} is a learnable output weight matrix and \alpha\in\mathbb{R} is a fixed skip-connection coefficient. We have also added a general linear mapping Ax+b to the output to allow the network to learn the Gaussian part of the score explicitly; A\in\mathbb{R}^{d\times d},b\in\mathbb{R}^{d} is a learnable matrix and bias vector. This architecture was used to produce panel c) Fig. 1 , choosing \sigma= ReLu and m=10,n=3 . To train it, we used objective Eq. 4 , the Adam optimizer with learning rate \eta=10^{-3} and a batch-size of 10^{2} data samples per step. Fig. 3 a): Twolayer Autoencoder. We consider a two-layer neural network with tied weights. Given an input x\in\mathbb{R}^{d} drawn according to Eq. 5 with \beta_{u}=0,\beta_{v}=1 , the hidden representation is computed as h=\sigma(Wx) where W\in\mathbb{R}^{m\times d} and \sigma(x) is an element-wise nonlinearity. We also add a trainable skip connection \alpha , so the output is given by S(x)=-\alpha x-W^{\mathrm{T}}h+b (A.4) where the second layer reuses the transpose of the first-layer weights and b\in\mathbb{R}^{d} is a learnable bias. This architecture was used to produce panel a) Fig. 3 , choosing different activation functions for \sigma . To train it, we used objective Eq. 4 , the Adam optimizer with learning rate \eta=10^{-4} and a batch-size of 10^{2} data samples per step. Fig. 3 b-c): n -layer Resnet . Let x\in\mathbb{R}^{d} be the input drawn according to Eq. 5 with \beta_{u}=0,\beta_{v}=1 ,. The network defines a sequence of hidden representations \{h^{(k)}\}_{k=1}^{d-1}\subset\mathbb{R}^{m} as follows: \displaystyle h^{(1)} \displaystyle=g\!\left(W_{1}x\right), (A.5) \displaystyle h^{(k)} \displaystyle=\lambda\,h^{(k-1)}+g\!\left(W_{k}h^{(k-1)}\right),\qquad k=2,\dots,n-1, (A.6) where W_{1}\in\mathbb{R}^{m\times d} , W_{k}\in\mathbb{R}^{m\times m} for k\geq 2 are learnable weight matrices, g(\cdot) is an element-wise nonlinearity, and \lambda\in\mathbb{R} is a fixed residual scaling parameter, which we set to one. The output of the network is given by f(x)=\alpha x+W_{\mathrm{out}}\,h^{(n-1)}, (A.7) where W_{\mathrm{out}}\in\mathbb{R}^{d\times m} is a learnable output weight matrix and \alpha\in\mathbb{R} is a fixed skip-connection coefficient. All linear layers are bias-free. This architecture was used to produce panel b)-c) Fig. 3 , choosing different activation functions for \sigma . To train it, we used objective Eq. 4 , the Adam optimizer with learning rate \eta=10^{-4} and a batch-size of 10^{2} data samples per step. A.4 Further experiments on learning the MCM model Here we present two further experiments on the MCM model using the same architecture as in Fig. 3 a), see Section A.3 for details. We modify the setting used to obtain Fig. 3 a) in two ways: first, we remove the overparametrization, i.e., we set the width of the autoencoder to m=1 . We find that the model can no longer recover the spike. In the second experiment, we keep the width of the autoencoder at m=100 , meaning that the network is overparametrized, but use SGD instead of Adam as an optimization regime. Further, we increase the learning rate to \eta=10^{-2} , as SGD can have slower convergence than Adam. We find that using SGD, the same architectures are able to recover the spike as in the case where we trained with Adam. We hence conclude that overparametrization is the key for recovery of the spike. Figure A.4: Normalized overlap of first-layer weights of neural networks of varying m trained with Adam or SGD the MCM model at d=100 . All curves are averages over 5 random initializations of the neural networks. Appendix B Details on the analysis and proofs B.1 Hermite polynomials We recall the definition and a few properties of the Hermite polynomials. Definition B.1 . The Hermite polynomial of degree m is h_{m}(x):=(-1)^{m}e^{\frac{x^{2}}{2}}\frac{{\text{d}}^{m}}{{\text{d}}x^{m}}\left(e^{-\frac{x^{2}}{2}}\right) (B.1) There is also a general formula: h_{m}(x)=m!\sum_{j=0}^{\lfloor m/2\rfloor}\frac{(-1)^{j}}{2^{j}j!(m-2j)!}x^{m-2j} (B.2) The Hermite polynomials enjoy the following properties (for details see [ 30 ] , [ 49 ] and [ 2 ] ): • they are an orthogonal system with respect to the L^{2} product weighted with the density of the Normal distribution: \frac{1}{\sqrt{2\pi}}\int_{-\infty}^{\infty}h_{n}(x)h_{m}(x)e^{-\frac{x^{2}}{2}}{\text{d}}x=n!\delta_{m,n}; (B.3) • h_{m} is a monic polynomial of degree m , hence (h_{m})_{m\in\{1,\dots,N\}} generates the space of polynomials of degree \leq N ; • the previous two properties imply that the family of Hermite polynomials is an orthogonal basis for the Hilbert space L^{2}(\mathbb{R},\mathbb{Q}) where \mathbb{Q} is the normal distribution; • they enjoy the following recurring relationship h_{m+1}(x)=xh_{m}(x)-h_{m}^{\prime}(x)=xh_{m}(x)-mh_{m-1}(x), (B.4) Multivariate case In the multivariate m -dimensional case we can generalize to Hermite tensors (H_{\bm{\alpha}})_{{\bm{\alpha}}\in\mathbb{N}^{m}} defined as: H_{\alpha}(x_{1},\dots,x_{m})=\prod_{i=1}^{m}h_{\alpha_{i}}(x_{i}) (B.5) most of the properties of the one-dimensional Hermite polynomials extend to this case: they form an orthogonal basis of L^{2}(\mathbb{R}^{m},\mathcal{N}(0,\mathbbm{1}_{m}) . We have that: \mathbb{E}\,_{x\sim\mathcal{N}(0,\mathbbm{1})}[H_{\bm{\alpha}}(x)H_{\bm{\beta}}(x)]={\bm{\alpha}}!\delta_{{\bm{\alpha}},{\bm{\beta}}} (B.6) Definition B.2 (Hermite expansion) . Consider a function f:\mathbb{R}\to\mathbb{R} that is square integrable with weight the standard normal distribution p(x)=(1/\sqrt{2\pi})\;e^{-x^{2}/2} . Then, there exists a unique sequence of real numbers \{c_{k}\}_{k\in\mathbb{N}} called Hermite coefficients, such that: f(x)=\sum_{k=0}^{\infty}\dfrac{c_{k}}{k!}h_{k}(x)\quad\text{ and }\quad c_{k}(x):=\mathbb{E}_{x\sim\mathcal{N}(0,1)}[f(x)h_{k}(x)], where h_{i} is the i -th probabilist’s Hermite polynomial. Definition B.3 (Information exponent) . Consider a function f that can be expanded with Hermite polynomials with coefficients (c_{i})_{i}\in{\mathbb{N}} . Its information exponent k^{*}=k^{*}(f) is the smallest index k\geq 1 such that c_{k}\neq 0 . The following lemma from [ 4 ] provides a version of the integration by parts technique that is tailored for Hermite polynomials. Lemma B.4 (Stein lemma) . Let f:\mathbb{R}^{d}\to\mathbb{R}^{d} be a continuously differentiable k times function. Suppose that f and all of its partial derivatives up to the k -th are bounded by O(\exp(|y|^\lambda)) for a \lambda\in(0,2) , then for any {\bm{\alpha}}\in\mathbb{N}^{d} such that |{\bm{\alpha}}|\leq k \underset{y\sim\mathcal{N}(0,\mathbbm{1}_{d})}{\mathbb{E}}\left[H_{\bm{\alpha}}(y)f(y)\right]=\underset{y\sim\mathcal{N}(0,\mathbbm{1}_{d})}{\mathbb{E}}\left[\partial_{\bm{\alpha}}f(y)\right] (B.7) Proof. B.7 can be proved by doing induction on k using B.4 , see [ 4 ] for details. ∎ Corollary B.5 . Let u_{1},u_{2}\in\mathbb{\mathbb{}}S^{d-1} , then the following formula holds: \underset{x\sim\mathcal{N}(0,\mathbbm{1}_{d})}{\mathbb{E}\,}[h_{i}(u_{1}\cdot x)h_{j}(u_{2}\cdot x)]=(u_{1}\cdot u_{2})^{i}i!\delta_{i,j} (B.8) Proof. It follows from the application of Section B.1 ∎ B.2 Derivation of the loss formula We consider the setting of [ 10 ] , modeling the diffusion process for t\to x(t)\in\mathbb{R}^{d} , with x(0)=a\sim P_{0} , the target distribution, that we want to learn how to sample from. The diffusion process has the following form: \frac{{\text{d}}x}{{\text{d}}t}=-x{\text{d}}t+{\text{d}}\mathcal{W}_{t}, (B.9) where \mathcal{W}_{t}\in\mathbb{R}^{d} is a d dimensional Wiener process. The solution at time t can be written in distribution as: x(t)=x(0)e^{-t}+\sqrt{1-e^{-2t}}z (B.10) where z\sim\mathcal{N}(0,\mathbbm{1}_{d}) . So, defining \Delta_{t}=1-e^{-2t} The density at time t is given by: P_{t}(x)=\int{\text{d}}a\,P_{0}(a)\frac{1}{\left(2\pi\Delta_{t}\right)^{d/2}}\exp\left(-\frac{1}{2}\frac{(x-ae^{-t})^{2}}{\Delta_{t}}\right). (B.11) A key quantity that needs to be introduced is the score of P_{t} , that appears in the equation for the backward process. Knowing the score, or being able to approximate it, allows to revert the process and, starting from samples of a standard Gaussian it gives the recipe on how to transform them into samples of P_{0} . The score is defined as: \mathcal{F}_{i}(x,t)=\frac{\partial\log P_{t}(x)}{\partial x_{i}}=-\frac{x_{i}-\mathbb{E}\,[a_{i}|x(t)=x]e^{-t}}{\Delta_{t}}, (B.12) where the last equality, called Tweedie formula , is at the core of the feasibility of diffusion models. It gives a recipe on how to approximate the score via empirical averages of the noised process. The objective then becomes learning \mathcal{F} . To do this it, one can build MSE for a collection of fixed time intervals, let us denote \mathcal{S}_{t}^{w}(x) the approximated score that depends on weight w . The loss function at time t will be \displaystyle\mathcal{L}_{t}(w)= \displaystyle\frac{1}{2}\mathbb{E}\,_{x}\left[\norm{S^w_t(x)+\frac{x-\EE[a|x(t)=x]e^{-t}}{\Delta_t}}^{2}\right] \displaystyle\overset{\lx@cref{creftype\lx@tilde refnum}{eq:xtsol_formula}}{=} \displaystyle\frac{1}{2}\mathbb{E}\,_{a,z}\left[\norm{S^w_t(x)+\frac{ae^{-t}+\sqrt{\Delta}z-\EE[a|x(t)=x]e^{-t}}{\Delta_t}}^{2}\right] \displaystyle= \displaystyle\frac{1}{2}\mathbb{E}\,_{a,z}\left[\norm{S^w_t(x)+\frac{z}{\sqrt{\Delta_t}}}^{2}+\norm{\frac{ae^{-t}-\EE[a|x(t)=x]e^{-t}}{\Delta_t}}^{2}+2\frac{z}{\sqrt{\Delta_{t}}}\cdot\frac{ae^{-t}-\mathbb{E}\,[a|x(t)=x]e^{-t}}{\Delta_{t}}\right], where the double product with S_{t}^{w} does not appear because \mathbb{E}\,_{x}[S^{w}_{t}(x)\mathbb{E}\,_{a|x}\left[\left(a-\mathbb{E}\,[a|x(t)=x]\right)\right]]=0 . Note that the second and third addend are independent of w , hence the troublesome term \mathbb{E}\,[a|x(t)=x] does not appear in the gradient and the effective loss function is: L_{t}(w)=\frac{1}{2}\mathbb{E}\,_{a,z}\left[\norm{S^w_t(a e^{-t}+\sqrt{\Delta_t} z)+\frac{z}{\sqrt{\Delta_t}}}^{2}\right]+C. (B.13) This quantity can be well approximated having just samples from P_{0} , which allow to estimate the integral over a . B.3 The example of the spiked cumulant model To provide intuition on the forward and backward processes described in Section 4 , we provide here the explicit formulas in the case in which P_{0} is the spiked cumulant model from [ 50 ] . We can choose the case x(0)=hv+z with h\sim\text{Rademacher}(1/2) , v is the norm 1 spike and z is a d-1 -standard Gaussian, in the space orthogonal to v , i.e. z\sim\mathcal{N}(0,\mathbbm{1}_{d}-vv^{\top}) . Then from Eq. B.11 , P_{t} has the following expression: \displaystyle P_{t}(x) \displaystyle=\frac{1}{(2\pi)^{(d-1)/2}}\exp\left(-\frac{1}{2}x^{\top}_{\perp v}x_{\perp v}\right)\frac{1}{2\left(2\pi\Delta_{t}\right)^{1/2}}\left[\exp\left(-\frac{1}{2}\frac{(x_{v}-e^{-t})^{2}}{\Delta_{t}}\right)+\exp\left(-\frac{1}{2}\frac{(x_{v}+e^{-t})^{2}}{\Delta_{t}}\right)\right] \displaystyle=\frac{1}{(2\pi)^{(d-1)/2}}\exp\left(-\frac{1}{2}x_{\perp v}^{\top}x_{\perp v}\right)\frac{\exp\left(-\frac{1}{2}\frac{x_{v}^{2}+e^{-2t}}{\Delta_{t}}\right)}{\left(2\pi\Delta_{t}\right)^{1/2}}\cosh\left(\frac{x_{v}e^{-t}}{\Delta_{t}}\right), were x=x\cdot vv+(x-x\cdot vv)=x_{v}v+x_{\perp v} . Hence the score is: \displaystyle\mathcal{F}(x,t) \displaystyle=-x_{\perp v}-\frac{x_{v}}{\Delta_{t}}v+\frac{e^{-t}}{\Delta_{t}}v\tanh\left(\frac{x_{v}e^{-t}}{\Delta_{t}}\right) \displaystyle=-x-\frac{e^{-t}}{\Delta_{t}}v\left(e^{-t}x_{v}-\tanh\left(\frac{x_{v}e^{-t}}{\Delta_{t}}\right)\right). (B.14) B.4 Projected SGD dynamics We will now focus on the dynamics of projected SGD, so we can assume ||w||=1 . Denoting for brevity by x_{w}:=x\cdot w : \displaystyle-\nabla_{sph}\mathcal{L}_{t} \displaystyle=-(\mathbbm{1}-ww^{\top})\mathbb{E}\,_{x,z}\Bigg[\sigma^{\prime}(x_{w})\sigma(x_{w})x+\sigma^{2}(x_{w})w+\sigma(x_{w})x+ \displaystyle\quad+\sigma^{\prime}(x_{w})x_{w}x-\frac{1}{\sqrt{\Delta_{t}}}\left(\sigma(x_{w})z+\sigma^{\prime}(x_{w})z_{w}x\right)\Bigg] \displaystyle=(\mathbbm{1}-ww^{\top})\mathbb{E}\,_{x}\left[x\left(\sigma^{\prime\prime}(x_{w})-\sigma^{\prime}(x_{w})\sigma(x_{w})-\sigma(x_{w})-\sigma^{\prime}(x_{w})x_{w}\right)\right] where the second equality all the terms proportional to w have been canceled by the factor \mathbbm{1}-ww^{\top} and the terms depending on z can be reduced to terms involving just x through Stein lemma (as detailed in lemma F.1 in [ 46 ] ): \displaystyle\mathbb{E}\,_{z\sim\mathcal{N}(0,\mathbbm{1}),x}\left[\frac{1}{\sqrt{\Delta_{t}}}\sigma(x_{w})z\right] \displaystyle=\mathbb{E}\,_{x}\left[\sigma^{\prime}(x_{w})w\right] \displaystyle\mathbb{E}\,_{z\sim\mathcal{N}(0,\mathbbm{1}),x}\left[\frac{1}{\sqrt{\Delta_{t}}}\sigma^{\prime}(x_{w})z_{w}x\right] \displaystyle=\mathbb{E}\,_{x}\left[\sigma^{\prime\prime}(x_{w})||w||^{2}x+\sigma^{\prime}(x_{w})w\right] Then introducing L(v\cdot x) and defining F_{\sigma}(x_{w}):=\sigma^{\prime\prime}(x_{w})-\sigma^{\prime}(x_{w})\sigma(x_{w})-\sigma(x_{w})-\sigma^{\prime}(x_{w})x_{w} we can expand in Hermite orthonormal basis: \displaystyle L(v\cdot x) \displaystyle=\sum_{i=0}^{\infty}c_{i}^{L}h_{i}(x_{v}) \displaystyle F_{\sigma}(x_{w}) \displaystyle=\sum_{j=0}^{\infty}c_{j}^{F}h_{j}(x_{w}) and get: \displaystyle-\nabla_{sph}\mathcal{L}_{t} \displaystyle=(\mathbbm{1}-ww^{\top})\underset{x\sim\mathcal{N}(0,\mathbbm{1})}{\mathbb{E}\,}\left[x\left(\sum_{i=0}^{\infty}c_{i}^{L}h_{i}(x_{v})\right)\left(\sum_{j=0}^{\infty}c_{j}^{F}h_{j}(x_{w})\right)\right] \displaystyle=(\mathbbm{1}-ww^{\top})\left[\left(\sum_{i=1}^{\infty}c_{i}^{L}c^{F}_{i-1}(v\cdot w)^{i-1}\right)v+\left(\sum_{j=1}^{\infty}c_{j}^{F}c^{L}_{j-1}(v\cdot w)^{j-1}\right)w\right] \displaystyle=\left(\sum_{i=1}^{\infty}c_{i}^{L}c^{F}_{i-1}(v\cdot w)^{i-1}\right)(1-v\cdot w)v So, let \alpha:=v\cdot w in the early stages of learning the dynamics to reach weak recovery are described by: -\nabla_{sph}\mathcal{L}_{t}=c^{L}_{k^{*}}c^{F}_{k^{*}-1}\alpha^{k^{*}-1}v+O(\alpha^{k^{*}}) (B.15) where k^{*} is the first non zero term of the series. In the following we consider some examples of applications of Section 4.1 . Proof of Section 4.1 and Section 4.1 . These propositions can be seen as corollaries of theorems 1.3 and 1.4 from [ 7 ] . Sections 4.1 and 4.2 verify the core requirements. The only catch is that all the assumptions are not verified on the loss function, but directly on the spherical gradient. However the whole reasoning detailed in [ 7 ] never relies on computations of the loss function, but only of its gradient, hence we can apply the proof to our setting. ∎ B.4.1 Spiked Wishart In the case of spiked Wishart model, k^{*}=2 , so we can take \sigma=-id : F(x_{w})=x_{w} and we get that the projected SGD reaches weak recovery in d\log d sample complexity B.4.2 Spiked cumulant We choose \sigma to match equation B.14 : \sigma(x_{v})=\frac{e^{-t}}{\Delta_{t}}\left(e^{-t}x_{v}-\tanh\left(\frac{e^{-}t}{\Delta_{t}}x_{v}\right)\right) and simulations confirm that projected SGD works in this regime reaching weak recovery in d^{3} samples. Note that the coefficients depend exponentially on diffusion time c_{4}^{L}=e^{-4t}-3e^{-2t} B.5 Mixed cumulant model Proof of Section 4.2 . The proof relies on verifying the precise hypothesis of propositions 3 and 4 in [ 5 ] , so that all the argument can be replicated in the exact same way. The starting point is that the population loss expansion -\nabla_{\mathrm{sph}}\mathcal{L}(\alpha_{u},\alpha_{v})=\sum_{k=1}^{\infty}\sum_{i=0}^{k}c^{F}_{k-1}c^{L}_{i,k-i}\left(\alpha_{u}^{i-1}\alpha_{v}^{k-i}u+\alpha_{u}^{i}\alpha_{v}^{k-i-1}v\right) (B.16) coincides with the population loss from [ 5 ] , eq. (25), with a different naming of the coefficients: in their notation kc^{\sigma}_{k} corresponds to c^{F}_{k-1} in our notation. Hence Section 4.2 verifies the requirements of Assumption 1 in [ 5 ] . The only term that in principle could behave differently is the directional noise martingale H_{d}(x,w):=\mathscr{L}-\mathcal{L} . However L_{t} is the likelihood ratio of a sub-Gaussian random variable, and H is a Lipshitz transformation, so H(x,w) , with ||w||=1 and x\sim\mathbb{P}_{t} is sub-Gaussian. Hence requirements in 4.2 , which were the same as the ones needed in [ 5 ] , are satisfied. Hence, we can apply propositions 3-4 from [ 5 ] and conclude the proof. ∎ B.6 Additional details for SGD without projection We now do not consider the restriction to ||w||=1 and the spherical gradient, SGD gradient has the form \displaystyle-\nabla\mathcal{L}_{t} \displaystyle=-\mathbb{E}\,_{x,z}\left[\sigma^{\prime}(x_{w})\sigma(x_{w})||w||^{2}x+\sigma^{2}(x_{w})w+\sigma(x_{w})x+\sigma^{\prime}(x_{w})x_{w}x-\frac{1}{\sqrt{\Delta_{t}}}\left(\sigma(x_{w})z+\sigma^{\prime}(x_{w})z_{w}x\right)\right] \displaystyle=\mathbb{E}\,_{x}\left[x\left(\underbrace{\sigma^{\prime\prime}(x_{w})||w||^{2}-\sigma^{\prime}(x_{w})\sigma(x_{w})||w||^{2}-\sigma(x_{w})-\sigma^{\prime}(x_{w})x_{w}}_{\tilde{F}_{\sigma}}\right)+w\left(\underbrace{2\sigma^{\prime}(x_{w})-\sigma^{2}(x_{w})}_{G_{\sigma}}\right)\right] More in general we can now expand the likelihood ratio L , \tilde{F}_{\sigma} and G_{\sigma} in Hermite basis. Note that now ||w|| is not anymore constant equal to 1, as in the projected SGD case, so we will expand with respect to \hat{w}=w/||w|| and v to get: \displaystyle-\nabla\mathcal{L}_{t} \displaystyle=\mathbb{E}\,_{x}\left[x\tilde{F}_{\sigma}(x_{w},||w||)+wG_{\sigma}(x_{w})\right] \displaystyle=\underset{x\sim\mathcal{N}(0,\mathbbm{1})}{\mathbb{E}\,}\Bigg[x\left(\sum_{i=0}^{\infty}\frac{c_{i}^{L}}{i!}h_{i}(x_{v})\right)\left(\sum_{j=0}^{\infty}\frac{c_{j}^{\tilde{F}}(||w||)}{j!}||w||^{j}h_{j}(x_{\hat{w}})\right)+ \displaystyle\quad+w\left(\sum_{i=0}^{\infty}\frac{c_{i}^{L}}{i!}h_{i}(x_{v})\right)\left(\sum_{k=0}^{\infty}\frac{c_{k}^{G}(||w||)}{k!}||w||^{k}h_{k}(x_{\hat{w}})\right)\Bigg] \displaystyle=\left[\left(\sum_{i=1}^{\infty}\frac{c_{i}^{L}c^{\tilde{F}}_{i-1}}{(i-1)!}(v\cdot w)^{i-1}\right)v+\left(\sum_{j=1}^{\infty}\frac{c_{j}^{\tilde{F}}c^{L}_{j-1}}{(j-1)!}(v\cdot w)^{j-1}+\sum_{k=0}^{\infty}\frac{c_{k}^{G}c^{L}_{k}}{k!}(v\cdot w)^{k}\right)w\right] Where we applied Stein’s lemma multiple times and the Hermite decomposition. The coefficients (c_{i}^{\tilde{F}})_{i\in\mathbb{N}} and (c_{j}^{G})_{j\in\mathbb{N}} depend on ||w|| and are defined as: \displaystyle||w||^{k}c_{k}^{\tilde{F}}(||w||) \displaystyle=\mathbb{E}[\tilde{F}_{\sigma}(w\cdot x)h_{k}(\hat{w}\cdot x)]\overset{Stein}{=}||w||^{k}\mathbb{E}\left[\partial^{k}\tilde{F}_{\sigma}(w\cdot x)\right] (B.17) \displaystyle||w||^{k}c_{k}^{G}(||w||) \displaystyle=\mathbb{E}[G_{\sigma}(w\cdot x)h_{k}(\hat{w}\cdot x)]\overset{Stein}{=}||w||^{k}\mathbb{E}\left[\partial^{k}G_{\sigma}(w\cdot x)\right] (B.18) We now approximate at leading order in \alpha:=w\cdot v , which at the beginning of learning is small. Recalling that k^{*} denotes the diffusion information exponent, and c_{0}^{L}=1 , we get -\nabla\mathcal{L}_{t}(w)=\left(c_{1}^{\tilde{F}}+c_{0}^{G}\right)w+O(\alpha)w+\frac{c_{k^{*}}^{L}c_{k^{*}-1}^{\tilde{F}}\alpha^{k^{*}-1}}{(k-1)!}v+O(\alpha^{k^{*}}) (B.19) So the dynamics are governed by \Lambda:=c_{1}^{\tilde{F}}(||w||)(1+c_{2}^{L})+c^{G}_{0} if \Lambda<0 in a neighborhood of 0 , then w=0 is an attracting fixed point meaning that this analysis is already able to characterize GD dynamics starting from random initializations (provided the basin of attraction includes the initialization), otherwise if \Lambda>0 it is a repulsive fixed point, and the dynamics push away from the region in which it is possible to expand the loss, hence analysis of this case cannot be done through this method. Proof of Section 4.3 . An iteration of the SGD can be written as: w_{\tau+1}=w_{\tau}-\eta\left(\nabla\mathcal{L}(w_{\tau})+\nabla H(w_{\tau},x_{\tau})\right) using the expansion Eq. 18 we get \begin{cases}\alpha_{\tau+1}=\alpha_{\tau}+\eta\left(\alpha_{\tau}\Lambda(||w_{\tau}||)+E_{\tau}\alpha_{\tau}+v\cdot\nabla H(w_{\tau},x_{\tau})\right)\\ w_{\tau+1}=(1+\eta\Lambda(||w_{\tau}||))w_{\tau}+\eta\vec{R}_{\tau}+\eta\nabla H(w_{\tau},x_{\tau})\end{cases} (B.20) where |E_{\tau}|\leq L\alpha_{\tau} for some constant L and \vec{R}_{\tau} is a vectorized analogous from which we do not factor \alpha_{\tau} : \norm{\vec R_\tau}\leq L\alpha . Now call \gamma_{\tau}:=1+\eta\Lambda(||w_{\tau}||)+\eta E_{\tau} and \delta_{\tau}=1+\eta\Lambda(||w_{\tau}||) , then it can be easily verified by induction that the recursive relations equation B.20 implies the following explicit formulas: \begin{cases}\alpha_{\tau}=\alpha_{0}\prod_{i=0}^{\tau-1}\gamma_{i}+\eta\sum_{i=0}^{\tau-1}v\cdot\nabla H(w_{i},x_{i})\prod_{j=i+1}^{\tau-1}\gamma_{j}\\ w_{\tau+1}=w_{0}\prod_{i=0}^{\tau-1}\delta_{i}+\eta\sum_{i=0}^{\tau-1}\left(\vec{R}_{i}+\nabla H(w_{i},x_{i})\right)\prod_{j=i+1}^{\tau-1}\delta_{j}\end{cases} (B.21) We will now prove the statement by induction: so assume that all w_{i} and \alpha_{i} satisfy the statement up to i=t and we prove it for t+1 . So we will use that \gamma_{i},\delta_{i}\leq 1-\eta k_{0} and \alpha_{i}\leq\alpha_{0}\to_{d}0 . Now we estimate the noise terms that luckily in Eq. B.21 appear as geometrically dampened martingale: h \vec{M}_{\tau}=\eta\sum_{i=0}^{\tau-1}\nabla H(w_{i},x_{i})\prod_{j=i+1}^{\tau-1}\gamma_{\tau}. Using Doob inequality, together with assumption we get: \mathbb{P}\left(\sup_{u\in\mathbb{S}^{d-1}}\sup_{\tau\leq n}u\cdot\vec{M}_{\tau}\geq r\right)\leq\frac{\text{Var}(u\cdot M_{n})}{r^{2}}=\frac{\eta^{2}C_{1}||w_{0}||^{2}}{r^{2}}\sum_{i=0}^{n}(1-\eta k_{0})^{2i}=\frac{\eta C_{1}||w_{0}||^{2}}{r^{2}}\frac{1-(1-\eta k_{0})^{2n}}{2k_{0}-\eta k_{0}^{2}} (B.22) where we used the fact that \text{Var}(\nabla H^{2}(x,w)\leq C||w||^{2} that can be quickly checked to be true. So pick a sequence of r_{d}\to 0 as d\to\infty and condition to the complementary event in Eq. B.22 . Then, we can take d large enough so that \alpha_{0}\leq\frac{k_{0}}{2L} , so that \gamma_{\tau}\leq 1-\eta\frac{k_{0}}{2}=\bar{\gamma} , plugging into the first equation in Eq. B.21 we find : \alpha_{\tau+1}\leq\alpha_{0}\bar{\gamma}^{\tau+1}+r_{d} So by taking d large so that r_{d} becomes small enough we have verified the requirement on \alpha_{\tau+1} . We can turn now to verify the inductive statement for w_{\tau+1} . Applying the inductive hypotheses on Eq. B.21 we get: \displaystyle||w_{\tau+1}||\leq||w_{0}||\bar{\delta}^{\tau+1}+\eta\sum_{i=0}L\alpha_{i}\bar{\delta}^{\tau-i}+\norm{\eta\sum_{i=0}^{\tau-1}\nabla H(w_i,x_i) \bar\delta^{\tau-i}} (B.23) we can estimate the middle term by applying the inequality for \alpha_{i} and getting (taking again d large so that r is small enough): \eta\sum_{i=0}L\alpha_{i}\bar{\delta}^{\tau-i}\leq\underbrace{\eta L\alpha_{0}(\min\bar{\gamma},\bar{\delta})^{\tau}}_{\to 0}+L\frac{r}{k_{0}} Finally the last term in Eq. B.23 can be estimate by Chebyshev inequality since \text{Var}\left(\eta\sum_{i=0}^{\tau-1}\nabla H(w_{i},x_{i})\bar{\delta}^{\tau-i}\right)\leq C\frac{\eta^{2}}{1-\bar{\delta}^{2}}\leq C\frac{||w_{0}||^{2}\eta}{k_{0}} which tends to 0 as d\to\infty . Note that we used the inductive hypothesis to estimate \text{Var}(\nabla H(x,w))\leq C||w_{0}|| . So we can establish that: \mathbb{P}\left(\norm{\eta\sum_{i=0}^{\tau-1}\nabla H(w_i,x_i) \bar\delta^{\tau-i}}\geq r_{d}\right)\leq C\frac{||w_{0}||^{2}\eta}{r_{d}^{2}k_{0}} (B.24) This concludes the verification of the inductive step. Note that up to now we were conditioning to be in the complementary of Eq. B.22 and of Eq. B.24 , but note that if we take r_{d} to go to 0 slowly enough so that \frac{\eta}{r^{2}}\to 0 , then the probability of the event in Eq. B.22 and Eq. B.24 goes to 0 and the proof is concluded. ∎ B.7 Trainable intensity of the skip connection Let us see what changes if we add a weight b that multiplies the intensity of the skip connection and train it. \displaystyle-\nabla_{w}\mathcal{L}_{t}= (B.25) \displaystyle- \displaystyle=\mathbb{E}\,_{x,z}\left[\sigma^{\prime}(x_{w})\sigma(x_{w})||w||^{2}x+\sigma^{2}(x_{w})w+b\sigma(x_{w})x+b\sigma^{\prime}(x_{w})x_{w}x-\frac{1}{\sqrt{\Delta_{t}}}\left(\sigma(x_{w})z+\sigma^{\prime}(x_{w})z_{w}x\right)\right] (B.26) \displaystyle=-\mathbb{E}\,_{x}\left[x\left(\underbrace{\sigma^{\prime\prime}(x_{w})||w||^{2}-\sigma^{\prime}(x_{w})\sigma(x_{w})||w||^{2}-b\sigma(x_{w})-b\sigma^{\prime}(x_{w})x_{w}}_{F_{\sigma}}\right)+w\left(\underbrace{2\sigma^{\prime}(x_{w})-\sigma^{2}(x_{w})}_{G_{\sigma}}\right)\right] (B.27) We also have the derivative with respect to b : \displaystyle-\nabla_{b}\mathcal{L}_{t} \displaystyle=-\mathbb{E}\,_{x,z}\left[\sigma(x_{w})x_{w}+b||x||^{2}-\frac{1}{\sqrt{\Delta_{t}}}\left(x^{\top}z\right)\right] (B.28) \displaystyle=-\mathbb{E}\,_{x,z}\left[\sigma(x_{w})x_{w}+b||x||^{2}-1\right] (B.29) Since \text{Var}(x)=1 , (w,b)=(0,1) is an critical point, and around it the dynamics will be similar to the previously examined case: from Eq. B.29 we can see that the dynamics attract towards b=1 .