TL;DR
This paper introduces ShapeLib, a novel system that uses Large Language Models (LLMs) to automatically design libraries of programmatic 3D shape abstractions. By combining textual function descriptions with exemplar shapes, ShapeLib creates reusable, semantically aligned interfaces that significantly improve 3D shape editing and generation tasks.
What Problem Does This Paper Address?
Creating libraries of procedural 3D shape abstractions is a challenging task. Existing methods often struggle to produce abstractions that are both generalizable and semantically interpretable, making them difficult for users to work with. While LLMs show promise in understanding and generating code, they can also produce implausible or structurally inconsistent results without proper grounding. ShapeLib aims to bridge this gap by guiding LLMs with user-provided design intent to create high-quality, usable libraries of 3D shape abstractions.
Methods
ShapeLib employs a guided LLM workflow to design libraries of programmatic shape abstractions. The process involves:
- Interface Creation: LLMs convert user-provided text descriptions of desired functions into structured library interfaces, including function signatures and doc-strings.
- Application Proposal: LLMs propose how these functions can be applied to reconstruct shapes from a provided seed set. This step helps ground the functions in geometric reality.
- Implementation Proposal: Using the proposed applications as input-output examples, LLMs generate candidate implementations for each function.
- Library Validation: A geometric analysis step validates the proposed implementations and applications, ensuring they accurately reconstruct patterns from the seed set and filtering out semantically incorrect or buggy proposals.
To extend the library's utility beyond the seed set, ShapeLib trains recognition networks. These networks learn to map input shapes (represented as primitives, voxels, or point clouds) to programs that utilize the discovered library functions. This is achieved by generating synthetic paired data using an LLM-authored "sample_shape" function.
Datasets
The paper utilizes the PartNet dataset for its seed sets and validation shapes across various shape categories (chair, table, storage, lamp, faucet). For training recognition networks, ShapeLib generates synthetic paired data using LLM-authored "sample_shape" functions.
Key Insights and Ideas
- LLMs as Abstraction Designers: The core idea is to leverage LLMs' code generation capabilities, but crucially, to guide them with structured design intent (text descriptions and seed shapes) to overcome their tendency for hallucination and produce semantically meaningful abstractions.
- Hybrid Approach is Key: Combining LLM reasoning with geometric validation is essential. Geometric validation acts as a crucial grounding mechanism, ensuring that the LLM-generated abstractions are not just syntactically correct but also geometrically plausible and representative of real-world shapes.
- Design Intent Modalities Complement Each Other: Text descriptions provide high-level semantic guidance, while seed shapes offer concrete geometric references. This dual input is more effective than either alone.
- Interpretable Interfaces Matter: ShapeLib's focus on semantically aligned function names and parameters makes the generated libraries much more usable for downstream tasks like editing and generation, as demonstrated by qualitative comparisons.
- Synthetic Data for Recognition: Generating synthetic data using LLM-authored samplers is an effective way to train recognition networks for mapping unstructured shapes to programmatic representations, enabling generalization beyond the initial seed set.
Key Results
- Improved Generalization and Usability: ShapeLib's libraries demonstrate distinct advantages over prior methods (ShapeCoder, LLM-Only) in terms of generalization to unseen shapes, usability of the interfaces, and maintaining plausibility under manipulation.
- Quantitative Performance Gains: ShapeLib-generated libraries lead to more accurate shape reconstructions from unstructured inputs (e.g., point clouds) and more semantically consistent edits. For instance, in perceptual studies, edits made using ShapeLib programs were judged as more plausible and better matching the edit intent 75% and 73% of the time, respectively, compared to ShapeCoder.
- Efficient Editing and Generation: ShapeLib's programmatic abstractions unlock powerful downstream applications, enabling text-driven shape editing and facilitating the generation of novel shape programs.
- Robustness to Design Intent Variations: While curated seed sets and precise function descriptions yield the best results, ShapeLib remains robust and outperforms baselines even with randomly sampled seed sets or slightly rephrased function descriptions.
Limitations and Future Work
- LLM Hallucinations and Semantic Errors: Despite validation, LLMs can still produce semantically imperfect functions that "well-reconstruct" seed set examples. The paper acknowledges that while these errors are often subtle, they can lead to minor deviations from the intended design.
- Recognition Network Misapplications: Recognition networks, trained on synthetic data, can sometimes apply the wrong abstractions during reconstruction, leading to longer programs or semantic inconsistencies.
- Handling Unstructured/Degraded Inputs: The current recognition networks perform best with clean, structured inputs. Extending them to handle noisy or partial 3D scans is a future direction.
- Iterative Design Intent Refinement: The current process is largely a single pass. Future work could involve iterative refinement of design intent and library development, potentially with user-in-the-loop feedback.
- Broader Modeling Extensions: Exploring meta-category libraries, hierarchical abstractions, physics-aware modeling, and more sophisticated detailization techniques are suggested future avenues.
- User Expertise for Design Intent: The system relies on users providing useful design intent. For novice users, developing effective function descriptions might be challenging, suggesting opportunities for LLMs to assist in design intent elicitation.
Summary updated