Source-linked AI summary

CLIP-Forge: Towards Zero-Shot Text-to-Shape Generation

Aditya Sanghi, Hang Chu, Joseph G. Lambourne, Ye Wang, Chin-Yi Cheng, Marco Fumero, Kamal Rahimi Malekshan

arXiv:2110.02624v2cs.CVcs.AI

TL;DR

Text-to-shape generation lacks the large paired datasets available for text-to-image generation. CLIP-Forge addresses this with a two-stage model trained on unlabelled shapes and a pre-trained image–text network, and demonstrates zero-shot generation with efficient inference and multiple outputs per prompt.

  • Problem

    Text-to-shape generation remains difficult because large-scale paired text–shape data is unavailable, unlike in text-to-image generation.

    Source: §1 · p. 1
  • Method

    CLIP-Forge learns a shape latent space with an autoencoder and trains a conditional normalizing flow using rendered-shape image features, replacing them with text features at inference.

    Source: §1 · pp. 1–2
  • Results

    CLIP-Forge demonstrates promising zero-shot generation qualitatively and quantitatively, with efficient generation and multiple shapes available for each text prompt.

    Source: §1 · p. 2, §4.2 · p. 5
  • Takeaways & Limitations

    The method can leverage shape-only datasets and generate semantically aligned 3D shapes without text–shape labels or inference-time optimization.

    Source: §1 · p. 2, §7 · p. 8

    Generation quality remains limited, the method focuses on geometry rather than texture, and performance is constrained by CLIP’s trained data distribution.

    Source: §6 · p. 8

Abstract

from arXiv · show

Generating shapes using natural language can enable new ways of imagining and creating the things around us. While significant recent progress has been made in text-to-image generation, text-to-shape generation remains a challenging problem due to the unavailability of paired text and shape data at a large scale. We present a simple yet effective method for zero-shot text-to-shape generation that circumvents such data scarcity. Our proposed method, named CLIP-Forge, is based on a two-stage training process, which only depends on an unlabelled shape dataset and a pre-trained image-text network such as CLIP. Our method has the benefits of avoiding expensive inference time optimization, as well as the ability to generate multiple shapes for a given text. We not only demonstrate promising zero-shot generalization of the CLIP-Forge model qualitatively and quantitatively, but also provide extensive comparative evaluations to better understand its behavior.

1. Introduction

Text-to-shape generation is difficult because large-scale paired text–shape data is unavailable. CLIP-Forge bridges this gap by training on rendered shapes and aligned image–text embeddings, enabling direct zero-shot generation.

  • Text-to-shape generation is challenging because, unlike text-to-image generation, large-scale paired text–shape datasets are impractical to acquire.Source: §1 · p. 1
  • CLIP-Forge uses automatically rendered images of 3D shapes and pre-trained image–text joint embeddings to connect shapes with natural language.Source: §1 · p. 1, Figure 2 · p. 2
  • The method first learns a shape latent space with an autoencoder, then trains a conditional normalizing flow using image features to model shape embeddings.Source: §1 · p. 2
  • At inference, text embeddings replace image embeddings as the flow condition, producing shape embeddings that the decoder converts into 3D shapes.Source: §1 · p. 2
  • CLIP-Forge generates 3D shapes directly without paired text–shape labels and supports efficient, multi-shape generation for a text prompt.Source: §1 · p. 2
  • The method is evaluated extensively in qualitative and quantitative zero-shot generation settings.Source: §1 · p. 2

2. Related Work

Prior work established zero-shot generation and image–text alignment, while CLIP-Forge extends these ideas to 3D shapes using a two-stage autoencoder and conditional normalizing flow.

Zero-Shot Learning

  • Zero-shot learning uses external knowledge to make predictions for classes or outputs not observed during training, and CLIP connects text and images in a shared latent space.Source: §2 · p. 2
  • CLIP-Forge applies zero-shot generation to 3D shapes, where prior text-to-image methods benefit from abundant paired data unavailable for text–shape learning.Source: §2 · p. 2

