Skip to main content
QUICK REVIEW

[Paper Review] ShadowFormer: Global Context Helps Image Shadow Removal

Lanqing Guo, Siyu Huang|arXiv (Cornell University)|Feb 3, 2023
Image Enhancement TechniquesComputer Science14 citations
TL;DR

ShadowFormer is a lightweight transformer-based network with a Retinex-inspired shadow model and a Shadow-Interaction Module that leverages global context from non-shadow regions to restore shadow areas, achieving state-of-the-art results with far fewer parameters across ISTD, ISTD+, and SRD datasets.

ABSTRACT

Recent deep learning methods have achieved promising results in image shadow removal. However, most of the existing approaches focus on working locally within shadow and non-shadow regions, resulting in severe artifacts around the shadow boundaries as well as inconsistent illumination between shadow and non-shadow regions. It is still challenging for the deep shadow removal model to exploit the global contextual correlation between shadow and non-shadow regions. In this work, we first propose a Retinex-based shadow model, from which we derive a novel transformer-based network, dubbed ShandowFormer, to exploit non-shadow regions to help shadow region restoration. A multi-scale channel attention framework is employed to hierarchically capture the global information. Based on that, we propose a Shadow-Interaction Module (SIM) with Shadow-Interaction Attention (SIA) in the bottleneck stage to effectively model the context correlation between shadow and non-shadow regions. We conduct extensive experiments on three popular public datasets, including ISTD, ISTD+, and SRD, to evaluate the proposed method. Our method achieves state-of-the-art performance by using up to 150X fewer model parameters.

Motivation & Objective

  • Motivate shadow removal with a Retinex-based degradation model that highlights global context between shadow and non-shadow regions.
  • Develop a lightweight channel-attention Transformer (ShadowFormer) for end-to-end shadow removal.
  • Introduce a Shadow-Interaction Module (SIM) with Shadow-Interaction Attention (SIA) to model cross-region context.
  • Fuse global context from the bottleneck with local structure information to preserve illumination consistency and reduce boundary artifacts.
  • Demonstrate state-of-the-art performance with significantly fewer parameters on ISTD, ISTD+, and SRD.

Proposed method

  • Adopt a Retinex-based shadow model to formulate degradation and guide restoration.
  • Use a channel-attention Transformer encoder-decoder as a multi-scale architecture to capture global information.
  • Embed a Shadow-Interaction Module (SIM) in the bottleneck stage to exploit cross-region context via Shadow-Interaction Attention (SIA).
  • Apply a patch-wise correlation map between shadow and non-shadow regions to reweight attention within windows (SIA).
  • Train with a single L1 loss for pixel-wise consistency and explore two model scales (Ours-Small and Ours-Large).

Experimental results

Research questions

  • RQ1Can a Retinex-inspired formulation reveal and exploit global shadow contextual cues for restoration?
  • RQ2Does a lightweight transformer with a Shadow-Interaction mechanism effectively leverage non-shadow regions to improve shadow-region restoration?
  • RQ3What impact does the Shadow-Interaction Attention have on boundary artifacts and illumination/color consistency?
  • RQ4How does ShadowFormer compare to state-of-the-art methods in ISTD, ISTD+, and SRD in terms of accuracy and parameter efficiency?

Key findings

  • ShadowFormer achieves state-of-the-art performance on ISTD, ISTD+, and SRD datasets.
  • The model uses up to 150x fewer parameters than competing deep models while delivering superior results.
  • Shadow-Interaction Module with Shadow-Interaction Attention effectively leverages non-shadow regions to restore shadow areas and maintain illumination consistency.
  • A single-stage transformer with multi-scale channel attention under the Retinex-based framework yields trace-less reconstructions with reduced boundary artifacts.
  • Ablation studies show CA transformers and SIM/SIA components are critical for artifact reduction and contextual grounding.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.