Text2Shape: Generating Shapes from Natural Language by Learning Joint Embeddings

Kevin Chen, Christopher B. Choy, Manolis Savva, Angel X. Chang, Thomas A. Funkhouser, Silvio Savarese

TL;DR

This paper introduces a novel method for generating 3D shapes from natural language descriptions by learning joint embeddings of text and 3D shapes. This approach enables both retrieving shapes based on text and generating novel 3D shapes, paving the way for more intuitive 3D content creation.

What Problem Does This Paper Address?

Bridging the gap between natural language and 3D visual representations is a long-standing challenge in AI. Specifically, the authors aim to enable systems that can understand a textual description of an object and either find a matching 3D shape (text-to-shape retrieval) or create a new 3D shape based on the description (text-to-shape generation). Existing methods often rely on fine-grained category labels, which are costly to obtain and can be ambiguous. This work seeks to overcome these limitations by learning directly from natural language descriptions and 3D shape instances.

Methods

The core of the proposed method is learning a joint embedding space for text descriptions and 3D shapes. This is achieved by combining two key learning paradigms:

  • Learning by Association: This approach establishes connections between text and shapes by creating "round trips." For instance, a text description is encoded, then used to retrieve shapes, and these retrieved shapes are then used to retrieve text descriptions. This process helps to implicitly link semantically similar text and shapes.
  • Metric Learning: This technique ensures that similar text descriptions and shapes are clustered together in the embedding space, while dissimilar ones are pushed apart. This is done by defining constraints on the distances between embeddings of positive (similar) and negative (dissimilar) pairs.

These two methods are jointly optimized to create a unified multimodal representation. For text-to-shape generation, the learned embeddings are used within a conditional Wasserstein GAN (CWGAN) framework. This GAN architecture is chosen for its ability to generate diverse and high-quality outputs, mitigating issues like mode collapse common in traditional GANs.

Datasets

The authors introduce two new datasets for training and evaluation:

  • ShapeNet objects with natural language descriptions: This dataset consists of 75,344 natural language descriptions for 15,000 table and chair objects from the ShapeNet dataset. These descriptions were collected from human annotators.
  • Procedurally generated geometric primitives with synthetic text captions: This dataset comprises 192,602 descriptions for 7,560 procedurally generated 3D primitives (like spheres, cubes, cones) with variations in color, size, and shape. This dataset allows for controlled evaluation.

Key Insights and Ideas

  • Implicit Cross-Modal Connections: The paper demonstrates that it's possible to learn meaningful connections between language and 3D shapes without relying on explicit category labels. The "learning by association" approach effectively bridges this gap.
  • Joint Embedding Space is Powerful: A unified embedding space for text and 3D shapes is shown to be effective for both retrieval and generation tasks, outperforming methods that rely on separate embeddings or category information.
  • Wasserstein GAN for Diversity: The use of a conditional Wasserstein GAN for generation is crucial for producing diverse and realistic 3D shapes, addressing a key challenge in generative modeling.
  • Vector Arithmetic for Attribute Manipulation: The learned embeddings exhibit properties that allow for manipulating shape attributes (like color and shape) through simple vector arithmetic, offering a way to control generation.

Key Results

  • Text-to-Shape Retrieval: The proposed method significantly outperforms baseline approaches on both the primitives dataset and the ShapeNet dataset, achieving high recall rates and NDCG scores. For example, on the primitives dataset, their "Full-MM" model achieved 95.07% RR@1 and 95.59% NDCG@5 for text-to-shape retrieval.
  • Text-to-Shape Generation: The CWGAN model, leveraging the learned embeddings, generates more realistic and better-conditioned 3D shapes compared to baseline GAN approaches. Qualitative results show improved color and shape accuracy matching the input text. For instance, on ShapeNet, their CWGAN achieved an IoU of 9.64 and an EMD of 0.4443, outperforming other methods.

Limitations and Future Work

  • Limitations:
    • The voxelization process has limitations in capturing transparent surfaces and accounting for shading under illumination, which can lead to discrepancies between rendered views and generated voxels.
  • Thin coplanar surfaces and high-frequency texture details are challenging to represent with fixed-resolution voxel sampling.
  • While the model captures many attributes, details in descriptions like "three legs" for a table can be hard to capture perfectly.
  • Future Work:
    • The authors suggest exploring stronger priors for real-world color distributions and leveraging bilateral symmetry common in physical objects to improve generation quality.
  • Further research into disentangling representations could enable generating shapes by composing attributes more effectively.
  • Extending the approach to handle transparent surfaces and incorporate shading information would be beneficial.

Summary updated

BibTeX
@inproceedings{chen2018text,
  author = {Kevin Chen and Christopher B. Choy and Manolis Savva and Angel X. Chang and Thomas A. Funkhouser and Silvio Savarese},
  title = {{Text2Shape: Generating Shapes from Natural Language by Learning Joint Embeddings}},
  booktitle = {ACCV},
  year = {2018},
  doi = {10.1007/978-3-030-20893-6\_7},
}
Figure