Abstract
Diffusion generative models have emerged as powerful tools for producing synthetic data from an empirically observed distribution. A common approach involves simulating the time-reversal of an Ornstein-Uhlenbeck (OU) process initialized at the true data distribution. Since the score function associated with the OU process is typically unknown, it is approximated using a trained neural network. This approximation, along with finite time simulation, time discretization and statistical approximation, introduce several sources of error whose impact on the generated samples must be carefully understood. Previous analyses have quantified the error between the generated and the true data distributions in terms of Wasserstein distance or Kullback-Leibler (KL) divergence. However, both metrics present limitations: KL divergence requires absolute continuity between distributions, while Wasserstein distance, though more general, leads to error bounds that scale poorly with dimension, rendering them impractical in high-dimensional settings. In this work, we derive an explicit, dimension-free bound on the discrepancy between the generated and the true data distributions. The bound is expressed in terms of a smooth test functional with bounded first and second derivatives. The key novelty lies in the use of this weaker, functional metric to obtain dimension-independent guarantees, at the cost of higher regularity on the test functions. As an application, we formulate and solve a variational problem to minimize the time-discretization error, leading to the derivation of an optimal time-scheduling strategy for the reverse-time diffusion. Interestingly, this scheduler has appeared previously in the literature in a different context; our analysis provides a new justification for its optimality, now grounded in minimizing the discretization bias in generative sampling.
Introduction
Score-based generative models (SGMs) produce data by reversing a noise-injection process. However, this process is fraught with four main sources of error: statistical error from finite data, finite-time error from reaching a perfect Gaussian state, score-matching error from neural network approximations, and discretization error from solving the reverse SDE in discrete steps.
Existing ways to measure these errors have major flaws. The Kullback–Leibler (KL) divergence is often mathematically undefined for empirical data distributions, while the Wasserstein distance suffers from the "curse of dimensionality"—error bounds grow exponentially worse as the number of dimensions ($d$) increases. This paper seeks an error estimate that remains stable regardless of the data's dimension.
Methodology: A Functional Perspective
The authors shift the perspective from comparing probability distributions directly to comparing the expectations of smooth test functions.
- Functional Metric: Instead of measuring the distance between two distributions $P$ and $Q$, they measure the difference between $\mathbb{E}_P[G]$ and $\mathbb{E}_Q[G]$ for a class of "well-behaved" (smooth) functions $G$. This "weaker" metric allows them to bypass the dimensionality issues of Wasserstein distance.
- Variational Optimization: To tackle discretization error, the authors introduce a scheduling function $g(t)$ into the forward diffusion. They then formulate a variational problem to find the specific $g(t)$ that minimizes the discretization bias.
- Backward Kolmogorov Equation: The proof relies on using the Backward Kolmogorov Equation to track how the error at the start of the generative process propagates through to the final sample.
Key Insights and Results
- Dimension-Free Bound: The authors prove an explicit upper bound on the generative error (Theorems 3.5 and 3.10) that does not contain the dimension $d$ as a scaling factor. The "price" for this is requiring higher regularity (smoothness) in the test functions.
- Justifying "Flow Matching": A significant finding is that the mathematically derived optimal scheduler ($g^*$) coincides with the "Flow Matching" or "Rectified Flow" schedules. These schedules were already known to perform well empirically; this paper provides a rigorous theoretical justification for their optimality: they minimize discretization bias.
- Optimal Scheduler Formula: The derived optimal scheduling function is defined as: $$g^*(t) := -\ln\left(1 - t \frac{1-e^{-T'}}{T}\right)$$
Empirical Validation
As a theoretical work, the paper validates its findings through numerical simulations on synthetic Gaussian data ($N(\mu, \sigma^2)$) and a simplified "one-token" model for discrete states. In simulations, the prescribed optimal scheduler consistently resulted in lower expectation errors across various variances compared to standard linear and cosine schedulers, especially as the step size decreased.
Conclusion
This research provides a clean "budget" for error, showing exactly how much each stage of the diffusion process contributes to the final discrepancy. While currently restricted to the Ornstein-Uhlenbeck (OU) process, the work lays the groundwork for extending weak error bounds to more complex, non-linear forward processes and manifold-constrained data in future studies.
Summary updated