Neural Product Importance Sampling via Warp Composition
Joey Litalien, Miloš Hašan, Fujun Luan, Krishna Mullia, Iliyan Georgiev
TL;DR
This work tackles the long-standing challenge of efficiently sampling the product of illumination and material terms in Monte Carlo rendering. It introduces a novel warp-composition framework that splits the learning task into a small, conditioned neural spline head warp and a large, unconditional tail warp derived from the environment map, enabling a near-exact product sampling distribution while keeping inference fast. Training optimizes a forward KL objective with entropic regularization to robustly fit the target product density, and the tail warp is discretized for fast lookups, with a baked variant offering practical speedups. Across cosine-weighted emitter sampling, microfacet BRDFs, neural materials, and shadow-catcher compositing, the method achieves significant variance reductions over MIS at equal time and sample counts, validating the approach's practicality and effectiveness in real rendering pipelines.
Abstract
Achieving high efficiency in modern photorealistic rendering hinges on using Monte Carlo sampling distributions that closely approximate the illumination integral estimated for every pixel. Samples are typically generated from a set of simple distributions, each targeting a different factor in the integrand, which are combined via multiple importance sampling. The resulting mixture distribution can be far from the actual product of all factors, leading to sub-optimal variance even for direct-illumination estimation. We present a learning-based method that uses normalizing flows to efficiently importance sample illumination product integrals, e.g., the product of environment lighting and material terms. Our sampler composes a flow head warp with an emitter tail warp. The small conditional head warp is represented by a neural spline flow, while the large unconditional tail is discretized per environment map and its evaluation is instant. If the conditioning is low-dimensional, the head warp can be also discretized to achieve even better performance. We demonstrate variance reduction over prior methods on a range of applications comprising complex geometry, materials and illumination.
