NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Theory of Topological Derivatives for Inverse Rendering of Geometry

Ishit Mehta, Manmohan Chandraker, Ravi RamamoorthiICCV 2023 · DOI

Abstract

We introduce a theoretical framework for differentiable surface evolution that allows discrete topology changes through the use of topological derivatives for variational optimization of image functionals. While prior methods for inverse rendering of geometry rely on silhouette gradients for topology changes, such signals are sparse. In contrast, our theory derives topological derivatives that relate the introduction of vanishing holes and phases to changes in image intensity. As a result, we enable differentiable shape perturbations in the form of hole or phase nucleation. We validate the proposed theory with optimization of closed curves in 2D and surfaces in 3D to lend insights into limitations of current methods and enable improved applications such as image vectorization, vector-graphics generation from text prompts, single-image reconstruction of shape ambigrams and multi-view 3D reconstruction.

Introduction

Inverse rendering—the process of recovering 3D geometry, materials, and lighting from 2D images—is a cornerstone of computer vision and graphics. However, a persistent challenge in this field is topology mismatch. Most modern differentiable renderers rely on Shape Derivatives (SD), which treat geometry like a piece of clay that can be pushed, pulled, or stretched. While SD is effective for refining boundaries, it struggles when the initial guess and the target have different topologies (e.g., transforming a solid sphere into a torus).

The primary limitation of SD-based methods is that the gradient signal is "sparse," typically active only at the silhouette or boundary of the object. If the target geometry requires a hole where none exists, the optimizer lacks a dense signal to "punch through" the surface, often leading to failure or convergence in poor local minima.

Theoretical Framework

To address these limitations, we bridge the gap between classical shape optimization and modern differentiable rendering by introducing Topological Derivatives (TD) into a level-set framework.

Level-Set Representation

Instead of using explicit meshes, we represent surfaces as the zero-crossing of a higher-dimensional level-set function ($\phi$). This implicit representation naturally handles the merging and splitting of surfaces, providing a flexible foundation for topological changes.

Topological vs. Shape Derivatives

While a shape derivative describes how a loss function changes as a boundary moves, a topological derivative quantifies the sensitivity of the loss to the creation of an infinitesimal hole or a new component at any specific point in space. This provides a "dense" signal across the entire domain, informing the optimizer where to nucleate new features.

2D and 3D Derivations

In 2D, we demonstrate that TD and SD share a functional form—the difference between foreground and background error—but operate on different domains. This allows for a unified evolution equation where shapes can grow or shrink anywhere on the canvas without explicit edge sampling.

In 3D, the problem is complicated by visibility. We derive TDs based on "vanishing conic perturbations" originating from the camera. This approach allows the optimization to evaluate visibility sensitivities across the entire visible surface, rather than just at the silhouette, effectively spreading the visibility signal across the whole shape.

Applications and Experimental Results

We validated our framework across several challenging synthetic benchmarks and generative tasks, comparing it against standard differentiable renderers (like Nvdiffrast) and level-set methods without TDs.

3D Reconstruction and Topology Recovery

Our method successfully recovers complex topologies, such as a "holeball" (a sphere with three intersecting axial holes), from a simple sphere initialization. Quantitatively, our approach achieved a PSNR of 38.61 dB on the holeball task, significantly outperforming the 34.81 dB achieved by baselines. Furthermore, the use of TDs allows for learning rates up to 10x larger than silhouette-based methods, leading to faster and more stable convergence.

Generative Vector Graphics

By integrating our framework with Score Distillation Sampling (SDS), we generated complex vector-graphics from text prompts (e.g., "lion," "elephant"). Unlike fixed-topology methods that produce blurry results, our framework adaptively creates new paths and holes to match the complexity of the text prompt.

Shape Ambigrams

We demonstrated the reconstruction of the 3D "GEB" (Gödel, Escher, Bach) ambigram from a single image. This task requires complex shadow projections and precise hole-punching, which our unified evolution equation handles by simultaneously moving boundaries and nucleating holes.

Discussion and Limitations

While the introduction of topological derivatives provides a powerful tool for inverse rendering, several challenges remain:

  • Balancing Terms: The evolution equation requires a balance between shape and topological derivatives; determining the optimal weighting for different scenes is an ongoing area of research.
  • Curvature Assumptions: The 3D derivation assumes constant local curvature for perturbations. While effective in practice, this may introduce inaccuracies for extremely sharp or irregular geometries.
  • Phase Nucleation in 3D: Our current 3D work focuses primarily on "hole nucleation" (removing volume). Adding new floating components in 3D space is mathematically more complex because a single pixel corresponds to an infinite ray rather than a single point.

Conclusion

By introducing a theory of topological derivatives for inverse rendering, we provide a mechanism for discrete topology changes that overcomes the sparsity of traditional silhouette gradients. This framework enables more robust geometry optimization, allowing for the automatic discovery of holes and new components in both 2D and 3D reconstruction tasks.

Summary updated

BibTeX
@inproceedings{mehta2023theory,
  author = {Ishit Mehta and Manmohan Chandraker and Ravi Ramamoorthi},
  title = {{A Theory of Topological Derivatives for Inverse Rendering of Geometry}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.00045},
}
Figure