[Paper Review] FaceFormer: Speech-Driven 3D Facial Animation with Transformers
FaceFormer proposes a transformer-based autoregressive model for speech-driven 3D facial animation that leverages long-term audio context and self-supervised speech representations to generate realistic, temporally coherent 3D face meshes with accurate lip synchronization. It introduces biased cross-attention and a periodic positional encoding strategy, outperforming state-of-the-art methods in perceptual studies and generalization to longer audio sequences.
Speech-driven 3D facial animation is challenging due to the complex geometry of human faces and the limited availability of 3D audio-visual data. Prior works typically focus on learning phoneme-level features of short audio windows with limited context, occasionally resulting in inaccurate lip movements. To tackle this limitation, we propose a Transformer-based autoregressive model, FaceFormer, which encodes the long-term audio context and autoregressively predicts a sequence of animated 3D face meshes. To cope with the data scarcity issue, we integrate the self-supervised pre-trained speech representations. Also, we devise two biased attention mechanisms well suited to this specific task, including the biased cross-modal multi-head (MH) attention and the biased causal MH self-attention with a periodic positional encoding strategy. The former effectively aligns the audio-motion modalities, whereas the latter offers abilities to generalize to longer audio sequences. Extensive experiments and a perceptual user study show that our approach outperforms the existing state-of-the-arts. The code will be made available.
Motivation & Objective
- To address the challenge of generating realistic, temporally stable 3D facial animations from speech, especially for long audio sequences.
- To overcome data scarcity in 3D audio-visual datasets by leveraging self-supervised pre-trained speech representations like wav2vec 2.0.
- To improve lip synchronization and facial expression realism by modeling long-range audio context and motion history.
- To enhance modality alignment between speech and facial motion using a novel alignment bias in cross-attention.
- To enable generalization to longer audio sequences beyond training length using a periodic positional encoding strategy.
Proposed method
- The model uses a transformer encoder that processes raw audio with self-supervised wav2vec 2.0 representations to capture long-range audio context.
- An autoregressive decoder predicts 3D face meshes frame-by-frame, using causal self-attention to model motion history for temporal stability.
- A biased cross-modal multi-head attention mechanism is introduced to align audio and motion modalities by injecting alignment bias into the query-key scoring.
- A periodic positional encoding (PPE) strategy is applied to the decoder's self-attention, combining a temporal bias with sinusoidal embeddings to improve generalization to longer sequences.
- The model is trained end-to-end on 3D facial motion sequences conditioned on raw audio, using a sequence of 3D mesh vertices as output.
- The architecture avoids RNN-based recurrence, relying solely on self-attention to model both long-range dependencies and local dynamics.
Experimental results
Research questions
- RQ1Can a transformer-based architecture effectively model long-term audio context for realistic 3D facial animation with accurate lip synchronization?
- RQ2How can self-supervised speech representations improve performance in low-data regimes for 3D facial animation?
- RQ3What role does modality alignment play in cross-attention between speech and facial motion, and how can it be enhanced with bias mechanisms?
- RQ4Can a modified positional encoding strategy improve generalization to longer audio sequences than seen during training?
- RQ5How does autoregressive prediction with self-attention compare to recurrent models in terms of motion coherence and lip sync accuracy?
Key findings
- FaceFormer outperforms state-of-the-art methods in perceptual user studies, with 57.78% of participants rating its facial animations as more realistic than baseline models.
- The model achieves significantly better lip synchronization, with 62.22% of users perceiving its lip motions as more in sync with audio than the baseline using original sinusoidal positional encoding.
- Removing the alignment bias in cross-attention leads to muted, unnatural facial expressions, confirming its necessity for modality alignment.
- The periodic positional encoding (TB+PPE) strategy enables better generalization to longer audio sequences, reducing temporal jitter and static freezing issues seen in models using ALiBi or standard sinusoidal encoding.
- The autoregressive decoder with self-attention produces more temporally coherent and stable lip motions than an FC decoder or LSTM-based alternatives.
- On the AMT benchmark with 20-second audio clips (over four times the average training length), FaceFormer maintains high-quality animation, while models with standard positional encoding exhibit instability during silent frames.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.