The RealDefocus Benchmark for Defocus Deblurring

Tim Seizinger, Zhuyun Zhou, Radu TimoftearXiv 2026

TL;DR

The paper introduces RealDefocus, a large-scale, high-resolution benchmark designed to standardize and advance Single-Image Defocus Deblurring (SIDD). By repurposing a real-world bokeh rendering dataset into paired blurred/sharp images, the authors provide a rigorous evaluation framework that demonstrates how massive data scale and diversity unlock the true potential of modern transformer and state-space models.

What Problem Does This Paper Address?

When a camera captures a scene with a shallow depth of field, objects outside the focal plane become blurry—a phenomenon known as optical defocus. Single-Image Defocus Deblurring (SIDD) tries to reverse this effect to recover an all-in-focus image.

However, SIDD is a notoriously ill-posed problem because defocus blur is spatially varying; it changes depending on lens characteristics and scene depth. To train deep learning models to fix this, researchers need high-quality, real-world datasets. Existing datasets suffer from severe limitations: they are either too small, restricted to a single mild blur setting, or rely on synthetically generated blur that fails to capture real optical physics.

This paper addresses the lack of a large-scale, high-resolution, real-world benchmark with standardized evaluation protocols to fairly compare modern architectures.

Methods

The authors establish a unified benchmarking protocol by leveraging RealDefocus, a dataset derived by reversing the input-target roles of the RealBokeh dataset. Instead of turning sharp images into bokeh, they take shallow depth-of-field images as inputs and use the corresponding $f/22.0$ small-aperture images as sharp ground truths.

Using this dataset, they conduct a comprehensive evaluation of 10 recent models spanning four distinct architectural philosophies:

  1. Dedicated Defocus Deblurring Networks: Models explicitly designed with blur-kernel estimation or physics-inspired priors (e.g., DPDNetS, GKMNet, NRKNet).
  2. Motion Deblurring Methods: State-of-the-art architectures designed for movement blur (e.g., EVSSM, FFTFormer).
  3. General-Purpose Image Restoration Backbones: Large, versatile models like Restormer and EAMamba.
  4. Neural Bokeh Rendering Models: Physics-informed architectures like Bokehlicious, evaluated here on the inverse task.

All models are trained under a standardized protocol (patches of $512 \times 512$ sampled from high-resolution images) and subjected to cross-dataset validation to test how well they generalize to unseen real-world data.

Datasets

The paper evaluates and compares several key datasets:

  • RealDefocus (Proposed Benchmark): Contains 23,000 image pairs across 4,400 unique scenes at a massive $6000 \times 4000$ resolution. It covers a wide aperture range ($f/2.0$ to $f/20.0$), offering diverse indoor/outdoor scenes and real optical blur.
  • DPDDS: A popular prior dataset captured with a dual-pixel sensor. It contains only 500 scenes and is restricted to a single aperture setting ($f/4.0$), meaning it only features mild blur.
  • LFDOF: A larger dataset (12,600 samples), but its defocus blur is synthetically generated from light-field data, creating a domain gap.
  • RealDOF: A high-quality dataset containing only 50 real defocus pairs, utilized in this paper strictly as an independent test set for cross-dataset validation.
Fig. 1. Representative samples from the RealDefocus [1] dataset illustrating increasing defocus blur with decreasing aperture values. For each scene, the image captured at f/22.0 serves as the sharp ground truth, while progressively smaller f-stop values (e.g. f/8.0, f/4.0 and f/2.0) produce stronger defocus blur effects. Two example scenes (outdoor and indoor) are shown at focal lengths of 61 and 70 mm, respectively, highlighting the diversity in scene content, focal length, and blur strength.

Key Insights and Ideas

  • Data Scale Shifts the Paradigm: On older, smaller datasets, lightweight and highly specialized defocus models remained competitive. RealDefocus reveals a shift: when given sufficient data scale and diversity, massive, expressive architectures (like transformers and State Space Models) easily outperform traditional, hand-crafted defocus designs.
  • The Power of Task Inversion: Bokehlicious, a model originally built to synthesize bokeh using a physics-informed lens-mimicking architecture, proved remarkably adept at the inverse task of deblurring. It achieved the highest perceptual fidelity overall and handled severe blur ($f/2.0$) better than dedicated restoration models.
  • Real Data Unlocks Generalization: Training on a diverse range of real optical blurs (rather than a single aperture setting or synthetic blur) is crucial. Models trained on RealDefocus generalize significantly better to entirely unseen camera setups than those trained on older benchmarks.

Key Results

  • Top Performers: Averaged across all blur levels, FFTFormer (a frequency-domain transformer) achieved the highest quantitative restoration accuracy with a PSNR of 30.206 dB and an SSIM of 0.8837.
  • Perceptual Quality: Bokehlicious achieved the best overall perceptual quality (lowest LPIPS score of 0.1125) and dominated the most severe blur category ($f/2.0$) with a PSNR of 24.546 dB.
  • Cross-Dataset Validation: When evaluated on the completely unseen RealDOF dataset, models trained on RealDefocus showed massive performance leaps over those trained on DPDDS. For example, Bokehlicious gained +1.402 dB in PSNR, proving the superior transferability of the new benchmark.

Limitations and Future Work

The authors note that current real-world capture protocols—including their own—rely on a small aperture (like $f/22.0$) to serve as the "sharp" ground truth. However, even at $f/22.0$, a tiny amount of residual defocus or diffraction can remain in the ground truth image.

To overcome this, they suggest that future dataset collection paradigms should explore focus-stacking, a technique where multiple photos taken at different focal distances are digitally fused into a perfectly sharp composite. While currently limited to static macro-photography, adapting focus-stacking to dynamic, deep outdoor scenes is a promising avenue for creating perfect ground truths.

Summary updated

BibTeX
@misc{seizinger2026realdefocus,
  author = {Tim Seizinger and Zhuyun Zhou and Radu Timofte},
  title = {{The RealDefocus Benchmark for Defocus Deblurring}},
  year = {2026},
  eprint = {2607.21078},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.21078},
}
Figure