Parameter-space ReSTIR for Differentiable and Inverse Rendering

Differentiable rendering is frequently used in gradient descent-based inverse rendering pipelines to solve for scene parameters – such as reflectance or lighting properties – from target image inputs. Efficient computation of accurate, low variance gradients is critical for rapid convergence. While many methods employ variance reduction strategies, they operate independently on each gradient descent iteration, requiring large sample counts and computation. Gradients may however vary slowly between iterations, leading to unexplored potential benefits when reusing sample information to exploit this coherence. We develop an algorithm to reuse Monte Carlo gradient samples between gradient iterations, motivated by reservoir-based temporal importance resampling in forward rendering. Direct application of this method is not feasible, as we are computing many derivative estimates (i.e., one per optimization parameter) instead of a single pixel intensity estimate; moreover, each of these gradient estimates can affect multiple pixels, and gradients can take on negative values. We address these challenges by reformulating differential rendering integrals in parameter space, developing a new resampling estimator that treats negative functions, and combining these ideas into a reuse algorithm for inverse texture optimization. We significantly reduce gradient error compared to baselines, and demonstrate faster inverse rendering convergence in settings involving complex direct lighting and material textures.

[1]  Shuang Zhao,et al.  Efficient Differentiation of Pixel Reconstruction Filters for Path-Space Differentiable Rendering , 2022, ACM Trans. Graph..

[2]  R. Ramamoorthi,et al.  Decorrelating ReSTIR Samplers via MCMC Mutations , 2022, ArXiv.

[3]  Erion Plaku,et al.  Joint computational design of workspaces and workplans , 2021, ACM Trans. Graph..

[4]  M. Pharr,et al.  ReSTIR GI: Path Resampling for Real‐Time Path Tracing , 2021, Comput. Graph. Forum.

[5]  Wenzel Jakob,et al.  Monte Carlo estimators for differential light transport , 2021, ACM Trans. Graph..

[6]  Shuang Zhao,et al.  Antithetic sampling for Monte Carlo differentiable rendering , 2021, ACM Transactions on Graphics.

[7]  Iliyan Georgiev,et al.  Monte Carlo estimators for differential light transport , 2021, ACM Transactions on Graphics.

[8]  Frédo Durand,et al.  Unbiased warped-area sampling for differentiable rendering , 2020, ACM Trans. Graph..

[9]  Aaron E. Lefohn,et al.  Spatiotemporal reservoir resampling for real-time ray tracing with dynamic direct lighting , 2020, ACM Trans. Graph..

[10]  Cheng Zhang,et al.  Path-space differentiable rendering , 2020, ACM Trans. Graph..

[11]  Ravi Ramamoorthi,et al.  A differential theory of radiative transfer , 2019, ACM Trans. Graph..

[12]  Wenzel Jakob,et al.  Reparameterizing discontinuous integrands for differentiable rendering , 2019, ACM Trans. Graph..

[13]  Matthias Zwicker,et al.  A Survey on Gradient‐Domain Rendering , 2019, Comput. Graph. Forum.

[14]  Matthias Nießner,et al.  Inverse Path Tracing for Joint Material and Lighting Estimation , 2019, 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).

[15]  Jaakko Lehtinen,et al.  Differentiable Monte Carlo ray tracing through edge sampling , 2018, ACM Trans. Graph..

[16]  Jaakko Lehtinen,et al.  Temporal gradient-domain path tracing , 2016, ACM Trans. Graph..

[17]  Jaakko Lehtinen,et al.  Gradient-domain path tracing , 2015, ACM Trans. Graph..

[18]  Jimmy Ba,et al.  Adam: A Method for Stochastic Optimization , 2014, ICLR.

[19]  Michael J. Black,et al.  OpenDR: An Approximate Differentiable Renderer , 2014, ECCV.

[20]  Parris K. Egbert,et al.  Importance resampling for global illumination , 2005, EGSR '05.

[21]  A. Owen,et al.  Safe and Effective Importance Sampling , 2000 .

[22]  Leonidas J. Guibas,et al.  Optimally combining sampling techniques for Monte Carlo rendering , 1995, SIGGRAPH.

[23]  James T. Kajiya,et al.  The rendering equation , 1986, SIGGRAPH.

[24]  M. Chao A general purpose unequal probability sampling plan , 1982 .

[25]  C. Wyman,et al.  Generalized Resampled Importance Sampling: Foundations of ReSTIR , 2022 .

[26]  Delio Vicini Path Replay Backpropagation: Differentiating Light Paths using Constant Memory and Linear Time , 2021 .

[27]  Wenzel Jakob,et al.  Supplemental: Material and lighting reconstruction for complex indoor scenes with texture-space differentiable rendering , 2021 .

[28]  Merlin Nimier-David Radiative Backpropagation: An Adjoint Method for Lightning-Fast Di erentiable Rendering , 2020 .

[29]  Brent Burley Physically-Based Shading at Disney , 2012 .

[30]  Leonidas J. Guibas,et al.  Robust Monte Carlo methods for light transport simulation , 1997 .