Abstract
We study the asymptotic error of score-based diffusion model sampling in large-sample scenarios from a non-parametric statistics perspective. We show that a kernel-based score estimator achieves an optimal mean square error of $\widetilde{O}\left(n^{-1} t^{-\frac{d+2}{2}}(t^{\frac{d}{2}} \vee 1)\right)$ for the score function of $p_0*\mathcal{N}(0,t\boldsymbol{I}_d)$, where $n$ and $d$ represent the sample size and the dimension, $t$ is bounded above and below by polynomials of $n$, and $p_0$ is an arbitrary sub-Gaussian distribution. As a consequence, this yields an $\widetilde{O}\left(n^{-1/2} t^{-\frac{d}{4}}\right)$ upper bound for the total variation error of the distribution of the sample generated by the diffusion model under a mere sub-Gaussian assumption. If in addition, $p_0$ belongs to the nonparametric family of the $\beta$-Sobolev space with $\beta\le 2$, by adopting an early stopping strategy, we obtain that the diffusion model is nearly (up to log factors) minimax optimal. This removes the crucial lower bound assumption on $p_0$ in previous proofs of the minimax optimality of the diffusion model for nonparametric families.
Introduction
Score-based diffusion models have emerged as the state-of-the-art paradigm for generative modeling, powering breakthroughs in image synthesis, protein folding, and beyond. Despite their empirical success, the theoretical understanding of their statistical efficiency—specifically their sample complexity—has remained an active area of research. A central question in this field is: how many training samples ($n$) are required to ensure that the generated distribution is close to the true data distribution?
While previous studies established that diffusion models could achieve the minimax optimal rate—the fundamental mathematical limit for learning a distribution—these proofs often relied on a highly restrictive "density lower bound" assumption. This assumption requires the data density to be strictly positive ($p_0(x) > C > 0$) across its entire support. In practice, high-dimensional data like natural images often reside on low-dimensional manifolds or contain vast "holes" of zero density, rendering previous theoretical guarantees inapplicable to real-world scenarios. This paper addresses this gap by proving minimax optimality under the much broader and more realistic assumption that the distribution is sub-Gaussian.
The Theoretical Challenge: Beyond the Density Lower Bound
The "density lower bound" has long served as a mathematical crutch in the analysis of score-based models. Because the score function is defined as the gradient of the log-density ($\nabla \log p_t(x)$), it can behave erratically or explode in regions where the density $p_t(x)$ is near zero. Previous proofs avoided this instability by assuming the density never drops below a certain threshold.
This research demonstrates that such a crutch is unnecessary. By shifting the focus to sub-Gaussian distributions—a class that includes most distributions encountered in machine learning—the authors show that diffusion models are inherently robust. They prove that even when the data distribution has low-density regions, the diffusion process's inherent smoothing properties allow for stable score estimation and optimal sampling.
Methodology
The authors analyze the diffusion process through the lens of non-parametric statistics, focusing on three primary technical innovations:
1. Truncated Kernel Score Estimator
Rather than analyzing complex, black-box neural networks, the authors utilize a kernel density estimator (KDE) to approximate the score function. To handle the potential instability in low-density regions, they introduce a truncation strategy. If the estimated density at a given point falls below a threshold $\rho_n$, the score estimate is set to zero. This prevents the estimator from producing extreme values in regions where data is scarce, ensuring the reverse SDE remains stable.
2. Early Stopping Strategy
Learning the score function at $t=0$ is notoriously difficult because the distribution can be highly singular or "spiky." The authors employ an early stopping time $t_0$, which is carefully tuned as a function of the sample size $n$. This strategy balances two competing errors: the approximation error introduced by not reaching $t=0$, and the estimation error of the score function, which grows as $t$ approaches zero.
3. Error Bounding via Girsanov and Pinsker
To quantify the distance between the generated distribution and the true distribution, the paper employs Girsanov’s Theorem to relate the change in measures between the forward and backward SDEs. They then use Pinsker’s Inequality to translate these relationships into bounds on the Total Variation (TV) distance, providing a rigorous metric for generative quality.
Key Results and Minimax Optimality
The primary contribution of this work is the proof of minimax optimality for $\beta$-Sobolev spaces. For a distribution $p_0$ in a $\beta$-Sobolev space (with $\beta \leq 2$), the authors prove the diffusion model achieves a Total Variation error of approximately:
$$\tilde{O}\left(n^{-\frac{\beta}{2\beta+d}}\right)$$
This rate matches the classical minimax rate for density estimation, signifying that diffusion models are as statistically efficient as any possible algorithm for this class of distributions. Furthermore, the results hold for any arbitrary sub-Gaussian distribution, providing a much more general guarantee than previous literature.
Numerical experiments on the MNIST dataset validate these theoretical findings. By using a U-Net architecture to estimate the score, the authors observed that the Mean Squared Error (MSE) follows the time-decay patterns predicted by their theory—specifically a $t^{-3/2}$ decay rate for $d=1$, confirming that the theoretical bounds capture the actual behavior of trained models.
Discussion and Future Work
While this paper represents a significant leap forward, it also highlights several avenues for future research:
- Higher-Order Smoothness: The current proof for minimax optimality is limited to Sobolev smoothness $\beta \leq 2$. Extending this to $\beta > 2$ remains an open theoretical challenge.
- Neural Network Architectures: The analysis relies on kernel-based estimators. While numerical results suggest neural networks like U-Nets behave similarly, a formal proof linking specific architectures (e.g., Transformers) to these minimax rates is still needed.
- Unified Discretization Theory: The paper focuses on statistical estimation error. A unified theory that simultaneously optimizes sample size $n$ and the number of discretization steps in the SDE solver would provide a complete picture of diffusion model efficiency.
Conclusion
By removing the density lower bound assumption, this work provides the most realistic theoretical foundation to date for why score-based diffusion models work so well. It confirms that these models are not just empirically powerful but are also statistically optimal, capable of learning complex, high-dimensional distributions with the maximum possible efficiency allowed by mathematics.
Summary updated