TL;DR
PhaSR (Physically Aligned Shadow Removal) introduces a dual-level prior alignment framework that robustly removes shadows and normalizes ambient light without requiring explicit shadow masks. By combining a model-free global illumination normalization step with a novel cross-modal differential attention mechanism, it successfully harmonizes conflicting geometric and semantic priors to achieve state-of-the-art performance with high computational efficiency.
What Problem Does This Paper Address?
Shadow removal is a fundamental computer vision task, but it is highly ill-posed because it requires disentangling an object's true surface color (reflectance) from shading variations (illumination). This challenge escalates significantly in real-world indoor environments with multi-source ambient lighting, color shifts, and diffuse indirect illumination—a task known as Ambient Light Normalization (ALN).
While modern deep learning methods attempt to leverage physical priors like depth (geometry) or object category (semantics), these priors often encode conflicting signals. Geometric features are highly sensitive to local shading and lighting changes, making them precise but noisy. Semantic features remain stable across lighting changes but are spatially coarse. Naively fusing these modalities causes them to fight each other, resulting in blurred shadow boundaries, color distortions, or over-smoothing.
Methods
PhaSR addresses prior misalignment through a two-stage framework:
- Physically Aligned Normalization (PAN): A parameter-free global preprocessing module grounded in classical Retinex theory. It first applies Gray-world color normalization to eliminate global chromatic biases (like warm indoor light casts). It then performs log-domain Retinex decomposition to separate pseudo-reflectance from dominant lighting effects before recombining them into an illumination-consistent representation.
- Geometric-Semantic Rectification Attention (GSRA): A local alignment module integrated into a multi-scale Transformer encoder-decoder network. It injects geometric priors (depth and surface normals from DepthAnything-v2) and semantic embeddings (from DINO-v2). Instead of standard fusion, GSRA uses cross-modal differential attention to subtract geometric attention maps from semantic attention maps ($A_{rect} = A_{sem} - \lambda \cdot A_{geo}$). This acts as a physical gate that suppresses geometric noise in uniformly lit regions while preserving sharp precision at true illumination boundaries.
Datasets
The authors evaluated PhaSR across five diverse datasets spanning outdoor and indoor scenarios:
- ISTD & ISTD+: Standard outdoor benchmarks featuring single-light direct shadows.
- INS: A synthetic indoor dataset rendered with physically based lighting and complex shadow interactions.
- WSRD+: A high-resolution benchmark for real-world shadow removal.
- Ambient6K: A challenging real-world indoor dataset featuring multi-source white lighting and diffuse indirect illumination, specifically used to evaluate ambient light normalization.
Key Insights and Ideas
- Priors Can Conflict: A key "aha moment" is realizing that unaligned geometric and semantic features actively disrupt each other. Geometric noise can ruin semantic consistency, while semantic over-smoothing can erase true illumination boundaries.
- Rectification via Subtraction: Rather than adding or concatenating multi-modal features, subtracting geometric attention from semantic attention provides an elegant, physically interpretable gating mechanism. This allows the network to maintain local geometric precision without sacrificing global semantic stability.
- Classical Physics Boosts Deep Learning: Implementing Retinex theory as a closed-form, model-free preprocessing step (PAN) provides a strong inductive bias. When plugged into existing state-of-the-art architectures (like OmniSR and DenseSR), PAN consistently improves their performance by 0.15–0.34 dB across diverse lighting conditions.
Key Results
- State-of-the-Art Performance: PhaSR achieves top-tier results under mask-free settings, notably outperforming dedicated ambient light normalization methods on the challenging Ambient6K dataset (achieving a PSNR of 23.32 dB) and leading on WSRD+ (28.44 dB).
- High Efficiency: Despite incorporating heavy foundation models (DINO-v2 and DepthAnything-v2), PhaSR maintains the lowest computational complexity among compared models with only 55.63 G FLOPs and 18.94 M parameters. It processes a 640×480 image in 87.9 ms, making it suitable for real-time deployment.
- Outperforming Multimodal LLMs: When compared against general-purpose vision-language models like Qwen-image-edit and Nano Banana, PhaSR delivered a massive margin of victory—over 12 dB higher fidelity on Ambient6K while executing in a fraction of a second versus the minutes required by MLLMs.
Limitations and Future Work
Despite its robust generalization, the authors note two primary failure modes:
- Dark Intrinsic Materials: Shadows falling on low-reflectance objects (e.g., black surfaces) create an ambiguity that the model struggles to resolve, sometimes leading to under-correction or over-brightening.
- Specular Surfaces: Highly reflective or metallic surfaces violate the underlying Lambertian reflection assumptions, causing color artifacts and inconsistent restorations.
Future research directions include integrating material-aware priors and developing non-Lambertian reflectance modeling to better handle complex real-world surface properties.
Summary updated