Unsupervised Learning of Shape Programs with Repeatable Implicit Parts

Boyang Deng, Sumith Kulal, Zhengyang Dong, Congyue Deng, Yonglong Tian, Jiajun WuNeurIPS 2022

Introduction

In 3D computer vision, there is a constant tension between geometry (the fine-grained surface details) and structure (how parts are organized and repeated). Existing methods usually fall into two camps:

  1. Primitive-based models: These represent shapes as collections of boxes or ellipsoids. They capture structure well but lack geometric detail.
  2. Implicit representations: These use neural networks to represent continuous volumes, capturing incredible detail but often treating the object as one continuous "blob" without understanding structural semantics (e.g., that a chair has four identical legs).

Furthermore, "shape programs"—which explicitly model these repetitions—typically require expensive, human-annotated ground truth programs to train.

ProGRIP (Shape Programs with Generative Repeatable Implicit Parts) is a novel framework that bridges this gap. It represents 3D objects as "shape programs" composed of repeatable parts modeled by neural implicit functions. By using a novel matching-based unsupervised loss, it learns to identify structural regularities and reconstruct high-fidelity geometry without requiring any manually annotated program data.

Concept of shape programs with repeatable parts

Methods

ProGRIP operates through a parallel, two-level architecture that executes its programs using neural implicit functions, trained via an unsupervised matching loss.

1. The Two-Level Program Hierarchy

Instead of a sequential list of commands, ProGRIP uses a parallel, two-level architecture:

  • Geometry Level: A transformer predicts a set of "repeatable parts." Each part is defined by a latent vector (its "DNA") and a scale.
  • Pose Level: For each repeatable part, another transformer predicts multiple "occurrences"—where that specific part appears in the scene (rotation, translation, and an existence probability).
ProGRIP Architecture: Encoding network, Geometry level, and Pose level

2. Posed Implicit Functions

Unlike previous programs that used voxels or simple boxes, ProGRIP executes its program using neural implicit functions. Each part's latent vector is fed into an occupancy decoder. To find the final shape, the system "queries" points in 3D space, transforms them into the local coordinate frame of each part, checks if they are "inside," and combines the results.

3. Unsupervised Matching Loss

This is the core innovation. Standard reconstruction losses (comparing the output to a target) often fail because parts get "stuck" near where they were initialized. To solve this, the authors use a matching-based objective. They first generate a rough, non-repeatable box-based decomposition of the shape (using an existing method called CubeSeg). They then use the Hungarian algorithm to match their repeatable ProGRIP parts to these boxes. This encourages the model to "anchor" its repeatable parts to similar geometric elements across the object, regardless of where they started.

Datasets

The model was trained and evaluated on the ShapeNet dataset, focusing on common categories that exhibit high structural regularity:

  • Chairs (repeatable legs, slats)
  • Tables (repeatable legs)
  • Airplanes (repeatable engines, wings, tails)

Key Insights and Ideas

  • Parallelism over Sequences: By moving away from sequential program execution to a parallel transformer-based approach, the model becomes easier to optimize and invariant to the order in which parts are predicted.
  • Implicit Fidelity: Using implicit functions allows the "parts" to take on complex, smooth shapes (like a curved chair back) that simple boxes or spheres could never capture.
  • The "Local Minima" Rescue: The authors demonstrate that standard reconstruction loss traps parts in suboptimal locations. Their matching loss acts as a global supervisor, forcing the model to recognize structural similarities across the object.
  • Symmetry for Free: Because the model is forced to reuse the same latent code for multiple occurrences, it naturally discovers and enforces symmetry and structural self-similarity.

Key Results

ProGRIP was tested against state-of-the-art structured representations like Shape2Prog, CubeSeg, and BSP-Net:

  • Reconstruction Fidelity: ProGRIP significantly outperformed baselines. On the "Chair" category, it achieved a Volumetric IoU of 0.620 (compared to 0.541 for the next best, BSP-Net) and an F-Score of 57.98 (nearly double the baselines).
  • Unsupervised Segmentation: Even though it was never trained with part labels, ProGRIP's discovered parts aligned remarkably well with semantic parts (legs, seats, wings). It achieved a mean IoU of 0.757 on airplanes, outperforming models specifically designed for segmentation.
  • Compactness: The representation is highly efficient; a complex chair can be represented by just a few latent vectors and their corresponding pose coordinates.

Limitations and Future Work

  • Dependency on Initial Abstraction: The matching loss currently relies on an external box-based decomposition (CubeSeg) to provide the initial "targets." If the box decomposition is poor, ProGRIP's training might suffer.
  • DSL Constraints: While more flexible than boxes, the "program" still assumes a specific hierarchy. Future work could involve learning the hierarchy itself or extending the language to handle non-rigid deformations.
  • Category Scaling: While it excels at man-made objects with clear repetitions, applying this to organic shapes (like animals or plants) remains a challenge for future research.

Summary updated

BibTeX
@inproceedings{deng2022unsupervised,
  author = {Boyang Deng and Sumith Kulal and Zhengyang Dong and Congyue Deng and Yonglong Tian and Jiajun Wu},
  title = {{Unsupervised Learning of Shape Programs with Repeatable Implicit Parts}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=xmiPHLrnnb},
}
Figure