Diffusion Posterior Sampling for General Noisy Inverse Problems

Hyungjin Chung, Jeongsol Kim, Michael Thompson Mccann, Marc Louis Klasky, Jong Chul Ye

Introduction

Diffusion models have recently been recognized as powerful generative priors for solving inverse problems. An inverse problem involves recovering an original, clean signal $x$ (like a high-resolution image) from a corrupted measurement $y$ (such as a blurry, noisy, or masked image). Mathematically, this is expressed as $y = \mathcal{A}(x) + n$, where $\mathcal{A}$ is a forward measurement operator and $n$ represents noise.

While diffusion models excel at generating clean images, using them to solve real-world inverse problems has traditionally faced two major hurdles:

  1. Noise Sensitivity: Most existing methods (like Manifold Constrained Gradients or projection-based solvers) assume measurements are noiseless. When real-world noise is present, these methods often fail because they strictly force the reconstruction to match the noisy data, amplifying the noise.
  2. Linearity Constraints: Many state-of-the-art solvers rely on Singular Value Decomposition (SVD) to compute the necessary steps. SVD only works for linear operators and becomes computationally prohibitive for complex or nonlinear forward models.

To address these limitations, researchers have introduced Diffusion Posterior Sampling (DPS), a flexible framework that enables diffusion models to solve complex, noisy, and even nonlinear inverse problems without requiring expensive matrix decompositions.

The DPS Innovation: Tractable Posterior Sampling

The core challenge in posterior sampling with diffusion models is computing the gradient of the log-likelihood: $\nabla_{x_t} \log p(y|x_t)$. This gradient tells the model how to adjust the current noisy image state $x_t$ so that it eventually matches the measurement $y$. However, $p(y|x_t)$ is analytically intractable because $x_t$ is a noisy intermediate step in the diffusion process.

DPS overcomes this with a simple but powerful approximation: $$p(y|x_t) \simeq p(y|\hat{x}_0(x_t))$$ Here, $\hat{x}_0(x_t)$ is the Tweedie estimate—the diffusion model's best guess of the clean image given the current noisy state $x_t$.

By using this approximation, the gradient becomes tractable. The method simply passes the current clean estimate through the forward operator $\mathcal{A}$ and uses automatic differentiation (autograd) to backpropagate the error all the way back to $x_t$. This allows the model to "see" the measurement through the lens of the forward operator at every step of the generative process.

Key Insights

  • Avoiding the "Projection Trap": Previous methods used hard projections to ensure data consistency, which in noisy settings forces the model toward the noise. DPS uses a "soft" gradient step. This acts more like a spring pulling the sample toward the measurement manifold, rather than a rigid constraint, making it highly robust to noise.
  • The Jensen Gap: The authors provide a theoretical bound on their approximation error (the Jensen gap). Counterintuitively, they show that the approximation actually becomes more accurate as the measurement noise $\sigma$ increases, explaining why DPS thrives in noisy regimes.
  • Nonlinear Versatility: Because DPS relies on autograd, it can handle any forward operator $\mathcal{A}$ that is differentiable. This opens the door to nonlinear problems like Fourier Phase Retrieval (recovering an image from only the magnitude of its Fourier transform) and non-uniform deblurring.
Nonlinear Phase Retrieval
  • No SVD Required: Unlike methods such as DDRM, DPS runs entirely in the image domain. This makes it applicable to complex, non-separable kernels where SVD would be impossible to compute.

Experimental Results

The authors evaluated DPS on standard high-resolution image datasets, including FFHQ and ImageNet ($256 \times 256$). By leveraging pre-trained diffusion models, they demonstrated that DPS works "out of the box" without needing task-specific retraining.

Linear Inverse Problems: Inpainting, Super-resolution, and Deblurring

DPS consistently outperformed existing state-of-the-art methods (like DDRM, MCG, and PnP-ADMM) across a variety of tasks:

  • Linear Tasks: In super-resolution, inpainting, and deblurring, DPS achieved significantly lower Fréchet Inception Distance (FID) and LPIPS scores, indicating higher perceptual quality and better alignment with the ground truth.
  • Nonlinear Tasks: DPS successfully solved Phase Retrieval on FFHQ with an FID of 55.61, vastly outperforming classical algorithms like HIO (96.40) and ER (214.1).
  • Noise Robustness: While previous methods like MCG failed dramatically as noise increased due to noise amplification, DPS remained stable and produced clean reconstructions.

Limitations and Future Directions

Despite its flexibility, DPS has a few limitations. Like most diffusion-based methods, sampling is relatively slow, requiring many neural network iterations (typically 1000), which lags behind GAN-based or classical solvers. Additionally, for highly ill-posed problems like phase retrieval, the stochastic nature of the sampler means it may occasionally fail to converge to an optimal solution, sometimes requiring multiple runs.

Future work could incorporate faster sampling techniques, such as DDIM or specialized ODE solvers, to mitigate the speed issue. There is also potential in refining the likelihood approximation to handle even more complex noise distributions.

Summary updated

BibTeX
@inproceedings{chung2023diffusion,
  author = {Hyungjin Chung and Jeongsol Kim and Michael Thompson Mccann and Marc Louis Klasky and Jong Chul Ye},
  title = {{Diffusion Posterior Sampling for General Noisy Inverse Problems}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=OnD9zGAGT0k},
}
Figure