Abstract
While computer vision has achieved significant milestones in object detection and segmentation, the relationship between objects and the shadows they cast has remained largely unexplored at the instance level. This paper introduces the task of Instance Shadow Detection, which requires identifying individual shadow instances and pairing them with the specific objects that generated them. We present SOBA, the first large-scale dataset for this task, and LISA, an end-to-end framework that utilizes light direction to guide the association process. Our approach demonstrates superior performance over traditional methods and enables sophisticated light-aware photo editing applications.
Introduction
Traditional shadow detection typically produces a binary mask indicating the presence of shadows across an entire image. However, many real-world applications—such as object removal, scene composition, and augmented reality—require a deeper understanding of the physical relationship between an object and its shadow.
The primary challenge lies in the spatial separation and potential overlap of shadows. A single object may cast a shadow far from its base, and multiple shadows in a crowded scene often merge into a single dark region. To address this, the authors propose moving beyond pixel-level detection to instance-level association.
The LISA Framework
The Light-guided Instance Shadow-object Association (LISA) framework is designed to learn the geometric constraints of the physical world. Built upon a Feature Pyramid Network (FPN), LISA employs a dual-branch architecture:
- Instance Segmentation Branch: This branch predicts bounding boxes and masks for both shadow and object instances independently, utilizing a structure similar to Mask R-CNN.
- Association Branch: This branch predicts "association boxes" that encompass both an object and its corresponding shadow. Crucially, it also estimates the light direction for each pair.
By treating light direction as a learnable feature, the model can mathematically align shadows with objects. This light guidance acts as a "secret sauce," allowing the system to distinguish between physically plausible and implausible pairings, even in complex or crowded scenes.
The SOBA Dataset
To facilitate research in this new domain, the researchers introduced the Shadow-OBject Association (SOBA) dataset. SOBA consists of 1,000 images containing 3,623 annotated shadow-object pairs. The images are sourced from diverse environments, including urban streets and indoor settings, and are meticulously annotated with three distinct masks: the shadow instance, the object instance, and the combined association mask.
Results and Evaluation
To evaluate performance, the authors introduced the Shadow-Object Average Precision (SOAP) metric. Unlike standard AP, SOAP requires a "True Positive" to meet Intersection-over-Union (IoU) thresholds for the shadow mask, the object mask, and their association simultaneously.
LISA achieved a 21.8 box SOAP and 21.6 mask SOAP on the SOBA dataset, significantly outperforming proximity-based baselines (~16.7 SOAP). Beyond detection, the model enables advanced applications:
- Light Direction Estimation: LISA can infer the 3D-like light source direction from a single 2D image by analyzing shadow-object pairs.
- Light-Aware Editing: By understanding object-shadow associations, users can remove objects along with their correct shadows or transplant objects into new scenes while automatically adjusting shadows to match the target lighting.
Conclusion
Instance shadow detection represents a significant step toward more physically grounded computer vision. By explicitly modeling the relationship between light, form, and shadow through the LISA framework and SOBA dataset, this research provides the tools necessary for more realistic image understanding and manipulation. Future work will focus on handling complex occlusions and shadows cast on irregular or vertical surfaces.
Summary updated