Manuscript Offprint
arXiv:2610.20850Denoising Score Matching in Diffusion Models: The Effect of Rank Constraints on Generalization
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Architectural biases restrict the class of functions that a diffusion score network can represent, but their effect on generalization remains poorly understood. We study denoising score matching with score networks having a rank constrained non-linear term and a linear skip connection. Numerical experiments with trainable three-layer networks on data supported on an embedded sphere show that increasing rank lowers training error, but its effect on test error depends on sample size and data dimension. To explain this behavior, we analyze a random-feature score model under rank constraint with Gaussian data supported on a low-dimensional subspace. We characterize the optimal rank-constrained estimator through a truncated singular value decomposition and derive asymptotically precise limiting training and test errors when sample size (n), feature width (p), data dimension (D), and rank (r) scale proportionally with the ambient dimension (d). The resulting spectral characterization distinguishes eigenmodes that improve the empirical fit from those that improve population accuracy. It also identifies the dimension of the orthogonal complement of the data subspace as a natural rank threshold. The theoretical learning curves qualitatively reproduce the observed rank-dependent overfitting, providing a tractable account of how bottlenecks or rank constraints can regularize score estimation and why their effectiveness depends on data dimension and sample size.
1 INTRODUCTION
Diffusion models have achieved remarkable success in high-dimensional generative modeling, yet their ability to memorize training data remains an important theoretical and practical concern (Somepalli et al., 2023; Carlini et al., 2023). In the highly overparameterized regime, score networks can in principle fit increasingly fine details of the training dataset, and at sufficiently small noise levels the learned score may become strongly influenced by individual training samples (Gu et al., 2023; Yoon et al., 2023). At the same time, practical diffusion architectures often generate novel samples rather than simply reproducing their training sets. Understanding which architectural biases prevent a score model from collapsing toward such memorizing solutions is therefore important for explaining the generalization behavior of diffusion models.
A prominent feature of practical score networks is their encoder–decoder structure (Ronneberger et al., 2015). Although these models may contain a very large number of parameters, information is repeatedly compressed into lower-dimensional representations before being decoded back to the ambient data space. This suggests that architectural bottlenecks may act as a restriction on the class of score functions that can be learned. In particular, they may prevent the model from independently fitting the score around every training example, while retaining the dominant directions needed to represent the underlying data distribution. This motivates the hypothesis that a form of effective low-rank structure in the learned score can suppress overfitting.
In this work, we isolate this mechanism through two complementary models of the score function. First, we numerically study the learning curves of a three-layer neural network with a bottleneck structure. Second, we consider a random-feature parameterization with an explicit rank constraint on the learned second-

