PyTorchGeoNodes: Enabling Differentiable Shape Programs for 3D Shape Reconstruction

Sinisa Stekovic, Arslan Artykov, Stefan Ainetter, Mattia D'Urso, Friedrich Fraundorfer

Introduction

Modern 3D reconstruction methods like NeRFs or Gaussian Splatting often produce "black box" outputs that lack semantic interpretability. While visually impressive, these models are difficult to edit; adjusting a chair's height or a table's width usually requires manual mesh manipulation. PyTorchGeoNodes addresses this by utilizing shape programs—procedural models that represent objects through a series of interpretable parameters.

Methodology

The framework introduces three key innovations to make procedural modeling a viable tool for 3D scene understanding.

1. The PyTorchGeoNodes Compiler

The researchers developed a compiler that translates Blender "Geometry Nodes" into differentiable PyTorch code. This allows gradients to flow from the final 3D shape back to input parameters like width, height, or thickness, enabling standard optimization techniques.

2. Hybrid Optimization (GA + GD)

To handle the mixture of discrete choices (e.g., "Does this cabinet have legs?") and continuous values (e.g., "Seat Depth"), the system uses a two-stage approach. A Genetic Algorithm (GA) explores the global space for discrete parameters, followed by Gradient Descent (GD) to fine-tune continuous values.

Figure 1: PyTorchGeoNodes recovers interpretable parameters like width and depth from a 3D scan of a table.

3. Procedural Gaussian Splatting

By attaching Gaussians to procedural primitives, the system captures fine textures. This approach uses procedural priors to handle occlusions; for instance, it can infer the texture of a hidden chair leg by referencing a visible one defined by the same program logic.

Datasets and Evaluation

The framework was tested on the ScanNet and Scannotate datasets. To establish a ground truth for shape program parameters, the authors manually annotated 176 objects, including sofas, chairs, and tables, focusing on attributes like leg offset and shelf count.

Key Results

PyTorchGeoNodes outperformed supervised baselines in recovering object parameters:

  • Accuracy: For tables, it achieved a Mean Absolute Difference of 0.08cm for width, significantly better than the 0.22cm achieved by supervised methods.
  • Discrete Success: The GA approach reached 94% accuracy in identifying "Top Shape" for tables and 86% for cabinet leg presence.
  • Robustness: The system effectively uses symmetry priors to reconstruct objects even when they are significantly occluded in the original scan.
Figure 2: The framework accurately identifies discrete and continuous parameters for complex objects like office chairs.

Conclusion

PyTorchGeoNodes provides an "editable by design" reconstruction pipeline. By outputting human-readable parameters rather than raw geometry, it bridges the gap between automated reconstruction and manual 3D modeling. Future work will focus on learning the procedural templates themselves to reduce the need for manual design.

Summary updated

BibTeX
@inproceedings{stekovic2025pytorchgeonodes,
  author = {Sinisa Stekovic and Arslan Artykov and Stefan Ainetter and Mattia D'Urso and Friedrich Fraundorfer},
  title = {{PyTorchGeoNodes: Enabling Differentiable Shape Programs for 3D Shape Reconstruction}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01518},
}
Figure