Constant-Memory Differentiable Light Tracing
Linas Beresna, Eugene Fiume
Key points
From the paper's conclusion- We then introduce two constant-memory reverse-mode formulations for differentiable light tracing.
Abstract
Reverse-mode differentiation of Monte Carlo light transport naively requires storing a computation graph whose size grows with path length, making it impractical for deep or high-sample simulations. Path Replay Backpropagation (PRB) eliminates this memory complexity for viewpoint path tracing by reconstructing paths from their random seeds and performing a constant-memory backward replay. However, this formulation relies on a one-path-one-pixel property that does not hold for light tracing: a single light path can contribute to many pixels, and the corresponding per-vertex adjoints cannot be recovered during replay from constant-size state. We demonstrate that this structural difference prevents a direct extension of PRB to light tracing in constant memory, and that buffered two-pass variants retain linear memory scaling with path length. We then introduce two constant-memory reverse-mode formulations for differentiable light tracing. The first, Reservoir Light Replay Backpropagation (ResLRB), compresses the set of per-path sensor connections into a single stochastically selected representative using weighted reservoir sampling, preserving a two-pass structure at the cost of increased gradient variance. The second, LRB-3-pass, introduces an additional traversal that accumulates downstream adjoint contributions prior to backpropagation, retaining all connections and matching naive reverse-mode AD in expectation. Both methods support detached and attached formulations, including differentiation of sensor splat positions induced by geometric perturbations. We validate correctness against naive AD, characterize memory and runtime trade-offs, and demonstrate inverse rendering of specular caustics driven entirely by light tracing.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Stochastic Graph Compression for Constant-Memory Differentiable Light TracingarXiv · 2026
- Neural Render Proxies for Interactive and Differentiable LightingarXiv · 2026
- Neural Caching of Prefiltered Radiance for Specular LightingarXiv · 2026
- Sensitivity as an Arbitrary Output Variable for Differentiable RenderingarXiv · 2026
- Pixel-Light Attention for Neural Many-Light Importance SamplingACM Transactions on Graphics · 2026
- Learning the Missing Derivative: Neural Multiple-Scattering Operators for Inverse Volume RenderingarXiv · 2026