SoftShadow: Leveraging Soft Masks for Penumbra-Aware Shadow Removal

Xinrui Wang, Lanqing Guo, Xiyu Wang, Siyu Huang, Bihan Wen
2/9/2026

No official code found. Best implementation: Xinrui014/SoftShadow (9 stars, last commit 2026-03-24).

Abstract

Recent advancements in deep learning have yielded promising results for the image shadow removal task. However, most existing methods rely on binary pre-generated shadow masks. The binary nature of such masks could potentially lead to artifacts near the boundary between shadow and non-shadow areas. In view of this, inspired by the physical model of shadow formation, we introduce novel soft shadow masks specifically designed for shadow removal. To achieve such soft masks, we propose a SoftShadow framework by leveraging the prior knowledge of pretrained SAM and integrating physical constraints. Specifically, we jointly tune the SAM and the subsequent shadow removal network using penumbra formation constraint loss, mask reconstruction loss, and shadow removal loss. This framework enables accurate predictions of penumbra (partially shaded) and umbra (fully shaded) areas while simultaneously facilitating end-to-end shadow removal. Through extensive experiments on popular datasets, we found that our Soft-Shadow framework, which generates soft masks, can better restore boundary artifacts, achieve state-of-the-art performance, and demonstrate superior generalizability.

View on arXivView PDF

Code Implementations(1)

Official Implimentation of SoftShadow: Leveraging Penumbra-Aware Soft Masks for Shadow Removal

90MATLAB, PythonSep 10, 20247 months ago

Similar Papers

Cite this paper

@article{wang2026softshadow,
  title  = {SoftShadow: Leveraging Soft Masks for Penumbra-Aware Shadow Removal},
  author = {Xinrui Wang and Lanqing Guo and Xiyu Wang and Siyu Huang and Bihan Wen},
  year   = {2026},
  eprint = {2409.07041},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2409.07041},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.07041.svg)](https://codeofpaper.com/paper/2409.07041)

Discussion