Efficient Model-Driven Network for Shadow Removal

Yurui Zhu, Zeyu Xiao, Yanchi Fang, Xueyang Fu, Zhiwei Xiong, Zheng-Jun Zha

Abstract

This paper introduces an efficient and interpretable model-driven network for single-image shadow removal. By unfolding a variational optimization problem based on a physical illumination model, the proposed method addresses the spatial variance of shadows. Experimental results on the ISTD and SRD datasets demonstrate that the model achieves state-of-the-art performance while being significantly faster and more lightweight than existing solutions, requiring only 10.05M parameters and achieving a 17x speedup over previous top-tier models.

Introduction

Shadow removal is a classic computer vision challenge that involves restoring the original color and texture of regions obscured by shadows. While recent solutions have shifted toward Deep Convolutional Neural Networks (CNNs), these "black-box" models often suffer from three primary flaws: a reliance on simplified physical assumptions (treating shadows as uniform), a lack of interpretability, and high computational costs that prohibit real-time application.

This research, presented at AAAI 2022, bridges the gap between traditional physics-based methods and modern deep learning. The authors argue that shadows are spatially variant—the lighting change is not a single constant across the entire shadow region. By incorporating this physical insight into a deep unfolding framework, they achieve superior restoration quality with a fraction of the computational overhead.

Statistical analysis of shadow variance. The histogram of shadow/non-shadow pixel ratios demonstrates that shadows are spatially variant rather than uniform.

Methods

The core of the approach is a technique called Deep Unfolding, which transforms a mathematical optimization process into a neural network architecture.

Illumination Modeling

The researchers propose a model where the shadow-free image ($I_{ns}$) is derived from the shadow image ($I_s$) via a learned transformation map ($A$): $$I_{ns} = (1 + A) * I_s$$ Crucially, they impose a constraint that $A$ must be zero in non-shadow regions, ensuring that the rest of the image remains untouched and avoiding common artifacts in bright areas.

Variational Optimization and Unfolding

The shadow removal task is treated as a Maximum A Posteriori (MAP) estimation problem. Instead of using a slow, iterative algorithm to solve the resulting cost function, the authors "unfold" the iterations into stages of a neural network. Each stage performs a gradient descent step to refine the transformation map $A$. To maintain a lightweight profile, the network utilizes a Dynamic Mapping Residual Block (DMRB) based on MobileNet-v2, leveraging depthwise convolutions to process information efficiently.

Key Results

The proposed model was evaluated on the ISTD (Image Shadow Triplets Dataset) and SRD (Shadow Removal Dataset) benchmarks. It consistently outperformed previous state-of-the-art (SOTA) methods in both accuracy and efficiency.

  • Accuracy: On the ISTD dataset, the model achieved a PSNR of 29.85 dB, surpassing the previous SOTA (DHAN) at 29.11 dB.
  • Efficiency: The model is over 17 times faster than DHAN, processing images in approximately 0.02 seconds. It uses only 10.05 million parameters and requires 56.13 GFLOPs, roughly one-fifth of the computation required by other top models.
  • Visual Fidelity: Qualitatively, the model excels at distinguishing between actual shadows and dark objects (e.g., black clothing), a common failure point for generic CNNs.
Comparison of PSNR vs. FLOPs across various shadow removal models. Our method achieves superior accuracy with significantly lower computational cost.

Conclusion

By combining the interpretability of physical models with the representational power of deep learning, this work provides a highly efficient solution for shadow removal. While the model currently relies on shadow masks as input and faces challenges with complex penumbra regions, its success suggests that the "unfolding" framework could be effectively adapted for other image restoration tasks, such as low-light enhancement or reflection removal.

Summary updated

BibTeX
@inproceedings{zhu2022efficient,
  author = {Yurui Zhu and Zeyu Xiao and Yanchi Fang and Xueyang Fu and Zhiwei Xiong and Zheng-Jun Zha},
  title = {{Efficient Model-Driven Network for Shadow Removal}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i3.20276},
}
Figure