Abstract
Diffusion models have achieved remarkable empirical success, yet their theoretical sample complexity remains poorly understood, often relying on unrealistic assumptions. This paper establishes a new state-of-the-art sample complexity bound of $\tilde{O}(\epsilon^{-4})$ for training diffusion models. Critically, this work is the first to bypass the "Empirical Risk Minimizer" (ERM) assumption, instead accounting for the optimization errors inherent in Stochastic Gradient Descent (SGD). By employing a principled error decomposition and leveraging the Polyak-Łojasiewicz (PL) condition, we provide a finite-time analysis that bridges the gap between theoretical guarantees and practical neural network training.
Introduction
The rapid advancement of diffusion models like Stable Diffusion and DALL-E has outpaced the development of their theoretical foundations. A central question remains: how many data samples are required to train these models to a target quality level? Existing literature often falls short due to two primary issues: the "Curse of Dimensionality," where bounds scale exponentially with data dimension $d$, and the "ERM Assumption," which assumes access to a global minimum of the training loss. In practice, models are trained using SGD on non-convex landscapes, making the ERM assumption unrealistic. This work addresses these gaps by providing a dimension-independent, finite-time analysis that incorporates optimization error.
Methodology
The analysis utilizes a "principled error decomposition" strategy, categorizing the total score estimation error into three components:
- Approximation Error: The capacity of the neural network to represent the true score function.
- Statistical Error: Error arising from the finite nature of the training dataset.
- Optimization Error: Residual error from running SGD for a finite number of steps.
To navigate the non-convexity of neural network training, the authors assume the loss function satisfies the Polyak-Łojasiewicz (PL) condition, a standard assumption for global convergence guarantees. Furthermore, a novel analysis based on the conditional normality of the score function is used to bound statistical errors without requiring bounded loss assumptions, which are typically violated in diffusion settings.
Key Results
The primary result is a proven sample complexity of $\tilde{O}(\epsilon^{-4})$ to achieve a Total Variation distance of $\epsilon$ in the generated distribution. This bound is tighter and more rigorous than previous works. For instance, while Gupta et al. (2024) claimed $\tilde{O}(\epsilon^{-3})$, a full accounting of discretization errors reveals their true complexity to be $\tilde{O}(\epsilon^{-5})$.
As shown in the table above, this work is unique in its ability to provide competitive sample complexity while removing the ERM assumption. The bound scales polynomially rather than exponentially with dimension $d$, making it applicable to high-dimensional data like images.
Discussion and Future Work
While this work provides a significant step forward, several avenues for future research remain. The current analysis is restricted to unconditional diffusion models; extending these guarantees to conditional generation (e.g., text-to-image) is a key next step. Additionally, while the PL condition is a powerful tool, exploring even weaker optimization conditions could broaden the applicability of these results. Finally, the scaling of the bound with respect to network depth and width suggests that extremely large architectures may require proportionally more data to meet these theoretical guarantees.
Summary updated