Generative Portrait Shadow Removal

Jae Shin Yoon, Zhixin Shu, Mengwei Ren, Cecilia Zhang, Yannick Hold-Geoffroy, Krishna Kumar Singh, He Zhang

Introduction

Portrait shadow removal is a fundamental challenge in computational photography. Unlike simple exposure adjustment, removing harsh shadows—such as those cast by window slats, foliage, or external objects—requires more than just brightening pixels. These shadows often obscure critical high-frequency information, including skin texture, subtle color variations, and facial geometry.

In the paper "Generative Portrait Shadow Removal," researchers from Adobe Inc. and Adobe Research propose a paradigm shift. Rather than treating shadow removal as a local image-filtering problem, they frame it as a generative reconstruction task. By leveraging the prior knowledge embedded in diffusion models, the proposed framework can "re-generate" the shadowed portions of a face while maintaining perfect consistency with the unshadowed regions.

The Problem: The Limits of Local Propagation

Traditional shadow removal methods typically rely on "local propagation." These algorithms analyze the unshadowed parts of a face and attempt to spread those colors and textures into the dark areas. While effective for soft, diffuse shadows, this approach often fails on "hard" shadows with sharp boundaries. Common failure cases include "ghosting" artifacts at shadow edges or the production of unnatural, flat skin tones that do not match the surrounding environment's lighting. Because the problem is "highly ill-posed"—meaning there are many plausible ways a face could look under a shadow—local methods often lack the context needed to produce a realistic result.

Methodology: The Compositional Repurposing Framework

The core innovation of this work is the Compositional Repurposing Framework, which repurposes a pre-trained text-to-image diffusion model for the specific task of shadow removal. The process follows three distinct stages:

  1. Background Harmonization: The model is first fine-tuned to harmonize a foreground subject with a background scene. This step is crucial as it teaches the model the fundamental relationship between subjects and their lighting environments, establishing a strong prior for natural illumination.
  2. Shadow-Free Generation: The model is then further fine-tuned on paired datasets to generate clean portraits. Instead of predicting a residual difference, the model globally rebuilds the human appearance, conditioned on the shadowed input. This global approach allows the model to avoid the local minima (like shadow outlines) that plague traditional methods.
  3. Guided Refinement: Diffusion models often operate in a compressed latent space, which can lead to the loss of fine details like individual hairs or skin pores. To counteract this, the authors introduced a lightweight "guided upsampling" network. This module treats lighting as a low-frequency signal and identity/texture as a high-frequency signal, combining the generative model's lighting accuracy with the original image's structural details to produce a high-resolution, crisp output.

Data Strategy

To train a model capable of handling diverse real-world scenarios, the researchers utilized a multi-source dataset:

  • OLAT (One-Light-at-A-Time): Data from a professional lightstage system featuring 150 subjects, providing ground-truth for controlled lighting.
  • Synthetic Humans: 3D rendered models used to simulate complex external occlusions (shadows from objects not present in the frame).
  • Augmented Real-World Data: 25,000 real-world portraits processed to create "pseudo-ground truth" pairs, ensuring the model generalizes to everyday photography.

Results and Performance

The generative approach significantly outperforms existing state-of-the-art (SOTA) baselines.

Quantitative Metrics

On validation datasets, the model demonstrated superior structural and perceptual fidelity:

  • SSIM (Structural Similarity): 0.883 (vs. 0.841 for standard UNet architectures).
  • LPIPS (Perceptual Similarity): 0.093 (vs. 0.143 for UNet).
  • Identity Preservation (Adaface): 0.790, indicating that the model is significantly better at keeping the subject recognizable compared to the next best method (0.754).

Qualitative Advantages

Qualitatively, the model excels at removing hard shadows and external occlusions that typically leave visible artifacts in other tools. It also demonstrates a sophisticated understanding of colored lighting (e.g., blue neon or warm sunset glows), reconstructing the skin tones in a way that feels integrated with the environment rather than simply desaturated.

Limitations and Future Directions

While the model represents a significant leap forward, the authors identified specific areas for improvement:

  • Skin Color Drift: The model occasionally shifts skin tones toward the mean of the training data, a common challenge in generative modeling.
  • Texture Confusion: Heavy makeup or face paint can sometimes be misinterpreted as a shadow, leading the model to erroneously "remove" the texture.
  • Information Voids: In cases of extreme shadows where pixel values are near zero, the refinement module lacks the high-frequency data needed for restoration, occasionally resulting in softer patches.

Conclusion

By moving from local filtering to global generative reconstruction, "Generative Portrait Shadow Removal" provides a robust solution for one of the most difficult problems in portrait editing. The combination of diffusion-based priors and a guided refinement module ensures that even the harshest shadows can be removed while preserving the intricate details that make a portrait feel real.

Summary updated

BibTeX
@article{yoon2024generative,
  author = {Jae Shin Yoon and Zhixin Shu and Mengwei Ren and Cecilia Zhang and Yannick Hold-Geoffroy and Krishna Kumar Singh and He Zhang},
  title = {{Generative Portrait Shadow Removal}},
  journal = {ACM Trans. Graphics},
  year = {2024},
  url = {https://openreview.net/forum?id=RNeyGTGRVb},
}
Figure