DIST: Rendering Deep Implicit Signed Distance Function With Differentiable Sphere Tracing

Shaohui Liu, Yinda Zhang, Songyou Peng, Boxin Shi, Marc Pollefeys, Zhaopeng Cui

Abstract

DIST (Differentiable Implicit Sphere Tracing) is a high-performance differentiable renderer designed for neural implicit Signed Distance Functions (SDFs). By optimizing both the ray-marching forward pass and approximating the gradient backward pass, it enables efficient 3D shape reconstruction from 2D observations (such as images or sparse depth) through inverse optimization. This approach offers superior resolution and generalization compared to traditional discretized 3D representations like voxels or meshes.

Introduction

In 3D computer vision, representing shapes involves a constant trade-off between detail and efficiency. Traditional representations like voxels are memory-intensive and low-resolution, while meshes struggle with complex topology changes. Recently, Implicit Signed Distance Functions (SDFs)—where a neural network predicts the distance to the nearest surface for any 3D coordinate—have emerged as a powerful, continuous alternative.

However, using neural SDFs in an "inverse graphics" pipeline is difficult. Standard rendering for SDFs, known as Sphere Tracing, is iterative and computationally expensive. More importantly, making this process differentiable—allowing errors in a 2D image to update a 3D model—usually requires "unrolling" the entire rendering loop, which consumes massive amounts of GPU memory and time.

The DIST Framework

The authors introduce DIST, a framework that makes sphere tracing both fast and differentiable on commodity hardware. To speed up the process of finding the surface, they employ three core strategies:

Strategies for efficient forward rendering: (a) Coarse-to-fine ray splitting, (b) Aggressive marching with a multiplier, and (c) Convergence criteria.
  1. Coarse-to-fine Strategy: Rendering begins at a lower resolution, progressively splitting rays to avoid redundant calculations in empty space.
  2. Aggressive Marching: Instead of stepping exactly by the distance returned by the SDF, a multiplier ($\alpha = 1.5$) is used. This speeds up convergence and allows rays to "pass through" thin surfaces to sample the back-side, which is crucial for optimization.
  3. Dynamic Synchronized Inference: A mask is used to stop processing rays that have already hit the surface, saving millions of unnecessary network queries.

Differentiable Optimization and Multi-Modal Rendering

The core innovation of DIST lies in its approximated gradient back-propagation. Instead of back-propagating through every step of the iterative ray-marching process, DIST focuses on the gradients at the final converged surface point. By ignoring high-order gradients of intermediate steps, the framework dramatically reduces memory usage while maintaining a sufficient signal to optimize the 3D shape's latent code.

The DIST optimization pipeline, showing the flow from latent code through the decoder and differentiable renderer to compute multi-modal losses.

DIST is not limited to depth maps; it can differentiably render surface normals (calculated via the SDF gradient), silhouettes (derived from minimum distance values along a ray), and color or semantics if the network is trained to output these properties alongside distance.

Key Insights and Results

Unlike "black-box" encoders that try to guess a 3D shape in one pass, DIST performs inverse optimization. It starts with a random shape and iteratively "renders and compares" until the 3D model matches the 2D input. This leads to significantly better generalization to unseen objects. Because the renderer is tied to a continuous neural prior (like DeepSDF), it can reconstruct a full 3D chair from as few as 20 sparse depth points—something voxel or mesh-based methods struggle with.

Key results include:

  • Efficiency: DIST can render a $512 \times 512$ image in under one second on a single NVIDIA GTX 1080Ti.
  • Accuracy: In shape completion tasks, DIST consistently achieved lower Chamfer Distance than the original DeepSDF optimization and state-of-the-art mesh-based methods like PMO.
  • Generalization: When tested on images with different focal lengths or noisy initializations, DIST remained stable, while competing methods saw performance drops of 2x-5x.

Conclusion

While DIST currently requires a pre-trained latent space, it demonstrates that "good enough" local gradient approximations are sufficient for high-quality 3D reconstruction. Future work points toward self-supervised learning, where the renderer could train the 3D autoencoder itself using only 2D images, potentially removing the need for 3D ground truth data during training.

Summary updated

BibTeX
@inproceedings{liu2020dist,
  author = {Shaohui Liu and Yinda Zhang and Songyou Peng and Boxin Shi and Marc Pollefeys and Zhaopeng Cui},
  title = {{DIST: Rendering Deep Implicit Signed Distance Function With Differentiable Sphere Tracing}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00209},
}
Figure