[Paper Review] Spatial-Frequency Attention for Image Denoising
SFANet combines window-based spatial self-attention with a window-based frequency channel attention in a UNet-style backbone, using dilated self-attention and FFT-based frequency modeling to capture long-range dependencies for image denoising.
The recently developed transformer networks have achieved impressive performance in image denoising by exploiting the self-attention (SA) in images. However, the existing methods mostly use a relatively small window to compute SA due to the quadratic complexity of it, which limits the model's ability to model long-term image information. In this paper, we propose the spatial-frequency attention network (SFANet) to enhance the network's ability in exploiting long-range dependency. For spatial attention module (SAM), we adopt dilated SA to model long-range dependency. In the frequency attention module (FAM), we exploit more global information by using Fast Fourier Transform (FFT) by designing a window-based frequency channel attention (WFCA) block to effectively model deep frequency features and their dependencies. To make our module applicable to images of different sizes and keep the model consistency between training and inference, we apply window-based FFT with a set of fixed window sizes. In addition, channel attention is computed on both real and imaginary parts of the Fourier spectrum, which further improves restoration performance. The proposed WFCA block can effectively model image long-range dependency with acceptable complexity. Experiments on multiple denoising benchmarks demonstrate the leading performance of SFANet network.
Motivation & Objective
- Motivate improved long-range dependency modeling for image denoising beyond small-window self-attention.
- Propose a window-based frequency channel attention (WFCA) to exploit global frequency information.
- Incorporate spatial attention with dilated self-attention to enlarge receptive fields in shallow features.
- Ensure training/inference size-independence by window-based FFT in the WFCA block.
- Demonstrate leading performance on multiple denoising benchmarks.
Proposed method
- Introduce SFANet with two modules: Spatial Attention Module (SAM) and Frequency Attention Module (FAM).
- SAM uses window-based self-attention plus a multi-scale dilated self-attention (MDSA) block to enlarge receptive fields in early scales.
- FAM introduces a window-based frequency channel attention (WFCA) that applies FFT to non-overlapping patches and performs channel attention on real and imaginary Fourier components.
- WFCA enforces training/inference frequency-resolution consistency by operating on fixed-size patches with FFT.
- Complex-valued frequency features are processed via a concatenated real+imaginary channel attention mechanism and inverse FFT to reconstruct patches.
- Overall loss is Charbonnier; training uses a UNet backbone with four scales and skip connections; final reconstruction uses a 3x3 convo.
Experimental results
Research questions
- RQ1Can window-based and dilated self-attention effectively capture long-range spatial dependencies for denoising beyond small windows?
- RQ2Does incorporating FFT-based frequency-domain attention with real and imaginary components improve restoration over purely spatial/self-attention approaches?
- RQ3Does a window-based WFCA block maintain performance across varying image sizes without frequency-resolution mismatch?
- RQ4How does SFANet compare to state-of-the-art denoising methods on standard benchmarks?
Key findings
- SFANet achieves leading performance on multiple denoising benchmarks compared to state-of-the-art methods.
- WFCA enables leveraging global frequency information with acceptable computational complexity by using large FFT windows (e.g., 64x64).
- Using real and imaginary parts of the Fourier spectrum for channel attention improves restoration performance over using only the real part.
- Dilated self-attention in SAM expands receptive fields without a quadratic increase in computation, improving long-range modeling.
- A UNet-based backbone with SAM and FAM outperforms several SA-based and nonlocal denoising models, including Restormer and SwinIR, on benchmark datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.