On the Posterior Distribution in Denoising: Application to Uncertainty Quantification
Hila Manor, Tomer Michaeli
TL;DR
This work addresses uncertainty quantification in Gaussian denoising by linking higher-order posterior central moments to derivatives of the posterior mean, yielding a simple recursion that starts from the MSE-optimal denoiser $\mu_1$. In the univariate case, $\mu_2(y)=\sigma^2\,\mu_1'(y)$ and $\mu_{k+1}(y)=\sigma^2\,\mu_k'(y) + k\,\mu_{k-1}(y)\mu_2(y)$, with a multivariate extension involving Jacobians and higher-order tensor recursions. The approach enables computing posterior PCs and directional marginals without storing high-order moment tensors or retraining denoisers, by leveraging Jacobian-vector products and forward-difference approximations. It is demonstrated across natural images, faces, handwriting (MNIST), and microscopy, revealing meaningful uncertainty directions and providing improved marginal estimates via maximum-entropy fits. The method is training-free, fast, and scalable, with code available for reproducibility and practical deployment in uncertainty visualization tasks.
Abstract
Denoisers play a central role in many applications, from noise suppression in low-grade imaging sensors, to empowering score-based generative models. The latter category of methods makes use of Tweedie's formula, which links the posterior mean in Gaussian denoising (\ie the minimum MSE denoiser) with the score of the data distribution. Here, we derive a fundamental relation between the higher-order central moments of the posterior distribution, and the higher-order derivatives of the posterior mean. We harness this result for uncertainty quantification of pre-trained denoisers. Particularly, we show how to efficiently compute the principal components of the posterior distribution for any desired region of an image, as well as to approximate the full marginal distribution along those (or any other) one-dimensional directions. Our method is fast and memory-efficient, as it does not explicitly compute or store the high-order moment tensors and it requires no training or fine tuning of the denoiser. Code and examples are available on the project webpage in https://hilamanor.github.io/GaussianDenoisingPosterior/ .
