Proceedings

Prompt-Aware Controllable Shadow Removal

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 792-800.

https://doi.org/10.24963/ijcai.2025/89

Abstract

Shadow removal aims to restore the image content in shadowed regions. While deep learning-based methods have shown promising results, they still face key challenges: 1) uncontrolled removal of all shadows, or 2) controllable removal but heavily relies on precise shadow region masks. To address these issues, we introduce a novel paradigm: prompt-aware controllable shadow removal. Unlike existing approaches, our paradigm allows for targeted shadow removal from specific subjects based on user prompts (e.g., dots, lines, or subject masks). This approach eliminates the need for shadow annotations and offers flexible, user-controlled shadow removal. Specifically, we propose an end-to-end learnable model, the Prompt-Aware Controllable Shadow Removal Network (PACSRNet). PACSRNet consists of two key modules: a prompt-aware module that generates shadow masks for the specified subject based on the user prompt, and a shadow removal module that uses the shadow prior from the first module to restore the content in the shadowed areas. Additionally, we enhance the shadow removal module by incorporating feature information from the prompt-aware module through a linear operation, providing prompt-guided support for shadow removal. Recognizing that existing shadow removal datasets lack diverse user prompts, we contribute a new dataset specifically designed for prompt-based controllable shadow removal. Extensive experimental results demonstrate the effectiveness and superiority of PACSRNet.

  1. [Alaluf et al., 2022] Yuval Alaluf, Omer Tov, Ron Mokady, Rinon Gal, and Amit Bermano. Hyperstyle: Stylegan inversion with hypernetworks for real image editing. In Proc. CVPR, pages 18511-18521, 2022.
  2. [Chen et al., 2020] Zhihao Chen, Lei Zhu, Liang Wan, Song Wang, Wei Feng, and Pheng-Ann Heng. A multi-task mean teacher for semi-supervised shadow detection. In Proc. CVPR, pages 5611-5620, 2020.
  3. [Du et al., 2022] Hang Du, Hailin Shi, Dan Zeng, Xiao-Ping Zhang, and Tao Mei. The elements of end-to-end deep face recognition: A survey of recent advances. ACM CSUR, 54(10s):1-42, 2022.
  4. [Finlayson et al., 2005] Graham D Finlayson, Steven D Hordley, Cheng Lu, and Mark S Drew. On the removal of shadows from images. IEEE TPAMI, 28(1):59-68, 2005.
  5. [Finlayson et al., 2009] Graham D Finlayson, Mark S Drew, and Cheng Lu. Entropy minimization for shadow removal. IJCV, 85(1):35-57, 2009.
  6. [Guo et al., 2023a] Lanqing Guo, Siyu Huang, Ding Liu, Hao Cheng, and Bihan Wen. Shadowformer: Global context helps image shadow removal. arXiv preprint arXiv:2302.01650, 2023.
  7. [Guo et al., 2023b] Lanqing Guo, Chong Wang, Wenhan Yang, Siyu Huang, Yufei Wang, Hanspeter Pfister, and Bi- han Wen. Shadowdiffusion: When degradation prior meets diffusion model for shadow removal. In Proc. CVPR, pages 14049-14058, 2023.
  8. [Hu et al., 2019] Xiaowei Hu, Chi-Wing Fu, Lei Zhu, Jing Qin, and Pheng-Ann Heng. Direction-aware spatial con- text features for shadow detection and removal. IEEE TPAMI, 42(11):2795-2808, 2019.
  9. [Huang et al., 2011] Xiang Huang, Gang Hua, Jack Tum- blin, and Lance Williams. What characterizes a shadow boundary under the sun and sky? In Proc. ICCV, pages 898-905. IEEE, 2011.
  10. [Khan et al., 2014] Salman Hameed Khan, Mohammed Ben- namoun, Ferdous Sohel, and Roberto Togneri. Automatic feature learning for robust shadow detection. In Proc. CVPR, pages 1939-1946. IEEE, 2014.
  11. [Kim et al., 2022] Minchul Kim, Anil K Jain, and Xiaoming Liu. Adaface: Quality adaptive margin for face recogni- tion. In Proc. CVPR, pages 18750-18759, 2022.
  12. [Le and Samaras, 2019] Hieu Le and Dimitris Samaras. Shadow removal via shadow image decomposition. In Proc. ICCV, pages 8578-8587, 2019.
  13. [Le et al., 2018] Hieu Le, Tomas F Yago Vicente, Vu Nguyen, Minh Hoai, and Dimitris Samaras. A+ d net: Training a shadow detector with adversarial shadow attenuation. In Proc. ECCV, pages 662-678, 2018.
  14. [Li et al., 2023] Xiaoguang Li, Qing Guo, Rabab Abdelfat- tah, Di Lin, Wei Feng, Ivor Tsang, and Song Wang. Lever- aging inpainting for single-image shadow removal. In Proc. ICCV, pages 13055-13064, 2023.
  15. [Li et al., 2024a] Kun Li, Pengyu Liu, Dan Guo, Fei Wang, Zhiliang Wu, Hehe Fan, and Meng Wang. Mmad: Multi- label micro-action detection in videos. arXiv preprint arXiv:2407.05311, 2024.
  16. [Li et al., 2024b] Xinjie Li, Yang Zhao, Dong Wang, Yuan Chen, Li Cao, and Xiaoping Liu. Controlling the la- tent diffusion model for generative image shadow removal via residual generation. arXiv preprint arXiv:2412.02322, 2024.
  17. [Li et al., 2025a] Kun Li, Dan Guo, Guoliang Chen, Chunx- iao Fan, Jingyuan Xu, Zhiliang Wu, Hehe Fan, and Meng Wang. Prototypical calibrating ambiguous samples for micro-action recognition. In Proc. AAAI, pages 4815- 4823, 2025.
  18. [Li et al., 2025b] Kun Li, Xinge Peng, Dan Guo, Xun Yang, and Meng Wang. Repetitive action counting with hybrid temporal relation modeling. IEEE TMM, 2025.
  19. [Liao et al., 2021] Jingwei Liao, Yanli Liu, Guanyu Xing, Housheng Wei, Jueyu Chen, and Songhua Xu. Shadow de- tection via predicting the confidence maps of shadow de- tection methods. In Proc. ACMMM, pages 704-712, 2021.
  20. [Liu et al., 2024a] Hengxing Liu, Mingjia Li, and Xiaojie Guo. Regional attention for shadow removal. In Proceed- ings of the 32nd ACM International Conference on Multi- media, pages 5949-5957, 2024.
  21. [Liu et al., 2024b] Qingyang Liu, Junqi You, Jianting Wang, Xinhao Tao, Bo Zhang, and Li Niu. Shadow generation for composite image using diffusion model. In Proc. CVPR, pages 8121-8130, 2024.
  22. [Liu et al., 2024c] Yuhao Liu, Zhanghan Ke, Ke Xu, Fang Liu, Zhenwei Wang, and Rynson WH Lau. Recasting re- gional lighting for shadow removal. In Proc. AAAI, vol- ume 38, pages 3810-3818, 2024.
  23. [Luo et al., 2025] Jinting Luo, Ru Li, Chengzhi Jiang, Xi- aoming Zhang, Mingyan Han, Ting Jiang, Haoqiang Fan, and Shuaicheng Liu. Diff-shadow: Global-guided diffu- sion model for shadow removal. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pages 5856-5864, 2025.
  24. [Mallat, 1989] Stephane G Mallat. A theory for multireso- lution signal decomposition: the wavelet representation. IEEE TPAMI, 11(7):674-693, 1989.
  25. [Mei et al., 2024] Kangfu Mei, Luis Figueroa, Zhe Lin, Zhi- hong Ding, Scott Cohen, and Vishal M Patel. Latent feature-guided diffusion models for shadow removal. In Proc. WACV, pages 4313-4322, 2024.
  26. [Qu et al., 2017] Liangqiong Qu, Jiandong Tian, Shengfeng He, Yandong Tang, and Rynson WH Lau. Deshadownet: A multi-context embedding deep network for shadow re- moval. In Proc. CVPR, pages 4067-4075, 2017.
  27. [Shen et al., 2015] Li Shen, Teck Wee Chua, and Karianto Leman. Shadow optimization from structured deep edge detection. In Proc. CVPR, pages 2067-2074, 2015.
  28. [Shor and Lischinski, 2008] Yael Shor and Dani Lischinski. The shadow meets the mask: Pyramid-based shadow re- moval. In Computer Graphics Forum, volume 27, pages 577-586. Wiley Online Library, 2008.
  29. [Vasluianu et al., 2024] Florin-Alexandru Vasluianu, Tim Seizinger, Zhuyun Zhou, Zongwei Wu, Cailian Chen, Radu Timofte, Wei Dong, Han Zhou, Yuqiong Tian, Jun Chen, et al. Ntire 2024 image shadow removal challenge report. In Proc. CVPR, pages 6547-6570, 2024.
  30. [Vicente et al., 2015] Tomás F Yago Vicente, Minh Hoai, and Dimitris Samaras. Leave-one-out kernel optimization for shadow detection. In Proc. ICCV, pages 3388-3396, 2015.
  31. [Vicente et al., 2017] Tomas F Yago Vicente, Minh Hoai, and Dimitris Samaras. Leave-one-out kernel optimiza- tion for shadow detection and removal. IEEE TPAMI, 40(3):682-695, 2017.
  32. [Wang et al., 2018] Jifeng Wang, Xiang Li, and Jian Yang. Stacked conditional generative adversarial networks for jointly learning shadow detection and shadow removal. In Proc. CVPR, pages 1788-1797, 2018.
  33. [Wang et al., 2020] Tianyu Wang, Xiaowei Hu, Qiong Wang, Pheng-Ann Heng, and Chi-Wing Fu. Instance shadow detection. In Proc. CVPR, pages 1880-1889, 2020.
  34. [Wang et al., 2021] Tianyu Wang, Xiaowei Hu, Chi-Wing Fu, and Pheng-Ann Heng. Single-stage instance shadow detection with bidirectional relation learning. In Proc. CVPR, pages 1-11, 2021.
  35. [Wang et al., 2022] Tianyu Wang, Xiaowei Hu, Pheng-Ann Heng, and Chi-Wing Fu. Instance shadow detection with a single-stage detector. IEEE TPAMI, 45(3):3259-3273, 2022.
  36. [Wang et al., 2024a] Fei Wang, Dan Guo, Kun Li, Zhun Zhong, and Meng Wang. Frequency decoupling for mo- tion magnification via multi-level isomorphic architecture. In Proc. CVPR, pages 18984-18994, 2024.
  37. [Wang et al., 2024b] Jianan Wang, Zhiliang Wu, Hanyu Xuan, and Yan Yan. Text-video completion networks with motion compensation and attention aggregation. In Proc. ICASSP, pages 2990-2994, 2024.
  38. [Wang et al., 2024c] Xinrui Wang, Lanqing Guo, Xiyu Wang, Siyu Huang, and Bihan Wen. Softshadow: Lever- aging penumbra-aware soft masks for shadow removal. arXiv preprint arXiv:2409.07041, 2024.
  39. [Wang et al., 2025] Fei Wang, Kun Li, Yiqi Nie, Zhangling Duan, Peng Zou, Zhiliang Wu, Yuwei Wang, and Yanyan Wei. Exploiting ensemble learning for cross- view isolated sign language recognition. arXiv preprint arXiv:2502.02196, 2025.
  40. [Wu et al., 2021] Zhiliang Wu, Kang Zhang, Hanyu Xuan, Jian Yang, and Yan Yan. Dapc-net: Deformable align- ment and pyramid context completion networks for video inpainting. SPL, 28:1145-1149, 2021.
  41. [Wu et al., 2023a] Zhiliang Wu, Changchang Sun, Hanyu Xuan, and Yan Yan. Deep stereo video inpainting. In Proc. CVPR, pages 5693-5702, 2023.
  42. [Wu et al., 2023b] Zhiliang Wu, Hanyu Xuan, Changchang Sun, Weili Guan, Kang Zhang, and Yan Yan. Semi- supervised video inpainting with cycle consistency con- straints. In Proc. CVPR, pages 22586-22595, 2023.
  43. [Wu et al., 2024] Zhiliang Wu, Changchang Sun, Hanyu Xuan, Gaowen Liu, and Yan Yan. Waveformer: Wavelet transformer for noise-robust video inpainting. In Proc. AAAI, volume 38, pages 6180-6188, 2024.
  44. [Wu et al., 2025] Zhiliang Wu, Kerui Chen, Kun Li, Hehe Fan, and Yi Yang. BVINet: Unlocking blind video inpainting with zero annotations. arXiv preprint arXiv:2502.01181, 2025.
  45. [Xiao et al., 2024] Jie Xiao, Xueyang Fu, Yurui Zhu, Dong Li, Jie Huang, Kai Zhu, and Zheng-Jun Zha. Homoformer: Homogenized transformer for image shadow removal. In Proc. CVPR, pages 25617-25626, 2024.
  46. [Xu et al., 2025] Jiamin Xu, Zelong Li, Yuxin Zheng, Chenyu Huang, Renshu Gu, Weiwei Xu, and Gang Xu. Omnisr: Shadow removal under direct and indirect light- ing. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pages 8887-8895, 2025.
  47. [Yang et al., 2012] Qingxiong Yang, Kar-Han Tan, and Narendra Ahuja. Shadow removal using bilateral filtering. IEEE TIP, 21(10):4361-4368, 2012.
  48. [Yang et al., 2023] Han Yang, Tianyu Wang, Xiaowei Hu, and Chi-Wing Fu. Silt: Shadow-aware iterative label tun- ing for learning to detect shadows from noisy labels. In Proc. ICCV, pages 12687-12698, 2023.
  49. [Zhang et al., 2023] Yanni Zhang, Zhiliang Wu, and Yan Yan. Pfta-net: Progressive feature alignment and temporal attention fusion networks for video inpainting. In Proc. ICIP, pages 191-195, 2023.
  50. [Zhang et al., 2024] Zixuan Zhang, Xinge Guo, and Chengkuo Lee. Advances in olfactory augmented vir- tual reality towards future metaverse applications. NC, 15(1):6465, 2024.
  51. [Zhou et al., 2024] Shihao Zhou, Duosheng Chen, Jinshan Pan, Jinglei Shi, and Jufeng Yang. Adapt or perish: Adap- tive sparse transformer with attentive feature refinement for image restoration. In Proc. CVPR, pages 2952-2963, 2024.
  52. [Zhu et al., 2022] Yurui Zhu, Jie Huang, Xueyang Fu, Feng Zhao, Qibin Sun, and Zheng-Jun Zha. Bijective mapping network for shadow removal. In Proc. CVPR, pages 5627- 5636, 2022.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards