Structure-Informed Shadow Removal Networks

Yuhao Liu, Qing Guo, Lan Fu, Zhanghan Ke, Ke Xu, Wei Feng, Ivor W. Tsang, Rynson W. H. Lau

TL;DR

Researchers have developed StructNet, a novel deep learning framework that tackles the stubborn problem of "shadow remnants"—those faint, discolored artifacts often left behind by standard shadow removal tools. By first removing shadows from a simplified "structure layer" of the image (focusing on shapes and smooth colors) and using that as a guide for the full-detail restoration, StructNet achieves state-of-the-art results and can even be used to "boost" the performance of existing shadow removal models.

What Problem Does This Paper Address?

Despite the power of modern AI, removing shadows from a single image remains tricky. Most current methods try to learn a direct mapping from a shadowed image to a shadow-free one. However, this often leaves behind yellowish or dark "remnants" in smooth, low-intensity areas.

The authors identify a fundamental flaw: standard convolutional neural networks (CNNs) use the same weights to process both shadowed and non-shadowed regions. This "one-size-fits-all" approach ignores the distinct statistical differences between these areas, leading to color shifts and artifacts. Furthermore, these subtle remnants are hard for networks to "see" when buried under complex high-frequency textures.

Methods

The core idea is to leverage image structure—the low-frequency component of an image that represents object shapes and continuous colors, free from distracting textures.

The proposed StructNet framework uses structure-level removal to guide image-level restoration.

The authors propose two main architectures:

  1. StructNet: A two-stage pipeline. Stage 1 removes shadows from the structure layer. Stage 2 uses this "clean" structure as a prior to guide the final image-level shadow removal.
  2. MStructNet: A more efficient, self-contained version that processes multiple levels of image structure simultaneously within the feature space of a single network.

To make these networks effective, they introduced two novel modules:

  • Mask-guided Shadow-Free Extraction (MSFE): Instead of processing the whole image uniformly, this module uses the shadow mask to "bridge" information. it explicitly learns to propagate features from non-shadow regions into shadow regions, ensuring the restored area matches its surroundings.
  • Multi-scale Feature & Residual Aggregation (MFRA): This module fuses features at different scales using dynamic weights. It ensures that the restored shadow regions are internally homogeneous and consistent with the rest of the image.

Datasets

The models were trained and evaluated on three standard benchmarks:

  • SRD: A large-scale dataset with over 3,000 paired images.
  • ISTD: A widely used dataset containing 1,870 triplets (shadow image, mask, and shadow-free image).
  • ISTD+: A corrected version of ISTD that fixes color consistency issues between the shadowed and ground-truth images.

Key Insights and Ideas

  • Structure is Easier to Clean: The authors found that as they increased the "structure level" (essentially blurring the image to remove texture), the error (RMSE) in shadow removal consistently dropped. It is fundamentally easier for a network to fix colors and shapes when it doesn't have to worry about fine textures. RMSE decreases as the structure level (l) increases, suggesting structure-level removal is more effective.

  • Standard Convolutions are Biased: Visualizing feature maps showed that standard CNNs produce wildly different features for shadow vs. non-shadow regions even when they should be consistent. StructNet’s MSFE module significantly reduces this divergence.

  • Extensibility: StructNet isn't just a standalone model; it's a framework. By using a restored structure layer as an "ancillary prior," it can improve the performance of other popular models like STCGAN or AEF.
RMSE decreases as the structure level (l) increases, suggesting structure-level removal is more effective.

Key Results

StructNet and MStructNet outperformed nearly 20 existing state-of-the-art methods across all three datasets.

  • Quantitative: On the ISTD+ dataset, StructNet reduced the shadow region RMSE of the baseline STCGAN from 9.39 to 6.25—a 33.4% improvement.
  • Qualitative: Visual results show a marked reduction in the "yellowish" remnants that plague other methods. The transitions between shadow and non-shadow regions appear much smoother and more natural.
  • Efficiency: Despite its two-stage nature, StructNet is highly optimized. The MStructNet variant is particularly fast, running in just 2.8ms per image, making it significantly faster than many competing high-performance models.

Limitations and Future Work

The authors noted a "sweet spot" for structure-level guidance. If the structure level is set too high (too much blurring), it can lead to "shadow spreading," where shadow-like patterns bleed into neighboring non-shadow regions, slightly increasing the error in those areas.

Future work could involve exploring more sophisticated ways to automatically determine the optimal structure level for different types of scenes or integrating this structure-informed approach into unsupervised shadow removal tasks where paired data isn't available.

Summary updated

BibTeX
@article{liu2023structure,
  author = {Yuhao Liu and Qing Guo and Lan Fu and Zhanghan Ke and Ke Xu and Wei Feng and Ivor W. Tsang and Rynson W. H. Lau},
  title = {{Structure-Informed Shadow Removal Networks}},
  journal = {IEEE Trans. Image Process.},
  year = {2023},
  url = {https://openreview.net/forum?id=4aGgZkgiKd},
}
Figure