Addressing the error analysis of generative diffusion models, this paper proposes a unified KL divergence analysis framework based on the entropy production rate of the forward-backward diffusion process pair, which decomposes the terminal KL divergence into three terms: initialization error, score approximation error, and time discretization error.
The core demand in error analysis of generative diffusion models is to establish a unified analysis paradigm that provides an explicit decomposition of the terminal Kullback-Leibler (KL) divergence, separating the total error into contributions from distinct independent sources and offering verifiable theoretical grounds for evaluating the convergence behavior of sampling algorithms.
Existing mainstream methods based on path space mostly rely on Girsanov-type measure-change arguments. Such methods inherently suffer from a path-to-marginal relaxation, typically yielding only an O(h) convergence rate for the Euler-Maruyama sampler and failing to provide tighter discretization error bounds.
To overcome the inherent limitations widespread among path-space analysis methods, the proposed framework instead analyzes the entropy production rate of the forward-backward diffusion process pair directly at the marginal distribution level, bypassing the inherent relaxation of path-space analysis. It also supports state-dependent, asymmetric diffusion scenarios, covering the generality required for analyzing discrete backward flows, thereby offering a new avenue toward more precise error bounds.
The core new contribution of the framework is the velocity form of the entropy production rate identity, which is parameterized by the diffusion terms of the forward process and the comparison process. The essential difference between different sampling paradigms—probability flow sampling, flow matching, stochastic interpolants, etc.—and score-based SDEs lies precisely in the choice of this diffusion term. Hence this identity provides a common, interoperable comparison language for all these sampling methods. The argument proceeds in two explicit stages: first, deriving a unified error analysis result whereby the error of all sampling frameworks is controlled by two generic quantities—the current velocity error η and the score matching error ε; second, minimizing the resulting error upper bound over the feasible space of sampler diffusions, yielding the optimal noise levels for generic SDE samplers and stochastic interpolant methods.
The parameter choices of different mainstream sampling frameworks can be subsumed into a single tunable family, with no paradigm-level incommensurability: score-based SDE/DDPM corresponds to sampler diffusion σ_s equal to σ, with learning target the score ∇log ρ; deterministic PF-ODE corresponds to sampler diffusion σ_s equal to 0, likewise with learning target the score ∇log ρ; flow matching corresponds to sampler diffusion σ_s equal to 0, with learning target the current velocity v_c; stochastic interpolants admit a freely chosen sampler diffusion σ_s, with the learning target being either the current velocity v_c or the score ∇log ρ. Here the forward smoothing diffusion and the sampler diffusion are fully decoupled, further removing parameter definition barriers between the different frameworks.
Based on this unified parameterization, the study provides a rigorous upper bound on the KL divergence error consisting of three terms: first, a discretization error term proportional to the square of the step size h; second, an approximation error term proportional to the square of the score matching error ε; third, an initialization error term that decays exponentially in time and is tied to the KL divergence between the initial distribution and the stationary distribution. Under the condition that the time coefficients are bounded, the coefficients of the first two terms both grow linearly with the total duration T.
The three error terms have optimization directions that are independent of, or even in conflict with, one another, and a single inequality naturally yields the inherent trade-off between ODE and SDE sampling: the discretization error term is minimized when the sampler diffusion A_s is 0, favoring deterministic ODE sampling; the initialization error term favors A_s greater than 0, where the forgetting rate is proportional to A_s and the initial distribution bias is eliminated faster; the score/velocity error term is minimized at noise schedules in an intermediate range. When the trained field is sufficiently accurate, the discretization error dominates and the optimal sampler is close to deterministic; otherwise, a stochastic sampler with the corresponding optimal schedule A_s^* yields better overall performance. The previously observed empirical phenomenon that medium injected-noise levels perform best is precisely the result of the joint balancing of these three error terms, and this framework provides a quantitative form of that optimal noise schedule.
The paper quantitatively validates the theoretically predicted error decomposition through numerical measurements: when the step size is reduced to one quarter of its original value, the error floor drops by exactly a factor of 16, in proportion to h², consistent with the O(h²) convergence law. Above the error floor, the fitted slopes of KL divergence against squared perturbation are all close to 1 across different step sizes; the fitted constants remain stable over a perturbation range spanning three orders of magnitude and do not change with step size, fully matching the additive decomposition form C₁h² + C₂ε². You can use the figure below to visually observe the convergence trend of KL divergence with time step size on log-log axes.
The experiments further conduct comparative measurements on two different perturbation families under different step size settings, verifying the universality of the additive error decomposition across perturbation types. You can use the figure below to examine how KL divergence varies with squared perturbation under different step sizes, and the corresponding behavior of the two perturbation families.
The global finite Fisher information assumption originally proposed in the framework does not directly fit the real data distributions targeted by diffusion models: quantized image data have no continuous density, and data with manifold support or boundary singularities correspond to infinite Fisher information. Subsequent derivations show that the global finite Fisher information condition can be replaced by a finite second moment of the data distribution, together with an early-stopping truncation threshold δ∈(0,T).
The constants in the convergence theorems and corollaries given by the current framework are tracked only through norms of the drift term and its derivatives; their dependence on the ambient dimension n has not yet been explicitly resolved. A natural follow-up research direction is to make this dimension dependence explicit, in particular to verify whether the bound on the marginal KL divergence grows linearly with the dimension n. The currently observed numerical scaling is consistent with near-linear dependence, but the relevant conclusion has not yet been rigorously proven.