Introduction
Inverse problems—the task of recovering an original signal from corrupted measurements—are fundamental to fields ranging from medical imaging to computational photography. While diffusion models have emerged as powerful image priors for these tasks, their practical application is often hindered by high computational costs. Standard solvers typically require thousands of function evaluations (NFEs), leading to inference times measured in minutes. Furthermore, non-linear inverse problems, such as phase retrieval, remain a significant challenge for existing diffusion-based methods.
This paper introduces Measurements Optimization (MO), a plug-and-play module designed to bridge the gap between high-quality restoration and computational efficiency. By integrating an iterative optimization loop directly into the diffusion sampling process, MO achieves state-of-the-art results with a 10x to 40x reduction in NFEs, making high-quality image restoration possible in seconds.
The Measurements Optimization (MO) Framework
The core innovation of this work is the MO module, which replaces the standard single-step guidance used in most diffusion solvers with a dedicated mini-optimization loop at each diffusion step.
Stochastic Gradient Langevin Dynamics (SGLD)
Instead of a simple gradient nudge, MO employs SGLD to iteratively minimize the data consistency term: $||y - \mathcal{A}(x)||^2_2$, where $y$ is the measurement and $\mathcal{A}$ is the forward operator. SGLD is particularly effective for non-linear and non-convex problems because its inherent stochasticity allows the optimization to escape local minima that trap standard optimizers like Adam. This noise aligns perfectly with the diffusion framework's requirement for noisy inputs.
Manifold Pull-back
Aggressive optimization toward the measurement can push the estimated image off the natural image manifold. To counteract this, MO performs a "manifold pull-back." The optimized result is perturbed with a controlled amount of noise and then passed through a pretrained diffusion denoiser. This ensures the final output remains consistent with both the measurement and the learned image prior.
Experimental Evaluation
The researchers evaluated the MO module by integrating it into existing frameworks, resulting in DPS-MO (based on Diffusion Posterior Sampling) and Red-diff-MO. Testing was conducted on the FFHQ (256×256) and ImageNet (256×256) datasets across eight distinct tasks:
- Linear Tasks: Super-resolution, box inpainting, random inpainting, Gaussian deblurring, and motion deblurring.
- Non-linear Tasks: Phase retrieval, non-linear deblurring, and HDR reconstruction.
Key Results and Discussion
The integration of MO leads to significant improvements in both speed and restoration quality across diverse tasks.
Efficiency and Speed
DPS-MO demonstrates a massive speedup, producing high-quality restorations in approximately 5.3 seconds. In contrast, baseline methods like DPS or Red-diff require 60 to 84 seconds. This efficiency stems from MO's ability to "saturate" performance early; for many tasks, 50-100 NFEs with MO outperform 1,000 NFEs of standard methods.
Performance on Non-linear Problems
MO excels in challenging non-linear scenarios. In phase retrieval tasks, where standard diffusion solvers often fail to produce recognizable images, MO consistently generates high-fidelity results. For HDR imaging on the FFHQ dataset, DPS-MO achieved a PSNR of 28.71 dB with only 100 NFEs, matching or exceeding the quality of previous state-of-the-art methods that required up to 4,000 NFEs.
Memory Efficiency
By optimizing the image directly rather than tracking gradients through the entire diffusion model, MO is significantly more memory-efficient. For a batch size of 10, MO requires approximately 6GB of VRAM, compared to the 22GB required by standard DPS.
Conclusion and Future Work
Measurements Optimization (MO) represents a significant step forward in making diffusion-based inverse problem solving practical for real-time applications. While the method currently requires a differentiable forward operator, its ability to handle complex non-linear tasks with minimal computational overhead is a major advancement. Future research will focus on extending MO to non-differentiable "black box" corruption processes, further broadening its applicability to diverse scientific and engineering domains.
Summary updated