Skip to main content
QUICK REVIEW

[Paper Review] Efficient Image Deblurring Networks based on Diffusion Models

Kang Chen, Yuanjie Liu|arXiv (Cornell University)|Jan 11, 2024
Advanced Image Processing TechniquesComputer Science3 citations
TL;DR

This paper proposes Swintormer, a memory-efficient diffusion-based Transformer network for image deblurring that leverages latent priors from a fine-tuned diffusion model to enhance detail recovery. By integrating sliding window self-attention with mixed spatial-channel attention and optimizing MACs, it achieves state-of-the-art PSNR of 27.07 dB on the DPDD dataset with only 8.02 GMACs—reducing computational cost by 94% compared to prior methods.

ABSTRACT

This article presents a sliding window model for defocus deblurring, named Swintormer, which achieves the best performance to date with remarkably low memory usage. This method utilizes a diffusion model to generate latent prior features, aiding in the restoration of more detailed images. Additionally, by adapting the sliding window strategy, it incorporates specialized Transformer blocks to enhance inference efficiency. The adoption of this new approach has led to a substantial reduction in Multiply-Accumulate Operations (MACs) per iteration, drastically cutting down memory requirements. In comparison to the currently leading GRL method, our Swintormer model significantly reduces the computational load that must depend on memory capacity, from 140.35 GMACs to 8.02 GMACs, while improving the Peak Signal-to-Noise Ratio (PSNR) for defocus deblurring from 27.04 dB to 27.07 dB. This innovative technique enables the processing of higher resolution images on memory-limited devices, vastly broadening potential application scenarios. The article wraps up with an ablation study, offering a comprehensive examination of how each network module contributes to the final performance.The source code and model will be available at the following website: https://github.com/bnm6900030/swintormer.

Motivation & Objective

  • Address the high computational and memory demands of existing deep learning-based image deblurring models, especially for high-resolution inputs.
  • Overcome the limitations of supervised deblurring networks that require large labeled datasets and suffer from poor generalization on out-of-distribution data.
  • Leverage pre-trained diffusion models to generate rich latent priors that improve feature representation and restore finer image details without requiring additional labeled data.
  • Design a memory-efficient Transformer architecture that maintains high performance while drastically reducing MACs, enabling deployment on low-resource devices.
  • Ensure consistent input tensor size distribution between training and inference through a plug-and-play pre-processing strategy, improving performance without retraining.

Proposed method

  • Fine-tune a latent diffusion model on ImageNet and use it to generate high-quality latent feature priors for deblurring, enhancing the model's ability to recover fine details.
  • Introduce Swintormer, a sliding window Transformer with mixed self-attention that applies spatial and channel-wise attention in a shared, efficient architecture to model long-range dependencies with linear complexity.
  • Implement a modified multi-head self-attention mechanism using shifted windows and depthwise convolutions (DConv) to reduce computational cost while preserving performance.
  • Apply a plug-and-play pre-processing technique that aligns input tensor dimensions with the training distribution by adjusting window and shift sizes, improving inference robustness without retraining.
  • Optimize the network’s Multiply-Accumulate (MAC) operations through architectural design and efficient attention mechanisms, reducing total MACs from 140.35 GMACs (GRL) to 8.02 GMACs.
  • Train the deblurring network end-to-end using the generated latent priors and ground-truth labels, enabling the model to learn from both data distribution and prior knowledge.

Experimental results

Research questions

  • RQ1Can a pre-trained diffusion model be effectively leveraged to generate latent priors that improve image deblurring performance without requiring additional labeled data?
  • RQ2How can a Transformer-based architecture be designed to maintain high performance while drastically reducing MACs for high-resolution image deblurring?
  • RQ3What is the impact of using a sliding window mechanism with mixed spatial-channel attention on modeling long-range dependencies and computational efficiency?
  • RQ4Can a plug-and-play pre-processing strategy that aligns input tensor dimensions with training distribution improve inference performance without retraining?
  • RQ5To what extent does the number of diffusion sampling steps affect the quality of latent priors and the final deblurring performance?

Key findings

  • Swintormer achieves a PSNR of 27.07 dB on the Canon DP dataset, surpassing the previous SOTA method GRL (27.04 dB) by 0.03 dB, with a significant 94.3% reduction in MACs (from 140.35 GMACs to 8.02 GMACs).
  • The diffusion prior contributes a 0.11 dB improvement over the baseline, with performance stabilizing at 50 sampling steps, which was selected for the final model.
  • The proposed mixed attention mechanism (shifted windows + DConv) improves performance by 0.08 dB over the baseline, outperforming standard MDTA in efficiency and accuracy.
  • The pre-processing inference strategy boosts performance by 0.25 dB over the baseline by aligning input tensor size with training without retraining or fine-tuning.
  • On the outdoor scene category, Swintormer achieves a 0.12 dB improvement over GRL, demonstrating strong generalization and detail recovery on challenging scenes.
  • The model maintains state-of-the-art performance on both defocus and motion deblurring benchmarks, confirming its robustness across different blur types.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.