Figure 1: A qualitative illustration of our findings.
layer weight matrix. Both models comprise an additional linear skip connection term. The rank constraint in the random-feature model acts as an idealized encoder-decoder bottleneck, forcing the learned vector field to factor through a low-dimensional latent space. For this model, we derive analytical expressions for the limiting learning curves. By comparing these theoretical predictions with our empirical findings, we investigate how the rank of the learned score affects generalization in a controlled setting.
Our analysis shows how restricting the rank can qualitatively change the learning behavior of denoising score matching. High-rank models have sufficient flexibility to exploit sample-specific directions and can approach solutions strongly tied to the empirical dataset, whereas reducing the rank can suppresses these directions and force the estimator to retain only collective structure shared across samples. The resulting framework provides a simple theoretical model for studying how bottlenecks in practical score architectures can act as an regularizer against memorization/overfitting.
-
When , the training samples span the data subspace almost surely in the models considered. Increasing rank below improves both training and test errors by allowing the model to learn more of the score component orthogonal to the data subspace. This behavior motivates us to interpret the upper-left part of Fig. 1 as generalization region.
-
Increasing rank beyond introduces additional flexibility beyond that required by the data distribution. Training error continues to decrease, while test error can increase or plateau. The upper-right region represents this tendency toward overfitting. Additional training samples can mitigate this effect.
-
When , the training samples leave some directions of genuine data variation unobserved. The model can mistake these directions for normal space to the data subspace, so even a score with rank less than can generalize poorly. This explains the overfitting region below the horizontal boundary and why restricting rank alone is insufficient.
-
Combining limited sample size with a large rank can further increase the separation between training and test errors, motivating the severe-overfitting region in the lower-right corner.
These regions describe qualitative tendencies rather than sharp phase boundaries. In particular, for certain values of , , additional rank can be detrimental even below , including when . Our random-feature analysis characterizes this dependence through limiting training and test errors, while the numerical study illustrate how it appears in networks with learned features.
2 RELATED WORKS
Diffusion models and score estimation. Diffusion models learn a generative process through denoising and score estimation (Sohl-Dickstein et al., 2015; Song and Ermon, 2019; Ho et al., 2020; Song et al., 2020). Their sampling accuracy has been studied under assumptions on the error of the learned score (Chen et al., 2022; Benton et al., 2023; Chen et al., 2023a; Bortoli, 2022). These guarantees motivate a complementary question: how do finite data and restrictions on the score network determine that error? Analyses of score learning and distribution estimation address this question in several tractable settings (Cui et al., 2023; Shah et al., 2023; Han et al., 2023; Chen et al., 2023b; Cui et al., 2025). Our focus is the effect of an explicit architectural rank constraint on denoising score matching and its generalization error.
Memorization, data geometry, and architectural biases Empirical evidence of training-data replication (Somepalli et al., 2023; Carlini et al., 2023) has motivated theoretical studies of the empirical optimal score and the resulting sampling dynamics (Biroli et al., 2024; Raya and Ambrogioni, 2023; Ambrogioni, 2024; Achilli et al., 2024). Manifold and geometric perspectives further reveal how data structure influences memorization (Pidstrigach, 2022; Ross et al., 2024; Achilli et al., 2025; Wang and Pehlevan, 2025; George et al., 2025; George and Macris, 2026; Merger and Goldt, 2026). Architectural constraints can favor shared structure over memorization. Kamb and Ganguli (2024) show that locality and equivariance enable novel recombinations of training-image patches, while Buchanan et al. (2025) identify a capacity-dependent crossover between memorizing and generalizing models' training losses. Ye et al. (2025) distinguish empirical from population score estimation and their network-size requirements, supporting capacity control as a means to reduce memorization. Kadkhodaie et al. (2023) connect generalization to learned denoisers that perform shrinkage in geometry-adaptive harmonic bases, highlighting how architectural inductive biases shape the directions used for denoising.
Random features and precise learning curves. Random-feature score models provide a tractable setting for studying finite-sample generalization (Li et al., 2023; Saha and Tran, 2025). George et al. (2026) derive asymptotically precise test and train errors for Gaussian data, identifying the joint influence of sample size, feature width, and the number of noise realizations used in training. Bonnaire et al. (2025) identify a separation between the training times at which generalization and memorization emerge. More recently, Latourelle-Vigeant et al. (2026) derive precise risk trajectories for kernel score under gradient flow, distinguishing generalizing, interpolating, and memorizing regimes. Closer to our work, Urfin et al. (2026) connect generalization and memorization to distinct spectral components of the neural tangent kernel Gram matrix and investigate spectral truncation as a regularizer. In contrast, we impose explicit output rank constraints on a nonlinear random-feature model for data supported on a low-dimensional subspace.
3 PRELIMINARIES
We briefly discuss some basics of diffusion models, and the score models that we use.
3.1 Diffusion Models
Given i.i.d. samples from an unknown distribution on , diffusion models draw new samples from by time reversing a stochastic process. This stochastic process gradually transforms into a tractable reference distribution, such as the isotropic Gaussian. We use an Ornstein-Uhlenbeck (OU) process (Gardiner, 2009) for this forward diffusion:
where is a standard Brownian motion in . Conditional on , the distribution of is , where and , so that . As , and , and the distribution of converges to the -dimensional standard Gaussian. For , its marginal density is
For a fixed , the reverse process starts from and evolves backward in time according to
where is a different instance of standard Brownian motion. Classical results state that and have the same marginal distribution at every (Anderson, 1982; Haussmann and Pardoux, 1986), yielding . In practice, the unknown terminal distribution is approximated by for sufficiently large . Implementing the reverse process also requires estimating the unknown score function .
Denoising score matching (DSM) (Vincent, 2011) estimates this score using noisy observations , where and are independent. The conditional score provides the tractable target for , suggesting the population objective
Replacing the expectation over by the training samples gives the empirical loss studied in this work:
In practice, the score function s is chosen from a parametric function class and trained by minimizing this empirical objective, subject to the model constraints or regularization. We next introduce the rank-constrained score models used in our study.
3.2 Score Model for Numerical Study: Rank Constrained 3-Layer NN
For each diffusion time t, we consider the score model
(5) where , , , are learnable parameters, and is a non-linear activation function. Here, is the hidden-layer width and controls the rank of the nonlinear component. The parameters are learned independently at each .
The first term, , acts as a linear skip connection. The remaining term provides a nonlinear, learnable correction whose output belongs to the column space of . Since , this correction is restricted to an output subspace of dimension at most . Small values of therefore impose a strong bottleneck, whereas larger values allow the score model to represent a richer collection of directions.
This parameterization allows us to study whether rank constraining helps in capturing the population-level geometry of the data while preventing the model from fitting sample-specific fluctuations. In particular, we investigate whether increasing r reduces the training error while eventually increasing the train–test gap, indicating a transition from population-level learning to finite-sample overfitting.
3.3 Theoretical Score Model: Random Features with a Skip Connection
For our theoretical analysis, we consider a random-feature neural network (Rahimi and Recht, 2007) with fixed first-layer weights, a trainable second layer, and a linear skip connection. In particular, the score parameterization from to given by
where has entries drawn i.i.d. from , is an activation function applied elementwise, and contains the trainable weights.
We impose the constraint , which restricts the nonlinear correction to an output subspace of dimension at most . This provides a tractable counterpart to the bottleneck architecture used in our numerical study. The feature width controls the size of the fixed nonlinear representation, while controls the rank of the learned component.
Random-feature models admit precise theoretical analyses while reproducing phenomena observed in more complex neural networks, including double descent in overparameterized regimes (Mei and Montanari, 2022; Hu et al., 2024; Bodin and Macris, 2021, 2022).
4 NUMERICAL STUDY
For our numerical experiments, the data distribution is uniform distribution on a sphere embedded in : , , , . Thus the data manifold has intrinsic dimension , and is embedded in a linear subspace of dimension .
For each rank r, we train a separate score model given in (5). We sweep r and optimize the denoising score-matching objective (4). Fig. 2 reports train and test error estimates of this same objective after 30k Adam steps, averaged over three random seeds. More details on the simulation can be found in Appendix C.
First, we observe that the train error decreases monotonically with increasing r across all settings. However, the behavior of test error depends on the samples size n, and data dimension D. For , the test error decreases as we increase r till . Beyond , we observe an abrupt change in behavior: with additional rank, the test error increases or plateaus, indicating finite-sample overfitting. Increasing n suppresses this effect strongly at smaller D, but does not eliminate it at larger D. When , the sudden change in test error at disappears. This is because the clean training samples cannot span the full data subspace, making the unseen data subspace directions a source of poor generalization.
The observed rank dependence is consistent with learning the score component in the space orthogonal to the data span, whose dimension is . Section 6 discusses these aspects in detail.
5 THEORETICAL STUDY
We analyze the random-feature score model given in (6) at a fixed diffusion time. Suppressing the time index, we write
where W is held fixed and A is learned subject to a rank constraint. We consider Gaussian data with , providing a tractable model of data supported on a D-dimensional subspace of the ambient space.
Given independent training samples , let , where is independent of the data. The rank-constrained DSM estimator solves

