On the Asymptotic Mean Square Error Optimality of Diffusion Models
Benedikt Fesl, Benedikt Böck, Florian Strasser, Michael Baur, Michael Joham, Wolfgang Utschick
TL;DR
This work addresses the lack of theoretical understanding of diffusion models for mean square error (MSE) optimal denoising by proposing a fast, deterministic DM-based denoiser that forwards only stepwise conditional means and initializes at a timestep $\hat{t}$ chosen from the observation's SNR. It establishes a rigorous connection to the Bayesian CME, deriving a new Lipschitz constant dependent solely on DM hyperparameters and proving polynomial-time convergence to the CME under mild conditions, without requiring convergence to the prior. The analysis decomposes errors into prior-convergence and denoising components and provides bounds that hold even under stepwise mis-specification, showing asymptotic vanishing error as $T$ grows. A complementary perspective reveals that diffusion models inherently fuse a strong denoiser with a generative model, whose stochastic re-sampling can be switched on or off to toggle between denoising and generation. Extensive experiments on synthetic and real datasets (including MNIST, Fashion-MNIST, and Librispeech) corroborate the theory, demonstrating that the proposed deterministic denoiser tracks the CME closely and is robust to moderate SNR misalignment, while offering substantial speedups over stochastic sampling.
Abstract
Diffusion models (DMs) as generative priors have recently shown great potential for denoising tasks but lack theoretical understanding with respect to their mean square error (MSE) optimality. This paper proposes a novel denoising strategy inspired by the structure of the MSE-optimal conditional mean estimator (CME). The resulting DM-based denoiser can be conveniently employed using a pre-trained DM, being particularly fast by truncating reverse diffusion steps and not requiring stochastic re-sampling. We present a comprehensive (non-)asymptotic optimality analysis of the proposed diffusion-based denoiser, demonstrating polynomial-time convergence to the CME under mild conditions. Our analysis also derives a novel Lipschitz constant that depends solely on the DM's hyperparameters. Further, we offer a new perspective on DMs, showing that they inherently combine an asymptotically optimal denoiser with a powerful generator, modifiable by switching re-sampling in the reverse process on or off. The theoretical findings are thoroughly validated with experiments based on various benchmark datasets
