Technical Summary: Differentiable Polarized Path Tracing
Problem Statement
Physically based differentiable rendering (PBDR) has become a powerful tool for inverse rendering tasks such as 3D reconstruction and reflectance estimation. However, most existing methods operate solely on radiometric intensity, discarding valuable polarization cues that can constrain scene geometry and material properties. While forward simulation of polarized light is well-defined via Mueller-Stokes calculus, extending reverse-mode differentiation to this domain presents significant challenges.
The core difficulty arises from the rank-deficient nature of common polarimetric operators (e.g., linear polarizers and diffuse reflections). Standard gradient estimators like Path Replay Backpropagation (PRB) rely on the local numerical invertibility of light transport contributions to compute gradients efficiently with constant memory. In polarized rendering, light interactions are modeled using 4×4 Mueller matrices. Many of these matrices are singular (non-invertible) because they map the 4D Stokes space to a lower-dimensional subspace, effectively losing information about the incident polarization state. Consequently, a direct application of PRB to polarized light transport leads to unstable or severely biased gradient estimators, as the required matrix inversion is mathematically ill-defined.
Methodology
The authors propose a robust, polarization-aware differentiable path tracing method that estimates unbiased gradients without relying on the inversion of rank-deficient Mueller operators. The approach extends PRB through a combination of path replay and local caching.
1. Analysis of PRB Failure in Polarization
The paper identifies that standard PRB fails in three specific scenarios regarding Mueller matrices:
- Invertible elements: Standard PRB works (e.g., waveplates).
- Ideal depolarizers: Standard PRB works because derivatives do not require incident polarization state (e.g., diffuse BSDFs).
- Non-invertible polarization-aware elements: This is the failure case. Elements like linear polarizers produce singular matrices. Attempting to invert them (as in a naive polarized PRB extension) results in numerical instability or bias.
2. Cached Suffix Replay
To resolve the non-invertibility issue, the authors introduce a Cached Suffix Replay mechanism. Instead of attempting to invert the Mueller matrix M to "remove" the detached BSDF contribution during the adjoint pass, the algorithm caches a compact summary of the suffix of the light path.
- Primal Pass: The algorithm traces the path, storing per-vertex emission and throughput factors. It then reconstructs the suffix radiance via a backward fold, storing the accumulated radiance Li+1 for each interaction i.
- Adjoint Pass: During gradient computation, instead of calculating M−1L, the algorithm directly retrieves the cached suffix radiance Li+1. The local gradient is computed by multiplying the retrieved suffix with the differentiated BSDF weight.
- Result: This eliminates the need for matrix inversion entirely, producing unbiased gradients while avoiding the memory explosion of conventional automatic differentiation (AD).
3. Hybrid Cached Replay
For very deep light paths where storing suffix radiance at every interaction becomes memory-prohibitive, the authors propose a Hybrid Cached Replay variant. This method stores cached suffix values only at checkpoint intervals (k).
- Between checkpoints, the algorithm decides how to recover the suffix radiance based on the depolarization index of the accumulated transport.
- If the transport is effectively depolarizing, it uses scalar PRB updates.
- If the transport is invertible, it attempts local inversion.
- If the transport is non-invertible and not depolarizing, it recursively recomputes the path segment to the next checkpoint.
This hybrid approach balances memory usage and computational cost, scaling to complex scenes with high path depths.
Key Contributions
- Analysis of PRB Limitations: The paper provides a rigorous analysis demonstrating why standard PRB does not generalize to polarized light transport, identifying rank-deficient Mueller operators as the source of ill-defined replay cancellation.
- First Practical Framework for Differentiable Polarized Path Tracing: The authors present the first framework capable of handling long light paths in polarized scenes. It combines cached suffix replay with a hybrid variant to avoid unreliable Mueller-matrix inversion, ensuring unbiased gradient estimation.
- Experimental Validation: The method is validated against conventional automatic differentiation (Conv. AD) and existing baselines. Results show that the proposed method produces gradients consistent with Conv. AD while using substantially less memory and offering improved runtime compared to unbiased baselines.
Results
The authors evaluated their method on a workstation with an NVIDIA GeForce RTX 4090, comparing it against Conv. AD, P-PRB (polarized PRB with noise regularization), and P-RB (polarized Reversible Backpropagation).
- Gradient Correctness: In gradient analysis across various scenes (Living Room, Cornell Box, etc.), the proposed method produced gradients with relative errors close to zero compared to Conv. AD. In contrast, P-PRB (relying on noise-regularized inversion) yielded incorrect gradients, particularly when optimizing parameters like surface normals or polarizer rotation angles where the Mueller matrix is rank-deficient.
- Inverse Rendering Performance:
- Glare Removal: In a kitchen scene, the method successfully optimized a linear polarizer's orientation to suppress specular glare, a task where unpolarized PRB failed.
- Material Separation: In a Veach scene, the method better disentangled diffuse and specular components (roughness and texture) compared to unpolarized baselines, reducing reconstruction error (RMSE).
- Normal Recovery: For a marble bust, polarization cues enabled the recovery of sharper geometric details and more accurate normal maps, particularly in high-frequency regions like hair, outperforming unpolarized PRB.
- Memory and Runtime:
- Memory: The method maintains nearly constant memory usage up to path depths of 32, significantly outperforming Conv. AD, which exhausts GPU memory in similar settings.
- Runtime: The method is approximately twice as fast as P-RB while maintaining unbiased gradients. P-PRB is faster but produces inaccurate gradients.
- Geometry Reconstruction: When applied to single-view 3D reconstruction using projective sampling, the polarized method reduced Chamfer distance from 0.1874 to 0.0904 and normal error from 65.61∘ to 46.72∘ compared to unpolarized baselines.
Significance and Claims
The paper claims to be the first to provide a practical, memory-efficient framework for differentiable polarized path tracing that supports long light paths without bias.
- Overcoming Numerical Instability: By replacing matrix inversion with cached suffix replay, the method solves the fundamental issue of rank-deficient Mueller operators that previously hindered differentiable polarimetric rendering.
- Enhanced Inverse Rendering: The authors demonstrate that integrating polarimetric measurements into PBDR significantly improves the identifiability of material parameters (roughness, albedo) and geometry (normals), reducing local minima and ambiguities common in intensity-only inverse rendering.
- Scalability: Unlike Conv. AD, which is limited by memory constraints, and unlike previous specialized approaches (e.g., for waveguide design) that required massive memory, this method scales to complex scenes with high path depths and resolutions, making physically based inverse rendering with polarization feasible for general applications.
The authors note that while their current work focuses on the continuous interior integral of light transport, future work could extend this framework to subsurface scattering and computational design problems like waveguide optimization.