Abstract
Co-speech gesture synthesis often struggles to balance natural rhythmic motion with specific semantic meaning. While modern neural models excel at "beat gestures," they frequently fail to generate "semantic gestures" (iconic, deictic, or metaphoric) due to data sparsity. We present RAG-GESTURE, a Retrieval-Augmented Generation framework that injects semantically rich exemplar motions into a diffusion-based pipeline at inference time. By decoupling specification from animation and employing surgical integration techniques like DDIM inversion and retrieval guidance, RAG-GESTURE produces fluid, communicative gestures without additional training.
Introduction
Human communication relies heavily on gestures that convey specific meanings, yet current AI models primarily capture the prosodic "beat" of speech. The challenge lies in the rarity of semantic gestures in training datasets and the trade-off between the fluidity of neural models and the precision of rule-based systems. RAG-GESTURE addresses this by treating semantic gestures as "explicit knowledge" to be retrieved and integrated into a generative base.
Methods
The RAG-GESTURE framework operates in two primary stages: specification of the gesture and its subsequent animation.
Generative Base and Retrieval
The system utilizes a Latent Diffusion Model (LDM) with decoupled body regions (upper body, hands, face, lower body) encoded via VAEs. For specification, two strategies are employed:
- LLM-driven Retrieval: A Large Language Model identifies semantically rich words and predicts gesture types (e.g., "iconic" for the word "lives in").
- Discourse-based Retrieval: A parser identifies discourse connectives (e.g., "because" or "on the other hand") which serve as anchors for specific gestural patterns.
Surgical Integration
The core innovation lies in the inference-time integration of retrieved motions. Rather than simple concatenation, the system uses:
- Latent Initialization via DDIM Inversion: The retrieved motion is inverted into noise to serve as the diffusion starting point.
- Retrieval Guidance: A guidance objective nudges latent variables toward the exemplar's path during denoising, ensuring a natural blend.
Results and Discussion
Evaluated on the BEAT2 dataset (including the single-speaker "Scott" subset), RAG-GESTURE outperformed state-of-the-art models like EMAGE and CaMN in beat alignment and diversity. Qualitative user studies showed a strong preference for RAG-GESTURE, with higher ratings for semantic appropriateness and naturalness compared to purely data-driven models. Key insights include the effectiveness of discourse connectives as retrieval anchors and the flexibility of inference-time retrieval, which allows for library updates without retraining the entire model.
Conclusion
RAG-GESTURE demonstrates that retrieval-augmented generation can effectively bridge the gap between rhythmic fluidity and semantic intent in gesture synthesis. While dependent on the quality of the retrieval database and incurring higher computational costs due to iterative guidance, it provides a robust path forward for more human-like virtual agents. Future work will explore expanding the gesture library to include referential and emotion-specific styles.
Summary updated