Towards Learning Neural Representations from Shadows

Kushagra Tiwary, Tzofi Klinghoffer, Ramesh Raskar

Abstract

Traditional 3D reconstruction methods rely heavily on photometric consistency—the assumption that an object's appearance remains constant across different viewpoints. However, this assumption often fails in the presence of complex lighting, specular surfaces, or sparse data. This paper introduces "Neural Shadow Fields," a novel framework that reconstructs 3D scene geometry using exclusively binary shadow masks. By integrating a differentiable shadow mapping pipeline with volumetric rendering, the authors demonstrate that shadows provide powerful geometric constraints, often recovering structural details that traditional RGB-based methods like Neural Radiance Fields (NeRF) fail to capture.

Introduction

Most modern 3D reconstruction algorithms treat shadows as a nuisance or noise. However, shadows are fundamentally informative: they define the precise region where an occluder exists between a light source and a surface. While traditional "Shape-from-Shadow" (SfS) algorithms exist, they typically require highly controlled environments and struggle with complex scenes.

Neural Shadow Fields bridge this gap by utilizing the physical cues provided by shadows within a flexible, differentiable neural rendering framework. This approach is particularly valuable for scenes where surfaces are viewed from poor angles or possess complex textures that confuse color-consistency-based algorithms.

Methodology

The core innovation of this work is a differentiable shadow mapping pipeline integrated with a volumetric renderer. The scene is represented as a coordinate-based Multi-Layer Perceptron (MLP) that predicts volumetric density ($\sigma$).

Overview of the proposed approach: binary shadow masks are used to exploit shadow cues and estimate depth, disparity, and 3D mesh.

To determine if a point is in shadow, the system performs a two-pass process: first, it renders a "shadow map" (z-buffer) from the light's perspective; second, it projects camera-visible points into the light's coordinate frame to compare depths. Because binary shadow masks have zero gradients almost everywhere, the authors apply a Distance Transform to the ground truth masks. This creates a smooth gradient field that guides the optimization process, "pulling" the predicted geometry toward the correct shape.

Experiments and Results

The researchers evaluated their method using both simulated data (Blender renders of a cuboid, vase, chair, and the Stanford Bunny) and real-world data (iPhone video of a human hand).

Qualitative comparison showing that the shadow-only reconstruction captures geometric structure more accurately than vanilla NeRF for certain objects.

Key results include:

  • Geometric Accuracy: The "Shadow Mesh" outperformed vanilla NeRF in several geometric benchmarks. For instance, on a cuboid, the shadow-based method achieved a Root Mean Square Error (RMSE) of 0.0078, significantly better than NeRF’s 0.097.
  • Texture Invariance: Because the model only processes binary masks, it is entirely invariant to surface texture or specularity, allowing for better Sim2Real generalization.
  • Hidden Geometry: Shadows act as "hidden observers," revealing parts of an object (like the interior of a vase) that may never be directly visible to the camera.

Discussion and Conclusion

While Neural Shadow Fields represent a significant step toward physics-anchored neural rendering, the method has limitations. It cannot reconstruct parts of an object that never cast or receive shadows, leading to "blind spots." Additionally, the current framework assumes known light source positions.

Future work aims to jointly optimize for both geometry and light position. Despite these challenges, the research proves that the parts of an image where the light doesn't shine can be the most informative for understanding the physical world.

Summary updated

BibTeX
@inproceedings{tiwary2022towards,
  author = {Kushagra Tiwary and Tzofi Klinghoffer and Ramesh Raskar},
  title = {{Towards Learning Neural Representations from Shadows}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19827-4\_18},
}
Figure