English

Learning to Importance Sample in Primary Sample Space

Machine Learning 2024-03-25 v2 Graphics Machine Learning

Abstract

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.

Keywords

Cite

@article{arxiv.1808.07840,
  title  = {Learning to Importance Sample in Primary Sample Space},
  author = {Quan Zheng and Matthias Zwicker},
  journal= {arXiv preprint arXiv:1808.07840},
  year   = {2024}
}

Comments

11 pages, 14 figure; authors' version, the definitive version of record is available at https://onlinelibrary.wiley.com/doi/10.1111/cgf.13628

R2 v1 2026-06-23T03:42:10.504Z