TL;DR
Existing diffusion and flow-based solvers for linear inverse problems rely on Tweedie's formula and backpropagation through deep networks at every step, making inference painfully slow. This paper introduces Diffusion Model Based Posterior Sampling (DMPS), which derives a closed-form approximation of the likelihood score under a local uninformative prior assumption. By eliminating backpropagation through the model, DMPS yields competitive or superior restoration quality while running nearly $3\times$ faster than standard diffusion posterior sampling.
What Problem Does This Paper Address?
Many imaging tasks—such as super-resolution, deblurring, denoising, and colorization—are noisy linear inverse problems modeled as: $$y = Ax_0 + n, \quad n \sim \mathcal{N}(0, \sigma^2 I)$$ Because these problems are ill-posed, modern techniques leverage pre-trained generative models (diffusion or flow models) as priors and perform posterior sampling $p(x_0|y)$.
In standard posterior sampling frameworks like Diffusion Posterior Sampling (DPS), the sampling update requires decomposing the score into a prior score and a likelihood score: $$\nabla_{x_t} \log p(x_t|y) = \nabla_{x_t} \log p(x_t) + \nabla_{x_t} \log p(y|x_t)$$ While the prior score comes directly from the pre-trained neural network, the noise-perturbed likelihood score $\nabla_{x_t} \log p(y|x_t)$ is intractable. DPS approximates it by computing the Tweedie estimate $\hat{x}_0(x_t)$ and differentiating through the neural network via backpropagation at every sampling step. This backpropagation step dominates runtime and creates a major computational bottleneck.
Methods
DMPS avoids backpropagation through the generative network entirely by deriving an analytical, closed-form approximation:
- Uninformative Prior Approximation: The authors note that the noise-perturbed likelihood involves the intractable reverse transition $p(x_0|x_t)$. Under the assumption that the prior $p(x_0)$ is locally flat/uninformative relative to $x_t$, Bayes' rule gives $p(x_0|x_t) \propto p(x_t|x_0)$.
- Closed-Form Pseudo-Likelihood Score: Since the forward process $p(x_t|x_0) = \mathcal{N}(x_t; a_t x_0, b_t^2 I)$ is Gaussian, $p(x_0|x_t)$ is approximated as Gaussian $\mathcal{N}(x_0; \frac{x_t}{a_t}, \frac{b_t^2}{a_t^2} I)$. Propagating this through the linear measurement model yields a closed-form pseudo-likelihood: $$\nabla_{x_t} \log \tilde{p}(y|x_t) = \frac{1}{a_t} A^T \left( \sigma_y^2 I + \frac{b_t^2}{a_t^2} A A^T \right)^{-1} \left( y - \frac{1}{a_t} A x_t \right)$$
- One-Time SVD Acceleration: Computing matrix inverses at each step is avoided by performing a Singular Value Decomposition (SVD) $A = U \Sigma V^T$ once before sampling begins, turning the inverse into a simple diagonal operation.
- Unified Integration: The closed-form score integrates into standard reverse steps (DDPM or flow-matching probability ODEs) with a single guidance weight parameter $\lambda$, requiring just two additional lines of code.
Datasets
- Evaluated Datasets:
- FFHQ ($256 \times 256$, 1k validation set) evaluated on DDPM (ADM checkpoint).
- CelebA-HQ ($256 \times 256$ validation set) evaluated on Rectified Flow models.
- Supplementary experiments also reference FFHQ-cat, LSUN-bedroom, and AFHQ-cat.
- No new datasets were introduced.
Key Insights and Ideas
- Why the "crude" uninformative prior works: Dropping the prior $p(x_0)$ seems counterintuitive, but the authors prove via Taylor expansion that as $t \to 0$ (small noise variance $b_t^2$), the posterior $p(x_0|x_t)$ is overwhelmingly dominated by the forward transition kernel $p(x_t|x_0)$. The prior's influence on the likelihood score vanishes asymptotically.
- Backprop-free conditioning: Because $\nabla_{x_t} \log \tilde{p}(y|x_t)$ depends only on $x_t$, $y$, and the measurement operator $A$, it requires zero automatic differentiation through the score/velocity network.
Key Results
- Drastic Speedups:
- Diffusion (DDPM, NFE=1000): DMPS drops inference time on $256 \times 256$ super-resolution from 194.42s (DPS) and 182.35s (PGDM) down to 67.02s (nearly a $2.9\times$ speedup).
- Flow-based (Rectified Flow, NFE=50): DMPS runs in 4.45s, compared to 8.04s for DPS and 6.44s for OT-ODE.
- Reconstruction Quality:
- On FFHQ with DDPM, DMPS achieves top or competitive scores across tasks:
- Super-resolution ($\times 4$): 27.63 dB PSNR / 0.8450 SSIM (vs. DPS's 26.78 dB / 0.8391).
- Colorization: 21.09 dB PSNR / 0.9592 SSIM (DPS fails severely here, yielding only 11.53 dB / 0.7923 due to over-bright artifacts).
- Deblurring: 27.26 dB PSNR (vs. 26.50 dB for DPS).
- On CelebA-HQ with flow-based models, DMPS matches or outperforms OT-ODE and DPS in PSNR, SSIM, and LPIPS across super-resolution, deblurring, colorization, and heavy denoising ($\sigma = 0.5$).
Limitations and Future Work
- Operator Inversion / SVD Cost: While SVD can be calculated efficiently or factored for common image operations (convolutions, bicubic downsampling), calculating and storing SVDs for arbitrary, dense, or massive matrices $A$ remains difficult.
- Incompatibility with Latent Diffusion Models (LDMs): The analytical likelihood derivation assumes linear operations directly in pixel space. Because LDMs (e.g., Stable Diffusion) operate through a non-linear encoder-decoder latent manifold, DMPS cannot be directly applied to them without modification.
Summary updated