Manuscript Offprint

arXiv:2609.01806

Consistency as Regularization for Unsupervised Shadow Removal

Anh-Kiet Duong, Petra Gomez-Krämer, Jean-Michel Carozza

Abstract

Shadow removal is an important preprocessing step for many vision tasks, yet existing supervised methods require paired shadow and shadow-free images, while unsupervised approaches often still rely on shadow masks or shadow-free references. We propose ShadowCLR, an unsupervised framework that learns shadow removal directly from shadow images. Our key observation is that shadows vary across observations while the underlying scene content remains largely consistent. We therefore use consistency across shadow observations as regularization, encouraging the model to recover scene-consistent appearance while suppressing shadow-specific variations. Global and local consistency further enable us to explore visually related images, learn from imperfectly aligned observations, and focus the representation on shared scene information. Experiments on multiple benchmarks show that ShadowCLR achieves competitive and often superior performance over state-of-the-art unsupervised methods, demonstrating that consistency can provide regularization for shadow removal without shadow masks or shadow-free images.

1. Introduction

Shadows are common in visual data and can degrade downstream tasks such as change detection, surveillance, 3D reconstruction, and scene understanding [1, 7, 30, 50, 52]. By disrupting illumination, texture, and color statistics, they may introduce false detections and reconstruction errors. Shadow removal is therefore an important preprocessing step in many real-world applications, yet remains difficult because of the complex interaction between illumination, scene geometry, and surface reflectance [27].

Recent deep learning approaches [4, 23, 37, 40, 41, 59, 62, 64] achieve strong shadow removal performance by training on paired shadow and shadow-free images. However, constructing such paired data requires substantial collection effort and careful alignment, making it difficult to scale to unconstrained scenarios. Unsupervised meth-

Figure

Figure 1. Illustration of our core idea. Shadow patterns vary across observations, but scene content remains consistent. We use this consistency to learn shadow removal.

ods [18, 26, 28, 36, 42, 43] reduce this requirement, but typically still depend on shadow masks or unpaired shadow-free images, which remain difficult to obtain at scale.

In practice, the same scene may appear under different shadow and illumination conditions while preserving its underlying content. Motivated by this observation, we introduce Shadow Consistency Learning for Removal (Shadow-CLR), an unsupervised shadow removal framework that exploits consistency across shadow observations as a source of supervision. As illustrated in Fig. 1, the model learns to retain scene-consistent information while suppressing shadow-dependent variations. Visually related images are automatically discovered when available, while a shadow generator ensures that the framework remains applicable even when such related images are limited or absent. The main contributions are:

  • We propose unsupervised shadow removal that requires neither target shadow masks nor shadow-free images and learns via consistency of shadow observations.
  • Our framework can also perform unsupervised shadow segmentation as a natural byproduct of shadow removal.
  • Our framework achieves competitive, and in some cases superior results compared with current state-of-the-art unsupervised methods.

The rest of this paper is organized as follows. Section 2 reviews related works. Section 3 describes the proposed method. Section 4 reports experimental results and analysis. Finally, Section 5 concludes the paper.

References (64)

  • 3d photography using shadows in dual-space geometry
  • Albumentations: fast and flexible image augmentations
  • A multi-task mean teacher for semi-supervised shadow detection
  • Canet: A context-aware network for shadow removal
  • Sddnet: Style-guided dual-layer disentanglement network for shadow detection
  • Towards ghost-free shadow removal via dual hierarchical aggregation network and shadow matting gan
  • A review of research on remote sensing images shadow detection and application to building extraction
  • Collision-resistant single-pass method for unsupervised fine-grained image hashing
  • From image hashing to scene change detection
  • Robust shadow detection by exploring effective shadow contexts
  • Automatic shadow detection in aerial and terrestrial images
  • Clustering by passing messages between data points
  • Autoexposure fusion for single-image shadow removal
  • Learning to remove soft shadows
  • Shadowformer: Global context helps shadow removal
  • Shadowdiffusion: When degradation prior meets diffusion model for shadow removal
  • Boundary-aware divide and conquer: A diffusion-based solution for unsupervised shadow removal
  • Single-image shadow removal using deep learning: A comprehensive survey (opens arXiv in a new tab)
  • Paired regions for shadow detection and removal
  • Denoising diffusion probabilistic models
  • An asymmetric augmented self-supervised learning method for unsupervised fine-grained image hashing
  • Shadowhack: Hack-ing shadows via luminance-color divide and conquer
  • Shadow removal refinement via material-consistent shadow edges
  • Direction-aware spatial context features for shadow detection
  • Mask-shadowgan: Learning to remove shadows from unpaired data
  • Unveiling deep shadows: A survey and benchmark on image and video shadow detection, removal, and generation in the deep learning era
  • Dc-shadownet: Single-image hard and soft shadow removal using unsupervised domain-classifier guided network
  • Des3: Adaptive attention-driven self and soft shadow removal using vit similarity
  • Moving cast shadow detection and removal from video based on hsv color space
  • Adam: A Method for Stochastic Optimization
  • S3r-net: A single-stage approach to self-supervised shadow removal
  • Shadow removal via shadow image decomposition
  • From shadow segmentation to shadow removal
  • Physics-based shadow image decomposition for shadow removal
  • Fasr-net: Unsupervised shadow removal leveraging inherent frequency priors (opens arXiv in a new tab)
  • A decoupled multi-task network for shadow removal
  • A shadow imaging bilinear model and three-branch residual network for shadow removal
  • Recasting regional lighting for shadow removal
  • Shadow removal by a lightness-guided network with training on unpaired data
  • From shadow generation to shadow removal
  • Diff-shadow: Global-guided diffusion model for shadow removal
  • Latent feature-guided diffusion models for shadow removal
  • Pytorch: An imperative style, high-performance deep learning library
  • Machine learning in python
  • Deshadownet: A multi-context embedding deep network for shadow removal
  • Improved shadow removal for robust person tracking in surveillance scenarios
  • DINOv3
  • Normalizing shadows in multi-temporal aerial frame imagery using relative radiometric adjustments to support near-real-time change detection
  • Wsrd: A novel benchmark for high resolution image shadow removal
  • Large-scale training of shadow detectors with noisily-annotated shadow examples
  • Leave-one-out kernel optimization for shadow detection and removal
  • Style-guided shadow removal
  • Stacked conditional generative adversarial networks for jointly learning shadow detection and shadow removal
  • Softshadow: Leveraging soft masks for penumbra-aware shadow removal
  • Image quality assessment: from error visibility to structural similarity
  • Homoformer: Homogenized transformer for image shadow removal
  • Omnisr: Shadow removal under direct and indirect lighting
  • Detail-preserving latent diffusion for stable shadow removal
  • Lra&ldra: Rethinking residual predictions for efficient shadow detection and removal
  • Ris-gan: Explore residual and illumination with generative adversarial networks for shadow removal
  • Deep unsupervised shadow detection with curriculum learning and self-training
  • The unreasonable effectiveness of deep features as a perceptual metric
  • Bidirectional feature pyramid network with recurrent attention residual modules for shadow detection
  • Bijective mapping network for shadow removal