Figure 2: Simulation results for our numerical model, with tanh activation at , .
To characterize the solution, define matrices
Here, U and V are the empirical feature second moment and feature-target cross moment, respectively. The following theorem gives an exact finite-dimensional solution to (7) through a truncated singular value decomposition.
Theorem 1 (Rank-constrained Random Features estimator). Fix , let and , and condition on the training samples and . Assume that . Let and . Write , with singular values , and let retain the largest singular values. Then a solution to (7) is
Proof Sketch. The normal equation gives
Since multiplication by preserves rank, the Eckart–Young theorem yields (8).
Equation 8 shows that rank truncation retains the leading singular modes after accounting for the empirical feature covariance.
We next state the limiting characterization of test and train errors for the rank constrained solution. First, we define test and train loss as follows:
Assumption 1 (Activation function). We assume that for , and for all , . Set , and . Constants , and are as defined in eqns (17), (18), (19) in Appendix A.2. We assume that and are positive.
Theorem 2 (Limiting characterization of test and train errors). Fix and let with , for held fixed. Let the training samples be independent draws from , independent of the i.i.d. standard Gaussian entries of . Let satisfy Assumption 1, and suppose that the Gaussian equivalence principle given in Assumption 2 of Appendix A.2. is valid.
Let be obtained by solving the system of fixed point equations (34) corresponding to the limiting block resolvent of (28). For , define
(9)
The limiting eigenvalue distribution of has Stieltjes transform
Suppose there is a satisfying
Define
Then, with , the estimator (8) satisfies
Proof sketch. We outline the proof here. Complete steps can be found in Appendix A.2. Expanding the DSM losses gives quadratic, cross, and independent terms; see (15) and (27). The test error involves population moments, while the training error involves the empirical moments that define the optimizer.
The first step is to obtain tractable representations of these moment matrices. Using Hermite expansions and truncation up to leading order give (16). The Gaussian equivalence principle (Gerace et al., 2020; Goldt et al., 2022; Hu and Lu, 2023; Montanari and Saeed, 2022) then replaces the nonlinear noise-averaged feature matrix , for the limiting trace quantities under consideration, by
where has independent standard Gaussian entries and is independent of W and X. The linear term preserves the feature-data correlations, while represents the residual feature variance. This is an asymptotic equivalence for the relevant observables, rather than an entrywise identity. It reduces the moment matrices to expressions involving Gaussian random matrices and the coefficients .
Next, Theorem 1 implements the rank constraint by retaining the leading singular modes of . Their squared singular values are the nonzero eigenvalues shared by and . Stone's formula converts this truncation into a resolvent integral. For example, with a cutoff separating the retained eigenvalues and an upper endpoint above the spectrum,
The analogous formula for handles the quadratic term. In the proportional limit, the rank fraction selects the upper-tail cutoff through (11).
These representations reduce the losses to normalized traces of rational expressions in random matrices. Set . The identity
expresses the Stieltjes transform of through , while the population weights produce the traces in (25). To compute their limits, the linear-pencil technique embeds these rational expressions into selected inverse blocks of the larger matrix in (28). Its random blocks depend linearly on the underlying Gaussian matrices, and block matrix inverse recovers the required resolvents. A computation rooted in operator-valued free probability theory (Far et al., 2006; Helton et al., 2018; Adlam and Pennington, 2020; Bodin, 2024; Subramonian and Dohmatob, 2025) yields the fixed-point system (34) for the limiting normalized block traces. Extracting the appropriate blocks gives (9) and (10).
Finally, summing up the quadratic and cross contributions to test error gives (12). For training error, the empirical normal equation combines the quadratic and cross terms into a single term. Applying spectral integration with the rank cutoff and adding the constant term gives the stated learning curves. The spectral integrals are understood with a finite upper endpoint beyond the spectral support, before taking .
The characterization reduces the computation into solving the fixed-point equations (34), finding the spectral cutoff (11), and evaluating two integrals. Rank enters through the cutoff , while , , and shape the resolvent functions and . Fig. 3 presents the theoretical learning curves and finite-dimensional simulations, which qualitatively reproduce the numerical study's dependence on rank, sample size, and data dimension. Training error decreases with rank, whereas test error exhibits distinct behaviors. For smaller and , test error initially decreases before rising sharply at , while increasing substantially suppresses this deterioration. At larger and smaller , test error increases throughout the rank range, showing that additional rank can be detrimental even below . For large however, the variation in test error is small. Section 6 discusses the mechanisms underlying these observations. Fig. 4 shows the limiting spectrum of , whose leading modes are retained by the rank constraint.
6 DISCUSSION
Figs. 2 and 3 (and Figs. 6 and 7 in Appendix B.1) show that increasing the rank of the nonlinear score component improves the fit to the training dataset without always improving generalization. We organize these observations around the four regimes in Fig. 1, determined by the sample threshold n = D and the reference rank r = d - D. These thresholds help explain the competing effects of model expressivity and estimation errors, but do not define sharp boundaries between decreasing and increasing test error.
Sufficient samples and restricted rank: , . When , the clean training samples span the data subspace almost surely for the distributions considered here. In this regime, increasing rank can improve generalization by allowing the nonlinear

