ShapeGPT: 3D Shape Generation with A Unified Multi-modal Language Model

Fukun Yin, Xin Chen, Chi Zhang, Biao Jiang, Zibo Zhao, Jiayuan Fan, Gang Yu, Taihao Li, Tao Chen

TL;DR

ShapeGPT is a unified multimodal language model that treats 3D shapes as a "foreign language," allowing it to perform diverse tasks like text-to-shape generation, shape editing, and captioning within a single framework. By discretizing 3D geometry into discrete tokens, the researchers leverage the reasoning power of Large Language Models (LLMs) to bridge the gap between 3D data, text, and images.

What Problem Does This Paper Address?

While Large Language Models have revolutionized how we interact with text and images, 3D data has remained a challenging frontier. Most existing 3D generative models are "specialists"—designed for a single task like generating a shape from a caption or completing a partial scan. They often lack the flexibility to follow complex instructions or understand the interplay between different modalities (like using both an image and a text description to refine a model).

The fundamental hurdle is that 3D data is high-dimensional and continuous, making it incompatible with the discrete, token-based architecture of LLMs. ShapeGPT tackles this by creating a unified "vocabulary" for 3D shapes, enabling a single model to handle everything from shape reasoning to instruction-based editing.

Methods

The authors propose a "word-sentence-paragraph" framework to integrate 3D shapes into the T5 language model architecture.

  1. Shape Discretization: To make 3D data readable for an LLM, the authors use a 3D Vector Quantized-Variational Autoencoder (VQ-VAE). This converts a 3D shape (represented as a Signed Distance Function) into a sequence of discrete tokens.
  2. Shape-Language Integration: These tokens are mapped to specific "shape words" (e.g., <shape_id_8>). A sequence of these words forms a "shape sentence," which is then wrapped in special start/end symbols. Finally, these sentences are intermixed with text and image embeddings (processed via a CLIP encoder and a perceiver module) to create "multimodal paragraphs."
  3. Three-Stage Training:
    • Stage 1: Shape Representation: Training the VQ-VAE to ensure 3D shapes can be accurately compressed and reconstructed.
  4. Stage 2: Multimodal Alignment: Pre-training the LLM on simple Q&A pairs (e.g., "Translate this image to a shape") to align the different modalities.
  5. Stage 3: Instruction Fine-tuning: Using a massive dataset of diverse instructions (generated with the help of ChatGPT) to teach the model complex tasks like editing and reasoning.
The ShapeGPT framework overview, showing how text, shapes, and images are tokenized and processed by a unified T5-based language model.

Datasets

The model was trained and evaluated on several key 3D datasets:

  • ShapeNet: The primary source for 3D models, covering 16 object categories and ~50,000 models.
  • Objaverse: Used for broader data scaling.
  • Text2Shape: Provided high-quality, descriptive text annotations for chairs and tables.
  • Moat-generated tags: Used to provide auxiliary text descriptions for object classes that lacked manual captions.

Key Insights and Ideas

  • 3D as a Language: The most significant "aha" moment is treating 3D geometry not as a raw geometric tensor, but as a structured sequence of tokens. This allows the model to leverage the "grammar" and reasoning capabilities inherent in pre-trained LLMs.
  • Instruction-Driven Versatility: Unlike previous models that require specific inputs, ShapeGPT can handle "reasoning" prompts. For example, instead of just "a chair," a user can ask for "a chair for a busy office," and the model infers the need for wheels and an ergonomic design.
  • Unified Architecture: By using a sequence-to-sequence approach, the model eliminates the need for task-specific heads. Shape completion, editing, and generation are all just different "sentences" the model learns to complete.
Qualitative examples of ShapeGPT performing tasks like shape reasoning (inferring design needs) and shape completion.

Key Results

ShapeGPT achieves state-of-the-art or comparable performance across a wide array of tasks:

  • Image-to-Shape: On the ShapeNet chair category, it achieved an IoU of 0.593, outperforming specialized models like SDFusion (0.595) and Michelangelo (0.566) in geometric accuracy (Chamfer Distance).
  • Multimodal-to-Shape: When given both an image and a text prompt, ShapeGPT showed superior integration, reaching an IoU of 0.587, significantly higher than SD-Fusion's 0.562.
  • Qualitative Alignment: As shown in Figure 4, ShapeGPT's outputs often align more closely with complex, multi-attribute prompts compared to previous diffusion-based methods.
Qualitative comparison showing how ShapeGPT's generated shapes more accurately reflect the details in multimodal prompts compared to baselines.

Limitations and Future Work

Despite its versatility, ShapeGPT has clear areas for growth:

  • Geometry Only: The current model focuses on shape (SDF) and does not yet generate textures, colors, or materials.
  • Single Objects: The framework is currently optimized for individual objects rather than complex, multi-object 3D scenes.
  • Computational Constraints: The authors noted that GPU memory limited them to the T5-base model and a token length of 512; larger models and longer sequences would likely yield even higher fidelity.
  • Future Directions: The team plans to expand the model to support voice and video modalities and move toward generating dynamic, moving 3D shapes.

Summary updated

BibTeX
@article{yin2023shapegpt,
  author = {Fukun Yin and Xin Chen and Chi Zhang and Biao Jiang and Zibo Zhao and Jiayuan Fan and Gang Yu and Taihao Li and Tao Chen},
  title = {{ShapeGPT: 3D Shape Generation with A Unified Multi-modal Language Model}},
  journal = {IEEE Transactions on Multimedia},
  year = {2023},
  url = {https://openreview.net/forum?id=k0Ar4UjzbT},
}
Figure