Plateau-Reduced Differentiable Path Tracing

Michael Fischer, Tobias RitschelCVPR 2023 · DOI

Abstract

Differentiable path tracing is a cornerstone of inverse graphics, enabling the optimization of scene parameters to match target images. However, standard differentiable renderers often fail due to the "plateau problem," where gradients become zero in regions of non-overlap or occlusion. We propose a method to mitigate this by convolving the rendering function with a smoothing kernel in parameter space. This technique produces "plateau-reduced gradients" that provide a continuous optimization signal even in challenging scenarios. Our method is compatible with both differentiable and non-differentiable rendering backbones, offering superior robustness and up to 8x faster performance than existing differentiable path tracers.

Introduction

Inverse graphics involves finding scene parameters—such as geometry, lighting, and materials—that produce a specific target image. While differentiable rendering has made significant strides, it suffers from a fundamental limitation: the presence of a gradient does not guarantee convergence. In many practical scenarios, the objective function contains "plateaus" where the gradient is zero, leaving the optimizer with no signal to reach the global minimum.

The Plateau Problem

A classic example of a plateau occurs when optimizing the position of an object to match a reference. If the current object and the reference do not overlap, the image-space loss function often becomes flat. As shown in Figure 2, when the blue circle (current state) is completely separated from the grey circle (reference), standard differentiable renderers cannot determine which direction to move the object because the local gradient is zero.

The plateau problem: when the current object (blue) does not overlap with the reference (grey), standard gradients are zero.

Methodology

To address this, we propose "blurring" the parameter space. Instead of evaluating the rendering function $P(\theta)$ at a single point, we evaluate a smoothed version $Q(\theta)$ by convolving $P$ with a kernel $K$ (typically a Gaussian). This process effectively allows the optimizer to "see" features that are not yet overlapping in the image space.

We introduce two primary estimators for the gradient $\nabla Q(\theta)$:

  1. Differentiable Backbone: Weights the gradients of an existing differentiable renderer by the blur kernel.
  2. Non-Differentiable Backbone: Computes gradients using a "black-box" renderer by perturbing parameters and weighting the outputs by the gradient of the kernel. This avoids the heavy computational overhead of backpropagation through a renderer.

To ensure efficiency, we employ importance sampling and antithetic sampling for variance reduction. Furthermore, an adaptive bandwidth strategy is used, starting with a large blur to find the general solution and gradually reducing it to "zero in" on the exact parameters.

Experimental Evaluation

We evaluated our method on six challenging synthetic tasks, including rotating a mug to match an occluded handle and optimizing complex caustics. In the "CUP" task, standard renderers fail to rotate the mug because the handle starts in an occluded position, creating a plateau in the loss landscape. Our method successfully smooths this landscape, as illustrated in the comparison of Mean Squared Error (MSE) curves.

Optimization landscape for mug rotation. Standard differentiable rendering (blue) hits a plateau, while our smoothed approach (orange) provides a clear path to the global minimum.

Key Results

Our approach demonstrated remarkable robustness, reaching the global minimum in all test cases where standard differentiable path tracers (e.g., Mitsuba 3) failed. Notably, our "black-box" estimator was approximately 8x faster than Mitsuba 3, as it bypasses the memory-intensive requirements of traditional differentiable rendering. The method also scales well to high-dimensional tasks, such as optimizing 150-dimensional sorting problems and nearly 50,000-dimensional textures.

Conclusion

By smoothing the parameter space, we effectively eliminate the plateaus that plague inverse rendering. This work bridges the gap between differentiable rendering and variational optimization, providing a robust and efficient framework for complex inverse graphics tasks. Future work will explore applying these techniques to other non-smooth domains like volume rendering and meta-learning.

Summary updated

BibTeX
@inproceedings{fischer2023plateau,
  author = {Michael Fischer and Tobias Ritschel},
  title = {{Plateau-Reduced Differentiable Path Tracing}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.00417},
}
Figure