Figure 3: Analytical and finite dimensional simulation results for our theoretical model with tanh activation at , . Top line: test and train errors. Bottom line: Spectral selection thresholds .

Figure 4: Spectrum of M with tanh activation at , .
score component to represent more directions orthogonal to that subspace. The underlying geometry is particularly transparent in the Gaussian case: the noisy covariance is , and the ideal score is . The skip connection already gives the correct score along the data subspace, while the remaining component acts in its normal space and has rank . A rank below cannot represent this component fully, and the factor makes the missing normal directions especially consequential at small diffusion time. This mechanism explains the initial decrease of both training and test errors observed at smaller . The spectra in Fig. 4 offer a complementary perspective: at , an upper band is separated from a lower component, with clearer separation for larger . In the population setting with an unconstrained linear score, the analogue of matrix is given by . It has nonzero eigenvalues, all equal to . This reference spectrum suggests that the upper band in Fig. 4 primarily reflects normal-space directions. However, it should be noted that the empirical setting and the random-feature representation alter both the spectrum and the retained directions. Consequently, even when , additional rank below need not always improve test error.
Sufficient samples and excess rank: , . Beyond , additional rank is no longer needed to represent the normal-space component of the Gaussian population score. It nevertheless provides further flexibility to fit the training samples. Theorem 1 makes this distinction precise: the rank constraint retains the largest singular modes of
, or equivalently the largest eigenvalues of M, and admitting the next mode decreases the training loss by . The effect on test error also depends on the direction of that mode and the population feature moments. In Theorem 2, this distinction appears through function which is different from the pure spectral object . Thus, a large empirical eigenvalue establishes a training benefit without ensuring a corresponding test benefit. Additional modes can capture sample-specific structure, leading to a plateau or an increase in test error despite continued improvement in training error. This interpretation is consistent with the approximate plateau observed for the learned network at smaller D/d and n/d = 2, and with the more pronounced train-test separation at larger D/d. Increasing sample size reduces estimation uncertainty, but does not eliminate the effects of excessive rank at the sample sizes considered.
Insufficient samples and restricted rank: , . Restricting rank is less effective when the training samples do not span the true data subspace. When , at least directions of genuine data variation remain unobserved. A model can confuse these directions with the normal space and erroneously learn a strong denoising response along these directions. Due to its larger magnitude, the learned score component along the unseen directions are retained even under rank constraint. This mechanism is consistent with the increasing test error at larger and , even within the range . At and , Fig. 4 shows appreciable density between the lower and upper parts of the spectrum, consistent with a less distinct separation of spectral components. The spectrum alone does not identify the alignment of individual eigenmodes, but it illustrates why selecting eigenmodes that benefit the empirical training need not isolate the directions required for generalization.
Insufficient samples and excess rank: , . Combining insufficient samples with a large rank allows both sources of overfitting to act together. The training data leave part of the true data subspace unresolved, while the additional rank permits the model to fit more directions beyond those needed for the population normal-space component. Training error continues to decrease, but this added flexibility can strengthen responses along unobserved data directions and capture further sample-specific structure, widening the train–test gap. This combination motivates the severe-overfitting region in Fig. 1 and is consistent with the substantial deterioration at higher ranks for larger and .
Fig. 5, which plots training and test errors against for two values of , further illustrates how sample size changes the consequences of a given rank constraint. Once , the ambiguity caused by an unobserved part of the data span essentially disappears.


