Memorization and Generalization in Generative Diffusion under the Manifold Hypothesis
Abstract
We study the memorization and generalization capabilities of Diffusion Models (DMs) when data lies on a structured latent manifold. Specifically, we consider a set of data points in dimensions confined to a latent subspace of dimension , following the Hidden Manifold Model (HMM). We analyze the reverse diffusion process using the empirical score function as a proxy, and characterize it in the high-dimensional limit , , by exploiting a connection with the Random Energy Model (REM). We show that a characteristic time marks the emergence of traps in the time-dependent potential, which however do not affect typical trajectories. The size of their basins of attraction is computed at all times. We derive the collapse time , at which trajectories fall into the basin of a training point, signaling memorization. An explicit formula for as a function of and shows that the curse of dimensionality is avoided for structured data (), even with nonlinear manifolds. We also prove that collapse corresponds to the condensation transition in the REM. Generalization is quantified via the Kullback-Leibler divergence between the exact distribution and the reverse one at time . We find a distinct time minimizing this divergence. Surprisingly, the best generalization occurs inside the memorization phase. We conclude that generalization in DMs improves with data structure, as faster than when .
Keywords
Cite
@article{arxiv.2502.09578,
title = {Memorization and Generalization in Generative Diffusion under the Manifold Hypothesis},
author = {Beatrice Achilli and Luca Ambrogioni and Carlo Lucibello and Marc Mézard and Enrico Ventura},
journal= {arXiv preprint arXiv:2502.09578},
year = {2025}
}
Comments
28 pages, 8 figures