Soft Rasterizer: Differentiable Rendering for Unsupervised Single-View Mesh Reconstruction

Shichen Liu, Weikai Chen, Tianye Li, Hao LiarXiv 2019

Introduction

In computer vision, "inverse graphics"—the task of reconstructing a 3D scene from 2D observations—remains a fundamental challenge. While deep learning has significantly advanced this field, a major bottleneck persists in the graphics pipeline: rasterization. Standard graphics engines project 3D triangles onto a 2D pixel grid using a discrete process where a pixel is either covered by a triangle or it isn't. This binary assignment is non-differentiable, preventing the backpropagation of gradients from a 2D image loss to 3D mesh parameters.

The Soft Rasterizer Framework

To bridge this gap, this paper introduces Soft Rasterizer (SoftRas), a truly differentiable rendering framework that reformulates rasterization as a probabilistic process. Instead of a hard "inside/outside" check, SoftRas computes a "probability map" for every triangle in a mesh.

Comparison of Soft Rasterizer vs. Standard Rasterizer pipelines.

The framework relies on two key components:

  1. Probabilistic Maps: The probability that a pixel is covered by a triangle is determined by a sigmoid function of the distance between the pixel and the triangle's edges. This creates a "soft" boundary where triangles exert influence even beyond their geometric limits.
  2. Aggregate Function: To produce the final image, contributions from all triangles are fused using a differentiable aggregate function (a "soft" logical OR). This ensures the entire rendering process is a continuous field optimizable via gradient descent.

By using signed distance fields to define "softness," mesh vertices receive meaningful gradients even when projected triangles do not yet overlap with the target silhouette. This consistency between the forward and backward passes is a significant improvement over previous methods that relied on non-differentiable approximations.

Experimental Results

The authors evaluated SoftRas using the ShapeNet dataset, focusing on 13 categories including airplanes, cars, and chairs. The model was trained in an unsupervised manner, using an encoder-decoder network to transform input images into vertex displacements for a template sphere mesh.

Reconstruction results for various object categories.

Quantitatively, SoftRas outperformed the previous state-of-the-art unsupervised method (N3MR) by over 2.1% in mean 3D Intersection over Union (IoU). Qualitatively, the reconstructed meshes are significantly smoother and capture finer details, such as airplane engines, compared to voxel-based or earlier mesh-based approaches. Remarkably, this unsupervised approach achieved results comparable to leading supervised methods like Pixel2Mesh, which require 3D ground truth for training.

Discussion and Future Work

While SoftRas demonstrates impressive results, it currently operates under a genus-0 constraint, struggling with objects containing holes (e.g., the space between chair legs). Additionally, the reliance on silhouette-based loss can lead to ambiguities for objects with large planar surfaces where the silhouette remains static despite internal structural changes. Future work aims to incorporate complex shading cues and lighting models into the differentiable pipeline to resolve these structural ambiguities and move beyond silhouette-only supervision.

Summary updated

BibTeX
@misc{liu2019soft,
  author = {Shichen Liu and Weikai Chen and Tianye Li and Hao Li},
  title = {{Soft Rasterizer: Differentiable Rendering for Unsupervised Single-View Mesh Reconstruction}},
  year = {2019},
  eprint = {1901.05567},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.05567},
}
Figure