Figure 5: Theoretical results with tanh activation at , .
Together, the numerical and theoretical results show that a useful rank constraint depends on both the data dimension and the sample size available to estimate the data geometry. The random-feature model isolates a mechanism for rank-dependent overfitting: empirical spectral selection rewards training fit, whereas generalization also depends on the population alignment of the selected directions.
7 CONCLUSION, LIMITATIONS, AND FUTURE WORK
We studied how output-rank constraints affect generalization in denoising score matching. Experiments with trainable networks and a proportional-limit random-feature analysis show that additional rank can improve training fit while worsening test error. Conversely, a rank-constraint can indeed suppress overfitting. The spectral characterization of M explains this tradeoff through the population contributions of the retained modes, and highlights the joint role of data geometry and sample size. These findings establish rank constraints as a useful, but data-dependent, form of regularization for score estimation.
Our study isolates the effect of rank, which requires a tractable framework for rank control. The theoretical analysis considers fixed random features and Gaussian data supported on a linear subspace, while the numerical experiments use trainable networks with data on an embedded sphere. Their qualitative agreement supports the proposed mechanism, although the theory is not intended to predict every learning curve of a network with learned features. Moreover, the errors are evaluated at a fixed diffusion time t. Connecting these results to generated-sample quality and training-data replication requires studying the complete reverse pro-cess. Explicit output-rank constraints thus provide a tractable model of an architectural bottleneck, whose relationship to practical encoder-decoder networks remains to be explored.
Future work includes extending the analysis to learned features and more general data geometries, and developing frameworks to study low-rank effects in practical networks.
Acknowledgements
The work of A. J. G. has been supported by Swiss National Science Foundation grant number 200021-204119.
AI use statement
In this work, we have not used generative AI tools for problem formulation, mathematical analysis, and the rest of the required disclosure tasks are not applicable to this work. We used generative AI tools for 1) developing codes required for simulations and plotting, and 2) assist in writing the paper. We have reviewed all AI-assisted work. LLM-generated code was verified and tested for correctness by an author. Portions of text written with the help of AI tools were reviewed carefully by the authors. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.
References
Achilli, B., Ambrogioni, L., Lucibello, C., Mézard, M., and Ventura, E. (2025). Memorization and Generalization in Generative Diffusion under the Manifold Hypothesis. arXiv:2502.09578 [cond-mat].
Achilli, B., Ventura, E., Silvestri, G., Pham, B., Raya, G., Krotov, D., Lucibello, C., and Ambrogioni, L. (2024). Losing dimensions: Geometric memorization in generative diffusion. arXiv:2410.08727.
Adlam, B. and Pennington, J. (2020). The Neural Tangent Kernel in High Dimensions: Triple Descent and a Multi-Scale Theory of Generalization. In Proceedings of the 37th International Conference on Machine Learning, pages 74–84. PMLR.
Ambrogioni, L. (2024). In Search of Dispersed Memories: Generative Diffusion Models Are Associative Memory Networks. Entropy, 26(5):381.
Anderson, B. D. O. (1982). Reverse-time diffusion equation models. Stochastic Processes and their Applications, 12(3):313–326.
Benton, J., Bortoli, V. D., Doucet, A., and Deligiannidis, G. (2023). Nearly d-Linear Convergence Bounds for Diffusion Models via Stochastic Localization. In
The Twelfth International Conference on Learning Representations.
Biroli, G., Bonnaire, T., de Bortoli, V., and Mézard, M. (2024). Dynamical regimes of diffusion models. Nature Communications, 15(1):9957.
Bodin, A. and Macris, N. (2021). Model, sample, and epoch-wise descents: exact solution of gradient flow in the random feature model. In Advances in Neural Information Processing Systems, volume 34, pages 21605–21617. Curran Associates, Inc.
Bodin, A. and Macris, N. (2022). Gradient flow in the gaussian covariate model: exact solution of learning curves and multiple descent structures. arXiv:2212.06757 [stat].
Bodin, A. P. M. (2024). Random matrix methods for high-dimensional machine learning models. PhD thesis, EPFL.
Bonnaire, T., Urfin, R., Biroli, G., and Mézard, M. (2025). Why Diffusion Models Don’t Memorize: The Role of Implicit Dynamical Regularization in Training. arXiv:2505.17638 [cs].
Bortoli, V. D. (2022). Convergence of denoising diffusion models under the manifold hypothesis. Transactions on Machine Learning Research.
Buchanan, S., Pai, D., Ma, Y., and Bortoli, V. D. (2025). On the Edge of Memorization in Diffusion Models. arXiv:2508.17689 [cs].
Carlini, N., Hayes, J., Nasr, M., Jagielski, M., Sehwag, V., Tramèr, F., Balle, B., Ippolito, D., and Wallace, E. (2023). Extracting training data from diffusion models. In Proceedings of the 32nd USENIX Conference on Security Symposium, SEC '23, pages 5253–5270, USA. USENIX Association.
Chen, H., Lee, H., and Lu, J. (2023a). Improved analysis of score-based generative modeling: user-friendly bounds under minimal smoothness assumptions. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of ICML'23, pages 4735–4763, Honolulu, Hawaii, USA. JMLR.org.
Chen, M., Huang, K., Zhao, T., and Wang, M. (2023b). Score Approximation, Estimation and Distribution Recovery of Diffusion Models on Low-Dimensional Data. In Proceedings of the 40th International Conference on Machine Learning, pages 4672–4712. PMLR.
Chen, S., Chewi, S., Li, J., Li, Y., Salim, A., and Zhang, A. (2022). Sampling is as easy as learning the score: theory for diffusion models with minimal data assumptions. In The Eleventh International Conference on Learning Representations.
Cui, H., Krzakala, F., Vanden-Eijnden, E., and Zdeborova, L. (2023). Analysis of Learning a Flow-based Generative Model from Limited Sample Complexity. In The Twelfth International Conference on Learning Representations.
Cui, H., Pehlevan, C., and Lu, Y. M. (2025). A precise asymptotic analysis of learning diffusion models: theory and insights. arXiv:2501.03937 [cs].
Far, R. R., Oraby, T., Bryc, W., and Speicher, R. (2006). Spectra of large block matrices. arXiv:cs/0610045.
Gardiner, C. W. (2009). Stochastic methods: a handbook for the natural and social sciences. Number 13 in Springer series in synergetics. Springer, Berlin Heidelberg, 4th ed edition.
George, A. J. and Macris, N. (2026). Asymptotic Learning Curves for Diffusion Models with Random Features Score and Manifold Data. arXiv:2603.22962 [cs.LG].
George, A. J., Veiga, R., and Macris, N. (2025). Analysis of Diffusion Models for Manifold Data. In 2025 IEEE International Symposium on Information Theory (ISIT), pages 1–6. ISSN: 2157-8117.
George, A. J., Veiga, R., and Macris, N. (2026). Denoising score matching with random features: insights on diffusion models from precise learning curves*. Journal of Statistical Mechanics: Theory and Experiment, 2026(8):084009.
Gerace, F., Loureiro, B., Krzakala, F., Mezard, M., and Zdeborova, L. (2020). Generalisation error in learning with random features and the hidden manifold model. In Proceedings of the 37th International Conference on Machine Learning, pages 3452–3462. PMLR.
Goldt, S., Loureiro, B., Reeves, G., Krzakala, F., Mezard, M., and Zdeborova, L. (2022). The Gaussian equivalence of generative models for learning with shallow neural networks. In Proceedings of the 2nd Mathematical and Scientific Machine Learning Conference, pages 426–471. PMLR.
Gu, X., Du, C., Pang, T., Li, C., Lin, M., and Wang, Y. (2023). On Memorization in Diffusion Models. arXiv:2310.02664 [cs].
Han, Y., Razaviyayn, M., and Xu, R. (2023). Neural Network-Based Score Estimation in Diffusion Models: Optimization and Generalization. In The Twelfth International Conference on Learning Representations.
Haussmann, U. G. and Pardoux, E. (1986). Time Reversal of Diffusions. The Annals of Probability, 14(4):1188–1205.
Helton, J. W., Mai, T., and Speicher, R. (2018). Applications of realizations (aka linearizations) to
free probability. Journal of Functional Analysis, 274(1):1–79.
Ho, J., Jain, A., and Abbeel, P. (2020). Denoising Diffusion Probabilistic Models. In Advances in Neural Information Processing Systems, volume 33, pages 6840–6851. Curran Associates, Inc.
Hu, H. and Lu, Y. M. (2023). Universality Laws for High-Dimensional Learning With Random Features. IEEE Transactions on Information Theory, 69(3):1932–1964. Conference Name: IEEE Transactions on Information Theory.
Hu, H., Lu, Y. M., and Misiakiewicz, T. (2024). Asymptotics of Random Feature Regression Beyond the Linear Scaling Regime. arXiv:2403.08160 [stat].
Kadkhodaie, Z., Guth, F., Simoncelli, E. P., and Mallat, S. (2023). Generalization in diffusion models arises from geometry-adaptive harmonic representations. In The Twelfth International Conference on Learning Representations.
Kamb, M. and Ganguli, S. (2024). An analytic theory of creativity in convolutional diffusion models. arXiv:2412.20292 [cs].
Kingma, D. P. and Ba, J. (2017). Adam: A Method for Stochastic Optimization. arXiv:1412.6980 [cs].
Latourelle-Vigeant, H., Chewi, S., Pooladian, A.-A., Sous, J., and Misiakiewicz, T. (2026). Generalization, memorization, and overfitting for diffusion models trained in the lazy high-dimensional regime. arXiv:2608.23938 [stat.ML].
Li, P., Li, Z., Zhang, H., and Bian, J. (2023). On the Generalization Properties of Diffusion Models. Advances in Neural Information Processing Systems, 36:2097–2127.
Mei, S. and Montanari, A. (2022). The Generalization Error of Random Features Regression: Precise Asymptotics and the Double Descent Curve. Communications on Pure and Applied Mathematics, 75(4):667–766.
Merger, C. and Goldt, S. (2026). Generalization Dynamics of Linear Diffusion Models. arXiv:2505.24769 [stat.ML].
Montanari, A. and Saeed, B. N. (2022). Universality of empirical risk minimization. In Proceedings of Thirty Fifth Conference on Learning Theory, pages 4310–4312. PMLR.
Pidstrigach, J. (2022). Score-Based Generative Models Detect Manifolds. In Advances in Neural Information Processing Systems, volume 35, pages 35852–35865. Curran Associates, Inc.
Rahimi, A. and Recht, B. (2007). Random Features for Large-Scale Kernel Machines. In Advances in
Neural Information Processing Systems, volume 20. Curran Associates, Inc.
Raya, G. and Ambrogioni, L. (2023). Spontaneous symmetry breaking in generative diffusion models. In Advances in Neural Information Processing Systems, volume 36, pages 66377–66389. Curran Associates, Inc.
Ronneberger, O., Fischer, P., and Brox, T. (2015). U-Net: Convolutional Networks for Biomedical Image Segmentation. In Navab, N., Hornegger, J., Wells, W. M., and Frangi, A. F., editors, Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015, pages 234–241, Cham. Springer International Publishing.
Ross, B. L., Kamkari, H., Wu, T., Hosseinzadeh, R., Liu, Z., Stein, G., Cresswell, J. C., and Loaiza-Ganem, G. (2024). A Geometric Framework for Understanding Memorization in Generative Models. In The Thirteenth International Conference on Learning Representations.
Saha, E. and Tran, G. (2025). Generalization Bound for Diffusion Models using Random Features. arXiv:2310.04417 [stat].
Shah, K., Chen, S., and Klivans, A. (2023). Learning Mixtures of Gaussians Using the DDPM Objective. Advances in Neural Information Processing Systems, 36:19636–19649.
Sohl-Dickstein, J., Weiss, E., Maheswaranathan, N., and Ganguli, S. (2015). Deep Unsupervised Learning using Nonequilibrium Thermodynamics. In Proceedings of the 32nd International Conference on Machine Learning, pages 2256–2265. PMLR.
Somepalli, G., Singla, V., Goldblum, M., Geiping, J., and Goldstein, T. (2023). Diffusion Art or Digital Forgery? Investigating Data Replication in Diffusion Models. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 6048–6058.
Song, Y. and Ermon, S. (2019). Generative Modeling by Estimating Gradients of the Data Distribution. In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc.
Song, Y., Sohl-Dickstein, J., Kingma, D. P., Kumar, A., Ermon, S., and Poole, B. (2020). Score-Based Generative Modeling through Stochastic Differential Equations. In International Conference on Learning Representations.
Subramonian, A. and Dohmatob, E. (2025). auto-fpt: Automating Free Probability Theory Calculations for Machine Learning Theory. arXiv:2504.10754 [cs.LG].
Urfin, R., Bonnaire, T., Biroli, G., and Mézard, M. (2026). First Learn, Then Memorize: The Spectral Bias of Diffusion Models. arXiv:2609.35377 [cs.LG].
Vincent, P. (2011). A Connection Between Score Matching and Denoising Autoencoders. Neural Computation, 23(7):1661–1674.
Wang, B. and Pehlevan, C. (2025). An Analytical Theory of Spectral Bias in the Learning Dynamics of Diffusion Models.
Ye, Z., Zhu, Q., Tao, M., and Chen, M. (2025). Provable Separations between Memorization and Generalization in Diffusion Models.
Yoon, T., Choi, J. Y., Kwon, S., and Ryu, E. K. (2023). Diffusion Probabilistic Models Generalize when They Fail to Memorize. In ICML 2023 Workshop on Structured Probabilistic Inference and Generative Modeling.
Supplementary Materials
A PROOFS
We first derive the finite-dimensional rank-constrained optimizer. We then express its training and test errors as spectral integrals and compute the required limiting transforms using a linear pencil. The moment calculations underlying this reduction are collected in Section A.2.6.
A.1 Proof of Theorem 1
Let . Consider and . Let . We have the following minimization problem
Condition on the training samples and , and assume as in Theorem 1. Differentiating the quadratic objective gives the normal equation , so the unconstrained optimizer is
where
To impose the rank constraint, expand the objective around . The mixed term vanishes by the normal equation associated with (13):
The residual term is independent of . Dropping this term and positive multiplicative constant , and using (14), reduces the optimization to a matrix approximation problem:
Let be the singular value decomposition. The Eckart–Young theorem in the Frobenius norm therefore gives
where retains the r largest singular values and sets the others to zero.
A.2 Proof of Theorem 2
The proof proceeds by reducing the losses to weighted resolvent traces, obtaining their limiting values from (34), and recovering the rank-truncated errors by Stieltjes inversion. Barred moments average over an independent test sample and its noise; empirical moments condition on the clean training samples.
A.2.1 Test Error
We assume that . The data covariance is diagonal with first diagonal entries equal to 1 and the remaining entries equal to 0. Let , the normalized trace of the covariance matrix. Accordingly, write , where is a Gaussian random matrix, and partition into its data-subspace and normal-space blocks. Expanding the squared residual separates the test error into a quadratic term, a cross term, and an estimator-independent term. With , we have
(15)
where
We need to compute in order to get an expression for . Note that, in order to derive an asymptotically precise expression for , it suffices to obtain these moment matrices up to leading order. In particular, we can neglect terms entry-wise in these matrices, for and for the diagonal terms can be in . This can be justifies as follows. By union bound, such an error matrix will have Frobenius with probability tending to 1 faster than any power. In the expressions for test and train errors, these error matrices typically appears as , where is a matrix with operator norm w.r.t. . Using standard inequalities, we can upper bound as
where the last equality holds with probability tending to 1 faster than any inverse power. Thus, asymptotically these error terms vanish with high probability. Section A.2.6 develops the moment calculations underlying the following asymptotic representations, which we use in the spectral reduction below:
where , , and
Here, for standard Gaussian random variables with correlation , we define .
Assumption 2 (Gaussian equivalence). Set and define the Gaussian surrogate
where has i.i.d. entries and is independent of and , and
For , define
and the normalized traces
Assume and that, in the proportional limit of Theorem 2, for every fixed with ,
Conditioning on this assumption, permits replacing by in these four limiting traces, with the same and in both models.
Let . Note that is diagonal with first diagonal entries equal to and the remaining entries equal to . To incorporate rank truncation into (15), introduce the two Gram matrices associated with the singular value decomposition of :
(20)
Recall that , , , and . The matrices in (20) have dimensions and , respectively, and share the same nonzero eigenvalues. Let be the threshold such that fraction of eigenvalues of are above . We can use Stone's integration representation to get the rank-truncated versions of and . Let be the th column of , and be the corresponding singular value:
(21)
Similarly,
Using (20), the output-space resolvent can be expressed through the feature-space matrix :
(23)
Let . Substituting (16) into the definition of and using gives
Because , multiplication by removes the data-dependent term:
and
Next, for the quadratic term in (15), we substitute the optimizer and apply (21). Moving through the resolvent produces ; inserting (16) then separates the contributions of the two blocks of :
where
For the cross term in (15), use (24), followed by (22) and (23).
The test error therefore requires the limiting weighted traces in (25). Determining also requires the spectrum of . Taking the normalized trace of (23) gives its Stieltjes transform:
where
To summarize, we need the four traces to compute the test error. After expressing training error also in terms of these traces, we later construct a linear pencil that encodes the four traces.
A.2.2 Train Error
The training error has the same quadratic structure as (15), with empirical moments replacing population moments. These terms simplify because the same empirical moments define .
(27)
The extra term involving accounts for the different numbers of zero eigenvalues of and . It contributes no mass above the positive cutoff. For the cross term, use from (13):
Combining the two contributions with their coefficients in (27) leaves a negative upper-tail spectral integral. Unlike the test error, the training error requires only the eigenvalue distribution of .
A.2.3 Linear Pencil
The pencil replaces products of random matrices in by a larger matrix with blocks linear in , and . Selected inverse blocks recover the traces in (25) and (26). Set . With block sizes
, the pencil is
Here, each zero has the corresponding block dimensions. Eliminating the auxiliary blocks of (28) by block inversion recovers and gives the following identities. Block indices in this display start at one:
Operator-valued free probability theory then characterizes the limiting normalized block traces through a closed system of fixed-point equations, from which the limits of are recovered.
A.2.4 Fixed-Point Equations
We use the auto-fpt library of Subramonian and Dohmatob (2025) to symbolically generate the fixed-point equations from the linear pencil in (28). The library automates free-probability calculations for normalized traces of rational expressions in large random matrices. Applied to our pencil, it produces equations for the limiting block traces needed to recover and the Stieltjes transform of . We present the resulting system below after eliminating redundant variables.
Let , , and . We use zero-based block indices and write for the scalar unknowns which are the appropriately normalized traces of square matrix blocks . Thus corresponds to the first diagonal block in the preceding display. The relations
reduce the system to eighteen equations. Only the shared denominators are abbreviated:
(31)
(32)
The fixed-point equations are as follows:
A.2.5 Recovering the Limiting Training and Test Errors
We now combine (34) with the spectral representations of test and train errors.
Step 1: Compute .
To compute , we need the limiting spectrum of , for which we use the Stieltjes transform inversion formula. Limiting Stieltjes transform of is given by
Stieltjes inversion gives the upper-tail mass , rather than the cumulative mass below :
Then, is obtained by solving
Step 2: Use the limiting expressions for .
Let for . Translating the block-inverse identities into the zero-based indices of (34) gives
Substituting these limits into the quadratic and cross terms of (15), and using (26) for the training error, yields the following expressions with the cutoff from (35):
where
The transform combines the quadratic contribution with twice the cross contribution, recovering the error characterization of Theorem 2.
A.2.6 Derivation of the Relevant Moments
We collect the Gaussian moment calculations used in the spectral reduction. The common tool is Mehler's expansion in Hermite polynomials: for a jointly standard Gaussian pair with law , correlations of nonlinear functions are expanded in powers of . In cross moments with a linear second factor, Hermite orthogonality selects the first coefficient. Feature second moments require separate diagonal and off-diagonal calculations.
(i) We will first consider : We have
Let denote the row of and let denote the component of . For large , concentrates to 1. Note that, conditioned on , is a zero-mean Gaussian random variable with variance
By the concentration property of quadratic forms, the variance concentrates to as . Let . Let
We have .
(ii) Next, consider :
We have .
(iii) Now we will consider : When considering , a similar argument allows to write with , leading to
Separating diagonal and off-diagonal entries gives:
The contribution cannot give rise to a change to the normalized trace quantities we are interested in. Hence, we neglect it. We have
where .
(iv) Now we will consider :
Let
Here is fixed and only the noise is averaged. Applying Mehler's formula as in the population cross-moment calculation gives
where . Summing over the data samples:
Neglecting terms, we have .
(v) Now we will consider :
Let
Therefore, summing over the data samples:
(vi) Now, let's consider : Let
For , expand in the correlation between the two noise projections. The zeroth-order term gives the product of noise-averaged features, while the first-order term involves :
where and . Summing over the data samples:
In step (a), we apply Mehler's formula to and neglected terms that will lead to terms. The diagonal requires a separate calculation because a feature is perfectly correlated with itself. For , we have:
and
The term in the above equation can be neglected, since there are only terms on the diagonal. Let . We can write as:
where
with . Let . We have found:
B ADDITIONAL NUMERICAL RESULTS
B.1 Test and train errors for different diffusion time t
Figures 6 and 7 extend the learning curves to t = 0.1. The main rank-dependent trends persist at this larger diffusion time: training error decreases with rank, while test error depends on both sample size and data dimension. In the displayed settings with n > D, test error reaches a minimum near r = d - D and then increases, whereas for n < D it increases throughout the displayed rank range. The random-feature predictions agree closely with the simulated training and test errors and reproduce these qualitative trends in the trained networks, supporting the relevance of the geometric reference rank beyond t = 0.01.

