Constant-Memory 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.
Create a lesson
Metadata
- Comments
- 14 pages, 18 figures
Related papers
Stochastic Graph Compression for Constant-Memory Differentiable Light Tracing
Shared title terminologycs.GRLinas Beresna, Eugene Fiume
Neural Render Proxies for Interactive and Differentiable Lighting
Shared title terminologycs.GRSergio Sancho, Alexander Rath, Marco Manzi et al.
UltraDiff: Differentiable Ray Tracing in Ultrasound for Shape Optimization
Shared title terminologycs.GRFelix Duelmer, Magdalena Wysocki, Nassir Navab et al.
Same Physics, Different Gradients: A State-of-the-Art Report on Differentiable Physics Simulation
Shared title terminologycs.GRLei Shu, Zizhou Huang, Yunuo Chen et al.
Real-Time Volumetric Light Transport Inference without a Path
Shared title terminologycs.GRLudwic Leonard, Ruediger Westermann
VISTA: Differentiable Viewpoint Planning for Long-Horizon Task Visualization
Shared title terminologycs.GRDonggang Jia, Da Li, Zainab Alsuwaykit et al.