Abstract
Diffusion models have revolutionized generative AI, yet their application to general noisy and nonlinear inverse problems remains a significant challenge. We present Diffusion Posterior Sampling (DPS), a powerful framework for recovering clean signals from corrupted measurements. By approximating the intractable likelihood term using the posterior mean of the data, DPS provides a robust mechanism to guide the generative process toward solutions that are both realistic and consistent with noisy data. Our method handles both linear and nonlinear forward operators without requiring expensive computations like Singular Value Decomposition (SVD).
Introduction
An inverse problem involves recovering an underlying image $x$ from a measurement $y$, typically modeled as $y = A(x) + n$, where $A$ is a forward operator (e.g., blurring, downsampling) and $n$ represents noise. While diffusion models serve as excellent priors for clean images, utilizing them for inverse problems is non-trivial. Previous approaches often relied on hard projections to ensure measurement consistency. However, these methods struggle with measurement noise—which they tend to amplify—and nonlinear operators, where projections are often mathematically intractable.
Diffusion Posterior Sampling (DPS)
The fundamental challenge in sampling from the posterior $p(x|y)$ is computing the gradient of the log-likelihood, $\nabla_{x_t} \log p(y|x_t)$, for intermediate noisy states $x_t$. DPS addresses this by utilizing Tweedie’s Formula to estimate the "clean" image $\hat{x}_0$ (the posterior mean) at each step $t$.
The intractable likelihood $p(y|x_t)$ is then approximated by $p(y|\hat{x}_0)$. This allows the use of Gradient Guidance: instead of a hard projection, the model uses the gradient of the distance between the measurement and the estimated clean image: $$\nabla_{x_t} \|y - A(\hat{x}_0)\|^2$$ This "soft" guidance nudges the sample toward consistency while remaining on the manifold of realistic images. Because it relies on automatic differentiation, DPS is compatible with any differentiable operator $A$, including nonlinear ones.
Experimental Results
We evaluated DPS on high-resolution datasets, including FFHQ and ImageNet ($256 \times 256$), across various degradations.
Performance on Linear and Nonlinear Tasks
DPS consistently outperforms state-of-the-art baselines like DDRM and PnP-ADMM in perceptual quality. In Gaussian deblurring on FFHQ, DPS achieved an FID of 44.05, a substantial improvement over DDRM's 74.92.
The method's flexibility is most evident in nonlinear tasks such as Fourier phase retrieval. DPS successfully solved this notoriously difficult problem with an FID of 55.61, whereas traditional algorithms like HIO (FID 96.40) and ER (FID 214.1) lagged significantly behind.
Robustness and Theoretical Justification
The authors justify their approximation using the Jensen gap, showing that the approximation error actually decreases as measurement noise increases. This explains the observed robustness of DPS in noisy regimes. Geometrically, while previous methods used orthogonal projections that could lead samples away from the data manifold, DPS uses a "tangent" step that maintains manifold consistency.
Conclusion
Diffusion Posterior Sampling represents a significant advancement in making diffusion models practical for real-world imaging. By providing a "plug-and-play" solver for differentiable forward models, it handles noise and nonlinearity with unprecedented efficacy. While the method is computationally intensive due to the iterative reverse diffusion process, its ability to maintain high-frequency details and solve complex nonlinear problems sets a new standard for inverse problem solvers.
Summary updated