arXiv:2610.05325cs.CVOct 2026

Manuscript Offprint

arXiv:2610.05325

Shadow Feature Refinement Network: Progressive Feature Refinement based on Knowledge Distillation for Effective Shadow Removal

Donghyun Han, Byoung-Dai Lee

Abstract

In the field of deep learning, has seen significant advancements; however, shadow removal remains a persistent challenge owing to the variable sizes and colors of shadows influenced by lighting conditions. This study proposes a novel shadow feature refinement network (SFR-Net), which leverages supervised learning, feature refinement loss, and knowledge distillation to enhance shadow removal performance. A dedicated post-processing algorithm is further introduced to restore natural color consistency in the generated shadow-free images. We evaluated our method on two public datasets: the adjusted image shadow triplet dataset (ISTD+) and the shadow removal dataset (SRD), which demonstrate strong generalization capabilities under diverse conditions. On ISTD+, our model achieved a root mean square error (RMSE) of 3.4627 and structural similarity index measure (SSIM) of 0.9382 across the entire image. On SRD, it recorded an RMSE of 4.3781 and an SSIM of 0.9341. These comprehensive results show that our approach performs competitively across both shadow and non-shadow regions while setting a promising direction for robust and perceptually natural shadow removal. Code is available at https://github.com/DongHyun99/SFRNet.

Introduction

A shadow forms when light is obstructed by an opaque object, preventing it from reaching a surface. It is a complex phenomenon determined by various environmental factors, such as object shape, lighting conditions, and reflections [46, 26, 24]. Shadows are often disruptive in image processing tasks, such as image segmentation and object detection [11, 2, 29, 42], prompting several studies to propose new methods for shadow removal [46, 26, 25, 22, 13, 36]. Nonetheless, shadow removal is complex and challenging, for several reasons. First, shadows cause nonuniform lighting in certain regions because of light obstruction. Therefore, removing shadows by adjusting the brightness or contrast of an image is challenging [1]. This is because non-uniform lighting induces changes in the texture and colors of shadow regions, resulting in the loss of image information. Second, it is difficult to distinguish shadows from actual objects [45], particularly in complex scenes, making accurate detection even more difficult. Moreover, shadows consist of two regions: the umbra, where the light source is completely blocked, and the penumbra, where light source is only partially blocked. The size and sharpness of the penumbral region vary depending on the intensity and distance of the light source, which makes difficult to define the shadow boundary accurately [46]. The challenge is compounded in cases involving overlapping shadows formed by multiple light sources and reflections.

The key to shadow removal lies in estimating and restoring the colors of shadowed regions based on those of non-shadowed regions. Various methods have been introduced in recent years. Classical shadow removal approaches remove shadows based on prior information regarding the lighting or gradient of an image [34, 15, 30]. However, they suffer from high computational costs and design complexity [13]. Recent advances in deep-learning-based generative models have enabled significant progress in shadow removal. In particular, supervised learning approaches integrate paired shadow and ground truth (GT) images, thereby allowing the model to learn the differences between the two images [32]. These methods [46, 24, 25, 22, 13, 36, 32, 6, 37, 41, 28, 10] have demonstrated superior performance and accuracy than conventional methods.

However, several limitations remain. First, constructing diverse and accurate shadow datasets is labor-intensive and time-consuming [25]. In outdoor images captured under sunlight, minute differences often exist in pixel values of the non-shadowed regions across image pairs [20]. Because of the characteristics of shadow removal models that restore shadowed regions through non-shadowed regions, such differences can pose a significant hindrance to learning. However, it is difficult to obtain images where there is almost no difference between paired images. Consequently, there are limitations in reconstructing images through a simple comparison of the two images. Second, as previously mentioned, it is difficult to construct a shadow dataset. Therefore, there is limited diversity in the objects and environments that can induce biased learning [20]. The trained model does not flexibly generalize to new shadow images, because the shapes and types of objects that create shadows are similar, and the extent of shadows or locations where images can be captured is limited [19].

Image inpainting is the task of restoring masked-out regions based on the information gathered from the surround-

∗^{*}Corresponding author.

Published in © Multimedia Systems 31, article 449 (2025). https://doi.org/10.1007/s00530-025-02036-5 ing regions. Similarly, because the shadow removal task also restores the shadow region to a state where there is no shadow, the two tasks are common in that they both deal with visual imperfections. However, while image inpainting generates entirely new content by utilizing the surrounding information, shadow removal can use ample information, including objects, textures, and colors, from both the surrounding regions and the shadow region. Hence, shadow removal can be seen as a specific form of image inpainting in a narrow sense. Therefore, this study proposes a supervised learning-based shadow removal model, referred to as the Shadow Feature Refinement network (SFR-Net), which uses the image inpainting concept. We incorporate image inpainting technology and also utilize the knowledge distillation approach to remove shadows.

Our hypothesis related to this approach is as follows: In some cases, the model is trained such that the final image generated by removing shadows from the input image is similar to the GT image of the input image. Further, in other instances, the model is trained such that the features generated during the shadow removal process are similar to the features generated when the GT image passes through the image inpainting network.

In these cases, it is possible to achieve a more realistic image with shadows removed. Therefore, the SFR-Net is composed of two image generation networks that are derived from the image inpainting network model: guiding network ( GIG_{I}) and guided network ( GSG_{S}). The GSG_{S} receives shadow image ( ISI_{S}) and the shadow region of the shadow image, which is shadow mask ( MSM_{S}), as input to remove shadows. The GIG_{I} is an image generation model with the same structure as the GSG_{S} and utilizes the GT image ( IgtI_{gt}) and an empty shadow mask ( MgtM_{gt}) as input to reconstruct the GT image. In this process, the features generated at each layer play the role of supervising the training of the corresponding layer in the guided network. To verify the effectiveness of the technique we proposed, we conducted extensive experiments using the ISTD+ [25] dataset. The experimental results indicate the SFR-Net yielded a competitive performance, both quantitatively and qualitatively, compared to recent techniques, including Shadow Former [22]. The main contributions of this study are as follows.

• This paper proposes a supervised learning-based shadow removal model that combines image inpainting and knowledge distillation techniques. To achieve this, we present two image-inpaining-based image generation model architectures and loss functions for efficient learning.

• We trained our model using the correlations between pixels in the non-shadow regions of the shadowed and shadow-removed images. By incorporating this information, we correct the pixel values for the entire shadow-free image. This post-processing operation can help restore the overall colors of the generated images to closely match those of the original images and enhance shadow removal performance.

• We conducted extensive experiments using the ISTD+dataset, which is a public dataset, and demonstrated that the proposed SFR-Net can achieve a performance similar to that of the state-of-the-art methods.

References (41)