Parts2Words: Learning Joint Embedding of Point Clouds and Texts by Bidirectional Matching between Parts and Words

Chuan Tang, Xi Yang, Bojian Wu, Zhizhong Han, Yi Chang

TL;DR

Parts2Words introduces an end-to-end framework that directly matches 3D point cloud parts to textual words using optimal transport. By moving away from global features and 2D rendered views, it achieves state-of-the-art accuracy in multi-modal 3D shape-text retrieval.

What Problem Does This Paper Address?

Understanding the relationship between 3D shapes and natural language descriptions (shape-text matching) is crucial for applications like the metaverse and computer-aided design (CAD). Existing methods typically project 3D shapes into multiple 2D rendered views, which introduces self-occlusion and structural ambiguity. Furthermore, most models rely on global features, failing to capture fine-grained local geometric details mentioned in text (e.g., "a round table with four legs"). While regional image-text matching exists in 2D vision, adapting it to 3D data usually disconnects the matching process from the shape's underlying segmentation structure.

Figure 1. Comparison between the global-based matching method and our proposed method. The proposed end-to-end framework aims to learn the joint embedding of point clouds and text by matching parts to words. It can either retrieve shapes using text or vice versa. Our novelty lies in the way of jointly learning embeddings of point clouds and texts.

Methods

The authors propose Parts2Words, an end-to-end network consisting of three core modules:

  1. Shape Encoder: Directly processes 3D point clouds. It uses a point-based backbone (such as PointNet or PointNet++) to predict semantic part labels and extract point-wise features. These features combine hierarchical hidden layer outputs with explicit color information. The point features are then aggregated via pooling into distinct part embeddings.
  2. Text Encoder: Utilizes a Bi-directional Gate Recurrent Unit (GRU) to extract context-sensitive word embeddings from natural language descriptions.
  3. Matching Module: Formulates part-to-word alignment as an optimal transport problem. It uses the Sinkhorn algorithm to find the best cross-modal correspondences and computes the Earth Mover's Distance (EMD) to serve as the final matching score.

The network is trained using a multi-task objective that combines a semantic segmentation cross-entropy loss ($L_{CE}$) with a paired ranking loss using a semi-hard negative mining strategy ($L_{EMD}$).

Figure 2. Overview. The proposed network includes three modules: shape encoder, text encoder, and matching module. The shape encoder learns the part embedding from the input 3D shape, and the text encoder learns the word embedding from the corresponding text description. Then we utilize Earth Mover’s Distance to measure the discrepancy between parts and words in order to obtain the best matches. To achieve the goal, we also leverage triplet loss to enhance the similarity between the paired training samples, and push the unmatched ones far apart.

Datasets

The model is evaluated on the Text2Shape dataset, which contains text descriptions for chairs and tables. Because the original Text2Shape dataset lacks 3D point clouds and segmentation annotations, the authors augmented it by registering and mapping data from two additional datasets that share the same 3D models:

  • ShapeNet: Used to sample point clouds and rectify incorrect color data inherited from inner meshes.
  • PartNet: Used to obtain hierarchical 3D segmentation ground truth via Iterative Closest Point (ICP) mapping.

The final processed dataset consists of 11,498 training shapes and 1,434 test shapes, with an average of 5 text descriptions per shape.

Key Insights and Ideas

  • Coarser Segmentation is Better for Text Alignment: When testing different segmentation granularities (from 17 to 90 classes), the coarsest granularity (17 classes) yielded the best retrieval performance. Fine-grained geometric parts are often too detailed to align well with simple, plain textual descriptions.
  • Color and Geometry Synergy: Explicitly fusing color features and supervising with a segmentation loss are vital. Removing either component severely degrades the network's ability to map local color and geometric descriptions to the correct parts.
  • Optimal Transport vs. Hard Matching: Using Earth Mover's Distance (EMD) to softly optimize matching flows between parts and words significantly outperforms local hard-matching methods like Chamfer Distance (CD) or standard cross-attention mechanisms (like SCAN).

Key Results

Parts2Words achieves state-of-the-art performance on the Text2Shape benchmark, outperforming previous global and local baselines:

  • Shape-to-Text (S2T) Retrieval: Achieved a Recall@1 (RR@1) of 19.38% and an NDCG@5 of 15.30%, outperforming the previous best method, TriCoLo (16.33% RR@1).
  • Text-to-Shape (T2S) Retrieval: Achieved a Recall@1 of 12.72% and an NDCG@5 of 23.13% (compared to TriCoLo's 10.25% RR@1).
  • Overall, the method demonstrates a 12.64% relative improvement over current state-of-the-art approaches.

Limitations and Future Work

Not explicitly discussed in the paper.

Summary updated

Abstract

Shape-Text matching is an important task of high-level shape understanding. Current methods mainly represent a 3D shape as multiple 2D rendered views, which obviously can not be understood well due to the structural ambiguity caused by self-occlusion in the limited number of views. To resolve this issue, we directly represent 3D shapes as point clouds, and propose to learn joint embedding of point clouds and texts by bidirectional matching between parts from shapes and words from texts. Specifically, we first segment the point clouds into parts, and then leverage optimal transport method to match parts and words in an optimized feature space, where each part is represented by aggregating features of all points within it and each word is abstracted by its contextual information. We optimize the feature space in order to enlarge the similarities between the paired training samples, while simultaneously maximizing the margin between the unpaired ones. Experiments demonstrate that our method achieves a significant improvement in accuracy over the SOTAs on multi-modal retrieval tasks under the Text2Shape dataset. Codes are available at https://github.com/JLUtangchuan/Parts2Words.
BibTeX
@inproceedings{tang2023parts,
  author = {Chuan Tang and Xi Yang and Bojian Wu and Zhizhong Han and Yi Chang},
  title = {{Parts2Words: Learning Joint Embedding of Point Clouds and Texts by Bidirectional Matching between Parts and Words}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.00665},
}
Figure