ACT2G: Attention-based Contrastive Learning for Text-to-Gesture Generation

Hitoshi Teshima, Naoki Wake, Diego Thomas, Yuta Nakashima, Hiroshi Kawasaki, Katsushi Ikeuchi

Abstract

Generating realistic human gestures from text remains a significant challenge in computer animation, primarily due to the dominance of rhythmic "beat" gestures over semantically meaningful "representational" gestures. This paper presents ACT2G (Attention-based Contrastive Learning for Text-to-Gesture), a framework designed to bridge the gap between linguistic meaning and physical motion. By mapping text and gestures into a shared multimodal latent space via contrastive learning, ACT2G enables the generation of content-aware gestures that reflect the specific semantics of spoken language. Our results demonstrate that ACT2G significantly outperforms existing state-of-the-art models in both appropriateness and human-likeness.

Introduction

When humans communicate, our physical movements are rarely random. While a large portion of gesturing is rhythmic—aligning with the prosody of speech (beat gestures)—a crucial subset is representational, used to describe shapes, point to objects, or emphasize specific concepts. Current AI models often struggle with these representational gestures because they are heavily biased toward audio-driven beat gestures, which comprise over 70% of natural human movement and are easier to correlate with sound waves. Consequently, many avatars appear robotic or "empty," lacking the semantic depth required for natural interaction.

Furthermore, direct generation of raw pose sequences often results in "jerky" or unnaturally slow movements. ACT2G addresses these issues by focusing on the semantic relationship between text and motion, utilizing a retrieval-based approach within a learned multimodal space to ensure smooth, human-like animation.

Methodology

The ACT2G pipeline consists of three primary components designed to handle the "one-to-many" mapping problem, where a single sentence might validly correspond to multiple different gestures.

1. Gesture Clustering (Gesture-VAE)

To manage high-dimensional motion data, the system employs a Variational Autoencoder (VAE) to compress gesture key-poses into a 32-dimensional latent space. These compressed representations are then clustered into 40 distinct gesture types using K-Means. This discretization allows the model to treat gesture generation as a selection problem from a refined library of human movements.

2. Attention-based Text Encoder

The model utilizes a pre-trained BERT architecture to generate word embeddings. To identify which words are most likely to trigger a representational gesture, an attention mechanism is integrated into the encoder. For example, in the phrase "I will put your phone into your bag," the attention mechanism identifies "into" as a high-weight semantic trigger for a specific motion.

3. Contrastive Multimodal Learning

The core of the framework is a contrastive loss function that aligns text features and gesture features within a shared latent space. During training, the model learns to minimize the distance between a text snippet and its corresponding gesture cluster while maximizing the distance between unrelated pairs.

At the inference stage, the model calculates a text feature from the input, identifies the nearest neighborhood in the multimodal space, and samples a gesture from the library. This ensures that the resulting motion is both semantically relevant and physically fluid.

Experimental Setup and Datasets

ACT2G was trained and evaluated using several key datasets:

  • TED Gesture-Type Dataset: The primary training source, containing approximately 13,700 gestures. The authors specifically isolated 4,097 gestures labeled as "representational" to prevent the model from being diluted by generic beat gestures.
  • Expanded Annotations: The researchers manually annotated 1,000 gestures with ground-truth "attention" labels to train the semantic trigger mechanism. This dataset has been made public to support further research.
  • Trinity Speech-Gesture Dataset: This motion-capture dataset was used to test the model's ability to generalize from noisy, video-extracted 2D/3D poses to high-fidelity MoCap data.

Results and Discussion

Subjective evaluations conducted via Amazon Mechanical Turk showed that ACT2G significantly outperformed state-of-the-art models, including HA2G and Trimodal, in categories of "Appropriateness" (semantic fit) and "Human-likeness."

Key Insights

  • The "Jerk" Correlation: Interestingly, user preference scores correlated positively with "Jerk" (the rate of change of acceleration). This suggests that human observers prefer gestures with clear, decisive movements over the overly smooth or "floaty" motions often produced by generative models.
  • User-in-the-Loop Control: Because the model relies on explicit attention weights, creators can manually adjust the emphasis. By increasing the attention weight on a specific word, a designer can force the avatar to perform a more pronounced gesture for that part of the dialogue.
  • Ablation Studies: Removing the contrastive learning component resulted in a significant drop in the model's ability to select appropriate gestures, confirming that the multimodal alignment is essential for semantic accuracy.

Conclusion and Future Work

ACT2G represents a significant step forward in creating expressive digital humans by prioritizing the semantic link between language and motion. However, several limitations remain. The current model does not include finger tracking, limiting its ability to perform complex hand signals or sign language. Additionally, the model is currently optimized for short sequences and is trained exclusively on English-language data. Future research will focus on long-form coherence and expanding the framework to account for the diverse gesturing styles found across different cultures and languages.

Summary updated

BibTeX
@article{teshima2023act,
  author = {Hitoshi Teshima and Naoki Wake and Diego Thomas and Yuta Nakashima and Hiroshi Kawasaki and Katsushi Ikeuchi},
  title = {{ACT2G: Attention-based Contrastive Learning for Text-to-Gesture Generation}},
  journal = {Proc. ACM Comput. Graph. Interact. Tech.},
  year = {2023},
  doi = {10.1145/3606940},
}
Figure