NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Controllable 3D Face Generation with Conditional Style Code Diffusion

Xiaolong Shen, Jianxin Ma, Chang Zhou, Zongxin Yang

Abstract

Generating 3D faces that are both photorealistic and controllable remains a significant challenge in computer vision. We present TEx-Face (TExt & Expression-to-Face), a framework that generates high-fidelity 3D faces by performing diffusion within the latent space of a pre-trained 3D Generative Adversarial Network (GAN). By decoupling facial appearance, controlled via text prompts, from facial expression, controlled by 3D Morphable Model (3DMM) parameters, TEx-Face achieves photorealistic results with significantly higher efficiency than traditional optimization-based 3D generation methods.

Introduction

The quest for photorealistic and controllable 3D face generation typically involves a trade-off between realism and efficiency. Optimization-based methods, such as DreamFusion, produce high-quality results but require time-consuming per-prompt optimization. Conversely, parametric models like 3DMM offer explicit control over expressions but often fail to capture fine details like hair and skin texture, leading to the "uncanny valley" effect.

TEx-Face bridges this gap by leveraging the power of 3D GANs for realism and diffusion models for controllable generation. The system is designed to be efficient (feed-forward), realistic (leveraging the EG3D generator), and highly controllable, supporting both text prompts for appearance and expression codes for emotion.

Methodology

The TEx-Face framework consists of three primary modules: 3D GAN Inversion, Conditional Style Code Diffusion, and 3D Face Decoding.

The TEx-Face pipeline: (1) 3D GAN Inversion, (2) Style Code Diffusion, and (3) 3D Face Decoding.

3D GAN Inversion (Re-PoI)

To train a diffusion model on style codes, a high-quality dataset of latent codes is required. Standard 2D GAN inversion often overfits to specific camera views, leading to 3D inconsistencies. TEx-Face introduces Refined Pose-guided Inversion (Re-PoI), which utilizes a pre-training phase on synthetic multi-view data to learn view-invariant style codes, ensuring identity consistency across all angles.

Conditional Style Code Diffusion (SCD)

Instead of diffusing pixels, the model operates in the $w^+$ latent space of the EG3D generator. The Style Code Denoiser (SCD) is conditioned on three inputs:

  • Text: Encoded via CLIP to define appearance (e.g., "blonde hair").
  • Expression: Encoded via EMOCA to define facial geometry and emotion.
  • Time step: Standard for diffusion processes.

A key innovation is the decoupled cross-attention mechanism, which processes text and expression through separate layers to prevent interference between appearance and expression signals.

3D Face Decoding

The final denoised style code is processed by a pre-trained EG3D generator, producing a 3D-consistent face. To address the lack of paired text-3D face data, the authors developed a data augmentation strategy using HairCLIP and image captioning models to generate a diverse training set.

Key Insights and Results

The research demonstrates that diffusing the style codes of a powerful 3D GAN is sufficient to capture complex 3D geometry and texture, avoiding the need for complex 3D structures like voxels. Furthermore, forcing the model to project multiple views onto a single "canonical" code during inversion effectively solves the 3D inconsistency problem common in prior work.

Example of generated 3D face with controlled expression and appearance.

Performance Metrics

  • Efficiency: TEx-Face generates samples in approximately 5.2 seconds, compared to ~120 seconds for optimization-based methods like PTI.
  • Quality: The model achieved an FID of 52.91 for conditional generation, significantly outperforming 2D baselines such as TediGAN (157.81) and CD (111.36).
  • Accuracy: User studies indicated a text-to-face matching accuracy of 79.3% and an expression matching accuracy of 60.0%.
  • 3D Consistency: Quantitative metrics on the MEAD dataset showed that Re-PoI maintains much higher identity consistency across different camera angles compared to previous state-of-the-art techniques.

Discussion and Limitations

While TEx-Face represents a significant step forward, its output quality is inherently capped by the underlying EG3D generator. Additionally, the model exhibits some expression bias due to training data imbalances, particularly favoring "happy" expressions over rarer emotions like "disgust" or "anger." Future work will focus on more robust data augmentation and integrating advanced face detection to improve expression variety and accuracy.

Summary updated

BibTeX
@inproceedings{shen2024controllable,
  author = {Xiaolong Shen and Jianxin Ma and Chang Zhou and Zongxin Yang},
  title = {{Controllable 3D Face Generation with Conditional Style Code Diffusion}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i5.28283},
}
Figure