Abstract
Shadows in images cause significant challenges for computer vision applications as they degrade image quality and hinder tasks such as object detection, visual tracking, and semantic segmentation. Existing shadow removal methods often struggle as they fail to localize shadow regions accurately without suppressing non-shadow areas; they tend to lose fine-grained textures and illumination consistency across boundaries, and they also demand heavy computation that limits their use in real-time or resource constrained systems. To address these limitations, we propose a novel framework called ShadowFormer++, which uses a combination of a transformer and diffusion model for efficient shadow removal. Our architecture integrates Multi-Scale Local Shadow Perception Module (MS-LSPM) for robust local shadow feature extraction, Shadow-Aware Transformer Encoder (SATE) for global context modelling and structure preservation, and a Diffusion-Inspired Refinement Module (DIRM) for progressive, fine-grained shadow-free image reconstruction. Extensive experiments on ISTD, ISTD+, and SRD datasets show that ShadowFormer++ achieves a Mean Absolute Error (MAE) of 3.79, a Peak Signal-to-Noise Ratio (PSNR) of 33.58 dB, and a Structural Similarity Index (SSIM) of 0.972, which is better than state-of-the-art methods such as ShadowFormer, SpA-Former, and Diff-Shadow. Our approach balances computational efficiency with superior shadow removal quality, making it suitable for real-time applications in robotics, autonomous systems, and augmented reality.
Similar content being viewed by others
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Mohanty, S., Kumar, S. & Senapati, R. ShadowFormer++: multi-scale shadow priors and diffusion-guided refinement for high-fidelity shadow removal. Sci Rep (2026). https://doi.org/10.1038/s41598-026-48455-w
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-48455-w


