Abstract
Shadow removal is a critical task in computer vision, yet the scarcity of paired training data—identical scenes with and without shadows—limits the effectiveness of supervised learning. This paper introduces a novel two-stage framework that bridges the gap between the generative flexibility of Generative Adversarial Networks (GANs) and the high-fidelity restoration capabilities of Diffusion Models. By leveraging a multi-modal semantic prompter (MSP) and a diffusion-based restoration module (DBRM), the proposed method achieves state-of-the-art performance in unsupervised shadow removal, effectively eliminating boundary artifacts and restoring fine textures.
Introduction
Removing shadows from images is essential for downstream tasks like object detection and scene understanding. However, obtaining paired "shadow/shadow-free" images in real-world environments is logistically challenging. Consequently, researchers have turned to unsupervised methods, primarily GANs. While GANs can perform style transfer between shadow and non-shadow domains, they often suffer from instability and produce "ghosting" artifacts at shadow boundaries. Conversely, Diffusion Models offer superior texture generation but typically require paired data for restoration tasks. This work proposes a hybrid approach that uses GANs to generate synthetic paired data for a subsequent diffusion-based refinement stage.
Methodology
The proposed architecture consists of two main stages: a coarse processing stage (SG-GAN) and a refined restoration stage (DBRM).
Stage 1: SG-GAN (Coarse Processing)
This stage employs a cycle-consistent GAN to perform initial shadow removal. To enhance the GAN's understanding of scene semantics, the authors integrate a Multi-modal Semantic Prompter (MSP). Utilizing a pre-trained CLIP model, the MSP extracts features from both the image and text prompts (e.g., "non-shadow image"). This semantic guidance helps the network distinguish between shadows and dark-colored objects, reducing domain gap issues. Crucially, this stage also generates synthetic pairs—shadow-free images and their generated shadow counterparts—to serve as training data for the next stage.
Stage 2: DBRM (Refined Restoration)
The Diffusion-based Restoration Module (DBRM) takes the coarse output from Stage 1 and refines it. By training on the synthetic pairs generated in Stage 1, the DBRM learns to "denoise" the coarse image using an Image Restoration Stochastic Differential Equation (IR-SDE) framework. This iterative process sharpens edges and restores the intricate textures often lost during the GAN stage.
Experiments and Results
The model was evaluated on the ISTD and AISTD benchmarks. Quantitatively, the method achieved a PSNR of 27.94 on the ISTD dataset, surpassing the previous best unsupervised method by 1.3 dB. It also reached an LPIPS score of 0.038, indicating high perceptual naturalness.
Qualitative comparisons demonstrate that the proposed method significantly reduces the visible seams and blurry artifacts common in previous unsupervised SOTA models like G2R-ShadowNet and Mask-ShadowGAN.
Conclusion
The Semantic-guided Adversarial Diffusion Model represents a significant step forward for unsupervised shadow removal. By using GANs as data generators for a Diffusion-based restoration stage, the framework combines the best of both worlds: the ability to learn from unpaired data and the power to produce high-quality, artifact-free images. While the computational cost of diffusion remains a challenge for real-time use, the gains in visual and quantitative accuracy set a new benchmark for the field.
Summary updated