Generalization Dynamics of Linear Diffusion Models
Claudia Merger, Sebastian Goldt
TL;DR
This work probes how finite data and data-structure shape the generalization of diffusion-based generative models using a linear, Gaussian-parameterization framework. By linking the covariance spectrum, particularly power-law hierarchies, to learning dynamics and generalization via replica theory, it identifies two regimes: when $N<d$ hierarchical spectra and regularization mitigate overfitting, and when $N>d$ the generated distribution approaches the population optimum with a $DKL$ scaling of $\sim d/(4N)$, largely independent of the distribution. It also contrasts linear and nonlinear models, showing similar qualitative behavior but notable differences in leading directions, and demonstrates the beneficial role of regularization and early stopping. Overall, the paper clarifies how sample complexity and data hierarchy govern generalization in diffusion models, informing regularization strategies and training protocols for finite-data regimes.
Abstract
Diffusion models are powerful generative models that produce high-quality samples from complex data. While their infinite-data behavior is well understood, their generalization with finite data remains less clear. Classical learning theory predicts that generalization occurs at a sample complexity that is exponential in the dimension, far exceeding practical needs. We address this gap by analyzing diffusion models through the lens of data covariance spectra, which often follow power-law decays, reflecting the hierarchical structure of real data. To understand whether such a hierarchical structure can benefit learning in diffusion models, we develop a theoretical framework based on linear neural networks, congruent with a Gaussian hypothesis on the data. We quantify how the hierarchical organization of variance in the data and regularization impacts generalization. We find two regimes: When $N <d$, not all directions of variation are present in the training data, which results in a large gap between training and test loss. In this regime, we demonstrate how a strongly hierarchical data structure, as well as regularization and early stopping help to prevent overfitting. For $N > d$, we find that the sampling distributions of linear diffusion models approach their optimum (measured by the Kullback-Leibler divergence) linearly with $d/N$, independent of the specifics of the data distribution. Our work clarifies how sample complexity governs generalization in a simple model of diffusion-based generative models.
