Abstract
Generating realistic 3D facial animations from raw audio is a complex "one-to-many" problem requiring both precise lip-sync and long-term temporal stability. We introduce FaceFormer, a Transformer-based model that leverages self-supervised pre-trained speech representations (wav2vec 2.0) and a specialized biased attention mechanism. Our approach incorporates Periodic Positional Encoding (PPE) to handle long-duration sequences and a temporal bias to ensure motion smoothness. FaceFormer achieves state-of-the-art results on standard benchmarks and demonstrates superior generalization to diverse languages and extended audio clips.
Introduction
The task of speech-driven 3D facial animation involves mapping an audio signal to a sequence of 3D facial meshes. This is inherently difficult because a single phoneme can be expressed with varying facial dynamics. Traditional methods often rely on short-term audio windows, leading to jittery motions and a lack of global context. Furthermore, the scarcity of high-quality 3D audio-visual data limits the effectiveness of training deep models from scratch.
FaceFormer addresses these issues by capturing long-term dependencies in speech and utilizing pre-trained models to overcome data limitations.
The FaceFormer Architecture
FaceFormer utilizes an encoder-decoder Transformer structure tailored for the nuances of facial motion. It integrates several key components to ensure stability and synchronization.
Self-Supervised Speech Encoding
To mitigate the lack of large-scale 3D datasets, FaceFormer employs wav2vec 2.0 as its speech encoder. Pre-trained on vast amounts of unlabeled audio, this encoder provides robust phonetic representations that generalize well across different speakers and languages, allowing the model to understand speech structures even with limited 3D training data.
Biased Causal Self-Attention
Standard self-attention can lead to temporal instability in generated sequences. FaceFormer introduces a temporal bias (inspired by ALiBi) to the decoder's self-attention. This bias encourages the model to prioritize recent facial states, resulting in smoother transitions and more stable animations over time.
Periodic Positional Encoding (PPE)
Standard positional encodings often fail when testing on sequences longer than those seen during training. FaceFormer introduces PPE, which injects temporal information in a repeating cycle. This allows the model to maintain performance on long-form audio (e.g., 20 seconds) even when trained on much shorter clips (e.g., 4 seconds).
Biased Cross-Modal Attention
This component aligns audio features from the encoder with motion features in the decoder. By incorporating an alignment bias, the model ensures that mouth movements are precisely synchronized with the corresponding acoustic events, significantly improving the accuracy of bilabial phonemes like /p/, /b/, and /m/.
Experimental Results
The model was evaluated on the BIWI and VOCASET datasets using the Lip Vertex Error (LVE) metric and perceptual user studies.
- Quantitative Performance: FaceFormer achieved an LVE of 5.3742 on BIWI, significantly outperforming previous state-of-the-art models like MeshTalk (6.7436) and VOCA (7.6427).
- Human Evaluation: In perceptual studies on Amazon Mechanical Turk, users preferred FaceFormer's animations over competing methods more than 80% of the time, citing better realism and lip-sync accuracy.
- Generalization: The model successfully animates audio in multiple languages and handles sequences up to five times longer than the training data without degradation.
Conclusion and Future Work
FaceFormer demonstrates the power of combining self-supervised speech representations with specialized Transformer architectures for 3D animation. While it sets a new standard for lip-sync and temporal stability, future work could focus on reducing the quadratic computational complexity of the Transformer for real-time deployment and improving the variety of upper-face expressions, which remain constrained by the one-to-many nature of the problem.
Summary updated