Skip to main content
QUICK REVIEW

[Paper Review] Efficient Frequency Domain-based Transformers for High-Quality Image Deblurring

Lingshun Kong, Jiangxin Dong|arXiv (Cornell University)|Nov 22, 2022
Advanced Image Processing TechniquesComputer Science7 citations
TL;DR

This paper proposes FFTformer, an efficient frequency domain-based Transformer for high-quality image deblurring. By leveraging the convolution theorem, it replaces quadratic complexity scaled dot-product attention with an O(N log N) element-wise product in the frequency domain, while introducing a discriminative frequency-based FFN (DFFN) with JPEG-inspired gating to preserve critical low- and high-frequency features. The method achieves state-of-the-art performance with reduced FLOPs and parameters.

ABSTRACT

We present an effective and efficient method that explores the properties of Transformers in the frequency domain for high-quality image deblurring. Our method is motivated by the convolution theorem that the correlation or convolution of two signals in the spatial domain is equivalent to an element-wise product of them in the frequency domain. This inspires us to develop an efficient frequency domain-based self-attention solver (FSAS) to estimate the scaled dot-product attention by an element-wise product operation instead of the matrix multiplication in the spatial domain. In addition, we note that simply using the naive feed-forward network (FFN) in Transformers does not generate good deblurred results. To overcome this problem, we propose a simple yet effective discriminative frequency domain-based FFN (DFFN), where we introduce a gated mechanism in the FFN based on the Joint Photographic Experts Group (JPEG) compression algorithm to discriminatively determine which low- and high-frequency information of the features should be preserved for latent clear image restoration. We formulate the proposed FSAS and DFFN into an asymmetrical network based on an encoder and decoder architecture, where the FSAS is only used in the decoder module for better image deblurring. Experimental results show that the proposed method performs favorably against the state-of-the-art approaches. Code will be available at \url{https://github.com/kkkls/FFTformer}.

Motivation & Objective

  • To address the high computational cost of standard self-attention in Transformers for image deblurring, which scales quadratically with feature map size.
  • To improve deblurring quality by better preserving relevant frequency components (low- and high-frequency) in feature representations.
  • To reduce model complexity and inference cost while maintaining or improving restoration accuracy.
  • To explore the benefits of applying Transformer mechanisms in the frequency domain rather than spatial domain for image deblurring.
  • To design an asymmetric encoder-decoder architecture where frequency-based attention is applied only in the decoder to avoid noise amplification from blurred shallow features.

Proposed method

  • Proposes a frequency domain-based self-attention solver (FSAS) that computes scaled dot-product attention via element-wise multiplication in the frequency domain, reducing complexity from O(N²) to O(N log N).
  • Applies the convolution theorem: spatial convolution is equivalent to point-wise multiplication in the frequency domain, enabling efficient attention computation.
  • Introduces a discriminative frequency domain-based FFN (DFFN) that uses a gated mechanism inspired by JPEG compression to selectively preserve useful frequency components in features.
  • Designs an asymmetric encoder-decoder network where FSAS is applied only in the decoder, avoiding attention computation on blurry shallow features.
  • Employs an end-to-end trainable framework combining FSAS and DFFN for joint optimization of deblurring performance and efficiency.
  • Uses FFT-based operations to transform feature maps into frequency space, apply attention via element-wise multiplication, and invert back to spatial domain.

Experimental results

Research questions

  • RQ1Can frequency domain operations reduce the computational complexity of self-attention in Transformers for image deblurring without sacrificing performance?
  • RQ2Does applying frequency-based attention only in the decoder improve deblurring quality compared to applying it in both encoder and decoder?
  • RQ3Can a frequency-aware gating mechanism in the FFN improve feature refinement by selectively preserving low- and high-frequency components?
  • RQ4How does the proposed method compare to state-of-the-art approaches in terms of PSNR, SSIM, FLOPs, and model parameters?
  • RQ5Does the frequency domain reformulation of self-attention lead to better blur removal and sharper edge recovery than spatial domain attention?

Key findings

  • The proposed FSAS reduces the space and time complexity of self-attention from O(N²) to O(N log N), significantly improving efficiency.
  • On the GoPro dataset, the method achieves a PSNR of 33.73 and SSIM of 0.9663, outperforming state-of-the-art methods in both accuracy and efficiency.
  • Ablation studies show that using FSAS in the decoder only yields at least 0.17 dB higher PSNR than using it in both encoder and decoder.
  • The DFFN improves performance by 0.36 dB in PSNR compared to using the standard FFN, demonstrating its effectiveness in frequency-aware feature refinement.
  • Visual comparisons confirm that FSAS and DFFN together produce clearer images with better edge recovery and reduced artifacts.
  • The method achieves favorable trade-offs between accuracy and efficiency, as shown by smaller model size and lower FLOPs compared to prior methods.

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.