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

Minshuo Chen, Kaixuan Huang, Tuo Zhao, Mengdi Wang

Abstract

Diffusion models achieve state-of-the-art performance in various generation tasks. However, their theoretical foundations fall far behind. This paper studies score approximation, estimation, and distribution recovery of diffusion models, when data are supported on an unknown low-dimensional linear subspace. Our result provides sample complexity bounds for distribution estimation using diffusion models. We show that with a properly chosen neural network architecture, the score function can be both accurately approximated and efficiently estimated. Furthermore, the generated distribution based on the estimated score function captures the data geometric structures and converges to a close vicinity of the data distribution. The convergence rate depends on the subspace dimension, indicating that diffusion models can circumvent the curse of data ambient dimensionality.

Introduction

While diffusion models—such as Stable Diffusion and DALL-E 2—have achieved breathtaking empirical success in generating high-resolution images, the theoretical understanding of their efficiency has lagged. A central mystery in generative modeling is the "curse of dimensionality." In theory, learning a probability distribution in a million-dimensional space (the ambient dimension of high-resolution images) should require an astronomical number of samples.

However, real-world data is rarely truly high-dimensional; it typically concentrates near low-dimensional structures, a concept known as the manifold hypothesis. This paper provides a rigorous theoretical foundation explaining how diffusion models exploit these intrinsic geometric structures to learn efficiently, specifically focusing on data supported on unknown low-dimensional linear subspaces.

The Low-Dimensional Subspace Hypothesis

The authors address the efficiency of diffusion models by studying data supported on a $d$-dimensional linear subspace within a much larger $D$-dimensional ambient space ($d \ll D$). In this setting, the data $x$ is generated from a latent variable $z$ via a linear transformation ($x = Az$).

To analyze this, the researchers decompose the "score function"—the gradient of the log-density that the model learns to reverse the diffusion process—into two critical components:

  1. On-support component: This carries the information regarding the data's distribution within the low-dimensional subspace.
  2. Orthogonal component: This component acts as a corrective force, pushing the model's generated samples back toward the subspace support.

Methodology and Neural Architecture

The paper proposes a specific neural network architecture ($S_{NN}$) to approximate this decomposed score function. The architecture utilizes an encoder-decoder structure with skip-layer connections, closely mimicking the U-Net architectures used in practical diffusion applications.

The theoretical analysis is divided into three pillars:

  • Approximation: Proving that the proposed encoder-decoder architecture is expressive enough to represent the complex score function of the subspace-constrained data.
  • Estimation: Establishing sample complexity bounds to determine how many training samples are required to learn the score function accurately.
  • Distribution Recovery: Proving that the samples generated by the backward SDE (using the estimated score) actually converge to the original data distribution.

Key Insights

Circumventing the Curse of Dimensionality

The most significant finding is that the convergence rate of the diffusion model depends primarily on the intrinsic dimension $d$, rather than the ambient dimension $D$. This explains why these models can be trained on high-resolution images without requiring infinite datasets; the model effectively ignores the "empty" high-dimensional space and focuses on the underlying manifold.

The Role of the Orthogonal Score

A unique discovery in this work is the behavior of the orthogonal score component. As the noise level in the diffusion process approaches zero, this component "blows up" (tends toward infinity). While this might seem like a numerical instability, it is actually a vital feature: it provides the necessary force to ensure generated samples land precisely on the low-dimensional support of the data.

Implicit Subspace Recovery

The analysis demonstrates that the model does not need to be told where the subspace is. Instead, the neural network implicitly learns the unknown linear subspace during the training process, simultaneously learning the distribution within that subspace.

Quantitative Results

The paper establishes rigorous convergence rates for both the score estimator and the final generated distribution:

  • Score Estimation Rate: The neural score estimator converges to the ground truth at a rate of approximately $\tilde{O}(n^{- rac{1}{d+5}})$, where $n$ is the number of samples. Crucially, the ambient dimension $D$ only appears as a linear factor, not in the exponent, which is the hallmark of avoiding the curse of dimensionality.
  • Distribution Convergence: The generated distribution converges to the true data distribution in terms of Total Variation (TV) distance at a rate of $\tilde{O}(n^{- rac{1}{2(d+5)}})$.
  • Subspace Accuracy: The error in recovering the underlying subspace vanishes as the sample size increases, confirming the model's ability to capture geometric structures.

Limitations and Future Directions

While this work provides a breakthrough in understanding diffusion models, it relies on the assumption of a linear subspace. Real-world data often exists on non-linear manifolds. Extending this analysis to general non-linear structures is a primary path for future research. Additionally, the theory currently utilizes "early stopping" in the backward diffusion process (stopping at a small time $t_0 > 0$) to maintain stability. Developing a complete theory that reaches $t=0$ and further explores the interplay between discretization error and network capacity remains an open challenge.

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