NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improved Sample Complexity Bounds for Diffusion Model Training

Shivam Gupta, Aditya Parulekar, Eric Price, Zhiyang Xun

Introduction

Diffusion models have become the dominant approach for deep generative modeling of images, largely due to their empirical performance and reliability. However, our theoretical understanding of why they learn so efficiently has lagged behind their practical success. Specifically, researchers are interested in the sample complexity of training: how many training images ($m$) are needed to learn a score function accurate enough to generate high-quality samples?

Prior theoretical work suggested that the number of samples needed grows polynomially with the inverse of the desired accuracy ($\gamma$). In practice, this implies that achieving a slightly better model requires a massive increase in data, which contradicts the empirical reality of how well these models generalize. This paper bridges that gap, demonstrating an exponential improvement in how sample requirements scale with desired accuracy and neural network depth.

The Problem with $L^2$ Error

Diffusion models are typically trained using a Score Matching objective. Previous theoretical proofs analyzing this objective relied on the $L^2$ error (mean squared error) to measure the difference between the estimated score and the true score.

The fundamental issue with the $L^2$ metric in high-dimensional spaces is its extreme sensitivity to rare outliers. A score estimator might be highly accurate on 99% of the data distribution but exhibit massive errors on a tiny 1% "outlier" region. The $L^2$ metric penalizes this heavily, making it appear as though the model has not learned the distribution without an astronomically large number of samples.

To prove this, the authors construct "hard instances" using synthetic Gaussian mixtures. They demonstrate that learning a score function to a low $L^2$ error is information-theoretically impossible without a sample size that scales poorly with accuracy.

Synthetic Gaussian mixture experiment demonstrating the failure of the L^2 metric compared to the robust quantile metric.

A New Approach: Quantile Error

To overcome the limitations of the $L^2$ barrier, the authors introduce a new error metric: the $(1-\delta)$-quantile error ($D^\delta_p$).

Instead of demanding that the score estimate be accurate everywhere, the quantile solution requires it to be accurate on a large fraction of the probability mass. The authors prove that as long as this relaxed condition is met, the reverse diffusion process (sampling) still functions correctly. By shifting the requirement from "accurate everywhere" to "accurate almost everywhere," they successfully bypass the information-theoretic barriers of $L^2$ learning.

Furthermore, the authors observe a helpful error cancellation trade-off: at very small noise levels, the score function is harder to estimate because the distribution is "spiky." However, the sampling process actually requires less precision at those specific stages to maintain overall generation quality.

Key Theoretical Results

The paper's main result is a significantly improved sample complexity bound. To learn a model that is $\epsilon$-close in Total Variation (TV) distance and $\gamma$-close in Wasserstein distance to the true distribution, the required number of samples $m$ is:

$$m \ge \tilde{O}\left(\frac{d^2 PD}{\epsilon^3} \cdot \log \Theta \cdot \log^3 \frac{1}{\gamma}\right)$$

Where:

  • $d$: Dimension of the data.
  • $P$: Number of parameters in the network.
  • $D$: Depth of the network.
  • $\gamma$: Desired Wasserstein accuracy.

This represents an exponential improvement over previous bounds. The dependence on the desired accuracy $\gamma$ has improved from a polynomial $1/\gamma^3$ to a polylogarithmic $\log^3(1/\gamma)$. Additionally, the dependence on network depth $D$ has moved from being in the exponent to a simple linear factor.

Limitations and Future Directions

While this work provides tight theoretical bounds, it has a few notable limitations:

  • Statistical vs. Algorithmic: The analysis focuses on the Empirical Risk Minimizer (ERM)—the theoretical best possible network for the given data. It proves a good network exists and can be found with few samples, but it does not guarantee that standard optimization algorithms like Stochastic Gradient Descent (SGD) will necessarily find it.
  • Network Architecture: The proofs are specifically tailored to fully connected ReLU networks. Extending these bounds to the architectures actually used in state-of-the-art diffusion models, such as U-Nets or Transformers, remains an open challenge.
  • Approximation Assumption: The results assume the neural network is sufficiently expressive to represent the true score function. Quantifying exactly how large a network needs to be to approximate complex, real-world image distributions is an ongoing problem in approximation theory.

Summary updated

BibTeX
@inproceedings{gupta2024improved,
  author = {Shivam Gupta and Aditya Parulekar and Eric Price and Zhiyang Xun},
  title = {{Improved Sample Complexity Bounds for Diffusion Model Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=OxcqkYOy8q},
}
Figure