TL;DR
The paper introduces RED-diff, a variational framework that redefines solving inverse problems with diffusion models as a stochastic optimization task. By leveraging denoisers across all diffusion timesteps with a novel Signal-to-Noise Ratio (SNR) based weighting mechanism, RED-diff achieves state-of-the-art image restoration quality while being significantly faster and more memory-efficient than existing sampling-based methods.
The Challenge of Inverse Problems
Inverse problems—recovering a clean signal from degraded observations like blurry, noisy, or masked images—are a cornerstone of computer vision. While pre-trained diffusion models serve as powerful priors for these tasks, finding the "posterior" (the most likely clean image given the measurement) is notoriously difficult.
The core challenge lies in the iterative, nonlinear nature of diffusion, which makes the true posterior distribution mathematically intractable. Previous methods, such as Diffusion Posterior Sampling (DPS) or $\Pi$GDM, rely on crude unimodal approximations of the score function. These approximations can be highly inaccurate at various noise levels. Furthermore, these methods often require computing expensive Jacobians of the score function, leading to high memory usage and slow inference times.
The RED-diff Approach
To overcome these limitations, the authors propose a fundamentally different approach based on variational inference. Instead of attempting to sample directly from a complex posterior, they seek a simpler distribution (a Gaussian) that best approximates it by minimizing the Kullback-Leibler (KL) divergence.
Key components of this approach include:
- Regularization by Denoising Diffusion (RED-diff): The variational derivation naturally leads to an objective function consisting of a measurement matching loss (ensuring data fidelity) and a score-matching regularization term. This elegantly connects modern diffusion models to the well-established "Regularization by Denoising" (RED) framework.
- SNR-based Weighting: To balance the contributions of denoisers from different timesteps—where early steps capture coarse structure and later steps refine fine details—the authors introduce a weighting mechanism based on the Signal-to-Noise Ratio (SNR).
- Sampling as Stochastic Optimization: By framing the problem through a variational lens, "sampling" transforms into a straightforward optimization task. Practitioners can use off-the-shelf optimizers like Adam to iteratively refine the image estimate.
- Computational Efficiency: Crucially, RED-diff avoids the need to backpropagate through the score function. By eliminating the score Jacobian calculation, the method becomes much more lightweight and GPU-friendly.
Key Insights and Performance
The researchers evaluated RED-diff on diverse benchmarks, including ImageNet for general restoration (inpainting, super-resolution) and fastMRI/Mridata for medical imaging (compressed sensing MRI).
Optimization over Sampling: The most significant insight is that for many inverse tasks, a full sampler is unnecessary; a well-posed variational optimization problem can yield better results more efficiently. A single pre-trained diffusion model can act as a "universal prior" for a wide variety of tasks without any task-specific re-training.
SNR is the Right Ruler: Weighting denoisers by SNR proved critical. Upweighting earlier steps in the reverse process (lower noise) and downweighting later steps (higher noise) was the most effective strategy for balancing perceptual quality and fidelity.
State-of-the-Art Results: RED-diff consistently outperformed state-of-the-art samplers across both linear and nonlinear tasks:
- Superior Quality: In ImageNet inpainting, RED-diff achieved a PSNR of 23.29 dB, outperforming DPS (21.27 dB) and DDRM (20.72 dB), alongside significant gains in perceptual metrics like KID and LPIPS.
- Nonlinear Robustness: For challenging nonlinear tasks like HDR and deblurring, RED-diff succeeded where others struggled. In deblurring, it reached a PSNR of 45.00 dB, while DPS failed to find a decent solution (6.4 dB).
- Speed and Memory: RED-diff is roughly 4-5x faster per step than DPS or $\Pi$GDM and allows for a 2x larger batch size on the same hardware.
Limitations and Future Work
The primary limitation of RED-diff is that it is mode-seeking. Because it approximates the posterior with a Gaussian and focuses on optimization, it tends to find a single "best" solution (akin to a Maximum A Posteriori estimate) rather than capturing the full diversity of possible solutions that a true stochastic sampler might provide.
Future work aims to explore more expressive variational distributions (e.g., hierarchical or multimodal) to improve sample diversity, incorporate dispersion terms to better navigate the image manifold, and extend the framework to 3D generation tasks.
Summary updated