TL;DR
ShapeGPT is a novel framework that unifies 3D shape generation and manipulation tasks under a single, instruction-following large language model. By tokenizing 3D shapes into a language-like format, ShapeGPT enables a versatile model to handle diverse tasks like text-to-shape, image-to-shape, and shape editing, demonstrating comparable performance to specialized models.
What Problem Does This Paper Address?
The field of 3D data generation and manipulation has seen significant advancements, but existing models often operate in a task-specific manner, requiring separate architectures for different functionalities (e.g., text-to-shape, shape completion). This fragmentation limits flexibility and the ability to leverage the power of large language models (LLMs) for a holistic understanding and generation of 3D shapes in conjunction with other modalities like text and images. The paper aims to bridge this gap by creating a unified, instruction-driven multimodal model that can handle a wide array of 3D shape-related tasks with a single architecture.
Methods
ShapeGPT's core innovation lies in its "word-sentence-paragraph" approach to integrate 3D shapes into a language model framework.
- Shape Representation: 3D shapes are first converted into a Signed Distance Function (SDF) and then encoded into discrete "shape tokens" using a 3D Vector Quantized-Variational Autoencoder (VQ-VAE). These tokens are then mapped to "shape words" and serialized into "shape sentences."
- Multimodal Alignment: Images are processed using a pre-trained visual encoder (CLIP), and their features are integrated. Textual inputs (captions, instructions) are tokenized.
- Unified Language Model: A T5-based transformer model serves as the backbone. It takes these multimodal inputs (shape sentences, image embeddings, text tokens) and processes them as a "multimodal language paragraph."
- Three-Stage Training:
- Shape Representation Stage: Pre-training the 3D VQ-VAE for shape tokenization.
- Multimodal Alignment Stage: Aligning shape, image, and text modalities using a limited set of tasks (e.g., text-to-shape, image-to-shape) on basic categories like chairs and tables.
- Instruction-based Generation Stage: Fine-tuning the model with a large, diverse set of instructions generated with ChatGPT, covering various shape-related tasks.
Datasets
- ShapeNet: Used for training and evaluating shape generation tasks. The paper specifically mentions using 16 object categories and a train-test split from previous work.
- Text2Shape dataset: Used for text-to-shape evaluations, providing detailed text annotations for 'chair' and 'table' classes.
- Moat dataset: Utilized to generate tags for classes lacking text annotations, enabling multimodal-to-shape generation.
Key Insights and Ideas
- Tokenizing Shapes for LLMs: The success of LLMs in natural language processing can be extended to 3D shapes by discretizing them into a tokenized, language-like format. This allows LLMs to "understand" and generate shapes in a way analogous to how they process text.
- Unified Framework for Diverse Tasks: A single model can effectively handle a broad spectrum of shape-related tasks (generation, editing, captioning, completion, reasoning) by framing them as instruction-following problems within a multimodal context. This contrasts with previous approaches that often required specialized models for each task.
- Instruction-Following is Key: Leveraging LLMs' instruction-following capabilities allows for flexible and nuanced control over shape generation and manipulation, moving beyond simple conditional generation.
- "Word-Sentence-Paragraph" Analogy: Applying the linguistic structure of words, sentences, and paragraphs to shape data (tokens, shape sentences, multimodal paragraphs) provides a robust way to integrate and process multimodal information.
Key Results
- Comparable Performance: ShapeGPT achieves performance comparable to state-of-the-art methods on various shape-relevant tasks, including text-to-shape, image-to-shape, and multimodal-to-shape generation, as evidenced by metrics like IoU, CD, and F-score.
- Qualitative Improvements: Qualitative comparisons show that ShapeGPT's generated shapes more accurately align with multimodal prompts and instructions, producing realistic and contextually appropriate outputs.
- Versatility: The model demonstrates strong capabilities across multiple tasks, including shape captioning, completion, reasoning, and editing, as shown in Figure 5 and Table 4.
- Ablation Studies: Token length (512 tokens preferred), T5-base model size, and the necessity of pre-training were found to be crucial for optimal performance.
Limitations and Future Work
- Limitations: The paper acknowledges that the current model primarily focuses on shape generation and manipulation. It does not yet support textured shapes or a wider range of modalities like voice and video.
- Future Work: The authors plan to extend ShapeGPT to include more shape-centered tasks, generate textured shapes, and incorporate additional modalities such as voice and video. They also aim to apply the framework to more complex scenarios like multi-object generation, 3D scene synthesis, and dynamic shape/video generation.
Summary updated