Learning Continuous 3D Words for Text-to-Image Generation

Ta Ying Cheng, Matheus Gadelha, Thibault Groueix, Matthew Fisher, Radomír Mech, Andrew Markham, Niki Trigoni

TL;DR

This paper introduces "Continuous 3D Words," a novel method for fine-grained control over text-to-image generation by enabling continuous manipulation of 3D attributes like illumination and object pose. By training on a single 3D mesh and a rendering engine, their approach allows users to control these attributes with sliders, offering a more intuitive and powerful way to guide image synthesis beyond traditional text prompts.

What Problem Does This Paper Address?

Current text-to-image diffusion models, while impressive, offer limited control over nuanced, continuous visual attributes. Text prompts are often too high-level to specify precise details like the direction of light or the subtle deformation of an object. While methods like ControlNet can incorporate conditioning signals, they struggle with abstract, continuous attributes. Existing 3D rendering pipelines offer fine-grained control but are computationally expensive and require specialized expertise, creating a gap between accessible text-to-image generation and precise 3D scene manipulation. This paper aims to bridge this gap by enabling continuous, slider-like control over 3D attributes within the text-to-image generation framework.

Methods

The core innovation is the concept of "Continuous 3D Words." Instead of discrete tokens for each attribute value, the authors propose learning a continuous function (an MLP) that maps attribute values (e.g., an angle for illumination) to token embeddings. This allows for interpolation and fine-grained control.

Their training process involves two stages:

  1. Stage 1 (Object Identity Learning): A diffusion model is finetuned using images rendered from a single 3D mesh, learning a token to represent the object's identity. This is done using a Dreambooth-like approach.
  2. Stage 2 (Attribute Learning): The Continuous 3D Words (MLP) are introduced, and the model is further finetuned to associate these continuous attribute values with the object identity token in the prompt embedding.

To improve generalization and prevent overfitting, they employ two key strategies:

  • Two-Stage Training: Explicitly disentangling object identity from attribute learning.
  • ControlNet Augmentation: Using pre-trained ControlNets (depth and lineart) to generate diverse backgrounds and textures for rendered images, preventing the model from relying solely on artificial rendering environments. This is done by either rendering depth maps for shape-based attributes or using lineart extraction for illumination.

The entire finetuning process is performed using Low-Rank Adaptation (LoRA) for efficiency.

Datasets

The paper primarily uses rendered images from single 3D meshes for training. Specific examples include:

  • A dog mesh for illumination and orientation.
  • An animated dove mesh for wing pose and orientation.
  • Five Pix3D chairs for dolly zoom.

For evaluation, they conduct user studies and qualitative comparisons against baselines. They do not introduce a new benchmark dataset but rather leverage existing 3D models and rendering capabilities.

Key Insights and Ideas

  • Continuous Control is Key: Representing attributes as continuous functions (MLPs) rather than discrete tokens is crucial for smooth interpolation and fine-grained control, overcoming the limitations of discrete tokenization.
  • Disentangling Identity from Attributes: A critical challenge is preventing the model from treating each attribute value as a new object. The two-stage training strategy effectively addresses this, enabling generalization to new objects.
  • ControlNet as a Data Augmenter: Leveraging pre-trained ControlNets for background and texture augmentation is an ingenious way to enrich the training data without manual effort or complex simulation setups, significantly improving realism and generalization.
  • Single Mesh Power: The ability to learn complex 3D attributes from a single mesh and a rendering engine is a significant step towards making 3D-aware image generation more accessible.

Key Results

  • User Preference: User studies show a strong preference for their method over ControlNet baselines, with "Ours" being selected as the best in the majority of cases across various attribute control scenarios (wing pose, illumination, combined attributes).
  • Generalization: The method demonstrates impressive generalization, allowing learned attributes (e.g., illumination, orientation) from one object category (e.g., dog) to be applied to generate images of entirely different objects (e.g., horses, taxis, polar bears).
  • Qualitative Improvements: Qualitative comparisons highlight better adherence to continuous attribute control and more aesthetically pleasing results compared to baselines, especially when prompts deviate from training data.
  • Efficiency: The LoRA-based finetuning allows for efficient training on a single GPU with relatively small model sizes.

Limitations and Future Work

  • Failure Cases: The model can still struggle with complex stylistic prompts (e.g., "Monet painting") and may sometimes overfit to training data, leading to suboptimal results (e.g., a T-Rex with four feet when trained on a dog mesh).
  • Data Requirements: Identifying which data is needed for specific attributes and training multiple models for each can be cumbersome.
  • Future Work: The authors suggest training general models that can handle multiple attributes inherently, rather than attribute-specific networks, as 3D data becomes more abundant. They also envision more interesting applications in the vision community for creating custom 3D words.

Summary updated

BibTeX
@inproceedings{cheng2024learning,
  author = {Ta Ying Cheng and Matheus Gadelha and Thibault Groueix and Matthew Fisher and Radomír Mech and Andrew Markham and Niki Trigoni},
  title = {{Learning Continuous 3D Words for Text-to-Image Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  url = {https://openreview.net/forum?id=Xr98fA7tjZ},
}
Figure