TL;DR
Removing shadows from photos usually requires expensive, hard-to-collect pairs of shadowed and shadow-free real-world images, or painfully slow multi-step diffusion models. ODDR (One-Step Deshadow Diffusion via Reward Guidance) sidesteps both headaches: it adapts a pretrained diffusion model to erase shadows in a single forward pass, and bridges the gap between synthetic training data and messy reality using an automated "critic" trained entirely without human labels. You get crisp, natural lighting at over four times the speed of standard diffusion approaches.
What Problem Does This Paper Address?
Shadows wreak havoc on both human aesthetics and downstream computer vision tasks like segmentation or text recognition. Teaching a neural network to remove them typically demands paired real-world supervision—exact pixel-aligned photos of the same scene with and without the shadow. Capturing these is tedious and fragile; a breeze moving a leaf or a slight cloud shift ruins the alignment, leaving existing datasets small and lacking diversity.
Researchers have tried three workarounds, each with a catch:
- GANs trained on unpaired data, which are notoriously unstable and leave blotchy artifacts.
- Synthetic shadows rendered onto clean photos, which struggle to generalize to complex real-world lighting (the classic domain gap).
- Diffusion models, which produce gorgeous textures using generative priors, but require 20+ iterative denoising steps—making them far too slow for time-sensitive applications.
The authors ask: Can we get the perceptual magic of diffusion models in a single fast step, generalized to real-world shadows, without using a single real-world paired image?
Methods
The framework unfolds in two stages, paired with a clever automated reward model.
- Stage 1: One-Step Deshadow Diffusion (ODD). Starting with frozen Stable Diffusion v2.1 weights, the authors collapse the multi-step denoising trajectory into a single deterministic pass. Because text prompts aren't needed here, they swap out text-conditioning layers for learnable self-attention, inject rank-16 LoRA adapters into the UNet, and add lightweight convolutional skip connections (
ODD-Conv) between the encoder and decoder so fine high-frequency textures aren't lost in the latent bottleneck. ODD is trained purely on synthetic shadow pairs. - ShadowReward (The Annotation-Free Critic). Normally, RLHF-style reward models require armies of human raters. Instead, the authors build ShadowReward by taking clean images and deliberately corrupting them with progressive levels of five specific shadow-removal failure modes: texture distortion, noise, chromatic shift, luminance mismatch, and boundary seams. Using frozen DINOv2 backbones to extract local spatial features, a lightweight head learns (via ListMLE ranking loss) to score less-degraded images higher—Focusing on the worst local artifacts via Top-10% pooling.
- Stage 2: Reward-Guided Refinement (ODDR). To adapt to real shadows without ground truth, ODD is fine-tuned on unpaired real shadow images. A frozen copy of ODD generates a "pseudo-target" to anchor the image structure and prevent the model from hallucinating, while the frozen ShadowReward model pushes a new set of LoRA weights to eliminate real-world boundary seams and color shifts.
Datasets
- Adjusted ISTD (AISTD): Used in split fashion so no real pairs are ever linked. Clean images are used to synthesize shadows (via SynShadow) for ODD and to build the Human-Annotation-Free Dataset of ranked degradations for ShadowReward. Only the standalone shadowed images are used to fine-tune ODDR. Testing is done on AISTD's 540 test images.
- SRD, LRSS, and UIUC: Three unseen real-world datasets used purely for zero-shot cross-dataset evaluation, covering diverse lighting and soft, faint shadow boundaries (LRSS).
Key Insights and Ideas
- Synthetic failures teach human preference: You don't need humans to click "Image A looks better than Image B" if you already know the physics of how models fail. Ranking controlled synthetic corruptions aligned with human evaluators 68.75% of the time in a user study—vastly outperforming generic AI aesthetic/reward models (<25%) and even edging out full-reference PSNR (56.25%).
- One-step diffusion unlocks direct pixel-space rewards: In standard 25-step diffusion, intermediate noisy latents look nothing like final images, making it notoriously hard to apply fine-grained perceptual rewards. Collapsing generation into one step makes end-to-end reward backpropagation straightforward.
- Generative priors do the heavy lifting on generalization: Pretrained Stable Diffusion priors give even the synthetic-only baseline (ODD) massive zero-shot generalization over older architectures, while reward guidance acts as the final polish for tricky shadow boundaries.
Key Results
Performance and efficiency comparison of ODDR against diffusion baselines
- State-of-the-art unpaired restoration: On AISTD, ODDR achieves 34.20 dB PSNR and 2.97 RMSE across the whole image (and boosts shadow-region PSNR from ODD's 36.67 dB to 38.37 dB), beating all existing unpaired/mask-free methods and matching several fully supervised models.
- Superior zero-shot generalization: Tested directly on SRD, LRSS, and UIUC without retraining, ODDR beats both unpaired methods and fully supervised diffusion models (like SSR and DeS3), reaching 27.66, 25.34, and 29.95 dB PSNR, respectively.
- Massive speedup: At 256×256 resolution on an RTX 4090, ODDR runs in 127.41 ms with 158.21 GFLOPs (1 step)—making it 4.2× to 5.3× faster and up to 14× lighter in compute than multi-step diffusion rivals like SSR (680.64 ms, 2249.50 GFLOPs).
Limitations and Future Work
In the main text, the authors note that their 16-question, 23-participant user study is too small to claim a statistically significant win over ground-truth PSNR for preference alignment, though it proves parity without needing reference images. Deeper discussions of model limitations, representative failure cases, and transferability beyond cast shadows are deferred to the paper's Appendix (not included in the main manuscript).
Summary updated