Introduction
Diffusion models have emerged as a dominant paradigm for image generation and restoration. However, when applied to inverse problems—such as deblurring or inpainting—these models often exhibit "shaky" or unstable generation trajectories. This instability stems from a fundamental conflict between the natural image prior (the score function) and the data consistency constraints (the likelihood guidance). In this paper, we introduce Stabilized Progressive Gradient Diffusion (SPGD), a framework designed to manage these conflicting gradients to achieve more robust and high-quality image reconstruction.
The Challenge: Gradient Conflict and Fluctuation
Image restoration in a Bayesian framework involves balancing two primary forces: a Prior Score, which directs the image toward the manifold of natural photos, and Likelihood Guidance, which ensures the reconstructed image remains consistent with the observed degraded input.
We identify two critical issues that plague existing methods like Diffusion Posterior Sampling (DPS):
- Gradient Conflict: In the early stages of the reverse diffusion process, the prior and likelihood gradients often point in opposing directions, hindering the formation of a coherent global structure.
- Gradient Fluctuation: The likelihood gradient is notoriously unstable, exhibiting high-frequency oscillations that cause the restoration path to "jitter," leading to visual artifacts and slow convergence.
Stabilized Progressive Gradient Diffusion (SPGD)
To address these instabilities, SPGD introduces two key mechanisms into the reverse diffusion step:
Progressive Likelihood Warm-Up
Rather than applying both gradients simultaneously in a single step, SPGD employs a "warm-up" phase. At each timestep, the model performs several iterative updates using only the likelihood gradient. This allows the intermediate state to adapt to the measurement constraints before the denoising prior is introduced, ensuring a more compatible starting point for the joint update.
Adaptive Directional Momentum (ADM)
To mitigate gradient fluctuation, we propose ADM smoothing. Unlike standard momentum, ADM dynamically scales the influence of historical gradients based on directional consistency. When the current gradient aligns with the previous trajectory, momentum is increased to accelerate convergence. Conversely, if a sharp change in direction is detected, the momentum weight is reduced, allowing the model to remain responsive to new structural information without being derailed by noise.
Experimental Results
We evaluated SPGD on the FFHQ (human faces) and ImageNet (general objects) datasets across four restoration tasks: random inpainting, Gaussian blur, motion blur, and 4x super-resolution.
Qualitative Performance
SPGD consistently produces cleaner and more detailed results than existing baselines. As shown in the comparison below, SPGD excels at recovering intricate textures—such as fine hair and eye reflections—where other methods often introduce blur or hallucinated artifacts.
Quantitative and Efficiency Gains
Quantitatively, SPGD achieves state-of-the-art performance in PSNR, SSIM, and LPIPS. For instance, on the FFHQ Inpainting task, SPGD reached a PSNR of 30.87 dB, a significant improvement over DPS (26.11 dB). Furthermore, SPGD is remarkably efficient; it outperforms DPS even when the latter is allowed significantly more function evaluations (NFEs), demonstrating that the quality of the gradient step is more critical than the quantity.
Conclusion
By explicitly managing gradient conflicts and fluctuations, SPGD provides a more stable and effective path for diffusion-based image restoration. While current implementations require task-specific hyperparameter tuning for the learning rate, the underlying principles of progressive warm-up and adaptive momentum offer a promising foundation for extending stable diffusion guidance to broader applications, including video generation and text-to-image synthesis.
Summary updated