HomoFormer: Homogenized Transformer for Image Shadow Removal
Jie Xiao, Xueyang Fu, Yurui Zhu, Dong Li, Jie Huang, Kai Zhu, Zheng-Jun Zha
Abstract
The spatial non-uniformity and diverse patterns of shadow degradation conflict with the weight sharing manner of dominant models, which may lead to an unsatisfactory compromise. To tackle with this issue, we present a novel strategy from the view of shadow transformation in this paper: directly homogenizing the spatial distribution of shadow degradation. Our key design is the random shuffle operation and its corresponding inverse operation. Specifically, random shuffle operation stochastically rearranges the pixels across spatial space and the inverse operation recovers the original order. After randomly shuffling, the shadow diffuses in the whole image and the degradation appears in a homogenized way, which can be effectively processed by the local self-attention layer. Moreover, we further devise a new feed forward network with position modeling to exploit image structural information. Based on these elements, we construct the final local window based transformer named HomoFormer for image shadow removal. Our HomoFormer can enjoy the linear complexity of local transformers while bypassing challenges of non-uniformity and diversity of shadow. Extensive experiments are conducted to verify the superiority of our HomoFormer across public datasets. Code is available at https://github.com/jiexiaou/HomoFormer .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers12
- Motion-adaptive Transformer for Event-based Image DeblurringSenyan Xu, Zhijing Sun, Mingchen Zhong, Chengzhi Cao et al.AAAI 2025 · 17 citations
- PhaSR: Generalized Image Shadow Removal with Physically Aligned PriorsChia-Ming Lee, Yu-Fan Lin, Yu-Jou Hsiao, Jin-Hui Jiang et al.CVPR 2026 · 5 citations
- DenseSR: Image Shadow Removal as Dense PredictionYu-Fan Lin, Chia-Ming Lee, Chih-Chung HsuACM MM 2025 · 4 citations
- When Shadow Removal Meets Intrinsic Image Decomposition: A Joint Learning Framework Using Unpaired DataRongjia Zheng, Qing Zhang, Yongwei Nie, Wei-Shi ZhengAAAI 2025 · 2 citations
- Under the Shadow: Exploiting Opacity Variation for Fine-grained Shadow DetectionXiaotian Qiao, Ke Xu, Xianglong Yang, Ruijie Dong et al.NeurIPS 2025 · 1 citation
Builds on26
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Restormer: Efficient Transformer for High-Resolution Image RestorationSyed Waqas Zamir, Aditya Arora, Salman Khan, Munawar Hayat et al.CVPR 2022 · 3,348 citations
- Uformer: A General U-Shaped Transformer for Image RestorationZhendong Wang, Xiaodong Cun, Jianmin Bao, Wengang Zhou et al.CVPR 2022 · 1,970 citations
- On the Relationship between Self-Attention and Convolutional LayersJean-Baptiste Cordonnier, Andreas Loukas, Martin JaggiICLR 2020 · 629 citations
Related papers
- ShadowFormer: Global Context Helps Shadow RemovalLanqing Guo, Siyu Huang, Ding Liu, Hao Cheng et al.AAAI 2023 · 60 citations
- Random Shuffle Transformer for Image RestorationJie Xiao, Xueyang Fu, Man Zhou, Hongjian Liu et al.ICML 2023 · 38 citations
- Stochastic Window Transformer for Image RestorationJie Xiao, Xueyang Fu, Feng Wu, Zheng-Jun ZhaNeurIPS 2022 · 37 citations
- Diff-Shadow: Global-guided Diffusion Model for Shadow RemovalJinting Luo, Ru Li, Chengzhi Jiang, Xiaoming Zhang et al.AAAI 2025 · 15 citations
- Multiview Detection with Shadow Transformer (and View-Coherent Data Augmentation)Yunzhong Hou, Liang ZhengACM MM 2021 · 65 citations