Stage 1: Shape Autoencoder

  • The first stage trains a voxel-encoder and implicit-decoder autoencoder to obtain a latent shape embedding for each shape.Source: §3 · p. 3, §3.1 · p. 3
  • Gaussian noise is added to the shape embedding, and the implicit decoder predicts occupancies from the embedding concatenated with 3D query points.Source: §3.1 · p. 3

Stage 2: Conditional Normalizing Flow

  • The second stage trains a RealNVP conditional normalizing flow to model shape embeddings from rendered-image features.Source: §3.2 · pp. 3–4

Inference

  • At inference, text features condition the flow, whose reverse path samples shape embeddings; repeated sampling yields multiple shapes for one query.Source: §3.3 · p. 4

4. Experiments

Experiments evaluate CLIP-Forge on ShapeNet using reconstruction, generation, diversity, and human perceptual criteria, alongside supervised baselines. The method generates diverse, semantically responsive shapes from text and supports multiple shapes and interpolations.

Experimental Setup

  • The evaluation uses ShapeNet(v2), with reconstruction, generation quality, category diversity, and human perceptual criteria.Generation quality uses FID and MMD; category diversity uses Acc.Source: §4 · pp. 4–5

Comparison with Supervised Models

  • CLIP-Forge significantly outperforms both supervised baselines across all reported evaluation metrics.The supervised baselines use the paired Text2Shape dataset and share the CLIP text encoder and occupancy-network components for comparison.Source: §4.1 · p. 5

Qualitative Results

  • CLIP-Forge generates multiple and diverse shapes from a single text query.The qualitative results also cover category, sub-category, semantic-word, and shape-attribute prompts.Source: §4.2 · p. 5
  • Interpolation between two text inputs produces results suggesting a smooth conditioning space.The method also generates shapes from common names, sub-categories, and attributes.Source: §4.2 · p. 5, Figure 7 · p. 7

Human Perceptual Evaluation

  • Detailed prompts were correctly identified by human evaluators for 70.83% of image pairs.Attribute prompts were more readily recognized than sub-category prompts; “A circular bench” was recognized by 8/9 evaluators, while “A laboratory bench” was recognized by none.Source: §4.3 · p. 5

Prompt Selection

  • Prompt prefix selection affects generation quality and diversity, with some prefixes producing worse visual results.The authors identify prompt engineering or prompt tuning as a future research direction.Source: §4.4 · p. 5

5. Ablation Studies

Ablation studies examine the autoencoder, conditional flow, rendering views, and CLIP architecture. Results favor noise augmentation, affine-layer conditioning, dimension masking with RealNVP, multiple views, and ViT-based CLIP models.

Stage 1 Autoencoder Design Choice

  • Adding Gaussian noise to the autoencoder latent space improves reconstruction, generation quality, and shape diversity.The model also remains reasonable with a smaller latent size of 128 and can use point-cloud encoder inputs.Source: §5.1 · p. 7, Table 3 · p. 8

Stage 2 Prior Design Choice

  • Conditioning the affine coupling layers is more effective than conditioning only the prior network.The authors attribute this to conditioning at multiple coupling layers rather than only once.Source: §5.2 · p. 7, Table 4 · p. 8
  • Dimension masking is more effective than checkered masking, while MAF is less effective than RealNVP.The remaining ablations use dimension-masked RealNVP.Source: §5.2 · pp. 7–8

Views and CLIP Architectures

  • Using more rendering views generally improves generation quality and diversity.The authors connect this to better capturing CLIP’s output distribution across viewpoints.Source: §5.3 · p. 8, Table 5 · p. 8
  • ViT-based CLIP models outperform ResNet-based CLIP models, while increasing ViT size from ViT-B/32 to ViT-B/16 has little effect on text-based generation.The authors hypothesize that patch-based ViT methods focus more on foreground objects in image renderings.Source: §5.4 · p. 8, Table 5 · p. 8

