Reblurring-Guided Single Image Defocus Deblurring: A Learning Framework with Misaligned Training Pairs

Dongwei Ren, Xinya Shu, Yu Li, Xiaohe Wu, Jin Li, Wangmeng Zuo

TL;DR

Training single image defocus deblurring models on real-world data is notoriously difficult because blurry and sharp image pairs are rarely perfectly aligned. This paper introduces a reblurring-guided learning framework that overcomes spatial misalignment by enforcing isotropic blur constraints and generating "free" pseudo-blur maps for training. Compatible with existing state-of-the-art architectures, this approach significantly improves deblurring quality with negligible computational overhead.

What Problem Does This Paper Address?

Defocus blur happens when objects fall outside a camera’s depth of field. While deep learning has pushed the boundaries of single-image deblurring, these models rely heavily on pairs of blurry images and sharp "ground-truth" images for training.

The catch? In the real world, capturing these pairs requires changing the camera's focus or aperture, which inevitably introduces subtle spatial misalignments like zoom and shift.

Spatial misalignment examples in common datasets.

When standard networks are trained on this misaligned data using pixel-wise loss functions, they try to compensate for the spatial shift by warping the image geometry. This results in severe deformation artifacts, such as turning straight architectural lines into unnatural curves.

Methods

To break the dependency on perfectly aligned data, the authors propose a joint deblurring and reblurring framework.

Overview of the proposed reblurring-guided learning framework.
  1. Misalignment-Tolerant Loss: Instead of computing pixel-to-pixel loss directly, the framework uses an optical flow network to dynamically warp the sharp ground-truth image to match the spatial layout of the deblurred estimate. A calibration mask filters out any unreliable flow estimations.
  2. The Reblurring Module: To ensure the deblurred image retains the correct spatial structure, a reblurring network ($\mathcal{R}$) attempts to re-introduce blur to the clean estimate to match the original input. This module predicts concentric, isotropic blur kernels in polar coordinates and blends them using predicted weight maps.
  3. Pseudo-Supervision & Fusion: A major innovation is that the reblurring module’s internal kernel and weight representations can be mathematically transformed into a pseudo defocus blur map. A lightweight estimator ($\mathcal{E}$) learns to predict this map from the blurry input, and a fusion block ($\mathcal{F}$) integrates it back into the primary deblurring network using a deformable cross-attention mechanism. This allows any off-the-shelf deblurring network ($\mathcal{D}$) to benefit from blur-map priors without changing its core architecture.
Detailed structure of the reblurring network.

Datasets

The authors evaluated their framework on four distinct datasets:

  • DPDD: A widely used dual-pixel camera dataset that contains subtle, unintended misalignments.
  • RealDOF: A dual-camera dataset used primarily to test how well models generalize to unseen data.
  • DED: A light-field dataset where triplets are perfectly aligned but images suffer from lower resolutions.
  • SDD (Single Image Defocus Deblurring): A new dataset introduced in this paper. It consists of 150 high-resolution (4096×2160) image pairs captured with a HUAWEI camera. It deliberately includes realistic zoom and shift misalignments, providing a challenging benchmark for robust deblurring.

Key Insights and Ideas

  • Reblurring as a Geometric Anchor: Forcing a network to successfully "re-blur" its sharp output back into the exact input image acts as a powerful regularizer. Because the predicted blur kernels are constrained to be isotropic (uniform in all directions), the network cannot cheat by introducing geometric distortions.
  • Upgrading Pairs to Triplets: Typically, training a blur-estimation network requires explicit ground-truth blur maps (forming a training "triplet"). This framework extracts pseudo-blur maps directly from the reblurring process, effectively upgrading simple image pairs into data-rich triplets for free.
  • Deformable Attention for Prior Alignment: Because blur maps and blurry images can still be slightly misaligned during the early stages of training, standard convolutions fail to fuse them cleanly. Utilizing deformable cross-attention allows the network to dynamically align the blur prior with the image content over a broader field of view.

Key Results

  • Substantial Quantitative Gains: When integrated with existing architectures on the misaligned SDD dataset, the framework achieved notable Peak Signal-to-Noise Ratio (PSNR) improvements. A baseline UNet saw a boost of +1.58 dB, while top-tier Transformer models like Loformer achieved a +0.68 dB increase.
  • State-of-the-Art Performance: The framework consistently achieved top-tier quantitative metrics (PSNR, SSIM, LPIPS, FID, DISTS) across the DPDD, RealDOF, and DED datasets when paired with advanced backbones like Restormer.
  • Minimal Overhead: The added blur estimator ($\mathcal{E}$) and fusion block ($\mathcal{F}$) are incredibly lightweight, introducing only about 0.1M extra parameters and 18G FLOPs—a negligible cost compared to heavy transformer backbones.

Limitations and Future Work

The primary limitation highlighted by the authors is the sensor domain gap. Cross-dataset evaluations revealed that a model trained on data from one camera sensor (e.g., the HUAWEI camera in SDD) does not perform optimally when tested on a different sensor (e.g., the Google Pixel camera in RealDOF). This is because different camera hardwares introduce unique, sensor-specific blur characteristics.

Future research will need to focus on developing rapid adaptation strategies or sensor-agnostic architectures that can quickly adjust to new camera hardware without requiring massive, perfectly aligned datasets.

Summary updated

BibTeX
@article{ren2025reblurring,
  author = {Dongwei Ren and Xinya Shu and Yu Li and Xiaohe Wu and Jin Li and Wangmeng Zuo},
  title = {{Reblurring-Guided Single Image Defocus Deblurring: A Learning Framework with Misaligned Training Pairs}},
  journal = {Int. J. Comput. Vis.},
  year = {2025},
  doi = {10.1007/s11263-025-02522-3},
}
Figure