Skip to main content
QUICK REVIEW

[Paper Review] Learning to Importance Sample in Primary Sample Space

Quan Zheng, Matthias Zwicker|arXiv (Cornell University)|Aug 23, 2018
Image and Signal Denoising MethodsComputer Science31 references6 citations
TL;DR

This paper proposes a black-box importance sampling method that uses a Real NVP neural network to learn a non-linear warp in primary sample space, enabling variance reduction in Monte Carlo rendering without modifying the underlying renderer. By training on scene-dependent samples via maximum likelihood, the method achieves significant variance reduction—e.g., 40% lower MSE than uniform sampling—while avoiding sample rejection and eliminating the need for explicit density models or scene data structures.

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.

Motivation & Objective

  • To reduce variance in Monte Carlo path tracing by learning scene-specific importance sampling distributions in primary sample space.
  • To develop a method that treats existing renderers as black boxes, avoiding dependency on analytical light transport models.
  • To enable efficient, rejection-free sampling by learning a differentiable, invertible transformation of the primary sample space.
  • To demonstrate that neural network-based warps can outperform uniform sampling and traditional importance sampling techniques in complex lighting scenarios.

Proposed method

  • The method uses a Real NVP neural network to learn a non-volume-preserving, invertible transformation from uniform to a desired non-uniform target density in primary sample space.
  • The network is trained via maximum likelihood estimation on a set of training samples generated by the original renderer.
  • The Jacobian determinant of the warp is efficiently computed by Real NVP, enabling correct change of variables in Monte Carlo integration.
  • The learned warp is applied during rendering to generate samples from the target density, reducing variance without bias.
  • The approach is independent of underlying light transport effects, making it compatible with BRDFs, environment maps, visibility, and other components.
  • The method avoids explicit data structures (e.g., octrees) by encoding density information directly in the neural network parameters.

Experimental results

Research questions

  • RQ1Can a neural network learn an effective, scene-dependent importance sampling distribution in primary sample space without access to the renderer’s internal logic?
  • RQ2How does the performance of this black-box approach compare to uniform sampling and traditional importance sampling in complex lighting scenarios?
  • RQ3Can the method achieve significant variance reduction without sample rejection or additional data structures?
  • RQ4What is the impact of training data size and network capacity on the accuracy of the learned density?
  • RQ5Can the method generalize across different rendering effects such as indirect illumination, depth of field, and motion blur?

Key findings

  • The method achieved a mean squared error (MSE) of 0.0016813 in a challenging 1-bounce indirect illumination scenario, outperforming equal-samples baseline (0.0052876) and equal-render-time baseline (0.0027032).
  • Variance reduction was effective even in scenes with indirect illumination from non-visible light sources, where standard methods struggle.
  • The approach reduced rendering errors significantly without introducing bias, as confirmed by comparison with a 2-hour reference image.
  • The method achieved these results with no sample rejection, in contrast to PSS-MLT, which often discards proposed paths.
  • Training time was on the order of minutes, and the runtime cost of evaluating the warp was a small fraction of path tracing cost, making it practical for high-quality rendering.
  • The method is agnostic to light transport effects and can be extended to lens sampling, temporal sampling, and participating media.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.