6. Limitations and Future Work

The authors identify limitations in generation quality, representation scope, and dependence on CLIP’s training distribution. They also discuss possible benefits and disruption from lowering barriers to 3D content creation.

Generation quality

  • Generation quality remains limited, motivating future integration with local implicit methods.Source: §6 · p. 8

Representation scope

  • The current method focuses on geometry, leaving texture integration as future work.Source: §6 · p. 8

Data distribution

  • CLIP-Forge is constrained by CLIP’s trained data distribution, suggesting fine-tuning for specific datasets.Source: §6 · p. 8

Potential impact

  • Language-driven 3D modeling may lower technical barriers and reduce tedious tasks for modelers and animators.Source: §6 · p. 8
  • The authors frame democratized 3D content creation as a greater benefit for the general public.Source: §6 · p. 8

7. Conclusion

CLIP-Forge efficiently generates multiple 3D shapes from text while preserving semantic meaning, without requiring text-shape labels. The method can also extend to other 3D representations such as point clouds.

  • CLIP-Forge efficiently generates multiple 3D shapes while preserving semantic meaning from a text prompt.Source: §7 · p. 8
  • Training requires no text-shape labels, enabling use of shape-only datasets such as ShapeNet.Source: §7 · p. 8
  • The model generates results on other representations, including point clouds.Source: §7 · p. 8
  • The authors thoroughly study different components of the method.Source: §7 · p. 8

A. Architecture and Experiment Details

The appendix specifies the encoders, decoders, point-cloud components, flow priors, visualization procedure, and threshold selection used in CLIP-Forge experiments.

Visualization

Evaluation procedure

Encoders

Decoders

Prior model

B. Comparison with Supervised Models

The supervised comparison uses T2S and SN13 settings with different available supervision, while CLIP-Forge is evaluated against supervised baselines on common text queries and ShapeNet data. The reported comparison favors CLIP-Forge’s zero-shot generalization and scaling without text-shape labels.

Evaluation setup

Reported comparisons

  • Table 7 provides additional detailed comparisons with supervised models, while Table 6 lists the text queries used in the evaluation.Source: Table 7 · p. 9, Table 6 · p. 9

Datasets

Supervised baseline

Results

C. Category-wise Accuracy Results

CLIP-Forge generates shapes across all ShapeNet categories, but category-wise accuracy varies, with airplane and car outperforming boat and loudspeaker.

E. Effect of Threshold Parameter

Threshold choice strongly affects occupancy-based results and visual quality, while additional experiments examine out-of-distribution queries, prefixes, descriptive prompts, and qualitative shape coverage.

Effect of Threshold Parameter

  • Different shapes require different occupancy thresholds depending on category and local geometric details.The authors use a constant threshold of 0.05 for metrics and human evaluations but grid-search the threshold for visual results.Source: E. Effect of Threshold Parameter · p. 10
  • Out-of-distribution queries prompt shapes that the method tries to align with its training dataset.The authors identify broader out-of-distribution generalization as future work.Source: F. Out of Distribution Generation · p. 10
  • Prefix changes produce small variations, while the prefix “a rendering of” can worsen visual results.Source: G. Visual Results for Different Prefixes · p. 10
  • Longer descriptive prompts capture some shape-related attributes, but color descriptions are not captured and may bias generation.The authors suggest semi-supervised learning for finer text control.Source: H. Visual Results for more Descriptive… · p. 10
  • Qualitative results cover sub-categories, synonyms, attributes, common names, multiple-shape generation, and interpolation, but some details and sub-categories remain inaccurate.Examples include incomplete details for “a swivel chair” and inaccurate shapes for “an operating table.”Source: §I · pp. 10–11

J. Human Perceptual Evaluation

Human perceptual evaluation compares shapes generated from category names with shapes generated from detailed prompts containing subcategory or attribute information.

Human Perceptual Evaluation

Loading 2110.02624v2…