[Paper Review] SRFormerV2: Taking a Closer Look at Permuted Self-Attention for Image Super-Resolution
SRFormer introduces permuted self-attention (PSA) to enable large-window self-attention with reduced computation, achieving state-of-the-art results in classical, lightweight, and real-world image super-resolution.
Previous works have shown that increasing the window size for Transformer-based image super-resolution models (e.g., SwinIR) can significantly improve the model performance. Still, the computation overhead is also considerable when the window size gradually increases. In this paper, we present SRFormer, a simple but novel method that can enjoy the benefit of large window self-attention but introduces even less computational burden. The core of our SRFormer is the permuted self-attention (PSA), which strikes an appropriate balance between the channel and spatial information for self-attention. Without any bells and whistles, we show that our SRFormer achieves a 33.86dB PSNR score on the Urban100 dataset, which is 0.46dB higher than that of SwinIR but uses fewer parameters and computations. In addition, we also attempt to scale up the model by further enlarging the window size and channel numbers to explore the potential of Transformer-based models. Experiments show that our scaled model, named SRFormerV2, can further improve the results and achieves state-of-the-art. We hope our simple and effective approach could be useful for future research in super-resolution model design. The homepage is https://z-yupeng.github.io/SRFormer/.
Motivation & Objective
- Investigate how to scale self-attention in image super-resolution without prohibitive computational cost.
- Develop a self-attention mechanism that effectively leverages large windows.
- Enhance high-frequency detail recovery in SR through an improved feed-forward network.
- Design a lightweight SR model that maintains or improves performance.
- Demonstrate robustness on real-world degradation scenarios.
Proposed method
- Propose permuted self-attention (PSA) that reduces K/V channel dimensions and permutes tokens into the channel to enable large-window attention.
- Use Q as full-channel, K/V with reduced channels and spatial-permutation to preserve spatial information.
- Introduce ConvFFN by placing a depthwise convolution between the two FFN linear layers to improve high-frequency detail recovery.
- Build SRFormer with a pixel embedding layer, a hierarchical PSA-based feature encoder, and a reconstruction head.
- Train with L1 loss on HR outputs; leverage self-ensembling SRFormer+ for improved performance.
Experimental results
Research questions
- RQ1Can large-window self-attention improve SR performance without increasing parameters or FLOPs?
- RQ2Does permuting tokens into the channel for K/V enable effective large-window attention in SR?
- RQ3Does adding a local depthwise convolution in the FFN (ConvFFN) enhance high-frequency detail recovery?
- RQ4How does SRFormer compare to state-of-the-art SR methods across classical, lightweight, and real-world tasks?
Key findings
- SRFormer with PSA achieves strong SR performance, including a 33.86 dB PSNR on Urban100 for 2x SR when trained on DIV2K, which is 0.46 dB higher than SwinIR.
- SRFormer with a 24x24 window uses fewer parameters and fewer MACs than SwinIR with an 8x8 window, yet delivers higher PSNR.
- ConvFFN with a 5x5 depthwise convolution yields the best high-frequency recovery among tested kernel sizes.
- A large 24x24 PSA window consistently improves performance across ablations, outperforming variants that reduce tokens or sample tokens.
- SRFormer-light achieves state-of-the-art performance among lightweight SR models across multiple datasets and scales.
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.