Deep Photon Mapping

Shilin Zhu, Zexiang Xu, Henrik Wann Jensen, Hao Su, Ravi RamamoorthiarXiv 2020

Abstract

Recently, deep learning-based denoising approaches have led to dramatic improvements in low sample-count Monte Carlo rendering. These approaches are aimed at path tracing, which is not ideal for simulating challenging light transport effects like caustics, where photon mapping is the method of choice. However, photon mapping requires very large numbers of traced photons to achieve high-quality reconstructions. In this paper, we develop the first deep learning-based method for particle-based rendering, and specifically focus on photon density estimation, the core of all particle-based methods. We train a novel deep neural network to predict a kernel function to aggregate photon contributions at shading points. Our network encodes individual photons into per-photon features, aggregates them in the neighborhood of a shading point to construct a photon local context vector, and infers a kernel function from the per-photon and photon local context features. This network is easy to incorporate in many previous photon mapping methods (by simply swapping the kernel density estimator) and can produce high-quality reconstructions of complex global illumination effects like caustics with an order of magnitude fewer photons compared to previous photon mapping methods.

Introduction

In computer graphics, simulating how light bounces off shiny surfaces to create focused patterns—known as caustics—is notoriously difficult. These effects involve complex "specular-diffuse-specular" (SDS) light paths. Standard Path Tracing (PT), while mathematically unbiased, struggles with these paths, often resulting in "fireflies" or missing the effects entirely without millions of samples. Photon Mapping (PM) addresses this by caching light particles (photons) on surfaces. However, PM faces a sharp trade-off: low photon counts lead to noise, while excessive blurring to remove that noise destroys sharp caustic details. Achieving high-quality results traditionally requires millions of photons, which is both memory-intensive and slow.

Methodology

The proposed Deep Photon Mapping (DPM) framework replaces traditional fixed-function kernels (such as cones or disks) with a learned kernel predicted by a neural network.

Architecture and Kernel Prediction

Since photons constitute an unordered set of points in 3D space, the authors employ a PointNet-style architecture. The network processes individual photons through Multi-Layer Perceptrons (MLPs) to extract features, which are then aggregated into a "local context vector" via max-pooling and average-pooling. This vector captures the statistical distribution of photons around a shading point, allowing the network to distinguish between dense clusters and sparse edges.

Crucially, the network does not directly regress radiance. Instead, it predicts a weight for each individual photon. The final radiance is computed as a weighted sum of the photons' contributions. This "kernel prediction" approach leverages the underlying physics of photon mapping while using deep learning to intelligently interpolate between sparse data points.

Hybrid Rendering and Training

To maintain practical performance, the system uses a hybrid approach: standard Path Tracing with a denoiser handles "easy" light paths (like direct illumination), while DPM is deployed specifically for "hard" specular-diffuse-specular paths. The model was trained on 500 procedurally generated scenes to ensure it learns local photon distributions rather than specific scene layouts, using ground truth references rendered with billions of photons via Stochastic Progressive Photon Mapping (SPPM).

Results

Evaluation on challenging benchmarks demonstrates significant improvements in both efficiency and quality. The method achieves results with 15k photons that are comparable to or better than traditional Adaptive Progressive Photon Mapping (APPM) using 1.5M photons.

Adaptive Progressive Photon Mapping (APPM) requires 1.5M photons to achieve high quality.
Deep Photon Mapping achieves superior quality with only 15K photons—a 100x reduction.

By aggregating features into a context vector, the network can preserve sharp caustic edges that traditional filters would blur away. While neural network inference adds some overhead, the massive reduction in photon tracing and storage leads to a net gain in total rendering speed for complex scenes.

Conclusion and Future Work

Deep Photon Mapping represents a significant step forward in particle-based rendering. While highly effective, current limitations include a fixed number of nearest neighbors ($K$) and a lack of explicit temporal stability for animations. Future research may explore dynamic $K$ adjustment and recurrent architectures to enhance temporal coherence. Additionally, this kernel-density estimator could potentially be integrated into other photon mapping variants, such as those handling participating media or volumetric effects.

Summary updated

BibTeX
@misc{zhu2020deep,
  author = {Shilin Zhu and Zexiang Xu and Henrik Wann Jensen and Hao Su and Ravi Ramamoorthi},
  title = {{Deep Photon Mapping}},
  year = {2020},
  eprint = {2004.12069},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.12069},
}
Figure