Efficient Frequency Domain-based Transformers for High-Quality Image Deblurring

Lingshun Kong, Jiangxin Dong, Jianjun Ge, Mingqiang Li, Jinshan Pan · DOI

Abstract

This paper introduces FFTformer, an efficient architecture designed to overcome the computational bottlenecks of Transformer-based image deblurring. By shifting global context modeling from the spatial domain to the frequency domain, the authors propose a Frequency Domain-based Self-Attention Solver (FSAS) and a Discriminative Frequency Domain-based Feed-Forward Network (DFFN). These components allow for global dependencies to be captured with $O(N \log N)$ complexity. FFTformer achieves state-of-the-art performance on major benchmarks, including a 34.21 dB PSNR on the GoPro dataset, while utilizing significantly fewer parameters and computational resources than existing models.

Introduction

Image deblurring is a fundamental task in computer vision aimed at recovering sharp images from blurred inputs. While Convolutional Neural Networks (CNNs) have been the dominant approach, their local receptive fields often fail to capture the global context necessary for complex motion blur. Transformers address this via self-attention mechanisms; however, the standard spatial self-attention suffers from quadratic complexity ($O(N^2)$) relative to image resolution. This makes them computationally expensive for high-resolution restoration tasks. FFTformer addresses this challenge by leveraging the efficiency of the Fourier domain to maintain global context without the heavy computational overhead.

Proposed Method: FFTformer

The FFTformer architecture utilizes an asymmetric encoder-decoder structure optimized for both performance and efficiency.

Frequency Domain-based Self-Attention Solver (FSAS)

The FSAS module replaces traditional spatial self-attention with a frequency-domain alternative. According to the convolution theorem, spatial correlation is equivalent to element-wise multiplication in the frequency domain. By transforming features using the Fast Fourier Transform (FFT), performing point-wise multiplication, and then applying the Inverse FFT (IFFT), FSAS captures global dependencies with a complexity of only $O(N \log N)$.

Discriminative Frequency Domain-based FFN (DFFN)

Standard Feed-Forward Networks (FFNs) often struggle to distinguish between noise and essential structural information during deblurring. Inspired by JPEG compression, the DFFN incorporates a gated mechanism with a learnable quantization matrix. This allows the model to adaptively weight different frequency components, effectively filtering out blur-induced artifacts while preserving sharp edges.

The FFTformer architecture (a) features an asymmetric design, utilizing the FSAS (b) and DFFN (c) modules to efficiently process image features in the frequency domain.

Asymmetric Architecture

The authors observed that features in the early encoder layers are often too degraded to benefit from global attention. Consequently, FFTformer employs an asymmetric design where FSAS modules are primarily integrated into the decoder. This ensures that global context is applied to features that have already been partially refined, leading to more stable and accurate restoration.

Experimental Results

FFTformer was evaluated on the GoPro, HIDE, and RealBlur datasets, consistently outperforming existing state-of-the-art (SOTA) methods.

Performance and Efficiency

On the GoPro dataset, FFTformer achieved a PSNR of 34.21 dB, surpassing the previous leader, NAFNet, by 0.5 dB. Remarkably, this performance is achieved with only 16.6M parameters—approximately 25% of NAFNet's parameter count. As shown in the comparison below, FFTformer provides a superior trade-off between restoration quality (PSNR) and computational cost (FLOPs).

Performance comparison showing FFTformer (Ours) achieving higher PSNR with lower computational complexity (FLOPs) compared to other Transformer and CNN-based models.

Qualitative Analysis

Visual results indicate that FFTformer is exceptionally effective at restoring fine details, such as text on signs and sharp object boundaries, which are often smudged by competing methods. The use of frequency-domain priors allows the model to reconstruct high-frequency details that are typically lost in the blurring process.

Conclusion

FFTformer represents a significant step forward in efficient image restoration. By moving the core operations of the Transformer into the frequency domain, the model achieves a rare combination of high performance, global context modeling, and low computational footprint. Future research may explore the application of these frequency-domain modules to other restoration tasks such as denoising, super-resolution, and low-light enhancement.

Summary updated

BibTeX
@misc{kong2022efficient,
  author = {Lingshun Kong and Jiangxin Dong and Jianjun Ge and Mingqiang Li and Jinshan Pan},
  title = {{Efficient Frequency Domain-based Transformers for High-Quality Image Deblurring}},
  year = {2022},
  eprint = {2211.12250},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.12250},
}
Figure