[Paper Review] Dual-former: Hybrid Self-attention Transformer for Efficient Image Restoration
Dual-former proposes a hybrid self-attention Transformer architecture that combines convolution-based local feature extraction in encoder-decoder stages with a single Hybrid Transformer Block (HTB) in the latent layer to efficiently model long-range spatial and channel-wise dependencies. This design achieves state-of-the-art performance on image dehazing, deraining, and desnowing tasks with significantly reduced computational cost—e.g., 1.91 dB PSNR gain over MAXIM on Indoor dehazing using only 4.2% of its GFLOPs.
Recently, image restoration transformers have achieved comparable performance with previous state-of-the-art CNNs. However, how to efficiently leverage such architectures remains an open problem. In this work, we present Dual-former whose critical insight is to combine the powerful global modeling ability of self-attention modules and the local modeling ability of convolutions in an overall architecture. With convolution-based Local Feature Extraction modules equipped in the encoder and the decoder, we only adopt a novel Hybrid Transformer Block in the latent layer to model the long-distance dependence in spatial dimensions and handle the uneven distribution between channels. Such a design eliminates the substantial computational complexity in previous image restoration transformers and achieves superior performance on multiple image restoration tasks. Experiments demonstrate that Dual-former achieves a 1.91dB gain over the state-of-the-art MAXIM method on the Indoor dataset for single image dehazing while consuming only 4.2% GFLOPs as MAXIM. For single image deraining, it exceeds the SOTA method by 0.1dB PSNR on the average results of five datasets with only 21.5% GFLOPs. Dual-former also substantially surpasses the latest desnowing method on various datasets, with fewer parameters.
Motivation & Objective
- To address the high computational complexity of existing vision Transformer-based image restoration models while maintaining or improving performance.
- To combine the local modeling strength of convolutions with the global modeling capability of self-attention in a computationally efficient architecture.
- To reduce the reliance on full-attention mechanisms across all layers by restricting self-attention to a single latent layer.
- To design a lightweight yet powerful backbone that outperforms state-of-the-art methods on multiple image restoration benchmarks with fewer parameters and FLOPs.
Proposed method
- Employ Local Feature Extraction (LFE) modules—based on depthwise separable convolutions and channel attention—throughout the encoder and decoder for efficient local representation learning.
- Introduce a Hybrid Transformer Block (HTB) in the latent layer that performs joint channel-spatial self-attention to model long-range dependencies and handle channel imbalance.
- Implement an Adaptive Control Module (ACM) to dynamically fuse features from multiple attention branches, improving feature interaction between spatial and channel dimensions.
- Use a multi-branch Feed-Forward Network (MFFN) within HTB to enhance representational capacity while maintaining linear complexity.
- Apply a hybrid loss function combining PSNR loss and perceptual loss to improve reconstruction fidelity and perceptual quality.
- Restrict self-attention computation to only one bottleneck layer to drastically reduce FLOPs compared to full-attention Transformers.
Experimental results
Research questions
- RQ1Can restricting self-attention to a single latent layer preserve global modeling capability while drastically reducing computational cost in image restoration?
- RQ2How does combining convolution-based local feature extraction with a targeted hybrid self-attention block affect performance and efficiency?
- RQ3What is the impact of an adaptive feature fusion mechanism (ACM) on the interaction between spatial and channel-wise attention in the latent layer?
- RQ4To what extent does channel attention in the LFE module improve local representation learning without significantly increasing FLOPs?
- RQ5How does the proposed hybrid architecture compare to existing SOTA methods in terms of PSNR, SSIM, and computational efficiency across diverse image restoration tasks?
Key findings
- Dual-former achieves a 1.91 dB PSNR gain over the SOTA MAXIM method on the Indoor dataset for single image dehazing, while consuming only 4.2% of MAXIM’s GFLOPs (9.28G vs. 216.0G).
- On five deraining datasets, Dual-former exceeds the SOTA method by 0.1 dB in average PSNR with only 21.5% of the GFLOPs (9.28G vs. 140.92G).
- The Adaptive Control Module (ACM) outperforms both simple concatenation and SK-fusion in feature fusion, achieving 30.64 dB PSNR and 0.939 SSIM, with a modest increase in parameters and FLOPs.
- Incorporating channel attention into the LFE module increases PSNR by 0.42 dB (from 30.22 to 30.64 dB) with only a minor rise in FLOPs (9.24G → 9.28G) and parameters (12.52M → 14.23M).
- The parallel local feature extraction in the HTB enhances performance by 0.42 dB in PSNR compared to a non-parallel design, with minimal computational overhead.
- The combination of PSNR loss and perceptual loss yields the best performance (30.64 dB PSNR, 0.939 SSIM), outperforming L1 or PSNR-only training.
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.