Introduction: The Challenge of Shadow Removal
Shadow removal is a critical task in computer vision, aimed at restoring the original color and texture of regions obscured by shadows. Despite significant progress, most existing deep learning methods treat images as uniform grids, applying identical convolutional operations to every pixel. This approach suffers from two primary drawbacks: the Mapping Gap and Computational Waste.
The Mapping Gap arises because converting a shadowed pixel to its shadow-free counterpart is a complex, non-linear transformation. In contrast, "recovering" a non-shadowed pixel is essentially an identity mapping, as the pixel is already correct. Using shared weights for both regions often leads to a compromise: non-shadow regions may become over-whitened, while shadow regions remain insufficiently restored. Furthermore, applying high-capacity convolutions to the typically larger non-shadow regions is computationally inefficient.
The SADC Module: Decoupling Shadow and Non-Shadow Regions
To address these inefficiencies, this paper introduces the Shadow-Aware Dynamic Convolution (SADC) module. SADC is designed as a plug-and-play component that can replace standard convolutions in existing backbone networks. The core idea is to process shadow and non-shadow regions through distinct, specialized branches.
The SADC module features a dual-branch architecture:
- Non-Shadow Branch: Employs a lightweight, depth-wise convolution to handle "easy" pixels with minimal computational cost.
- Shadow Branch: Utilizes two consecutive standard convolutions to capture the complex illumination and color shifts necessary for high-quality shadow restoration.
During inference, a shadow mask dynamically routes pixels to the appropriate branch. To ensure smooth transitions and prevent edge artifacts, the authors apply morphological dilation to the mask, providing the shadow branch with sufficient context from the surrounding non-shadow areas.
Training with Intra-convolution Distillation
A key innovation in the training process is the Intra-convolution Distillation Loss ($L_{intra}$). Recognizing that non-shadow regions provide the ground-truth color for the background, the authors use Kullback-Leibler (KL) divergence to align the color distribution of the restored shadow boundary with that of the adjacent non-shadow boundary. This technique encourages the model to "borrow" the correct color palette from unshaded parts of the same object, ensuring a seamless blend between restored and original regions.
Performance and Efficiency
The SADC module was evaluated on the ISTD and SRD benchmarks. On the ISTD dataset, SADC achieved a state-of-the-art Root Mean Square Error (RMSE) of 6.00 in shadow regions, significantly outperforming previous methods like DHAN (7.73) and DSC (8.72).
Beyond accuracy, SADC offers substantial efficiency gains. By reallocating resources—using lightweight kernels for non-shadow areas—the module achieved a 3x practical speedup in convolution time (reducing from 41.32ms to 13.68ms for a $3 \times 3$ convolution). Computational complexity was also reduced from 11.32G to 3.78G FLOPs per module. Qualitatively, the results demonstrate superior color consistency and a marked reduction in "ghosting" artifacts at shadow boundaries.
Conclusion
Shadow-Aware Dynamic Convolution represents a significant step forward in efficient and effective shadow removal. By acknowledging the inherent differences between shadow and non-shadow regions, SADC optimizes both computational resources and restoration quality. Its plug-and-play nature makes it a versatile tool for enhancing various backbone architectures, with future work poised to extend these principles to the more complex domain of video shadow removal.
Summary updated