Unleashing the Denoising Capability of Diffusion Prior for Solving Inverse Problems

Jiawei Zhang, Jiaxin Zhuang, Cheng Jin, Gen Li, Yuantao Gu

Introduction

Inverse problems—the task of recovering an original signal $x_0$ from a corrupted observation $y$—are fundamental to fields ranging from medical imaging to audio engineering. Mathematically, these are typically expressed as $y = Ax_0 + n$, where $A$ represents a degradation function (such as blurring or downsampling) and $n$ represents additive noise.

While Diffusion Models (DMs) have established themselves as the state-of-the-art for generative priors, existing diffusion-based solvers often treat the model as a static guide for the sampling process. This approach frequently overlooks the model's inherent strength: its ability to denoise data at specific noise scales. Current optimization-based methods often rely on a standard Gaussian likelihood term to handle noise, which fails to fully exploit the diffusion model’s capacity to "clean" signals. This paper introduces ProjDiff, a framework that reframes inverse problems to leverage the full denoising potential of diffusion priors.

The ProjDiff Framework

ProjDiff shifts the paradigm from a single-variable search to a two-variable constrained optimization task. The core innovation lies in the introduction of an auxiliary variable, $x_{t_a}$, which represents a noisy version of the image at a specific step $t_a$ in the diffusion process.

1. Aligning Noise Levels

By choosing $t_a$ to match the actual noise level of the observation $y$, the researchers create a "bridge" between the corrupted data and the diffusion chain. This alignment allows the diffusion model to perform its primary function—denoising—more effectively than methods that treat the prior and the observation as separate entities.

2. Projection Gradient Descent (PGD)

The optimization problem is solved by alternating between two steps:

  • Prior Update: Moving toward the data manifold using the diffusion model's denoising capabilities.
  • Data Consistency: Projecting the result back onto the space of valid solutions defined by the observation $y$.

3. Computational Efficiency via Gradient Truncation

A significant challenge in optimizing through neural networks is the computation of the Jacobian matrix (the matrix of all first-order partial derivatives). ProjDiff introduces Gradient Truncation, a technique that ignores these complex derivatives. The authors demonstrate that because the model's $\mu$-predictor is resilient to small perturbations, this truncation significantly reduces computational overhead and improves stability without sacrificing restoration accuracy.

4. Restricted Encoding for Weak Observations

In scenarios where the observation $y$ provides insufficient constraints (e.g., generating missing instrumental tracks in a song), ProjDiff employs Restricted Encoding. By fixing the initial noise state, the algorithm ensures that the generated output remains consistent with the existing signal, preventing harmonic or visual drift.

Experimental Evaluation

The researchers evaluated ProjDiff across a diverse range of benchmarks, spanning images and audio:

  • Linear Image Tasks: Using ImageNet and CelebA, the model was tested on super-resolution, inpainting, and deblurring.
  • Nonlinear Image Tasks: Using FFHQ, the model tackled complex problems like phase retrieval (reconstructing an image from Fourier transform magnitudes) and High Dynamic Range (HDR) reconstruction.
  • Music Source Separation: Using the SLACK2100 dataset, the model attempted to separate songs into drums, bass, guitar, and piano.

Key Results

ProjDiff demonstrated significant performance gains over existing state-of-the-art (SOTA) methods:

  • Image Restoration: On ImageNet super-resolution, ProjDiff achieved a PSNR of 25.73, surpassing DDRM (25.66) and DPS (24.44).
  • Nonlinear Breakthrough: In the challenging task of Phase Retrieval, ProjDiff achieved a PSNR of 33.39, a massive improvement over the 13.19 achieved by previous leaders like DPS.
  • Universal Solver in Music: ProjDiff is the first diffusion-based algorithm to outperform Demucs, a specialized SOTA discriminative model for music separation, achieving an average SI-SDRi of 19.23 compared to Demucs' 17.73.

Discussion and Future Work

The success of ProjDiff suggests that diffusion priors can serve as "universal" solvers, capable of competing with specialized models even in domains like audio processing. The "Aha" moment of the research—aligning the optimization variable with the observation's specific noise level—unlocks a more intuitive and powerful use of the diffusion chain.

However, some limitations remain. The current framework assumes Gaussian observation noise; adapting the projection operator for Poisson or multiplicative noise remains an open challenge. Additionally, the algorithm requires manual tuning of the step size ($\eta$), suggesting that future research into adaptive step-size strategies could further enhance the "plug-and-play" nature of this solver. Finally, while ProjDiff handles phase retrieval excellently, extremely complex "black-box" nonlinear functions may still require more sophisticated projection strategies.

Summary updated

BibTeX
@inproceedings{zhang2024unleashing,
  author = {Jiawei Zhang and Jiaxin Zhuang and Cheng Jin and Gen Li and Yuantao Gu},
  title = {{Unleashing the Denoising Capability of Diffusion Prior for Solving Inverse Problems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=2fiYzs3YkH},
}
Figure