Neural Importance Sampling of Many Lights
Pedro Figueiredo, Qihao He, Steve Bako, Nima Khademi Kalantari
TL;DR
This work tackles efficient direct illumination in scenes with many lights by learning a spatially varying light-selection distribution that guides Monte Carlo sampling. A neural network predicts cluster-level light probabilities and is trained online by minimizing $D_{KL}(q, p_\theta)$ to a target distribution derived from per-light contributions, enabling adaptive importance sampling without heavy spatial data structures. To scale to thousands of lights, the method combines neural predictions with a light hierarchy through a residual learning scheme that augments a baseline cluster distribution $w_c$ via $p_\theta(c) = \frac{e^{\left[ \log(w_c) + f_\theta(\mathbf{x}, \omega_o)[c] \right]}}{\sum_s e^{\left[ \log(w_s) + f_\theta(\mathbf{x}, \omega_o)[s] \right]}}$, accelerating convergence. Empirical results across diverse, complex scenes show superior fidelity and faster convergence than prior many-light techniques, with robust performance in challenging lighting and visibility conditions.
Abstract
We propose a neural approach for estimating spatially varying light selection distributions to improve importance sampling in Monte Carlo rendering, particularly for complex scenes with many light sources. Our method uses a neural network to predict the light selection distribution at each shading point based on local information, trained by minimizing the KL-divergence between the learned and target distributions in an online manner. To efficiently manage hundreds or thousands of lights, we integrate our neural approach with light hierarchy techniques, where the network predicts cluster-level distributions and existing methods sample lights within clusters. Additionally, we introduce a residual learning strategy that leverages initial distributions from existing techniques, accelerating convergence during training. Our method achieves superior performance across diverse and challenging scenes.
