Abstract
Estimating scene illumination from a single, limited-field-of-view image is a fundamental challenge for realistic augmented reality and virtual object insertion. We present NeedleLight, a novel framework that represents lighting using sparse needlets—a specialized type of spherical wavelet localized in both frequency and spatial domains. By combining a Bayesian-derived sparse thresholding function with a Spherical Transport Loss (STL) based on Unbalanced Optimal Transport theory, our model captures both high-frequency light sources and global ambient conditions more accurately than traditional methods. Experimental results on the Laval Indoor HDR dataset demonstrate that NeedleLight produces significantly more realistic relighting with sharper shadows and accurate specular highlights, outperforming existing state-of-the-art approaches in both quantitative metrics and human perception studies.
Introduction
To realistically insert a virtual 3D object into a photograph, one must understand the illumination coming from all directions, including regions outside the camera's field of view. This is a classic ill-posed problem. Existing solutions typically rely on either frequency-domain representations like Spherical Harmonics, which often blur specific light sources, or spatial-domain illumination maps, which can struggle with frequency consistency and generalization.
Furthermore, standard training objectives often utilize L2 (pixel-wise) loss. L2 loss is "geometrically blind," penalizing a predicted light source the same amount regardless of its angular distance from the ground truth. NeedleLight addresses these limitations by rethinking both the representation of light and the loss function used to train the estimation network.
Methodology
Needlet Representation and Sparsity
NeedleLight utilizes needlets, spherical wavelets that provide a "Goldilocks" basis for HDR lighting. Unlike Spherical Harmonics, which have global support, needlets have compact supports. This allows the model to simultaneously represent sharp, localized light sources (high frequency) and smooth ambient light (low frequency) with high efficiency.
Lighting is inherently sparse, characterized by a few intense sources (e.g., lamps, windows) against a lower-energy background. The authors derive an optimal thresholding function from a Bayesian perspective, assuming light sources follow a Laplace distribution while ambient noise follows a Gaussian distribution. This sparsity constraint allows the neural network to focus its learning capacity on the most critical illumination features.
Spherical Transport Loss (STL)
To overcome the geometric blindness of L2 loss, the authors treat lighting estimation as an Unbalanced Optimal Transport (UOT) problem. The STL calculates the "cost" of moving light mass from predicted positions to ground-truth positions on a unit sphere, where the cost is determined by the actual radian distance. This provides a more meaningful gradient for the network. To handle the high dimensionality of needlet coefficients, an Auxiliary Point strategy is employed, ensuring the transport plan remains computationally feasible via Sinkhorn iterations.
Key Results
NeedleLight was evaluated against state-of-the-art methods including Gardner et al. and Garon et al. using the Laval Indoor HDR Dataset.
- Quantitative Performance: NeedleLight achieved the lowest RMSE and si-RMSE across various material types (diffuse, matte, mirror). Notably, the authors introduced the Spherical Transport Distance (STD) as a new metric, where NeedleLight scored 4.21, significantly better than the next best method at 5.52.
- Qualitative Realism: Visual comparisons show that NeedleLight produces distinct, plausible light sources that result in sharp shadows and clear specular highlights. In Amazon Mechanical Turk (AMT) user studies, images relit by NeedleLight were chosen as the most realistic ~40% of the time.
Conclusion and Future Work
NeedleLight demonstrates that acknowledging the spherical geometry of light and enforcing sparsity leads to superior HDR lighting estimation. While the current model estimates a single global lighting environment, it sets a strong foundation for future work in spatially-varying lighting. By moving beyond pixel-wise differences to a transport-based geometric loss, NeedleLight bridges the gap between predicted illumination and the physical reality of light transport.
Summary updated