# Learning to Importance Sample in Primary Sample Space

arXiv: https://arxiv.org/abs/1808.07840 · HTML: https://mlsanity.com/paper/1808.07840/

## Key facts

- Cited by 9 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 23 Aug 2018.

## Built on by (most cited first, 9 of 9)

- [Neural Radiosity](https://mlsanity.com/paper/2105.12319/) (2021)
- [Neural BRDF Representation and Importance Sampling](https://mlsanity.com/paper/2102.05963/) (2021)
- [Active Exploration for Neural Global Illumination of Variable Scenes](https://mlsanity.com/paper/2203.08272/) (2022)
- [Path Guiding Using Spatio-Directional Mixture Models](https://mlsanity.com/paper/2111.13094/) (2021)
- [Neural Product Importance Sampling via Warp Composition](https://mlsanity.com/paper/2409.18974/) (2024)
- [Differentiable Neural Radiosity](https://mlsanity.com/paper/2201.13190/) (2022)
- [Manifold Path Guiding for Importance Sampling Specular Chains](https://mlsanity.com/paper/2311.12818/) (2023)
- [Neural Path Guiding with Distribution Factorization](https://mlsanity.com/paper/2506.00839/) (2025)
- [PureLight: Learning Complex Luminaires with Light Tracing](https://mlsanity.com/paper/2606.04319/) (2026)

## Abstract (arXiv)

Importance sampling is one of the most widely used variance reduction strategies in Monte Carlo rendering. In this paper, we propose a novel importance sampling technique that uses a neural network to learn how to sample from a desired density represented by a set of samples. Our approach considers an existing Monte Carlo rendering algorithm as a black box. During a scene-dependent training phase, we learn to generate samples with a desired density in the primary sample space of the rendering algorithm using maximum likelihood estimation. We leverage a recent neural network architecture that was designed to represent real-valued non-volume preserving ('Real NVP') transformations in high dimensional spaces. We use Real NVP to non-linearly warp primary sample space and obtain desired densities. In addition, Real NVP efficiently computes the determinant of the Jacobian of the warp, which is required to implement the change of integration variables implied by the warp. A main advantage of our approach is that it is agnostic of underlying light transport effects, and can be combined with many existing rendering techniques by treating them as a black box. We show that our approach leads to effective variance reduction in several practical scenarios.
