Introduction
Defocus blur is a common photographic artifact that occurs when a camera's aperture is too wide for the scene's depth, causing points of light to expand into "circles of confusion." Because this blur varies spatially based on object depth, it presents a significant challenge for image restoration. Traditional deconvolution methods often struggle with the non-linear complexity of real-world blur, while standard deep learning approaches (CNNs and ViTs) frequently produce over-smoothed results that lack fine perceptual detail due to their reliance on simple pixel-level loss functions.
While Diffusion Models have emerged as a powerful tool for generating high-fidelity images, they are typically computationally expensive and can struggle to maintain fidelity to the original input. The Residual Diffusion Deblurring Model (RDDM) addresses these issues by reframing the restoration task as a residual learning problem, achieving state-of-the-art results with remarkable efficiency.
The RDDM Framework
The RDDM architecture is a three-stage pipeline designed to balance generative power with computational speed. Instead of generating a sharp image from pure noise, the system focuses on refining an initial estimate.
1. Pre-deblur Module
This module generates a "cheap guess" of the sharp image. It utilizes a modified NAFNet architecture enhanced with Deformable Convolutions (DCN). These convolutions provide a learnable receptive field, allowing the model to dynamically adjust its focus area to capture the varying shapes and sizes of defocus blur circles.
2. Defocus Map Estimator
A SegFormer-based module predicts a spatial "blur map." This map serves as a prior, informing the rest of the network about where the blur is most intense, which is critical for handling spatially varying defocus.
3. RDDM Denoising Network
The core of the system is a U-Net utilizing Residual Diffusion Deblur (RDD) blocks. By learning to predict the residual—the difference between the initial guess and the ground truth—the diffusion process converges much faster. This allows the model to produce high-quality results in as few as 2 to 4 inference steps using DDIM sampling.
Key Innovations and Insights
Residuals as a Shortcut
The most significant insight of RDDM is that modeling the difference between blurred and sharp images is far more efficient than modeling the sharp image itself. This approach reduces the generative burden on the diffusion model, allowing it to "fill in the blanks" rather than inventing the entire scene from scratch.
Semantic Guidance
To ensure that restored details are contextually accurate, the model incorporates features from a pre-trained ResNet50. This semantic guidance helps the denoising process maintain structural integrity, ensuring that restored textures (like eyes or text) remain recognizable and realistic.
Perception vs. Distortion
RDDM prioritizes perceptual realism over simple mathematical closeness (PSNR). By optimizing for metrics like LPIPS, the model produces images that appear significantly sharper and more natural to human observers, avoiding the "plastic" look common in many CNN-based restorations.
Experimental Results
The model was rigorously evaluated on major benchmarks, including the DPDD (Dual Pixel Defocus Deblurring) dataset, RealDOF, and the CUHK collection for in-the-wild performance.
RDDM achieved state-of-the-art performance across key perceptual metrics:
- Perceptual Quality: On the DPDD dataset, RDDM reached an LPIPS score of 0.166, a 9.2% improvement over the previous leader, DRBNet.
- Realism: The model achieved an FID score of 1.681, significantly outperforming competitors like IFANet and DPDNet.
- Efficiency: While standard diffusion models often require 50 or more steps, RDDM provides high-fidelity results in just 3 steps, bringing diffusion-based restoration closer to real-time viability.
Conclusion and Future Work
RDDM demonstrates that residual learning can unlock the potential of diffusion models for practical image restoration. By combining learnable receptive fields with a fast-converging denoising process, the framework sets a new standard for defocus deblurring. Future research may focus on further reducing computational overhead by exploring more lightweight backbones for the pre-deblur stage and improving the robustness of the defocus map estimation.
Summary updated