Score Approximation, Estimation and Distribution Recovery of Diffusion Models on Low-Dimensional Data

Minshuo Chen, Kaixuan Huang, Tuo Zhao, Mengdi Wang

Diffusion models like Stable Diffusion and DALL-E 2 have achieved unprecedented success in generating high-resolution images. However, their theoretical foundations have lagged behind their empirical triumphs. Classical statistical theory dictates that learning a distribution in spaces with thousands or millions of dimensions should require an exponentially growing number of samples—a phenomenon known as the "curse of dimensionality."

So, why do diffusion models work so well in practice? High-dimensional data, such as images, typically possess a much lower "intrinsic" dimension. For instance, a dataset of human faces might only vary along a few dozen parameters (pose, lighting, expression) despite existing in an ambient space of millions of pixels. This paper provides a rigorous mathematical proof demonstrating that diffusion models can effectively circumvent the curse of dimensionality by capturing this underlying low-dimensional structure.

The Mathematical Framework: Score Decomposition

The authors analyze diffusion models through the lens of Stochastic Differential Equations (SDEs) and score matching, assuming the data is supported on an unknown low-dimensional linear subspace. A central pillar of their proof is Score Decomposition.

Score Decomposition

They prove that the "score function" (the gradient of the log probability density) can be mathematically split into two distinct components:

  1. An on-support component: This part learns the intricate distribution of the data within the low-dimensional subspace.
  2. An orthogonal component: This acts as a restorative force. As the noise level approaches zero, this orthogonal component "blows up," creating a strong vacuum-like force that pushes generated samples back onto the correct low-dimensional subspace, effectively recovering the hidden geometry of the data.

Network Architecture for Subspace Learning

To prove that a neural network can actually learn this decomposed score function, the authors specify a particular architecture.

Encoder-Decoder Architecture

They utilize an encoder-decoder architecture equipped with skip-layer connections, conceptually resembling a simplified U-Net. The theoretical analysis proves that this specific design is expressive enough to approximate the complex score functions required for the diffusion process, specifically isolating the low-dimensional representation in the bottleneck.

Key Theoretical Guarantees

By analyzing the "backward process" (where the model iteratively denoises samples), the authors provide concrete statistical guarantees:

  • Circumventing the Curse: The most significant finding is that the convergence rate of the estimated score function depends on the intrinsic dimension $d$, rather than the ambient dimension $D$. The squared $L^2$ error of the learned score function converges at a rate of approximately $\tilde{O}(n^{-\frac{2}{d+5}})$. The ambient dimension $D$ only appears as a linear factor or within logarithmic terms.
  • Distribution Recovery: The generated distribution converges to the true data distribution (measured in Total Variation distance) at a rate of $\tilde{O}(n^{-\frac{1}{2(d+5)}})$.
  • Subspace Identification: The model implicitly learns the subspace itself. The error in recovering the unknown matrix defining the data's linear support is bounded by $\tilde{O}(n^{-\frac{2}{d+5}})$.
  • The $t_0$ Trade-off: The paper formalizes the trade-off of early stopping at time $t_0$. A larger $t_0$ reduces the variance of the score estimation (making it easier to learn), but a smaller $t_0$ is required to minimize bias and recover fine-grained details of the true distribution.

Limitations and Future Directions

As a foundational theoretical work, the paper relies on certain simplifying assumptions. The primary limitation is the assumption that data lies on a linear subspace. Real-world data typically resides on highly complex, non-linear manifolds. Extending these proofs to non-linear Riemannian manifolds represents a crucial next step. Additionally, while the analyzed encoder-decoder network captures the essence of practical models, it does not account for modern architectural complexities like Attention mechanisms. Finally, the analysis assumes the intrinsic dimension $d$ is known or can be estimated, which remains a practical challenge for complex datasets.

Summary updated

BibTeX
@inproceedings{chen2023score,
  author = {Minshuo Chen and Kaixuan Huang and Tuo Zhao and Mengdi Wang},
  title = {{Score Approximation, Estimation and Distribution Recovery of Diffusion Models on Low-Dimensional Data}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=KB4mLiuoEX},
}
Figure