ExpRDiff: Short-exposure Guided Diffusion Model for Realistic Local Motion Deblurring

Zhongbao Yang, Jiangxin Dong, Jinhui Tang, Jinshan PanarXiv 2024 · DOI

Introduction

In modern mobile photography, low-light conditions often necessitate long-exposure shots to capture bright, clean backgrounds. However, this technique frequently results in local motion blur—where moving subjects like pedestrians or vehicles appear smeared while the rest of the scene remains sharp. Standard deblurring methods often struggle with this dichotomy, either over-smoothing the sharp background or failing to reconstruct realistic textures in the blurry regions.

ExpRDiff addresses this by leveraging the "burst mode" capabilities of modern smartphones. By utilizing a noisy but structurally sharp short-exposure image as a reference, the framework can guide the restoration of the long-exposure photo, effectively fusing the best characteristics of both captures.

Comparison of long-exposure and short-exposure photos. The long-exposure (top) captures light but blurs motion, while the short-exposure (bottom) captures structure but is dark and noisy.

Methodology

The ExpRDiff framework consists of three integrated modules designed to detect, isolate, and realistically restore local motion blur:

  • Context-based Local Blur Detection Module (CLBDM): This module employs a patch-based approach with a sequence of "Base Blocks" to understand the spatial context. It utilizes a Gumbel-Softmax trick to generate a differentiable binary mask, precisely identifying which pixels require restoration.
  • Blurry-aware Guided Image Restoration: Using the generated blur mask, this component adapts traditional guided filtering. It ensures that the high-frequency details from the short-exposure reference are only applied to the blurry regions, preventing artifacts in the already sharp background.
  • Short-exposure Guided Diffusion Model (ExpBFusion): To achieve high visual realism, the system uses Stable Diffusion XL (SDXL) as a generative backbone. The ExpBFusion module extracts multi-scale features from the short-exposure image and injects them into the diffusion process, constraining the model to reconstruct real structural details rather than hallucinating textures.

Datasets and Evaluation

The researchers evaluated ExpRDiff on two primary benchmarks:

  1. ReLoBlur: A synthetic dataset for local motion blur.
  2. LMBD (Local Motion Blurred Dataset): A new real-world dataset captured using a vivo X100 Pro smartphone. It includes over 10,000 training pairs and 209 evaluation images, providing a rigorous test for real-world performance.

Key Results

ExpRDiff significantly outperformed existing state-of-the-art (SOTA) methods like NAFNet and Restormer. On the real-world LMBD dataset, ExpRDiff achieved a NIQE score of 4.3228, nearly halving the score of the next best method (NAFNet* at 8.2431), indicating much higher naturalness.

Qualitative comparison of ExpRDiff against SOTA methods. ExpRDiff (d) restores sharp, realistic wheel textures where methods like LBAG (a) and NAFNet (c) leave significant blur or artifacts.

Visual results demonstrate that while traditional CNN-based methods often produce "ghostly" or over-smoothed textures, ExpRDiff successfully restores fine details—such as tire treads and sharp edges—that match the quality of the surrounding sharp background.

Limitations and Future Work

Despite its superior quality, ExpRDiff faces challenges common to diffusion-based models. The iterative nature of the diffusion process makes it computationally expensive compared to pure CNN architectures, posing a hurdle for real-time on-device processing. Additionally, the model assumes reasonable alignment between the long and short-exposure frames; extreme camera shake could still lead to artifacts. Future research will likely focus on distilling these generative capabilities into more efficient architectures for mobile deployment.

Summary updated

BibTeX
@misc{yang2024exprdiff,
  author = {Zhongbao Yang and Jiangxin Dong and Jinhui Tang and Jinshan Pan},
  title = {{ExpRDiff: Short-exposure Guided Diffusion Model for Realistic Local Motion Deblurring}},
  year = {2024},
  eprint = {2412.09193},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.09193},
}
Figure