QPGesture: Quantization-Based and Phase-Guided Motion Matching for Natural Speech-Driven Gesture Generation

Sicheng Yang, Zhiyong Wu, Minglei Li, Zhensong Zhang, Lei Hao, Weihong Bao, Haolin Zhuang

TL;DR

QPGesture is a novel framework that generates natural, human-like gestures from speech by combining vector quantization with phase-guided motion matching. By discretizing motion into a learned codebook and using phase manifolds to guide transitions, it effectively eliminates common issues like motion jitter and speech-gesture asynchrony.

What Problem Does This Paper Address?

Generating realistic co-speech gestures for digital avatars is notoriously difficult for two main reasons:

  1. Random Jittering: Human motion is full of tiny, unpredictable jitters. When neural networks try to map speech directly to high-dimensional continuous joint sequences, they often produce "noisy" or shaky movements.
  2. Inherent Asynchronicity: Unlike lip-syncing, where mouth shapes correspond directly to sounds, gestures have a complex, non-linear relationship with speech. A gesture might precede a word, follow it, or span an entire phrase, making simple temporal alignment ineffective.

Recent research has shown that traditional motion-matching (retrieval-based) methods often outperform pure end-to-end neural networks in human-likeness. QPGesture builds on this insight, aiming to create a system that is both semantically appropriate and physically natural.

Methods

The QPGesture framework consists of three main pillars:

  • Gesture Quantization (VQ-VAE): To solve the jitter problem, the authors use a Vector Quantized Variational Autoencoder (VQ-VAE). This compresses continuous motion into a discrete "codebook" of meaningful gesture units. By forcing the model to reconstruct motion from these discrete codes, the random jitters are effectively filtered out. Structure of gesture VQ-VAE
Figure 3. Structure of gesture VQ-VAE. After learning the dis- crete latent representation of human gesture, the gesture VQ-VAE encode and summarize meaningful gesture units, and reconstruct the target gesture sequence from quantized latent features.
  • Audio-Text Alignment via Levenshtein Distance: To handle asynchrony, the model quantizes the input audio (using vq-wav2vec). It then uses Levenshtein distance—a metric typically used to compare text sequences—to find the best matching gesture candidates in the database. This allows the system to align diverse gestures with speech even when the timing isn't a perfect 1:1 match.
  • Phase-Guided Selection: The system generates two candidates for every segment: one based on audio rhythm and one based on text semantics. To choose the best one, the authors introduce a Periodic Autoencoder (inspired by DeepPhase) that learns a "phase manifold" of the motion. Architecture of the Periodic Autoencoder Network Phase guidance ensures that the selected gesture transitions smoothly from the previous one, following the natural periodic "beat" of human movement. Gesture generation pipeline
Figure 4. Architecture of the Periodic Autoencoder Network. The convolutional network encoder learns a lower dimensional embedding of the gesture. Then differentiable real Fast Fourier Transform (FFT) and fully connected network is applied to get periodic parameters: amplitude (A), frequency (F), offset (B) and phase shift (S). The deconvolutional network decoder map all pe- riodic parameters back to the original motion curves to force the periodic parameters to reconstruct the original latent embedding.
Figure 2. Gesture generation pipeline of our proposed framework. ‘Quan.’ is short for ‘quantization’ and ‘Cand.’ is short for ‘candidate’. Given a piece of audio, text and seed pose, the audio and gesture are quantized. The candidate for the speech is calculated based on the Levenshtein distance, and the candidate for the text is calculated based on the cosine similarity. The optimal gesture is selected based on phase-guidance corresponding to the seed code and the phase corresponding to the two candidates.

Datasets

The authors trained and evaluated their model on the BEAT (Body Expressions Action and Teasing) dataset, currently the largest publicly available motion capture dataset for conversational gestures. They specifically utilized 4 hours of high-quality data from two speakers ("wayne" and "kieks") to build their speech-gesture database.

Key Insights and Ideas

  • Quantization as a Denoising Bottleneck: One of the most effective "aha moments" is using VQ-VAE not just for compression, but as a way to "clean" human motion. By restricting the output to a codebook of learned, valid gesture units, the model cannot physically produce the high-frequency jitter that plagues other methods.
  • Phase as the "Glue": Instead of just weighting audio and text features, using a phase manifold allows the model to prioritize physical continuity. It ensures that if the model switches from a rhythmic "beat" gesture to a semantic "pointing" gesture, the transition looks natural rather than robotic. Phase manifold visualization
  • Retrieval vs. Generation: The paper reinforces a growing trend in character animation: for high-fidelity results, intelligent retrieval (motion matching) often beats direct regression, provided you have a sophisticated way to search and blend the results.
Phase manifold visualization

Key Results

QPGesture significantly outperformed several state-of-the-art baselines (including Trimodal, StyleGestures, and CaMN) across both objective and subjective metrics:

  • Objective Metrics: The model achieved a Fréchet Gesture Distance (FGD) of 19.921 on feature space, a massive improvement over the best baseline, StyleGestures (35.842). Lower FGD indicates the generated gestures are much closer to the distribution of real human motion.
  • Subjective User Study: In human-likeness evaluations, QPGesture received a Mean Opinion Score (MOS) of 4.00, actually surpassing the Ground Truth (3.79). This is likely because the quantization process removed natural but "messy" jitters, resulting in a cleaner, more idealized animation that users preferred. Gesture examples generated by QPGesture
Figure 1. Gesture examples generated by our proposed method on various types of speech. The character is from Mixamo [2].

Limitations and Future Work

  • Hand and Finger Motion: The authors currently ignore hand and finger movements due to the low quality of finger tracking in existing datasets. They plan to address this in future work as better datasets become available.
  • Additional Modalities: While the current model uses audio and text, the authors suggest that incorporating emotions and facial expressions could lead to even more nuanced and appropriate gesture generation.
  • Semantic "Power": User feedback suggested that while the gestures are natural, they can sometimes "lack power" or feel slightly exaggerated compared to real human performance in specific contexts.

Summary updated

BibTeX
@misc{yang2023qpgesture,
  author = {Sicheng Yang and Zhiyong Wu and Minglei Li and Zhensong Zhang and Lei Hao and Weihong Bao and Haolin Zhuang},
  title = {{QPGesture: Quantization-Based and Phase-Guided Motion Matching for Natural Speech-Driven Gesture Generation}},
  year = {2023},
  eprint = {2305.11094},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.11094},
}
Figure