Abstract
Diffusion generative models unlock new possibilities for inverse problems as they allow for the incorporation of strong empirical priors in scientific inference. Recently, diffusion models are repurposed for solving inverse problems using Gaussian approximations to conditional densities of the reverse process via Tweedie's formula to parameterise the mean, complemented with various heuristics. To address various challenges arising from these approximations, we leverage higher order information using Tweedie's formula and obtain a statistically principled approximation. We further provide a theoretical guarantee specifically for posterior sampling which can lead to a better theoretical understanding of diffusion-based conditional sampling. Finally, we illustrate the empirical effectiveness of our approach for general linear inverse problems on toy synthetic examples as well as image restoration. We show that our method (i) removes any time-dependent step-size hyperparameters required by earlier methods, (ii) brings stability and better sample quality across multiple noise levels, (iii) is the only method that works in a stable way with variance exploding (VE) forward processes as opposed to earlier works.
Introduction
Inverse problems—recovering a clean signal from noisy, partial observations—are fundamental to scientific imaging. While pretrained diffusion models provide powerful priors, sampling from the posterior distribution $p(x|y)$ remains a significant challenge. Existing approaches, such as Diffusion Posterior Sampling (DPS) and Pseudo-Inverse Guided Diffusion (ΠGDM), rely on guidance heuristics that often approximate the posterior as a simple point estimate or assume a basic variance structure. These crude approximations necessitate manual tuning of "step-size" hyperparameters for different tasks and noise levels, and often fail when using Variance Exploding (VE) diffusion processes.
Methodology: Tweedie Moment Projected Diffusions (TMPD)
We propose a statistically principled framework called Tweedie Moment Projected Diffusions (TMPD). Unlike standard diffusion methods that only use Tweedie’s formula to estimate the clean mean $x_0$ from a noisy sample $x_t$, our approach leverages higher-order information to estimate the posterior covariance as well.
Moment Projection and Gaussian Approximation
The core of TMPD involves a three-step process:
- Analytical Approximation: We use Tweedie’s formula to derive the first and second moments (mean and covariance) of the posterior distribution at each diffusion step.
- Gaussian Projection: We project the intractable posterior onto the closest Gaussian distribution by minimizing the Kullback-Leibler divergence.
- The TMPD SDE: This Gaussian approximation is integrated into the reverse SDE, creating a preconditioned update rule where the covariance matrix naturally scales the update steps based on model uncertainty.
To ensure computational efficiency for high-resolution images, we introduce DTMPD (Diagonal TMPD), which utilizes a diagonal approximation of the Jacobian, significantly reducing the memory and compute overhead.
Key Results
Our experiments across Gaussian Mixture Models (GMM), FFHQ ($256 \times 256$), and CIFAR-10 ($32 \times 32$) demonstrate the robustness of TMPD.
As shown in the figure above, TMPD and its diagonal variant (DTMPD) achieve significantly lower error (measured by Wasserstein L2 distance) as the number of samples increases compared to DPS and ΠGDM. Qualitatively, the heatmaps illustrate that TMPD captures the posterior mean and variance much more accurately than heuristic-based baselines, which often fail to capture the multi-modal nature of the distribution.
Key findings include:
- Zero Hyperparameter Tuning: By calculating the covariance correctly, we eliminate the need for the manual "guidance scale" ($\zeta$) required by previous methods.
- Unprecedented Stability: TMPD remains robust across multiple noise levels and is the first method shown to work reliably with both Variance Preserving (VP) and Variance Exploding (VE) frameworks.
- Superior Mode Coverage: In synthetic GMM experiments, TMPD successfully captured all modes of the posterior, whereas previous methods often collapsed to a single mode.
Discussion and Limitations
While TMPD provides a more rigorous foundation for posterior sampling, it does introduce some computational overhead. Even with diagonal approximations, calculating the Jacobian is approximately 1.5x slower than first-order heuristic methods. Furthermore, the current derivation is optimized for linear observation operators ($y = Hx + n$). Extending this framework to non-linear operators, such as those found in latent space models like Stable Diffusion, remains a subject for future research. Potential improvements include using Conjugate Gradient (CG) methods to handle full covariance matrices more efficiently.
Summary updated