A Lightweight Transformer-Based Network for Image Deraining with Feature-Wise Attention and Cross-Level Feature Refinement
Source abstract
Abstract
The aim in single-image deraining tasks is to remove rain streaks from degraded images while preserving scene structures and fine details. However, existing deep learning-based methods often face a trade-off between restoration quality and computational efficiency, and many models struggle to capture hierarchical information effectively under complex rain conditions. To address these limitations, we propose a lightweight cross-gated hierarchical transformer for image deraining. The proposed network adopts a five-stage encoder–decoder architecture with Multi-head Feature-wise Attention (MFA) to efficiently model channel-wise dependencies while reducing the computational burden associated with conventional self-attention. In addition, an Enhanced Gated Depthwise Feed-Forward Network (EGDFN) is introduced to obtain refined feature representations with improved efficiency, and a Cross-Level Feature Refinement (CLFR) module is designed to enhance information exchange between corresponding encoder and decoder stages, thereby strengthening hierarchical feature integration and preserving structural details. The network is trained using a single SSIM-based loss, which enhances the structural fidelity of the restored results. Extensive experiments on four synthetic datasets, two real-world datasets, and a downstream semantic segmentation benchmark demonstrate that the proposed method consistently achieves strong restoration performance, producing cleaner outputs with sharper details and improved effectiveness for subsequent vision tasks.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Image Enhancement Techniques · Computer Graphics and Visualization Techniques · Advanced Image Fusion Techniques
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
School of Computer Science and Artificial Intelligence, Huanggang Normal University, Huanggang 438000, China
Department of International Relations, Yonsei University, Seoul 03722, Republic of Korea
Graduate School of Technology and Management, Kyung Hee University, Seoul 02447, Republic of Korea
References (56)
Show source-provided references
1. Attention-driven multi-local residual network for advanced image deblurring10.1007/s11760-025-04294-2 ↗
2. Luo, Y., Xu, Y., and Ji, H. (2015, January 13–16). Removing rain from a single image via discriminative sparse coding. Proceedings of the IEEE International Conference on Computer Vision, Santiago, Chile.10.1109/ICCV.2015.388 ↗
3. Rain Detection and Removal via Shrinkage-based Sparse Coding and Learned Rain Dictionary10.2352/J.ImagingSci.Technol.2020.64.3.030501 ↗
4. Feature-guided dictionary learning for patch-and-group sparse representations in single image deraining10.1016/j.asoc.2021.107958 ↗
5. Li, P., Jin, J., Jin, G., and Fan, L. (2022). Scale-space feature recalibration network for single image deraining. Sensors, 22.10.3390/s22186823 ↗
6. Voronin, V., Semenishchev, E., Zhdanova, M., Sizyakin, R., and Zelenskii, A. (2021, January 2–9). Rain and snow removal using multi-guided filter and anisotropic gradient in the quaternion framework. Proceedings of the Artificial Intelligence and Machine Learning in Defense Applications, SPIE 2019, Virtual.10.1117/12.2534744 ↗
7. Guo, Q., Sun, J., Juefei-Xu, F., Ma, L., Xie, X., Feng, W., Liu, Y., and Zhao, J. (2021, January 2–9). Efficientderain: Learning pixel-wise dilation filtering for high-efficiency single-image deraining. Proceedings of the AAAI Conference on Artificial Intelligence, Virtual.10.1609/aaai.v35i2.16239 ↗
8. Cheng, S., Wang, Y., Huang, H., Liu, D., Fan, H., and Liu, S. (2021, January 19–25). Nbnet: Noise basis learning for image denoising with subspace projection. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Virtual.10.1109/CVPR46437.2021.00486 ↗
9. Kim, Y., Soh, J.W., Park, G.Y., and Cho, N.I. (2020, January 14–19). Transfer learning from synthetic to real-noise denoising with adaptive instance normalization. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA.10.1109/CVPR42600.2020.00354 ↗
10. GUFORMER: A gradient-aware U-shaped transformer neural network for real image denoising10.1007/s11227-024-06576-x ↗
11. Li, X., Han, J., Yuan, Q., Zhang, Y., Fu, Z., Zou, M., and Huang, Z. (2023). FEUSNet: Fourier Embedded U-Shaped Network for Image Denoising. Entropy, 25.10.3390/e25101418 ↗
12. Zamir, S.W., Arora, A., Khan, S., Hayat, M., Khan, F.S., Yang, M.H., and Shao, L. (2020, January 24–27). Learning enriched features for real image restoration and enhancement. Proceedings of the European Conference on Computer Vision, Glasgow, UK.10.1007/978-3-030-58595-2_30 ↗
13. Multi-scale hybrid fusion network for single image deraining10.1109/TNNLS.2021.3112235 ↗
14. Liu, R., Wang, J., Zhang, H., Zhang, J., and Liu, X. (2024, January 5–7). A transformer-based network for multi-stage progressive image restoration. Proceedings of the 2024 6th International Conference on Data-Driven Optimization of Complex Systems (DOCS), Dalian, China.10.1109/DOCS63458.2024.10704475 ↗
15. Chen, L., Lu, X., Zhang, J., Chu, X., and Chen, C. (2021, January 19–25). Hinet: Half instance normalization network for image restoration. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Virtual.10.1109/CVPRW53098.2021.00027 ↗
16. Cosmi Filho, L.C., Samatelo, J.L.A., and Vassallo, R.F. (2025, January 27–30). Hierarchical Vision Transformer Using Shifted Windows for Skeleton-Based Action Recognition. Proceedings of the 2025 38th SIBGRAPI Conference on Graphics, Patterns and Images (SIBGRAPI), Maceió, Brazil.10.1109/SIBGRAPI67909.2025.11223379 ↗
17. Wang, Z., Cun, X., Bao, J., Zhou, W., Liu, J., and Li, H. (2022, January 19–24). Uformer: A general u-shaped transformer for image restoration. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA.10.1109/CVPR52688.2022.01716 ↗
18. A survey of single image rain removal based on deep learning10.1145/3625818 ↗
19. Mineault, P. (2025). Is Attention All You Need?. From Human Attention to Computational Attention: A Multidisciplinary Approach, Springer.10.1007/978-3-031-84300-6_13 ↗
20. Fu, X., Huang, J., Zeng, D., Huang, Y., Ding, X., and Paisley, J. (2017, January 21–26). Removing rain from single images via a deep detail network. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.10.1109/CVPR.2017.186 ↗
21. Single image deraining using deep convolutional networks10.1007/s11042-018-5825-8 ↗
22. Qian, R., Tan, R.T., Yang, W., Su, J., and Liu, J. (2018, January 18–22). Attentive generative adversarial network for raindrop removal from a single image. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00263 ↗
23. Single image rain streak decomposition using layer priors10.1109/TIP.2017.2708841 ↗
24. Sequential dual attention network for rain streak removal in a single image10.1109/TIP.2020.3025402 ↗
25. Single-image rain removal network based on an attention mechanism and a residual structure10.1109/ACCESS.2022.3175196 ↗
26. Multi-scale attention generative adversarial network for single image rain removal10.1134/S1054661822020201 ↗
27. Single image deraining via a recurrent multi-attention enhancement network10.1016/j.image.2023.116926 ↗
28. Zamir, S.W., Arora, A., Khan, S., Hayat, M., Khan, F.S., and Yang, M.H. (2022, January 19–24). Restormer: Efficient transformer for high-resolution image restoration. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA.10.1109/CVPR52688.2022.00564 ↗
29. Chen, X., Li, H., Li, M., and Pan, J. (2023, January 18–22). Learning a sparse transformer network for effective image deraining. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada.10.1109/CVPR52729.2023.00571 ↗
30. Yu, R., Zhang, P., and Xiang, J. (2024, January 14–19). DG-RainDiff: Depth-guided dynamic message passing diffusion model for mixture of rain removal. Proceedings of the ICASSP 2024–2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Seoul, Republic of Korea.10.1109/ICASSP48485.2024.10445956 ↗
31. Wavelet-based learning and optimized sampling for image deraining10.1016/j.patcog.2025.112782 ↗
32. Peng, L., Wang, Y., Di, X., Fu, X., Cao, Y., and Zha, Z.J. (March, January 25). Boosting image de-raining via central-surrounding synergistic convolution. Proceedings of the AAAI Conference on Artificial Intelligence, Philadelphia, PA, USA.
33. Zhu, Z., Zeng, T., Yang, T., Luo, G., and Zeng, J. (2025). DeRainMamba: A Frequency-Aware State Space Model with Detail Enhancement for Image Deraining. arXiv.10.1109/LSP.2025.3616020 ↗
34. Lightweightderain: Learning a lightweight multi-scale high-order feedback network for single image de-raining10.1007/s00521-021-06700-5 ↗
35. Lightweight pyramid networks for image deraining10.1109/TNNLS.2019.2926481 ↗
36. Ding, S., Zhu, Q., and Zhu, W. (2023, January 16–19). A Lightweight Detail-Fusion Progressive Network for Image Deraining. Proceedings of the International Conference on Intelligent Computing, Portsmouth, UK.10.1007/978-981-99-4761-4_7 ↗
37. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł., and Polosukhin, I. (2017). Attention is all you need. arXiv.
38. Liang, J., Cao, J., Sun, G., Zhang, K., Van Gool, L., and Timofte, R. (2021, January 11–17). Swinir: Image restoration using swin transformer. Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada.10.1109/ICCVW54120.2021.00210 ↗
39. Fan, Z., Wu, H., Fu, X., Huang, Y., and Ding, X. (2018, January 22–26). Residual-guide network for single image deraining. Proceedings of the 26th ACM International Conference on Multimedia, Seoul, Republic of Korea.10.1145/3240508.3240694 ↗
40. Guo, X., Fu, X., Zhou, M., Huang, Z., Peng, J., and Zha, Z.J. (2022, January 23–29). Exploring Fourier Prior for Single Image Rain Removal. Proceedings of the IJCAI, Vienna, Austria.10.24963/ijcai.2022/131 ↗
41. Ren, D., Zuo, W., Hu, Q., Zhu, P., and Meng, D. (2019, January 16–20). Progressive image deraining networks: A better and simpler baseline. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.10.1109/CVPR.2019.00406 ↗
42. Yang, W., Tan, R.T., Feng, J., Liu, J., Guo, Z., and Yan, S. (2017, January 21–26). Deep joint rain detection and removal from a single image. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.10.1109/CVPR.2017.183 ↗
43. Zhang, H., and Patel, V.M. (2018, January 18–22). Density-aware single image de-raining using a multi-stream dense network. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00079 ↗
44. Li, Y., Tan, R.T., Guo, X., Lu, J., and Brown, M.S. (2016, January 27–30). Rain streak removal using layer priors. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.299 ↗
45. Vision meets robotics: The kitti dataset10.1177/0278364913491297 ↗
46. Wang, T., Yang, X., Xu, K., Chen, S., Zhang, Q., and Lau, R.W. (2019, January 16–20). Spatial attentive single-image deraining with a high quality real rain dataset. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.10.1109/CVPR.2019.01255 ↗
47. Image de-raining using a conditional generative adversarial network10.1109/TCSVT.2019.2920407 ↗
48. Vicente, S., Carreira, J., Agapito, L., and Batista, J. (2014, January 23–28). Reconstructing pascal voc. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Columbus, OH, USA.10.1109/CVPR.2014.13 ↗
49. Li, X., Wu, J., Lin, Z., Liu, H., and Zha, H. (2018, January 8–14). Recurrent squeeze-and-excitation context aggregation net for single image deraining. Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany.10.1007/978-3-030-01234-2_16 ↗
50. Single image deraining using bilateral recurrent network10.1109/TIP.2020.2994443 ↗
51. Wang, C., Xing, X., Wu, Y., Su, Z., and Chen, J. (2020, January 12–16). Dcsfn: Deep cross-scale fusion network for single image rain removal. Proceedings of the 28th ACM International Conference on Multimedia, Seattle, WA, USA.10.1145/3394171.3413820 ↗
52. Wang, H., Xie, Q., Zhao, Q., and Meng, D. (2020, January 14–19). A model-driven deep neural network for single image rain removal. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA.10.1109/CVPR42600.2020.00317 ↗
53. Semi-supervised image deraining using knowledge distillation10.1109/TCSVT.2022.3190516 ↗
54. Chen, L.C., Zhu, Y., Papandreou, G., Schroff, F., and Adam, H. (2018, January 8–14). Encoder-decoder with atrous separable convolution for semantic image segmentation. Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany.10.1007/978-3-030-01234-2_49 ↗
55. Zhu, M., and Chen, A.Z.L.C. (2018, January 18–22). Mobilenetv2: Inverted residuals and linear bottlenecks. Proceedings of the The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA.
56. Yamashita, S., and Ikehara, M. (2024, January 8–12). Image deraining with frequency-enhanced state space model. Proceedings of the Asian Conference on Computer Vision, Hanoi, Vietnam.10.1007/978-981-96-0911-6_19 ↗