TL;DR
This paper introduces 3D-CLFusion, a novel method for rapidly generating 3D content from text prompts. By leveraging pre-trained latent-based Neural Radiance Fields (NeRFs) and a contrastive latent diffusion prior, it achieves text-to-3D generation in under a minute, significantly outperforming previous methods in speed while maintaining quality.
What Problem Does This Paper Address?
Creating 3D models from text descriptions is a challenging task. Existing methods like DreamFusion and Magic3D, while successful, suffer from two major drawbacks: they are extremely time-consuming, requiring hours to optimize a NeRF for each new prompt, and they often produce low-resolution outputs. This is largely because they train a new NeRF from scratch for every text input. The paper aims to bridge this gap by enabling fast, high-quality text-to-3D generation using pre-trained NeRF models.
Methods
3D-CLFusion tackles this problem by introducing a "contrastive latent diffusion prior." Instead of training a NeRF from scratch, it focuses on efficiently generating a "latent code" (a compact representation) that a pre-trained latent-based NeRF can use to render 3D scenes.
The core components are:
- Pre-trained Latent-based NeRFs: These are NeRF models (like EG3D or StyleNeRF) that can generate 3D objects from a latent code, rather than directly from text.
- Latent Diffusion Prior: This is a neural network trained to predict the latent code from a text prompt. It uses a diffusion model, a powerful generative technique, conditioned on CLIP embeddings (which capture the semantic meaning of text and images).
- Contrastive Learning: A key innovation is the use of contrastive learning during the training of the diffusion prior. This ensures that the generated latent codes are "view-invariant," meaning they can produce consistent 3D outputs regardless of the camera angle. This is crucial because latent-based NeRFs require such invariant latents for coherent 3D generation.
The pipeline works by taking a text prompt, encoding it with CLIP, and then using the diffusion prior to generate a view-invariant latent code. This latent code is then fed into the pre-trained NeRF to render multi-view images of the 3D object.
Datasets
The paper utilizes pre-trained latent-based NeRF models that were trained on publicly available datasets:
- FFHQ: A large dataset of human faces.
- AFHQ: A dataset of animal faces (cats, dogs, wildlife).
- CompCars: A dataset of car images.
The authors also mention using generated images from these models to create ground-truth paired data for training their diffusion prior.
Key Insights and Ideas
- View-invariance is critical for 3D: Directly mapping text to latent codes for 3D NeRFs is challenging because the latent space needs to be consistent across different views. Simple text-to-image diffusion models don't inherently guarantee this for 3D.
- Contrastive learning as a solution: The paper demonstrates that contrastive learning is essential for enforcing view-invariance in the latent codes generated by the diffusion prior. This allows for coherent 3D object generation.
- Plug-and-play efficiency: By leveraging pre-trained NeRFs and a trained diffusion prior, 3D-CLFusion bypasses the need for per-prompt NeRF optimization, leading to dramatic speedups.
- The power of latent diffusion for 3D: The work extends the success of latent diffusion models from 2D image generation to the more complex domain of 3D content creation with NeRFs.
Key Results
- Speed: 3D-CLFusion achieves text-to-3D generation in under 30 seconds per object, which is over 100 times faster than methods like DreamFusion (which takes 1.5 hours).
- Quality: Qualitative results show that 3D-CLFusion generates semantically accurate and visually coherent 3D objects, comparable to or better than baseline methods like clip2latent.
- CLIP Score: The method achieves competitive CLIP scores, indicating good alignment between the generated 3D content and the input text prompts. For example, on StyleNeRF, it achieves a CLIP score of 0.337, close to optimization-based methods.
- Ablation Studies: Experiments show that using the
f_theta(learned mapping network) for contrastive learning is more stable than usingepsilon_theta(noise predictor). Both L2 and triplet losses are crucial for achieving good view-invariant latent codes.
Limitations and Future Work
- Domain Specificity: The generated 3D objects are limited to the categories covered by the pre-trained NeRF models (e.g., faces, cats, cars).
- Future Work: The authors suggest that their model would be broadly applicable in the real world if more pre-trained NeRFs covering a wider variety of 3D object categories become available. They also highlight the potential for further improvements by exploring more advanced diffusion models and NeRF architectures.
Summary updated