ReMoMask: Retrieval-Augmented Masked Motion Generation

Zhengdao Li, Siheng Wang, Zeyu Zhang, Hao Tang · DOI

Abstract

Text-to-Motion (T2M) generation aims to synthesize realistic and semantically aligned human motion sequences from natural language descriptions. However, current approaches face dual challenges: Generative models (e.g., diffusion models) suffer from limited diversity, error accumulation, and physical implausibility, while Retrieval-Augmented Generation (RAG) methods exhibit diffusion inertia, partial-mode collapse, and asynchronous artifacts. To address these limitations, we propose ReMoMask, a unified framework integrating three key innovations: 1) A Bidirectional Momentum Text-Motion Model decouples negative sample scale from batch size via momentum queues, substantially improving cross-modal retrieval precision; 2) A Semantic Spatio-temporal Attention mechanism enforces biomechanical constraints during part-level fusion to eliminate asynchronous artifacts; 3) RAG-Classier-Free Guidance incorporates minor unconditional generation to enhance generalization. Built upon MoMask's RVQ-VAE, ReMoMask efficiently generates temporally coherent motions in minimal steps. Extensive experiments on standard benchmarks demonstrate the state-of-the-art performance of ReMoMask, achieving a 3.88% and 10.97% improvement in FID scores on HumanML3D and KIT-ML, respectively, compared to the previous SOTA method RAG-T2M.

Introduction

Generating 3D human motion from text descriptions is a pivotal task for industries ranging from gaming to virtual reality. While pure generative models like diffusion-based or masked transformer architectures have shown promise, they often struggle with maintaining physical plausibility and diversity over long sequences. Retrieval-Augmented Generation (RAG) has emerged as a powerful alternative, leveraging external databases to provide high-quality motion priors. However, existing RAG-T2M frameworks often fail to maintain spatial coherence between body parts—leading to "asynchronous artifacts"—and are limited by small negative sample pools during retriever training.

Methodology

ReMoMask addresses these shortcomings through three primary technical contributions:

Bidirectional Momentum Text-Motion Modeling (BMM)

To improve retrieval accuracy, ReMoMask employs a BMM retriever. Unlike standard contrastive learning constrained by mini-batch sizes, BMM utilizes dual momentum encoders and large-scale memory queues. This architecture allows the model to contrast positive pairs against tens of thousands of negative samples (e.g., 65,536), significantly boosting retrieval precision.

Semantic Spatial-Temporal Attention (SSTA)

Traditional models often flatten motion into 1D sequences, discarding critical spatial relationships between joints. ReMoMask utilizes a 2D RVQ-VAE to represent motion as a 2D token map (Frames x Joints). The SSTA module then performs fusion by redefining the Query, Key, and Value matrices within the transformer block to integrate prompt embeddings, retrieved text, and retrieved motion features while respecting biomechanical constraints.

Overview of the ReMoMask framework, highlighting the BMM retriever and SSTA mechanism.

RAG Classifier-Free Guidance

To prevent the model from over-relying on retrieved examples and to improve generalization to novel prompts, we introduce RAG-CFG. By randomly dropping retrieval conditions during 10% of the training steps, the model learns to balance retrieved knowledge with its internal generative capabilities.

Experimental Results

We evaluated ReMoMask on the HumanML3D and KIT-ML datasets. ReMoMask achieves state-of-the-art performance across all major metrics.

Quantitative Performance

On the HumanML3D benchmark, ReMoMask achieved an FID of 0.099, outperforming previous RAG-based methods like ReMoDiffuse and MoRAG-Diffuse. Notably, its R-Precision (Top-1: 0.531) even surpassed the ground-truth real motions (0.511), indicating exceptional semantic alignment.

Performance comparison on the HumanML3D dataset showing ReMoMask's state-of-the-art results.

Human Evaluation

In forced-choice user studies, ReMoMask was preferred over ReMoDiffuse in 75% of cases for realism and 86% for text-motion correspondence. It also demonstrated a competitive 42% preference rate against actual human motion sequences.

Conclusion and Future Work

ReMoMask sets a new standard for retrieval-augmented text-to-motion generation by effectively scaling negative samples and preserving spatial-temporal structure. Future work will address the computational overhead of the 238M parameter model and explore methods to improve coherence for complex, long-duration motions like dance.

Summary updated

BibTeX
@misc{li2025remomask,
  author = {Zhengdao Li and Siheng Wang and Zeyu Zhang and Hao Tang},
  title = {{ReMoMask: Retrieval-Augmented Masked Motion Generation}},
  year = {2025},
  eprint = {2508.02605},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.02605},
}
Figure