PhaSR: Generalized Image Shadow Removal with Physically Aligned Priors
Chia-Ming Lee, Yu-Fan Lin, Yu-Jou Hsiao, Jing-Hui Jung, Yu-Lun Liu, Chih-Chung Hsu
TL;DR
Shadow removal under diverse lighting requires disentangling illumination from reflectance. PhaSR tackles this with dual-level physically aligned priors: PAN provides global illumination normalization via Gray-world correction and log-domain Retinex, while GSRA harmonizes depth-based geometric priors with DINO-V2 semantic priors through cross-modal differential attention, expressed as $\mathbf{A}_{\text{rect}} = \mathbf{A}_{\text{sem}} - \lambda \cdot \mathbf{A}_{\text{geo}}$. The approach achieves state-of-the-art results on challenging ambient-light benchmarks (e.g., Ambient6K) and competitive performance on standard shadow datasets, with low FLOPs ($55.63$ GFLOPs) and fast runtime ($87.9$ ms on $640\times480$ images). By integrating closed-form normalization and explicit prior alignment, PhaSR generalizes from single-light direct shadows to multi-source ambient illumination, enabling robust shadow-free restoration in real-world scenes; code is available at GitHub.
Abstract
Shadow removal under diverse lighting conditions requires disentangling illumination from intrinsic reflectance, a challenge compounded when physical priors are not properly aligned. We propose PhaSR (Physically Aligned Shadow Removal), addressing this through dual-level prior alignment to enable robust performance from single-light shadows to multi-source ambient lighting. First, Physically Aligned Normalization (PAN) performs closed-form illumination correction via Gray-world normalization, log-domain Retinex decomposition, and dynamic range recombination, suppressing chromatic bias. Second, Geometric-Semantic Rectification Attention (GSRA) extends differential attention to cross-modal alignment, harmonizing depth-derived geometry with DINO-v2 semantic embeddings to resolve modal conflicts under varying illumination. Experiments show competitive performance in shadow removal with lower complexity and generalization to ambient lighting where traditional methods fail under multi-source illumination. Our source code is available at https://github.com/ming053l/PhaSR.
