Introduction
In computer vision, "inverse problems" involve recovering an original, high-fidelity image from a degraded version—such as a blurry, downsampled, or noisy input. Diffusion models have become a powerhouse for solving these tasks because they provide a strong "prior" of what natural images should look like.
Diffusion Posterior Sampling (DPS) is a widely used, training-free method for tackling these inverse problems. The community has generally believed that DPS works by approximating the "conditional score"—a mathematical guide that nudges the diffusion process toward images that match the observed data. However, recent theoretical work suggests this approximation might be fundamentally flawed. This paper investigates whether the "sampling" explanation for DPS holds up and proposes a more accurate framework for how it actually functions.
Rethinking DPS: Optimization over Sampling
The core revelation of this paper is that DPS does not actually "sample" the posterior as previously believed. Instead, it behaves much more like a Maximum A Posteriori (MAP) optimizer.
When researchers evaluated DPS on high-resolution ($512 \times 512$) ImageNet images, they uncovered several key insights that challenge the status quo:
- The "Score" is Broken: The authors found that the "score" DPS calculates is mathematically invalid. A true score function should have a mean of zero; however, the DPS score mean is massive—nearly $15\times$ larger than that of a well-trained conditional model. Furthermore, its estimation significantly diverges from the score of a well-trained conditional diffusion model and is even inferior to an unconditional score.
- Quality $\neq$ Diversity: While DPS produces high-quality images, it severely lacks diversity. Running the method multiple times on the same input yields almost identical results. This lack of variance is the hallmark of MAP estimation (finding the single most likely image) rather than true posterior sampling (finding a distribution of possible images).
Proposed Solutions: DMAP and CSE
By leaning into the perspective that DPS is an optimizer in disguise, the authors introduce two major enhancements to improve image restoration quality:
1. DMAP (Diffusion Maximize a Posterior)
Instead of the single-step gradient update used in standard DPS, DMAP utilizes multi-step gradient ascent. Crucially, it leverages a property of high-dimensional geometry: Gaussian distributions concentrate on the surface of a sphere. DMAP projects the image back onto this "sphere surface" after each optimization step. This geometric constraint ensures the optimization doesn't drift into regions of unrealistic images, keeping the result strictly on the manifold of natural data.
2. CSE (Lightweight Conditional Score Estimator)
To give the optimization a better starting point, the authors train a "cheap" ControlNet. While most conditional models require massive datasets and compute, the authors show that a CSE trained on just 100 images for 8 GPU hours provides enough guidance to drastically outperform standard zero-shot methods. They even demonstrated that training this CSE on purely synthetic images generated by Stable Diffusion works, removing the need for real training data.
Key Results
The proposed DMAP and CSE methods consistently outperformed standard DPS and other state-of-the-art baselines across various tasks, including $8\times$ super-resolution, Gaussian deblurring, and non-linear deblurring:
- Super-Resolution ($8\times$): DMAP achieved a PSNR of 23.52, compared to 22.33 for standard DPS.
- Perceptual Quality: In terms of FID (a measure of how realistic the generated images look), the combination of DPS + CSE (trained on 1000 images) reached 36.23, a massive improvement over the 58.48 achieved by standard DPS.
- Efficiency: Despite the multi-step optimization, the additional training time for the CSE is amortized to just ~28 seconds per image, making it highly practical for real-world use.
Limitations and Future Work
While highly effective, the approach has a few limitations. The multi-step gradient ascent in DMAP introduces computational overhead, making the inference process roughly $3\times$ slower than standard DPS for the full version. Additionally, while the CSE is lightweight, the authors suggest that optimizing the standard ControlNet architecture could further reduce the 8-hour training requirement. Finally, exploring the absolute lower bound of data needed for effective guidance remains an open question, as a CSE trained on only 25 images failed due to overfitting.
Summary updated