GenDR: A Generalized Differentiable Renderer

Felix Petersen, Bastian Goldluecke, Christian Borgelt, Oliver Deussen

Introduction

To train neural networks capable of generating or manipulating 3D objects using only 2D image supervision, researchers rely on differentiable renderers (DRs). Standard rendering is inherently a discrete process: a pixel is either covered by a specific triangle or it is not. This discreteness creates "cliffs" in the loss landscape where gradients are either zero or undefined, making gradient-based optimization impossible.

Existing solutions, such as SoftRas or DIB-R, address this by "softening" the edges of triangles, effectively treating them as probabilistic clouds rather than hard boundaries. However, these methods often rely on specific, isolated mathematical formulations. GenDR introduces a unifying framework that formalizes differentiable mesh rendering, allowing for a systematic exploration of the design space.

The GenDR Framework

The authors decompose the differentiable rendering process into two fundamental mathematical components:

  1. Differentiable Occlusion Test: Instead of a binary visibility check, GenDR uses the Cumulative Distribution Function (CDF) of a probability distribution to determine the probability that a pixel is covered by a face. The framework explores a vast taxonomy of distributions, including symmetric functions (Gaussian, Laplace, Logistic, Uniform) and asymmetric ones (Gamma, Gumbel).
  2. Aggregation via T-conorms: When multiple triangles overlap at a single pixel, the renderer must aggregate their individual coverage probabilities. GenDR identifies that this is equivalent to a logical "OR" operation in fuzzy logic, known as a T-conorm. The authors evaluate various operators, such as the Probabilistic sum, Einstein sum, Hamacher, and Yager T-conorms.

By combining these distributions and T-conorms, the researchers established a "zoo" of 1,242 unique differentiable renderers, enabling the first comprehensive benchmarking of the mathematical properties that drive performance in 3D tasks.

Experimental Methodology

The framework was evaluated across several rigorous benchmarks:

  • ShapeNet: The researchers utilized the 13-class subset of ShapeNet for single-view 3D reconstruction, a standard benchmark for 3D computer vision.
  • Optimization Tasks: To isolate the effects of specific mathematical properties, the authors performed shape optimization (e.g., evolving a sphere into a chair) and camera pose optimization (e.g., estimating the orientation of a teapot).

Key Insights and Results

The Robustness of the Uniform Distribution

One of the most surprising findings was that the Uniform distribution—which creates a simple linear "ramp" at triangle edges—yielded the best overall results on the ShapeNet benchmark. While early renderers used uniform distributions as crude approximations and later works moved toward complex curves, GenDR demonstrates that this simpler approach is remarkably robust for general 3D reconstruction.

Task-Specific Performance

The study revealed that there is no single "perfect" renderer for every geometry. For example:

  • The Gamma distribution performed best for aerodynamic shapes like airplanes.
  • The Gaussian distribution was superior for objects with thin, complex structures, such as the legs of chairs and tables. This suggests that the "fuzziness" of a renderer should ideally be tuned to match the geometric complexity of the target object.

Convergence and Logic

The choice of distribution and aggregation logic significantly impacts optimization stability:

  • Convergence Speed: Distributions with exponential convergence (e.g., Gaussian or Logistic) generally outperformed those with linear convergence (e.g., Cauchy). Slow-fading fuzziness tends to introduce noise into the gradients.
  • Aggregation Logic: The choice of T-conorm is as critical as the distribution. Certain "extreme" T-conorms, like the Yager operator, can create plateaus in the loss landscape, causing the model to stop learning entirely.

Quantitative Performance

On the ShapeNet benchmark, the GenDR configuration using a Uniform distribution and Probabilistic Sum achieved a mean 3D Intersection-over-Union (IoU) of 0.6232. This performance matches or exceeds several established state-of-the-art renderers. Furthermore, the paper demonstrates that popular existing renderers like SoftRas, DIB-R, and N3MR are actually specific, isolated points within the broader GenDR parameter space.

Conclusion and Future Directions

GenDR provides a rigorous mathematical foundation for understanding differentiable rendering. While the current framework focuses primarily on silhouettes and occlusion, it sets the stage for future work in meta-learning the renderer. Instead of manually selecting a distribution, future systems could learn the optimal "fuzziness" and aggregation logic for specific datasets or geometric parts. Additionally, extending this generalized logic to other 3D representations, such as point clouds or voxels, remains a promising avenue for research.

Summary updated

BibTeX
@inproceedings{petersen2022gendr,
  author = {Felix Petersen and Bastian Goldluecke and Christian Borgelt and Oliver Deussen},
  title = {{GenDR: A Generalized Differentiable Renderer}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure