Diffusion Models Learn Low-Dimensional Distributions via Subspace Clustering
Peng Wang, Huijie Zhang, Zekai Zhang, Siyi Chen, Yi Ma, Qing Qu
TL;DR
The paper addresses why diffusion models can learn realistic distributions from relatively few samples by modeling data as a union of low-dimensional subspaces via a mixture of low-rank Gaussians (MoLRG) and parameterizing the denoising autoencoder accordingly. It establishes a theoretical equivalence between diffusion-model training and subspace clustering, proving that the minimal sample complexity scales linearly with the intrinsic dimension under MoLRG assumptions, and identifies a phase transition in learnability. The work further demonstrates a practical link between the learned subspaces and semantic attributes, enabling editing operations, and provides empirical validation on simulated MoLRG data and real image datasets. These results offer a principled explanation for the observed data-efficient learning of diffusion models and suggest avenues for improving generalization and editing capabilities in practice.
Abstract
Recent empirical studies have demonstrated that diffusion models can effectively learn the image distribution and generate new samples. Remarkably, these models can achieve this even with a small number of training samples despite a large image dimension, circumventing the curse of dimensionality. In this work, we provide theoretical insights into this phenomenon by leveraging key empirical observations: (i) the low intrinsic dimensionality of image data, (ii) a union of manifold structure of image data, and (iii) the low-rank property of the denoising autoencoder in trained diffusion models. These observations motivate us to assume the underlying data distribution of image data as a mixture of low-rank Gaussians and to parameterize the denoising autoencoder as a low-rank model according to the score function of the assumed distribution. With these setups, we rigorously show that optimizing the training loss of diffusion models is equivalent to solving the canonical subspace clustering problem over the training samples. Based on this equivalence, we further show that the minimal number of samples required to learn the underlying distribution scales linearly with the intrinsic dimensions under the above data and model assumptions. This insight sheds light on why diffusion models can break the curse of dimensionality and exhibit the phase transition in learning distributions. Moreover, we empirically establish a correspondence between the subspaces and the semantic representations of image data, facilitating image editing. We validate these results with corroborated experimental results on both simulated distributions and image datasets.
