arXiv:2610.10847cs.GROct 2026

Manuscript Offprint

arXiv:2610.10847

Stochastic Graph Compression for Constant-Memory Differentiable Light Tracing

Linas Beresna, Eugene Fiume

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Linas Beresna

Simon Fraser University

Burnaby, Canada

linas_beresna@sfu.ca

Eugene Fiume

Simon Fraser University

Burnaby, Canada

eugene_fiume@sfu.ca

Figure

Scene Setup

Figure

ResLRB — 32 spp

ptracer (naive AD) — 32 spp

ResLRB — 1024 spp

Figure 1: Constant-memory differentiable light tracing. A caustic formed by light refracting through a glass slab onto a diffuse receiver (left, with the reference target), differentiated with the attached formulation of Section 2.5. Backpropagating an image loss to the slab geometry, ResLRB and naive AD (ptracer) produce matching gradients at 32 spp. Beyond 32 spp naive AD exhausts GPU memory, whereas ResLRB holds memory constant and reaches 1024 spp, yielding the same gradient with less Monte Carlo noise.

Abstract

We describe Reservoir Light Replay Backpropagation (ResLRB), a method for reverse-mode differentiable light tracing whose memory is constant in path length and in the number of sensor connections per light path. Naive automatic differentiation of a light tracer records a computation graph that grows with the number of valid sensor connections along each path, since flux can be splatted from every scattering vertex; adjoint path replay removes the analogous dependence on depth for viewpoint path tracing, but its non-branching structure does not extend to the splatting case. We compress the adjoint graph during the primal pass by stochastically retaining a single representative sensor connection per light path via a streaming weighted reservoir. The adjoint pass reconstructs the path deterministically by replaying its pseudorandom number sequence and backpropagates only through the retained connection, yielding an unbiased gradient estimator whose peak memory is that of differentiating a single scattering event.

CCS Concepts

• Computing methodologies → Ray tracing.

Figure

This work is licensed under a Creative Commons Attribution 4.0 International License. SA Technical Communications '26, Kuala Lumpur, Malaysia

© 2026 Copyright held by the owner/author(s).

ACM ISBN 979-8-4007-2841-9/2026/12

https://doi.org/10.1145/3829339.3847837

Keywords

differentiable rendering, adjoint method, light tracing, constant memory, reservoir sampling

ACM Reference Format:

Linas Beresna and Eugene Fiume. 2026. Stochastic Graph Compression for Constant-Memory Differentiable Light Tracing. In SIGGRAPH Asia 2026 Technical Communications (SA Technical Communications '26), December 01–04, 2026, Kuala Lumpur, Malaysia. ACM, New York, NY, USA, 4 pages. https://doi.org/10.1145/3829339.3847837

References (9)