FaceCLIPNeRF: Text-driven 3D Face Manipulation using Deformable Neural Radiance Fields

Sungwon Hwang, Junha Hyung, Daejin Kim, Min-Jung Kim, Jaegul Choo

TL;DR

FaceCLIPNeRF is the first framework to enable text-driven 3D facial manipulation using deformable Neural Radiance Fields (NeRF). By introducing a Position-conditional Anchor Compositor (PAC), the system can combine localized facial expressions observed at different times—like a smile from one frame and a wink from another—allowing users to edit 3D avatars with simple natural language prompts.

What Problem Does This Paper Address?

While NeRFs have revolutionized high-fidelity 3D reconstruction from 2D videos, editing them remains a significant challenge. Current methods for manipulating 3D faces usually fall into two camps: they either require tedious manual labor (like drawing semantic masks for every frame) or they need massive datasets (thousands of frames) to learn a controllable model.

Furthermore, standard deformable NeRFs suffer from what the authors call the "linked local attribute problem." In these models, a single global latent code typically controls the entire face's deformation. This means if your training data only shows a person either "smiling with eyes open" or "neutral with eyes closed," the model struggles to generate a "smiling face with eyes closed" because those specific local attributes are inextricably linked in the latent space.

Methods

FaceCLIPNeRF tackles these issues through a three-stage pipeline:

  1. Scene Manipulator with Lipschitz Regularization: The authors build upon HyperNeRF to create a "scene manipulator" that separates rigid head poses from non-rigid facial expressions. To ensure that interpolating between different expressions looks natural and doesn't produce "ghosting" artifacts, they apply Lipschitz regularization to the underlying MLP. This forces the network to be smoother, ensuring that small changes in the latent code result in visually plausible deformations.
  2. Position-conditional Anchor Compositor (PAC): This is the core innovation. Instead of one global latent code, PAC assigns a unique composition of "anchor codes" to every 3D point. The system first identifies a few representative "anchor" expressions from the training video (e.g., mouth open, eyes closed). For any given point on the face, an MLP predicts a weight for each anchor.
  3. CLIP-Driven Optimization: To perform an edit, the user provides a text prompt (e.g., "crying face"). The system then optimizes the PAC weights so that the resulting 3D rendering has a high cosine similarity to the text prompt in the CLIP embedding space.
The network architecture showing the Scene Manipulator and the PAC module.

Datasets

The researchers collected a custom dataset of portrait videos from six volunteers using an iPhone 13. Unlike previous methods requiring thousands of frames, FaceCLIPNeRF only requires approximately 300 training frames per subject, covering just a few basic facial movements. They also utilized AffectNet, a large-scale facial expression dataset, to pre-train the evaluation metrics for text-attribute reflectivity.

Key Insights and Ideas

  • Spatial Latent Codes are Key: The shift from a global latent code to spatially varying codes (via PAC) is what allows the model to break the "linked local attribute problem." It enables the independent control of different face parts.
  • Barycentric Interpolation as a Safety Rail: By restricting the generated latent codes to be a barycentric combination of observed "anchor" expressions, the model stays within a "safe" region of the latent space. This prevents the model from generating nightmarish, non-human deformations when trying to match a text prompt.
  • Text as a Universal Interface: By leveraging CLIP, the model bypasses the need for specialized facial action unit (AU) labels or manual masks, making 3D editing accessible to non-experts.
Illustration of the linked local attribute problem and how PAC resolves it.

Key Results

FaceCLIPNeRF significantly outperforms existing baselines like NeRF+FT and Nerfies in both quantitative and qualitative measures:

  • Text Reflectivity: It achieved an R-Precision of 0.780, a notable improvement over HyperNeRF-based inversion.
  • Visual Quality: It maintained much higher identity preservation (measured by Cosine Face Similarity) and lower perceptual error (LPIPS) compared to fine-tuning methods, which often "melt" the face geometry to satisfy the CLIP loss.
  • User Preference: In user studies, FaceCLIPNeRF was consistently rated higher for realism and how well the 3D model reflected the requested emotion.
Figure 1: FaceCLIPNeRF reconstructs a video of a dynamic scene of a face, and conducts face manipulation using texts only. Manipulated faces and their depths in top and bottom rows in (b), respectively, are rendered from novel views.

Limitations and Future Work

The primary limitation is that the model can only manipulate attributes that were at least partially observed during the short training video. For example, if a subject never opens their mouth during the 300-frame clip, the model cannot accurately render teeth for an "opened mouth" prompt.

Future work could involve incorporating generative priors (like StyleGAN-style features) to help the model "hallucinate" missing details or extending the framework to handle full-body movements and more complex background interactions.

Summary updated

BibTeX
@misc{hwang2023faceclipnerf,
  author = {Sungwon Hwang and Junha Hyung and Daejin Kim and Min-Jung Kim and Jaegul Choo},
  title = {{FaceCLIPNeRF: Text-driven 3D Face Manipulation using Deformable Neural Radiance Fields}},
  year = {2023},
  eprint = {2307.11418},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.11418},
}
Figure