Figure 6: Simulation results for our numerical model, with tanh activation at t = 0.1, p/d = 2.

Figure 7: Analytical and simulation results for our theoretical model with tanh activation at , .
C SIMULATION CONDITIONS
We describe the simulations of the trainable score network in (5), reported in Figures 2 and 6.
Data and parameter sweep. We set the ambient dimension to and the hidden-layer width to . For each dataset seed, an orthonormal basis is obtained by a QR decomposition of a standard Gaussian matrix. Independent training and test samples are drawn as , with . We use and , corresponding to and . Each test set contains 512 independent clean samples from the same distribution.
Initialization and training. The activation is tanh, and the factors are initialized with independent standard Gaussian entries, with the normalization factors specified in (5). Biases are initialized to zero. All three weight matrices and the biases are trained for 30,000 Adam (Kingma and Ba, 2017) updates with a constant learning rate of , batch size 512, no weight decay, and global gradient-norm clipping at 10. Each update samples clean training points uniformly with replacement and draws fresh standard Gaussian noise, forming . The optimized loss is the mean of over the minibatch. Within each seed and diffusion time, models at different ranks share initial weight entries, minibatch indices, and noise realizations, but maintain separate trainable parameters and optimizer states. The rank constraint is implemented by retaining the first terms of the factorized output map.
Evaluation and averaging. Training and test errors evaluate the same normalized DSM objective on all clean training points and on the independent test set, respectively. Each evaluation averages over 16 fresh noise realizations per clean sample, processed in batches of 256; evaluation noise is separate from training noise and shared across ranks at a fixed diffusion time. Plotted curves use the final evaluation at 30,000 updates. We average over three paired dataset and initialization seeds, , , and . The implementation uses JAX, Flax, and Optax with double-precision arrays.