Efficient Text-Guided 3D-Aware Portrait Generation with Score Distillation Sampling on Distribution

Yiji Cheng, Fei Yin, Xiaoke Huang, Xintong Yu, Jiaxiang Liu, Shikun Feng, Yujiu Yang, Yansong TangarXiv 2023 · DOI

TL;DR

DreamPortrait tackles the computationally expensive problem of generating 3D portraits from text by proposing a novel "distribution-based" Score Distillation Sampling (D-SDS) method. This approach allows for single-forward pass generation, significantly speeding up the process while maintaining high-fidelity and multi-view semantic consistency, overcoming limitations of previous optimization-heavy methods.

What Problem Does This Paper Address?

Creating 3D content from text descriptions (text-to-3D) is a rapidly advancing field, particularly for generating realistic human portraits. Existing methods often rely on powerful pre-trained 2D diffusion models to guide the optimization of a 3D representation. However, a major bottleneck is that these methods treat each text prompt as a single data point, requiring a time-consuming optimization process from scratch for every new request. This makes them computationally expensive and impractical for real-time applications. Furthermore, directly applying diffusion model guidance to 3D can lead to issues like "mode collapse," where the generated 3D content loses diversity and becomes repetitive, or "Janus problems," where faces appear with multiple profiles.

Methods

DreamPortrait introduces several key innovations to address these challenges:

  • Distribution-based Score Distillation Sampling (D-SDS): Instead of optimizing a single 3D representation for each prompt, DreamPortrait extends Score Distillation Sampling (SDS) to work with a distribution of 3D representations. This distribution is learned by a pre-trained 3D Generative Adversarial Network (GAN), such as EG3D. By aligning this distribution with text prompts, the model can generate 3D portraits in a single forward pass, amortizing the optimization cost.
  • Hierarchical Latent Condition: To inject text information effectively and maintain diversity, DreamPortrait uses a hierarchical approach. It combines global text embeddings (capturing overall sentence meaning) with local word embeddings (capturing detailed semantic nuances). This is achieved through a "semantics mapping network" and "local adapters" integrated into the 3D GAN's architecture.
  • 3D-Aware Gated Cross-Attention Adapter: To ensure that the text truly influences the 3D structure and maintains multi-view consistency, a specialized cross-attention mechanism is employed. This adapter explicitly considers the 3D spatial relationships of features across different planes (tri-planes) and uses a gating mechanism to stabilize training and balance long-range textual context with local geometric features.
  • GAN Loss Regularization: To prevent the mode collapse issue inherent in directly optimizing a distribution, a standard GAN loss is used as a regularizer. This helps maintain the original diversity of the 3D GAN's distribution while still allowing it to align with the text prompts.

Datasets

The paper uses two publicly available datasets for training and evaluation:

  • CelebAText-HQ: A dataset of celebrity faces with associated text descriptions.
  • FFHQ-Text: Another dataset of human faces with text annotations.

The authors note that FFHQ-Text's annotations differ significantly from CelebAText-HQ, allowing them to test the generalizability of their model.

Key Insights and Ideas

  • Shifting from Datapoint to Distribution: The core insight is that optimizing a distribution rather than a single point can unlock significant efficiency gains for text-to-3D generation. This moves away from the "one-shot optimization" paradigm.
  • Hierarchical Text Injection is Crucial for Diversity: Simply injecting global text information can lead to a fixed identity. Combining global and local text features through a hierarchical approach is key to generating diverse portraits that still accurately reflect the prompt.
  • 3D-Awareness in Attention is Not Trivial: Standard cross-attention might not effectively leverage the inherent 3D structure. The proposed 3D-aware cross-attention, which explicitly considers tri-plane relationships, is vital for robust multi-view semantic consistency.
  • GAN Regularization as a Safety Net: While diffusion models provide powerful semantic priors, their direct application to distribution optimization can be unstable. The GAN loss acts as a crucial regularization to prevent mode collapse and maintain the generator's inherent diversity.

Key Results

  • Speed: DreamPortrait achieves a generation speed of approximately 15 FPS on a V100 GPU, a significant improvement over optimization-based methods that can take 20 minutes or more per prompt.
  • Efficiency: It uses considerably less memory (around 4.5 GB) compared to optimization-based methods (10 GB).
  • Quality: The model achieves competitive FID (Fréchet Inception Distance) scores, indicating high image quality.
  • Semantic Consistency: It demonstrates strong performance in Multi-view Semantic Consistency (MSC) and CLIP R-Precision (R-P), outperforming baselines and maintaining semantic alignment across different views. For example, on CelebAText-HQ, it achieves an MSC of 20.72 and R-P of 66.31.
  • Qualitative Improvements: Experiments show that DreamPortrait avoids the "Janus problem" and generates more diverse and semantically consistent portraits compared to previous methods, especially when compared to optimization-based approaches.

Limitations and Future Work

  • Avatar Focus: The current model is specifically designed for generating human avatars and cannot handle general 3D scenes or objects.
  • Future Work: The authors suggest developing models with enhanced modeling capabilities for broader applications beyond avatars. They also envision models that can more freely align with semantics, allowing for more complex scene generation.
  • Social Impact: The paper acknowledges the potential for misuse of text-guided portrait generation for creating fake images or manipulating content, and strictly forbids such applications.

Summary updated

BibTeX
@misc{cheng2023efficient,
  author = {Yiji Cheng and Fei Yin and Xiaoke Huang and Xintong Yu and Jiaxiang Liu and Shikun Feng and Yujiu Yang and Yansong Tang},
  title = {{Efficient Text-Guided 3D-Aware Portrait Generation with Score Distillation Sampling on Distribution}},
  year = {2023},
  eprint = {2306.02083},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.02083},
}
Figure