Introduction
Inverse problems (IPs)—the task of recovering an original signal from noisy or degraded observations—are fundamental to fields ranging from medical imaging to computational photography. While Diffusion Models (DMs) have emerged as the gold standard for high-quality image synthesis, their application to IPs has been hampered by significant computational hurdles. Existing approaches typically struggle with either the complexity of tuning guidance terms in posterior sampling or the massive memory requirements of latent optimization.
This paper introduces DMILO (Diffusion Model Intermediate Layer Optimization) and DMILO-PGD, two novel frameworks designed to make diffusion-based inverse problem solvers more memory-efficient, robust, and capable of handling out-of-distribution data.
The Challenge: Memory and Manifolds
Traditional latent optimization methods, such as DMPlug, treat the diffusion process as a "black box." They attempt to optimize the initial noise vector by backpropagating through the entire sampling chain. Because DMs involve dozens or hundreds of sequential steps, this approach creates a massive memory bottleneck, often exceeding the capacity of modern GPUs. Furthermore, these methods frequently converge to local minima or fail when the target image deviates slightly from the training distribution of the DM.
Proposed Methodology
1. Intermediate Layer Optimization (ILO)
To address the memory bottleneck, the authors propose decomposing the DM sampling chain $G(\cdot) = g_1 \circ g_2 \circ \dots \circ g_N$ into its constituent steps. Instead of optimizing the entire chain at once, DMILO optimizes the representation at each intermediate sampling step sequentially.
- Layer-wise Optimization: By focusing on a single step at a time, the GPU only needs to store the gradient graph for that specific step. This results in a memory footprint that remains nearly constant regardless of the total number of sampling steps.
- Sparse Deviations: To account for signals that may lie slightly outside the DM's learned manifold, the authors introduce a sparse deviation vector ($\nu$) at each layer. This "fudge factor" allows the model to explore a wider range of signals, enabling the reconstruction of fine details that the DM might otherwise suppress.
2. DMILO-PGD
To overcome the issue of local minima, the authors integrate ILO into a Projected Gradient Descent (PGD) framework. This algorithm alternates between two distinct phases:
- Gradient Descent Step: A standard update to ensure the reconstruction matches the observed data.
- Projection Step: A "projection" using DMILO to pull the current estimate back toward the manifold of natural images.
Crucially, the authors utilize the forward measurement operator during this projection, which provides a more robust guidance mechanism than simple distance-based projections. Theoretical analysis provided in the paper suggests that under Lipschitz continuity and low-dimensionality assumptions, this measurement-guided projection is guaranteed to stay close to the true signal.
Experimental Results
Memory Efficiency
The most striking result is the memory scaling. On an NVIDIA RTX 4090, previous methods like DMPlug suffered out-of-memory (OOM) errors with as few as four sampling steps. In contrast, DMILO and DMILO-PGD maintained a stable memory footprint of approximately 10.5 GB, regardless of the number of steps. This efficiency allows for higher-fidelity reconstructions on consumer-grade hardware.
Reconstruction Performance
The methods were evaluated on high-resolution datasets including CelebA, FFHQ, LSUN-Bedroom, and ImageNet across tasks such as 4x Super-resolution, 70% Inpainting, and Gaussian/Motion Deblurring.
- SOTA Quality: DMILO-PGD consistently outperformed baselines like DPS and DDRM. For instance, in CelebA inpainting, DMILO-PGD achieved a PSNR of 36.42, compared to 33.07 for DPS.
- Blind Image Deblurring (BID): In tasks where the blur kernel is unknown, DMILO demonstrated a unique ability to simultaneously estimate the kernel and the sharp image, outperforming specialized BID methods like Blind-DPS.
Limitations and Future Directions
While DMILO-PGD offers superior robustness for linear and nonlinear IPs, the authors noted that pure DMILO actually performed better for Blind Image Deblurring, suggesting that standard PGD updates may not be optimal for unknown kernels. Additionally, while memory-efficient, the iterative nature of layer-wise optimization is slower than "one-shot" sampling methods. Future work may focus on improving initialization strategies to further accelerate convergence.
Conclusion
DMILO and DMILO-PGD represent a significant step forward in making diffusion-based inverse problem solvers practical. By breaking the memory bottleneck and introducing flexible sparse deviations, these methods allow for high-fidelity, robust image reconstruction that stays faithful to both the data and the generative prior.
Summary updated