Manuscript Offprint
arXiv:2609.08365ReMoMask-2: Latent Retrieval-Augmented Masked Motion Generation
Yiran Wang*, Zeyu Zhang*†, Ling Shao, Fellow, IEEE, Hao Tang‡
Abstract—Text-to-motion (T2M) generation maps a natural language description to a sequence of human joint movements, offering an intuitive interface for producing human motion in gaming, film production, virtual reality, and robotics. Retrieval-Augmented Text-to-Motion (RAG-T2M) models improve over conventional T2M approaches, particularly on uncommon and complex textual descriptions, by conditioning generation on motion-text pairs retrieved from an external database. However, existing RAG-T2M models remain limited by two challenges. First, retrieval and fusion are structurally inconsistent with motion topology: coarse-grained text-motion retrieval overlooks the hierarchical, part-level structure of human motion, and retrieved evidence is fused by mechanisms that ignore the spatial-temporal structure of the motion latent. Second, retrieved evidence typically resides in a contrastive semantic space learned separately from the latents the generator manipulates, leaving a representation gap between what is retrieved and what is generated. To address the first challenge, we present ReMoMask, a structure-aware RAG framework that couples Hierarchical Bidirectional Momentum (HBM) contrastive learning, which employs dual objectives to jointly align global motion semantics and fine-grained part-level features with text; Semantic Spatial-Temporal Attention (SSTA), a topology-aware fusion module that integrates retrieved knowledge via an asymmetric attention mechanism; and Topology Structured Masking (TSM), a training strategy that adaptively masks motion tokens based on semantic relevance, forcing the model to learn robust part-level grounding. To address the second challenge, we further present ReMoMask-2, which rebuilds the retrieval database directly within the generator's own pre-quantization latent space and aligns text queries to it via a lightweight projector distilled from the retriever, so that the generator consumes the semantic content of the retrieved motion rather than merely registering its presence. Extensive experiments on HumanML3D, KIT-ML, and SnapMoGen demonstrate that our retriever achieves state-of-the-art text-to-motion retrieval, and that ReMoMask-2 attains state-of-the-art generation fidelity among retrieval-augmented approaches and the lowest FID among all compared methods on KIT-ML and SnapMoGen, while its single mask-transformer stage, without any residual-refinement network, surpasses the full two-stage pipeline of ReMoMask and delivers the fastest inference among compared systems. Code: https://github.com/AIGeeksGroup/ReMoMask-2. Website: https://aigeeksgroup.github.io/ReMoMask-2.
Index Terms—Text-to-Motion Generation, Retrieval-Augmented Generation, Masked Motion Modeling, Contrastive Learning
1 INTRODUCTION
Human motion generation has attracted increasing attention due to its wide applicability in gaming, film production [1], virtual reality, and robotics. By synthesizing realistic and diverse human motions, these methods aim to significantly reduce the cost of manual animation while improving the efficiency and flexibility of content creation. Among various paradigms, text-to-motion (T2M) generation has emerged as a particularly intuitive setting, where a natural language description is directly mapped to a sequence of human joint movements.
Existing T2M methods can be broadly categorized into two lines of research. The first line consists of conventional T2M models, which focus on strengthening the generative backbone itself. Representative approaches include generative adversarial networks (GANs) [2], [3], [4], [5], [6], variational autoencoders (VAEs) [7], diffusion models [8], visual-language models [9], [10], motion language models [11], and masked generative models [12], [13], [14], [15]. In particular, masked generative models such as MMM [12] and Mo-

Fig. 1: ReMoMask vs ReMoMask-2. (a) ReMoMask retrieves motion clips from a database outside the generator, so every reference crosses the boundary between the two regions. (b) ReMoMask-2 rebuilds the database from the generator's own latents, so store, references and mask tokens share one substrate and nothing crosses.
- Equal contribution. † Project lead. † Corresponding author, E-mail: bjdxtanghao@gmail.com. • Yiran Wang is with the University of Sydney, Camperdown 2006, Australia. • Zeyu Zhang and Hao Tang are with the School of Computer Science, Peking University, Beijing 100871, China. • Ling Shao is with the UCAS-Terminus AI Lab, University of Chinese Academy of Sciences, Beijing 101408, China.
Mask [13] discretize motion sequences into tokenized repre-
TABLE 1: Comparison of different architecture designs.
| Method | Retrieval | Generation | ||||
|---|---|---|---|---|---|---|
| Global Align | Part Align | Momentum | Space | Fusion | Latent | |
| MDM [19] | - | - | - | - | concat | 1D |
| T2M-GPT [23] | - | - | - | - | concat | 1D |
| MoMask [1] | - | - | - | - | concat | 1D |
| MARDM [21] | - | - | - | - | concat | 1D |
| LaMP [22] | - | - | - | - | cross-attn | 1D |
| TMR [23] | ✓ | ✗ | ✗ | Semantic | concat | 1D |
| MoRAG [24] | ✗ | ✗ | ✗ | Semantic | cross-attn | 1D |
| ReMoGPT [18] | ✓ | ✗ | ✗ | Semantic | concat | 1D |
| ReMoDiffuse [16] | ✓ | ✗ | ✗ | Semantic | cross-attn | 1D |
| ReMoMask | ✓ | ✓ | ✓ | Semantic | SSTA | 2D |
| ReMoMask-2 | ✓ | ✓ | ✓ | Latent | SSTA | 2D |
sentations and perform masked token prediction, achieving high-fidelity and temporally coherent motion synthesis.
The second line of work, known as retrieval-augmented T2M (RAG-T2M), enhances generation by retrieving relevant motion-text pairs from an external database and injecting the retrieved evidence into the generative process. By conditioning generation on exemplar motions, RAG-based approaches improve robustness to uncommon or complex textual inputs. Representative methods include ReMoDiffuse [16], which performs retrieval via text-text similarity using CLIP [17], and ReMoGPT [18], which adopts a cross-modal text-motion retriever.
Despite their promising performance, existing RAG-T2M methods implicitly treat retrieval and fusion as independent modules and largely ignore the structural consistency between retrieval alignment and motion representation. Through careful analysis, we identify two fundamental design axes of this structural consistency in retrieval-augmented motion generation:
(1) Structural Granularity of Alignment. As shown in Table 1, most text-motion retrieval methods rely on contrastive learning to align global motion embeddings with text [23], [25]. However, human motion is inherently hierarchical, organized by skeletal topology and body-part dependencies. Purely global alignment overlooks fine-grained part-level semantics (e.g., left/right limbs or asymmetric actions), limiting retrieval discriminability. Although some works [18], [26] encode part-level motion features, these representations are typically aggregated without part-level cross-modal alignment, weakening structured correspondence.
(2) Structural Compatibility of Fusion. As depicted in Table 1, existing RAG-T2M methods often adopt simple concatenation or vanilla cross-attention, without systematically examining how motion latent structure (e.g., 1D vs. 2D spatial-temporal tokens) interacts with fusion mechanisms. This mismatch between retrieved information and motion representation can limit generation quality.
These observations suggest that performance improvements in RAG-T2M hinge on whether retrieval alignment and fusion design are structurally consistent with motion topology, beyond the strength of individual modules. Taken together, these two axes constitute the first challenge we address in this article.
Beyond these two axes, a second challenge remains, along a third design axis orthogonal to the structural ones: in existing RAG-T2M methods [16], [18], [24], the retrieved evidence lives in a contrastive semantic space learned separately from the latents the generator manipulates, so retrieved motions must cross a representation gap before they
can guide generation, as reflected by the Space column of Table 1. This gap persists even when retrieval alignment and fusion are both made structurally consistent with motion topology.
We propose ReMoMask, a retrieval-augmented masked generative framework for text-to-motion generation. To address alignment granularity, we introduce Hierarchical Bidirectional Momentum (HBM) alignment, a structured contrastive learning framework that jointly supervises instance-level (global) and part-level bidirectional text-motion correspondence under a momentum-based paradigm. To ensure structural compatibility during semantic conditioning, we conduct a systematic study (provided in Section 3) on motion latent representations and fusion strategies. Our analysis reveals that preserving motion as 2D spatial-temporal tokens, rather than flattening them into 1D sequences, significantly improves semantic injection and generation stability. Motivated by this observation, we design Semantic Spatial-Temporal Attention (SSTA), an attention mechanism tailored to inject retrieved motion semantics into the generative backbone. Meanwhile, to further strengthen structural modeling within this 2D formulation, we adopt a Topology Structured Masking (TSM) strategy, allowing the network to learn richer topological dependencies across body parts and time.
In this paper, we extend our ECCV 2026 conference framework [27], which inherits this gap, along the third axis of representation consistency and present ReMoMask-2 (Fig. 1), which performs retrieval directly in the generator's own pre-quantization latent space . Because retrieval keys are then produced by the same frozen encoder that supplies the generative latents, no cross-space translation has to be learned, and retrieved neighbors are directly comparable to the latents the generator predicts.
Our contributions are summarized as follows:
-
We present ReMoMask, first introduced in our conference version [27], a retrieval-augmented masked generative framework that enforces structural consistency along the two structural axes identified above: alignment granularity and fusion compatibility. It couples HBM, a hierarchical bidirectional momentum alignment framework that explicitly models both global and part-level text-motion correspondence for fine-grained semantic grounding, with SSTA, a topology-aware spatial-temporal attention mechanism built upon structured 2D motion tokens, and a TSM masking strategy that strengthens topological dependencies across body parts and time.
-
We present ReMoMask-2, which extends ReMoMask along the third design axis, representation consistency between the retrieval space and the generative latent space: it rebuilds the retrieval database in the frozen RVQ-VAE's pre-quantization latent space and aligns text queries to it with a lightweight projector distilled from the HBM retriever, closing the gap between retrieved evidence and the generative substrate.
-
Extensive experiments on HumanML3D, KIT-ML, and SnapMoGen show that our retriever attains state-of-the-art text-to-motion retrieval on all three benchmarks (R@1 18.49 on HumanML3D, against 11.00 for the next best), and that ReMoMask-2 is the strongest retrieval-
augmented generator on all three, with the lowest FID among all compared methods on KIT-ML (0.138) and SnapMoGen (13.174), surpassing the two-stage MoMask pipeline on HumanML3D (FID 0.042 versus 0.046, Top-1 0.528 versus 0.521) with a single generative stage.
As shown in Fig. 1, ReMoMask-2 extends our ReMoMask framework from retrieval in a separate semantic space to retrieval inside the generator's own latent space, which in turn makes a single generative stage sufficient. A preliminary version of this work was accepted to ECCV 2026 [27]. That conference version generates motion in two stages, a masked transformer followed by a residual-refinement transformer. The extension consists of two coupled changes: the retrieval database is rebuilt in the generator's pre-quantization latent space and text queries are aligned to it with a lightweight projector distilled from the conference-version retriever, so that retrieved evidence and the generated latents share a single representation; and the residual-refinement transformer is removed, in line with recent single-stage designs [12], [14], [26], since the retrieval-conditioned mask transformer already supplies the fine-grained correction that a residual stage is designed to provide. Our experiments bear this out: under a unified 20-repeat protocol on which we reproduce ReMoMask, the single-stage, mask-only ReMoMask-2 surpasses the full mask-plus-residual conference version, achieving a 65.9% and 75.4% improvement in FID on HumanML3D (0.123 → 0.042) and KIT-ML (0.562 → 0.138), respectively, while reducing per-sample inference time from roughly 0.14s to 0.05s, a saving to which the lighter retrieval front end of the latent-aligned design contributes alongside the removed stage; reattaching the residual-refinement transformer not only adds inference cost but actively hurts fidelity, raising FID from 0.042 to 0.068. Thus, ReMoMask-2 treats retrieval as a native part of the generative representation rather than as external evidence that must be translated into it.
2.1 Text-to-Motion Generation
Text-to-motion (T2M) generation aims to synthesize realistic human motion sequences conditioned on natural language descriptions. Early approaches explored adversarial learning to establish text-motion correspondence. With the introduction of vector quantization, TM2T [28] and T2M-GPT [20] discretized motion sequences and leveraged autoregressive transformers for semantic control. However, autoregressive decoding often suffers from error accumulation.
Recent advances focus on improving motion representation and generation paradigms. MoMask [13] introduces hierarchical residual quantization and masked bidirectional transformers for parallel decoding, achieving strong performance on HumanML3D. Diffusion-based methods [11], [29] further enhance generation quality via non-autoregressive denoising processes. MotionGPT [11] unifies multiple generation tasks under a discrete autoregressive framework.
Beyond backbone improvements, several works investigate fine-grained motion structure modeling. ParCo [26] discretizes whole-body motion into part-level components (limbs, backbone, root) to establish structured priors.
TABLE 2: Comparison of different latent structures and fusion strategies. These pilot results follow the conference evaluation protocol on a MoMask backbone; results under the main protocol used throughout this paper appear in Table 4.
| Generator | Latent | Fusion | FID↓ | Top1↑ |
|---|---|---|---|---|
| MoMask | 1D | concatcrossAttn | 0.057±.0130.043±.004 | 0.511±.0030.525±.003 |
| 2D | concatcrossAttn | 0.049±.0070.036±.005 | 0.518±.0030.536±.002 |
2.2 Retrieval-Augmented Text-to-Motion
Retrieval-augmented generation (RAG) has been extended beyond NLP to multimodal domains, including motion generation [16], [18], [24], [30]. In retrieval-augmented T2M (RAG-T2M), relevant motion-text pairs are retrieved from an external database and injected into the generative backbone to improve robustness under complex or rare textual conditions.
Existing approaches typically rely on global contrastive alignment between text and motion embeddings [23], [25]. For instance, ReMoDiffuse [16] performs retrieval based on text-text similarity to indirectly guide generation, while ReMoGPT [18] introduces part-aware encoders for cross-modal retrieval. However, these methods often aggregate part features without explicit bidirectional cross-modal supervision, leaving fine-grained structural correspondence between text descriptions and specific body parts underexplored. Furthermore, regarding the integration of retrieved information, prior works commonly adopt feature concatenation or standard cross-attention [16], [18] without systematically considering the compatibility between the retrieved evidence and the underlying motion latent topology. The impact of motion representation structures on fusion effectiveness remains largely uninvestigated.
3 DESIGN PRINCIPLES OF RETRIEVAL-AUGMENTED MOTION GENERATION
While retrieval-augmented T2M methods show promise, the interplay between motion representation and fusion strategy remains underexplored. We investigate two key design axes: (1) motion latent topology (1D sequence vs. 2D spatial-temporal grid) and (2) fusion mechanism (concatenation vs. cross-attention).
Using MoMask [13] as a backbone generator, we systematically vary these axes while fixing other components. We construct both 1D () and 2D () latents, integrating retrieved embeddings ( from ReMoDiffuse [16]) via concatenation or cross-attention. All evaluations are performed on the HumanML3D benchmark.
As summarized in Table 2, the optimal configuration combines 2D representation with cross-attention (0.036 FID), the design that directly motivates our SSTA module, which fuses retrieved semantics with motion tokens via structure-aware cross-attention over a 2D latent grid.
| Retrieval | Generation | |||||
|---|---|---|---|---|---|---|
| Ours | TMR | Ours | ReMoDiffuse | MoMask | MARDM | |
| A person moves backwards, sits down, then stands back up. | ||||||
| A person walks and kicks someone, then steps back, and kicks again. | ||||||
| A person walks, stops, and crawls forward under an obstacle, then stands and turns left and continues to walk. | ||||||
Fig. 2: Qualitative comparisons. The darker colors indicate the later in time. The motions generated by our method closely align with the descriptions, outperforming others that exhibit degraded motions or improper semantics.
4 METHODOLOGY
4.1 Overview
As illustrated in Fig. 1, our framework follows a retrieval-augmented generation paradigm. We first employ Hierarchical Bidirectional Momentum (HBM) learning to align text and motion at both instance and part levels, constructing a hierarchically organized embedding space for accurate retrieval. During training, we utilize Topology Structured Masking (TSM), a structure-aware masked modeling objective that adaptively modulates masking probabilities based on hierarchical relevance to strengthen part-level grounding. Given an input text prompt x, relevant motion-text pairs are retrieved from this structured space to obtain reference embeddings , which are then injected into the generator via our proposed Semantic Spatial-Temporal Attention (SSTA) to enable topology-aware semantic conditioning over 2D motion tokens.
In this pipeline, retrieval operates in the contrastive semantic space constructed by HBM, whereas generation operates on the latents of a 2D RVQ-VAE, two representations learned under disjoint objectives. Section 4.6 presents the extension that defines ReMoMask-2: we migrate retrieval into the generator's own pre-quantization latent space, so that retrieved evidence arrives, by construction, in the representation the generator natively consumes.
4.2 Hierarchical Bidirectional Momentum
Hierarchical Motion Decomposition. As shown in Fig. 3a, we decompose motion into semantic parts (e.g., arms, legs, backbone, root), denoted as . Given a batch
, we encode text, global motion, and part motions into a shared space:
where , and are the respective encoders.
Momentum-Based Structured Contrast. To stabilize training and enlarge the negative set, we maintain momentum encoders with parameters updated via exponential moving average:
where and denote online and momentum parameters. The resulting momentum embeddings are stored in a queue serving as negative keys.
Contrastive Objective. Using cosine similarity and temperature , we define the positive term and negative sum . The InfoNCE loss is:
Bidirectional Alignment. We enforce bidirectional alignment at the instance level:
and further align text with each part representation to preserve fine-grained semantics:

Fig. 3: Framework of ReMoMask-2. (a) The retrieval database is built offline by the frozen RVQ-VAE encoder : each motion becomes a pre-quantisation latent grid, pooled and -normalised into a key. (b) A query projector , distilled from the frozen HBM retriever, maps text into that same key space, so cosine retrieval returns evidence already expressed in the generator's representation. (c) Topology Structured Masking (TSM) and (d) Semantic Spatial-Temporal Attention (SSTA) are inherited unchanged from ReMoMask, except that may now enter the Value pathway.

Fig. 4: Part-level motion encoding for hierarchical alignment. The full-body motion sequence is first divided into multiple body parts according to the skeletal structure. Each part motion is encoded independently by a shared part encoder to obtain part-level features, which are then concatenated and aggregated by an instance encoder to produce a global motion representation. This hierarchical encoding enables fine-grained part-level semantics while preserving holistic motion information.
Final Objective. The total HBM loss combines global and part-level supervision:
This hierarchical supervision yields a structurally consistent embedding space for precise retrieval.
4.3 Part-Level Motion Encoder
To capture the hierarchical structure of human motion, inspired by prior human motion modeling works [18], [26], we adopt a part-level motion encoding scheme that decomposes full-body motion into multiple semantically
meaningful body parts. As illustrated in Fig. 4, a motion sequence is first divided into six parts according to the skeletal topology, including the right arm, left arm, right leg, left leg, backbone, and root. Each part motion is processed independently by a shared part encoder to obtain part-level motion features. These features preserve fine-grained local motion semantics while maintaining parameter efficiency through weight sharing. The resulting part-level representations are then concatenated and aggregated by an instance encoder to form a holistic motion representation, which is subsequently used for hierarchical alignment and retrieval. This hierarchical encoding design enables the model to jointly model local part dynamics and global motion coherence, providing a structured motion representation that facilitates fine-grained text-motion alignment in the proposed framework.
4.4 Topology Structured Masking
To fully exploit the hierarchical structure learned by HBM during generation, we introduce Topology Structured Masking (TSM) as a structure-aware training objective. Unlike conventional uniform random masking that ignores semantic relevance, TSM adaptively modulates masking probabilities based on the hierarchical text-motion alignment established by HBM, ensuring the generator focuses on semantically critical body parts.
Hierarchical Semantic Relevance. As shown in Fig. 3b, given a text embedding and part-level motion embeddings from HBM, we compute part-level relevance weights:
(7) where reflects the semantic alignment strength between the input text and the -th body part.
Topology-Aware Mask Distribution. We define the masking probability for each body part as:
where is a global masking ratio. This strategy ensures that semantically aligned parts are preserved as structural anchors, while less relevant parts are masked aggressively. By protecting these core semantic features from corruption, we force the generator to learn how to coordinate global motion conditioned on the key body parts specified by the text, rather than attempting to hallucinate critical semantics from context. These part-level probabilities are then propagated to the 2D spatial–temporal token grid ( ) according to the skeletal partition, such that all joints belonging to part k share the probability .
Structured Masked Modeling Objective. During training, tokens are masked according to and replaced by a learnable mask token. The generator is optimized to reconstruct the original latent codes z:
By aligning the masking distribution with semantic relevance, TSM forces the model to focus on reconstructing critical body parts, thereby enhancing part-level grounding and structural consistency.
4.5 Semantic Spatial-Temporal Attention
Unlike conventional cross-attention that treats retrieved features as uniform tokens, we design Semantic Spatial-Temporal Attention (SSTA) to explicitly respect the 2D spatial-temporal organization of motion latents through an asymmetric injection mechanism.
We represent motion as a 2D joint-time token grid, flattened into latent sequences (where ). As illustrated in Fig. 3(c), SSTA decouples the roles of semantic conditioning and motion synthesis across the Key and Value pathways.
Query: Motion-Centric Focus. To preserve the structural integrity of the generation process, the Query is derived solely from the current motion latents:
ensuring that attention computation remains anchored in the spatial-temporal topology of the motion being generated.
Semantic Reference Construction. We compress the multi-modal retrieval context (prompt t, retrieved text , and retrieved motion ) into a compact semantic token:
where serves as a global modulation signal rather than a sequence of tokens.
Key: Topology-Aware Gating. The Key pathway integrates both motion states and semantic context to determine where to attend:
By injecting only into the Key, semantic information modulates the attention weights without directly overwriting the motion representation.
Value: Motion-Domain Synthesis. The Value pathway focuses on what information to synthesize, combining current latents with retrieved dynamic priors:
Here, provides concrete motion details from the database, while z ensures continuity with the current generation state. Notably, textual semantics are excluded from Value to prevent domain mismatch.
Output. The final output is computed via standard scaled dot-product attention:
which is then reshaped back to the 2D grid structure. This asymmetric design ensures that retrieved semantics guide the attention focus (via Key) and enrich the motion content (via in Value), while strictly preserving the spatial-temporal topology of the generative backbone.
4.6 Latent-Aligned Retrieval
The components above enforce structural consistency along the two axes identified in Section 1: HBM aligns text and motion at the granularity dictated by skeletal topology, and SSTA injects retrieved evidence in a form compatible with the 2D spatial-temporal latent grid. A third axis, however, remains open. In ReMoMask, as in retrieval-augmented T2M at large [16], [18], [24], the space in which evidence is retrieved is not the space in which motion is generated: HBM embeds text and motion into a contrastive space , optimized to discriminate matching from non-matching pairs, whereas the masked generator operates on the latent space of the 2D RVQ-VAE, optimized purely for reconstruction. The conference version's retrieval evidence is therefore consumed by attention layers whose substrate lives in : implicitly, the fusion modules are asked to realize a cross-space translation , supervised only indirectly through the generation loss. Since the two spaces never interact during training, nothing constrains their geometries to agree: two motions that are close under contrastive semantics may be far apart as latent trajectories. We refer to this discrepancy as the retrieval-generation representation gap.
ReMoMask-2 removes the gap at its source: rather than translating evidence across spaces, we construct the retrieval database directly in the generator's own latent space, so that retrieved evidence arrives, by construction, in the representation the generator natively consumes.
Pre-Quantization Latent Keys. We build retrieval keys with the frozen encoder of the pretrained 2D RVQ-VAE [15]. Given a motion , the encoder produces a pre-quantization latent grid
with channel dimension over a downsampled grid of temporal steps and spatial positions. We deliberately operate on the continuous latent before residual quantization rather than on discrete token indices: the pre-quantization latent preserves the continuous geometry of the encoder space and directly supports cosine-based nearest-neighbor search, whereas quantized indices are categorical and discard within-code variation. A motion-level key is obtained by average pooling over the grid followed by normalization:
where denotes the latent vector at grid position . Applying this to every training motion and expanding each motion over its captions yields the database
covering 23,384 training clips (counting mirrored copies as separate database entries); at query time, entries originating from the same motion are deduplicated so that the retrieved set contains distinct exemplars. Since keys are unit-normalized, retrieval reduces to cosine similarity over . The RVQ-VAE remains entirely frozen throughout: the database is a cached view of representations the generator already uses.
Query Projector. Retrieval requires mapping a text prompt into the same key space. We instantiate this as a lightweight projector applied to the 512-d CLIP ViT-B/32 [17] text embedding t already employed by the framework:
where , , and denotes normalization. The projector holds parameters and is the only component trained in this stage.
Distillation from the HBM Retriever. Naively regressing onto the paired key would supervise a single point and ignore the ranking structure that makes retrieval useful. Instead, we distill the HBM retriever of the conference version, which remains a strong cross-modal ranker, into the latent key space, following the soft-target distillation formulation of [31]. For a training caption x with embedding t, let denote the database entries ranked highest by the teacher ( ). Teacher and student induce distributions over from their respective similarities at temperature , matching the retriever's contrastive temperature:
where is the teacher's text-motion similarity for entry in , and is the student's cosine similarity in the latent key space. The projector minimizes the KL divergence from teacher to student,
Restricting the support to the teacher's top- candidates concentrates supervision on the ranking decisions that matter for retrieval, and the soft targets transfer the teacher's graded preferences rather than a single hard label. The projector is trained for 200 epochs with a batch size of 128, while the RVQ-VAE, the teacher, and the CLIP text encoder all remain frozen. In effect, distillation transfers the teacher's cross-modal ranking into the generative latent space: the resulting retriever is trained to preserve the semantic precision of HBM while returning evidence natively expressed in the generator's representation.
Integration with SSTA. At generation time, the query retrieves the nearest database entries by cosine similarity, and both retrieval streams are read out of the latent-aligned space: is the pooled key of a retrieved entry, and is the projection of the CLIP embedding of its caption . When entries are retrieved, each stream is averaged over the entries, so that the fusion pathways always receive a single and a single regardless of . As both streams are -dimensional while the generator operates at latent width , we insert two linear adapters, , one per stream, ahead of the fusion pathways. These adapters are the only architectural addition: SSTA itself—the asymmetric Q-K-V routing of Section 4.5, including the three-way semantic token —is left unchanged. One routing decision, however, is revisited as a direct consequence of the alignment. The conference version excluded textual signals from the Value pathway to prevent domain mismatch (Section 4.5): there, was an embedding in , foreign to the synthesis substrate. After latent alignment, is itself a point in the generator's latent geometry, so the motion-domain criterion governing the Value pathway now admits it; we therefore include alongside in the Value content, while the prompt embedding , still a CLIP-space vector, remains excluded. Latent-aligned retrieval is thus a plug-and-play replacement for the retrieval space; Table 5, whose rows share the same generator, fusion modules, and training recipe, isolates the effect of the retrieval representation from that of the fusion design.
Single-Stage Deployment. ReMoMask-2 is deployed as a single mask-transformer stage. We also equipped it with a residual-refinement stage mirroring the conference pipeline and found the extra stage harmful: FID degrades from 0.042 to 0.068 (+0.026), a gap far exceeding the 95% confidence intervals of either configuration. With retrieval operating in the generative latent space, the coarse token prediction already absorbs the correction that residual refinement is designed to provide, so the residual stage has no systematic error left to remove and its updates act instead as an additional source of perturbation; we therefore omit it.
5 EXPERIMENT
5.1 Dataset and Evaluation Metrics
We evaluate our model on HumanML3D [33], KIT-ML [34], and SnapMoGen [14] datasets. The HumanML3D consists of 14,616 motions and 44,970 texts, while KIT-ML consists of 3,911 motions and 6,278 texts. The SnapMoGen is the largest available dataset, comprising 20,450 motions and 122,565 texts. The motion feature dimensions are 263, 251, and 296 for HumanML3D, KIT-ML, and SnapMoGen, respectively. HumanML3D and KIT-ML are split into training, validation, and test sets with a ratio of 0.80:0.05:0.15, while SnapMoGen uses a split of 0.85:0.05:0.10.
TABLE 3: Results of text-to-motion and motion-to-text retrieval benchmark on HumanML3D, KIT-ML, and SnapMoGen datasets. † indicates Results are reproduced by us following the descriptions in the original paper, as no official implementation is publicly available. Best results are highlighted in bold, and second-best results are underlined.
| Benchmark | Methods | Text-to-motion retrieval | Motion-to-text retrieval | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| R@1 | R@2 | R@3 | R@5 | R@10 | MedR | R@1 | R@2 | R@3 | R@5 | R@10 | MedR | ||
| HumanML3D | TEMOS [25] | 2.12 | 4.09 | 5.87 | 8.26 | 13.52 | 173.00 | 3.86 | 4.54 | 6.94 | 9.38 | 14.00 | 183.25 |
| TMR [23] | 5.68 | 10.59 | 14.04 | 20.34 | 30.94 | 28.00 | 9.95 | 12.44 | 17.95 | 23.56 | 32.69 | 28.50 | |
| MotionPatches [32] | 10.80 | 14.98 | 20.00 | 26.72 | 38.02 | 19.00 | 11.25 | 13.86 | 19.98 | 26.86 | 37.40 | 20.50 | |
| ReMoGPT [18] | 11.00 | 17.02 | 22.18 | 29.48 | 43.43 | 14.00 | 12.25 | 14.95 | 21.45 | 28.34 | 39.11 | 19.00 | |
| HBM (Ours) | 18.49 | 21.20 | 25.63 | 32.40 | 46.27 | 12.00 | 14.83 | 17.63 | 25.60 | 30.75 | 44.61 | 16.00 | |
| KIT-ML | TEMOS [25] | 7.11 | 13.25 | 17.59 | 24.10 | 35.66 | 24.00 | 11.69 | 15.30 | 20.12 | 26.63 | 36.39 | 26.50 |
| TMR [23] | 7.23 | 13.98 | 20.36 | 28.31 | 40.12 | 17.00 | 11.20 | 13.86 | 20.12 | 28.07 | 38.55 | 18.00 | |
| MotionPatches [32] | 14.02 | 21.08 | 28.91 | 34.10 | 50.00 | 10.50 | 13.61 | 17.26 | 27.54 | 33.33 | 44.77 | 13.00 | |
| ReMoGPT [18] | 13.42 | 17.65 | 22.24 | 32.30 | 44.68 | 12.50 | 11.93 | 14.12 | 21.59 | 30.54 | 39.68 | 16.50 | |
| HBM (Ours) | 16.75 | 23.10 | 30.50 | 37.56 | 52.20 | 8.50 | 12.14 | 16.36 | 25.64 | 35.58 | 46.15 | 14.00 | |
| SnapMoGen | TEMOS [25] | 5.03 | 8.51 | 10.79 | 14.48 | 20.36 | 42.00 | 4.72 | 6.67 | 7.95 | 10.11 | 16.74 | 64.00 |
| TMR [23] | 7.29 | 11.80 | 14.43 | 18.82 | 27.39 | 28.50 | 8.03 | 10.22 | 13.49 | 20.91 | 29.06 | 33.00 | |
| MotionPatches [32] | 8.92 | 14.75 | 18.13 | 25.46 | 34.95 | 19.00 | 9.08 | 12.24 | 14.73 | 22.42 | 33.52 | 25.50 | |
| ReMoGPT [18] | 8.15 | 13.27 | 16.05 | 24.72 | 33.48 | 20.50 | 9.94 | 13.55 | 16.41 | 23.87 | 35.53 | 23.00 | |
| HBM (Ours) | 12.43 | 17.84 | 22.54 | 28.22 | 42.83 | 16.50 | 11.62 | 15.35 | 19.32 | 26.18 | 39.41 | 19.00 | |


(a) Heatmap between different retrieval models



(b) Heatmap of HBM training process

Fig. 5: Heatmap of similarity matrix. The diagonal represents positive pairs, with darker colors meaning higher semantic similarity, conducted on HumanML3D.
Evaluation Metrics. For text-motion retrieval, we report Recall at different ranks (R@1, R@2, R@3, R@5, and R@10), which measures the proportion of queries whose ground-truth match appears within the top- retrieved results. We also report the median rank (MedR), where lower values indicate better retrieval performance. For motion generation, following prior work [13], [15], we evaluate text-to-motion (T2M) performance from three perspectives: (1) motion quality, measured by the Frechet Inception Distance
(FID); (2) generation diversity, evaluated using Diversity and Multi-Modality (MModality); and (3) text-motion alignment, assessed by R-Precision at top 1/2/3 and the Multi-Modal Distance (MM Dist). Formal definitions of each metric are provided below.
We report standard evaluation metrics widely adopted in text-to-motion generation following prior work [33]. All metrics are computed in a shared embedding space obtained from the pretrained evaluation networks introduced in [33].
TABLE 4: Quantitative evaluation on HumanML3D, KIT-ML, and SnapMoGen datasets. We repeat the evaluation 20 times and report the average with 95% confidence interval. Results marked with ↑ are reproduced following the original paper, as no official implementation is publicly available. Within each framework category, bold and underline indicate the best and the second best results.
| Methods | Framework | R-Precision↑ | FID↓ | MMDIST↓ | Diversity→ | MModality↑ | |||
|---|---|---|---|---|---|---|---|---|---|
| Top 1 | Top 2 | Top 3 | |||||||
| HumanML3D | Real | - | 0.511±.003 | 0.703±.003 | 0.797±.002 | 0.002±0.000 | 2.974±0.008 | 9.503±0.065 | - |
| MDM [19] | t2m | - | - | 0.611±.007 | 0.544±.044 | 5.566±.027 | 9.559±.086 | 2.799±.072 | |
| T2M-GPT [20] | 0.492±.003 | 0.679±.002 | 0.775±.002 | 0.141±.005 | 3.121±.009 | 9.761±.073 | 1.856±.003 | ||
| MoMask [13] | 0.521±.003 | 0.710±.002 | 0.805±.001 | 0.046±.002 | 2.969±.009 | 9.628±.070 | 1.245±.041 | ||
| MoGenTS [15] | 0.529±.003 | 0.719±.002 | 0.812±.002 | 0.033±.001 | 2.867±.006 | 9.570±.077 | 1.205±.043 | ||
| MoMask++ [14] | 0.517±.002 | 0.709±.002 | 0.803±.002 | 0.069±.003 | 2.948±.007 | 9.611±.032 | 1.192±.053 | ||
| MARDM [21] | 0.500±.004 | 0.695±.003 | 0.795±.003 | 0.114±.007 | 2.945±.004 | 9.718±.031 | 2.231±.071 | ||
| LaMP [22] | 0.557±.003 | 0.751±.002 | 0.843±.001 | 0.032±.002 | 2.759±.007 | 9.571±.069 | 2.794±.041 | ||
| ReMoDiffuse [16] | RAG-t2m | 0.510±.005 | 0.698±.006 | 0.795±.004 | 0.103±.004 | 2.974±.016 | 9.018±.075 | 1.795±.043 | |
| ReMoGPT↑ [18] | 0.501±.003 | 0.688±.003 | 0.792±.005 | 0.205±.023 | 2.929±.020 | 9.763±.056 | 2.816±.003 | ||
| RMD† [30] | 0.524±.002 | 0.715±.002 | 0.811±.001 | 0.111±.005 | 2.879±.006 | 9.527±.090 | 2.604±.084 | ||
| MoRAG-Diffuse† [24] | 0.511±.003 | 0.699±.003 | 0.792±.002 | 0.270±.010 | 2.950±.001 | 9.536±.104 | 2.773±.011 | ||
| ReMoMask [27] | 0.485±.003 | 0.676±.003 | 0.777±.002 | 0.123±.003 | 3.090±.008 | 9.357±.081 | 1.446±.045 | ||
| ReMoMask-2 (Ours) | 0.528±.002 | 0.719±.002 | 0.813±.002 | 0.042±.002 | 2.860±.009 | 9.472±.079 | 1.243±.038 | ||
| KIT-ML | Real | - | 0.424±.005 | 0.649±.006 | 0.779±.006 | 0.031±0.004 | 2.788±0.012 | 11.080±.097 | - |
| MDM [19] | t2m | - | - | 0.396±.004 | 0.497±.021 | 9.191±.022 | 10.847±.109 | 1.907±.214 | |
| T2M-GPT [20] | 0.416±.006 | 0.627±.006 | 0.745±.006 | 0.514±.029 | 3.007±.023 | 10.860±.049 | 1.798±.157 | ||
| MoMask [13] | 0.433±.007 | 0.656±.005 | 0.781±.005 | 0.204±.011 | 2.779±.022 | 10.203±.038 | 1.131±.043 | ||
| MoGenTS [15] | 0.445±.006 | 0.671±.006 | 0.797±.005 | 0.143±.004 | 2.711±.024 | 10.918±.090 | 1.493±.024 | ||
| MoMask++ [14] | 0.428±.008 | 0.628±.006 | 0.755±.007 | 0.194±.016 | 2.814±.006 | 10.927±.101 | 1.247±.040 | ||
| MARDM [21] | 0.387±.006 | 0.610±.006 | 0.749±.006 | 0.242±.014 | 2.970±.032 | 10.891±.045 | 1.312±.053 | ||
| LaMP [22] | 0.479±.006 | 0.691±.005 | 0.826±.005 | 0.141±.013 | 2.704±.018 | 10.929±.101 | 1.973±.071 | ||
| ReMoDiffuse [16] | RAG-t2m | 0.427±.014 | 0.641±.004 | 0.765±.055 | 0.155±.006 | 2.814±.012 | 10.800±.105 | 1.239±.028 | |
| ReMoGPT† [18] | 0.376±.006 | 0.585±.004 | 0.734±.005 | 0.425±.022 | 2.935±.009 | 10.712±.092 | 1.362±.020 | ||
| RMD† [30] | 0.433±.007 | 0.652±.005 | 0.776±.004 | 0.320±.019 | 2.863±.015 | 10.879±.110 | 1.364±.100 | ||
| MoRAG-Diffuse† [24] | 0.330±.008 | 0.542±.007 | 0.675±.004 | 0.614±.043 | 3.251±.022 | 10.244±.092 | 1.268±.045 | ||
| ReMoMask [27] | 0.404±.007 | 0.619±.005 | 0.745±.005 | 0.562±.019 | 3.027±.018 | 10.508±.105 | 0.792±.030 | ||
| ReMoMask-2 (Ours) | 0.457±.006 | 0.673±.005 | 0.801±.004 | 0.138±.007 | 2.743±.016 | 10.964±.108 | 0.947±.043 | ||
| SnapMoGen | Real | - | 0.940±.001 | 0.976±.001 | 0.985±.001 | 0.001±.000 | 2.835±.001 | 19.849±.063 | - |
| MDM [19] | t2m | 0.503±.002 | 0.653±.002 | 0.727±.002 | 57.783±.092 | 8.627±.012 | 18.701±.043 | 13.412±.231 | |
| T2M-GPT [20] | 0.618±.002 | 0.773±.002 | 0.812±.002 | 32.629±.087 | 6.855±.032 | 18.513±.035 | 9.172±.181 | ||
| MoMask [13] | 0.777±.002 | 0.888±.002 | 0.927±.002 | 17.404±.051 | 3.812±.008 | 19.583±.074 | 8.183±.184 | ||
| MoGenTS [15] | 0.742±.004 | 0.875±.003 | 0.912±.004 | 23.927±.045 | 3.923±.006 | 19.457±.061 | 8.841±.197 | ||
| MoMask++ [14] | 0.802±.001 | 0.905±.002 | 0.938±.001 | 15.060±.065 | 3.784±.006 | 19.764±.027 | 7.259±.180 | ||
| MARDM [21] | 0.659±.002 | 0.812±.002 | 0.860±.002 | 26.878±.131 | 3.947±.009 | 19.598±.019 | 9.812±.287 | ||
| LaMP [22] | 0.711±.005 | 0.803±.006 | 0.900±.003 | 19.114±.085 | 3.697±.014 | 19.618±.037 | 9.325±.239 | ||
| ReMoDiffuse [16] | RAG-t2m | 0.491±.003 | 0.673±.007 | 0.785±.002 | 68.460±.091 | 5.930±.029 | 18.753±.046 | 8.260±.215 | |
| ReMoGPT† [18] | 0.647±.002 | 0.793±.004 | 0.839±.002 | 44.121±.016 | 4.883±.008 | 19.435±.051 | 9.347±.459 | ||
| RMD† [30] | 0.534±.002 | 0.658±.002 | 0.713±.003 | 49.084±.023 | 5.916±.017 | 18.566±.021 | 7.559±.273 | ||
| MoRAG-Diffuse† [24] | 0.597±.003 | 0.792±.002 | 0.835±.002 | 41.417±.030 | 5.924±.036 | 18.927±.032 | 8.278±.247 | ||
| ReMoMask [27] | 0.752±.003 | 0.883±.002 | 0.921±.002 | 27.816±.226 | 3.712±.011 | 19.472±.058 | 8.613±.192 | ||
| ReMoMask-2 (Ours) | 0.788±.003 | 0.897±.004 | 0.934±.002 | 13.174±.057 | 3.706±.011 | 19.703±.046 | 8.331±.174 | ||
We denote the feature representations of ground-truth motions, generated motions, and text descriptions as , , and , respectively.
5.1.0.1 Frechet Inception Distance (FID): FID evaluates the distribution-level similarity between generated motions and ground-truth motions in the feature space. It is defined as
where and denote the empirical means of and , and and are the corresponding covariance matrices.
5.1.0.2 R-Precision (Top-k): R-Precision assesses text-motion matching accuracy. For each generated motion, its ground-truth text description is combined with 31 randomly sampled mismatched descriptions from the test set to form a candidate pool. We rank all candidates according to the Euclidean distance between motion and text features, and report the retrieval accuracy at Top-1, Top-2, and Top-3. A retrieval is considered successful if the ground-truth description appears within the top- ranked results.
5.1.0.3 Multimodal Distance (MM-Dist): MM-Dist measures the alignment between generated motions and their corresponding text descriptions at the feature level. Given text-motion pairs, it is computed as the average Euclidean distance between motion and text features:
5.1.0.4 Diversity: Diversity quantifies the overall variability of generated motions across the dataset. We randomly sample pairs of generated motion features, denoted as , and compute
Following [33], we set in all experiments.
5.1.0.5 Multimodality (MModality): MModality evaluates the diversity of motions generated from the same text description. For each text input, we generate multiple motion samples and randomly select two subsets, each containing 10 motions. Let denote the feature pair from the -th sample of the -th text. MModality is computed as
5.2 Implementation Details
For the motion representation, we use a pretrained 2D-RVQ-VAE [15] comprising two 6-layer residual-quantization branches: a joint-level 2D branch with codebooks of 256 codes of 1024 dimensions, whose pre-quantization latent provides our retrieval keys , and a holistic 1D branch with codebooks of 512 codes of 512 dimensions. For the topology structured masking, we set to 0.5. For the text-motion retrieval model, the motion encoder employs a 4-layer transformer for each body part, with both part-level and instance-level motion embeddings set to 512 dimensions. The text encoder is a frozen pretrained CLIP [17] ViT-B/32 model with one additional trainable transformer layer, shared across all models. For the motion masked model, the SSTA is set to have 6 layers, 8 heads, and 512 latent dimensions. The retrieval model is trained for 200 epochs on a Tesla A800 GPU, with a of 1, a batch size of 128, a queue size of 65,536, and a momentum of 0.999. The masked models are trained on 8 Tesla A800 GPUs for up to 2,000 epochs with a batch size of 64. All models are implemented in PyTorch.
Evaluation Protocol. All results in Table 4 are obtained under a unified protocol: metrics are computed by the same evaluation pipeline, repeated 20 times, and reported with 95% confidence intervals; reconstruction measurements, which are deterministic, are the only exception and are reported without intervals. Entries marked are reproduced by us following the original description, as no public implementation is available. For our conference-version ReMoMask, the table reports our own reproduction under this protocol, obtained by re-running the publicly released checkpoints where available and retraining from the official configuration otherwise. ReMoMask-2 is evaluated under the same protocol throughout.
5.3 Main Results
Evaluation of Motion Retrieval. We evaluate ReMoMask on text-motion and motion-text retrieval on HumanML3D, KIT-ML, and SnapMoGen (Table 3), where it attains state-of-the-art text-to-motion retrieval on all three benchmarks and the best motion-to-text retrieval on HumanML3D and SnapMoGen. ReMoMask consistently outperforms prior methods on HumanML3D and SnapMoGen, improving text-to-motion R@1 on HumanML3D to 18.49 versus 11.00 for the next-best method, and increasing R@1 on SnapMoGen from 8.92 to 12.43. On KIT-ML, ReMoMask is best on all six text-to-motion metrics, while in the motion-to-text direction it leads on R@5 and R@10 and is second on the remaining
four metrics. Fig. 5 further shows that HBM yields clearer diagonal structures with suppressed off-diagonal responses, visualizing the same discriminative text-motion alignment reflected in the retrieval metrics above.
Evaluation of Motion Generation. We evaluate motion generation performance on the HumanML3D, KIT-ML, and SnapMoGen datasets, as illustrated in Table 4. Evaluated under the unified protocol of Sec. 5.2, ReMoMask-2 is the strongest retrieval-augmented system on all three benchmarks against both published and reproduced baselines, attaining both the best FID and the best R-precision within that group, and it generally improves substantially over our conference-version ReMoMask on fidelity, R-precision, and MM-Dist across the three benchmarks, while using only a single mask-transformer stage. On HumanML3D it surpasses the full mask-plus-residual MoMask pipeline on both fidelity (0.042 versus 0.046) and Top-1 R-precision (0.528 versus 0.521) while itself running a single generative stage, and its fidelity is comparable to the strongest systems on this benchmark; on KIT-ML (0.138) and SnapMoGen (13.174) ReMoMask-2 attains the lowest FID among all compared methods. Multimodality decreases on HumanML3D and SnapMoGen while increasing on KIT-ML. We attribute the decrease on the first two benchmarks to retrieval conditioning narrowing the distribution of samples drawn for a given prompt, a hypothesis consistent with the trend on HumanML3D and SnapMoGen; on KIT-ML, where multimodality instead increases, a different mechanism is likely at play. It also delivers the fastest inference among the systems compared in Fig. 6.
Qualitative Comparisons. We compare our method with others in Fig. 2. The qualitative examples illustrate that our model's motions align closely with the text descriptions, while the compared methods more often exhibit degraded motion quality or semantic mismatches; Sec. A reports a controlled user study quantifying this comparison.
Inference Efficiency Comparison. Beyond generation quality, we compare our method with existing approaches in terms of both FID and inference cost. Following [13], the inference cost is quantified as the mean inference time over 100 samples on a single NVIDIA 2080Ti device, measured end to end and including, for the retrieval-augmented systems, the cost of encoding the query and searching the database. As shown in Fig. 6, ReMoMask-2 achieves the fastest inference among the retrieval-augmented and non-retrieval methods plotted there. Two changes contribute to this margin, only one of which is the removal of the residual-refinement stage: latent-aligned retrieval also replaces the conference-version retrieval stack (a full cross-modal encoder run over the prompt, followed by a search in a separate contrastive index) with a 1.57M-parameter projector and a single cosine lookup over cached keys. Both changes act jointly to produce this speedup.
5.4 Ablation Study
Unless otherwise stated, every variant is trained and evaluated under the unified protocol of Section 5.2 with single-stage mask-only inference; generation-quality numbers are therefore obtained under the same protocol as Table 4. Two questions inherited from the conference version are

Fig. 6: Comparison on FID and Inference Cost.
TABLE 5: Impact of the retrieval representation on HumanML3D. The generator, fusion modules, and training recipe are identical across rows; only the representation in which evidence is retrieved and expressed changes. The second row keeps the conference-version database in the semantic space but replaces the textual stream entering the fusion pathways with the latent-aligned , so that the motion and textual streams can be moved into the generative geometry independently.
| Retrieval representation | FID↓ | Top1↑ |
|---|---|---|
| Semantic space (HBM, conference design) | 0.109±.003 | 0.503±.003 |
| Semantic space, latent-aligned | 0.101±.004 | 0.507±.003 |
| Quantized indices () | 0.060±.003 | 0.519±.003 |
| Pre-quantization latent (, Ours) | 0.042±.002 | 0.528±.002 |
re-examined here, because latent alignment changes their premise: how much the conference components still contribute (Table 6), and how the benefit of retrieval scales with the size of the database (Fig. 7). The remaining component-level ablations of the conference architecture (the hierarchical and momentum designs of the retriever, the full sweep over the information sources routed into the SSTA key and value pathways, the sensitivity of contrastive retriever training to its hyperparameters, and the cross-backbone transferability of the retriever) are reported in the conference version [27] and are not repeated here.
Retrieval Space. Table 5 isolates the central design choice of ReMoMask-2. Keeping the single-stage generator and the SSTA fusion fixed, retrieving in the HBM semantic space (the conference retrieval design, retrained under the unified protocol) yields an FID of 0.109 for this generator paired with the conference retrieval space, whereas moving retrieval into the generator's own pre-quantization latent space improves it to 0.042, with Top1 following the same ordering. The two spaces indeed rank candidates very differently: over the test captions, each ranked against the full database of Section 4.6, the mean Spearman correlation between semantic-space and -space rankings is 0.09 and their top-10 candidate sets overlap by 7.3%, quantifying the retrieval–generation representation gap. Retrieving over quantized indices () recovers most but not all of the benefit (0.060), likely because discretization discards within-code variation that the continuous keys preserve.
This gain reflects an interaction between the two retrieval streams: their combined effect exceeds the sum of their individual, separable improvements. The second row of this table and the unaligned row of Table 9 each move
TABLE 6: Contribution of the conference-version components under latent-aligned retrieval, on HumanML3D. Each row is a separately trained variant: TSM is replaced by a uniform random masking schedule, and SSTA by a plain cross-attention fusion block of matched capacity that attends over and as an unstructured token pair. Both retrieval streams remain available to that block; only the asymmetric Q-K-V routing over the generator's token grid is removed; and the retrieval space, the database, and the training recipe are left unchanged. Absolute values here are comparable only within this table; Table 7 instead applies inference-time interventions to a single deployed model.
| Variant | FID↓ | Top1↑ |
|---|---|---|
| ReMoMask-2 (full) | 0.042±.002 | 0.528±.002 |
| w/o TSM (uniform masking) | 0.058±.003 | 0.522±.003 |
| w/o SSTA (plain cross-attention) | 0.067±.004 | 0.514±.003 |
one stream at a time, and the four configurations complete a 2×2: with both streams in the semantic space FID is 0.109; expressing only the retrieved caption in the generative geometry gives 0.101; rebuilding only the motion database there gives 0.098; expressing both there gives 0.042. Each move alone yields a modest reduction: expressing only the caption in the generator's geometry lowers FID from 0.109 to 0.101, and rebuilding only the motion database there lowers it to 0.098. But moving the caption after the database has already moved lowers FID by 0.056, from 0.098 to 0.042, far more than the 0.008 it is worth on its own: the two streams interact synergistically, and the full gain appears only once both are expressed together. This is what representation consistency means operationally: the evidence must arrive jointly, as a whole, in the generator's geometry.
Conference Components. Table 6 asks whether the two components of the conference architecture remain load-bearing once retrieval is moved into the generator's latent space. They do, and they fail in different ways. Replacing the topology structured masking schedule with uniform random masking costs 0.016 FID (0.042 to 0.058); Top1 degrades as well, by 0.006 and beyond the intervals covering the two entries, but by less than half of what the fusion ablation costs. TSM shapes only the training-time masking distribution, so the ablated model still receives the full retrieved evidence at inference and affects fidelity more than alignment. Replacing SSTA with a plain cross-attention block of matched capacity is more damaging along both axes (0.067 FID, Top1 0.514). The retrieval keys are pooled vectors and carry no grid of their own; the plain block appends that evidence as extra tokens instead of anchoring the fusion in the generator's joint-time token map (Sec. 4.5), so fidelity and alignment degrade together. The relative ordering of the two arms matches the cumulative ablation of the conference architecture [27], in which SSTA also accounted for more of the gain than TSM. Both arms nevertheless cost less than the retrieval-space and routing choices of Tables 5 and 9, which places the components as necessary support for the new retrieval design: the extension augments the conference architecture. The SSTA arm and the first row of Table 9 isolate different components (the former keeps both retrieval streams and removes only the routing structure, whereas the
TABLE 7: Graded conditioning ablation on HumanML3D. The first three rows keep real retrieved motion latents and destroy only their relevance to the query; the next two replace the evidence with degenerate constants; the row below the rule removes the retrieval pathway entirely and lies outside this ladder. All rows are inference-time interventions on the deployed model.
| Condition | FID↓ | Top1↑ | MMDIST↓ |
|---|---|---|---|
| Real retrieval (Ours) | 0.042±.002 | 0.528±.002 | 2.860±.009 |
| Shuffled pairing | 0.048±.002 | 0.521±.003 | 2.889±.006 |
| Random neighbors | 0.056±.003 | 0.517±.003 | 2.898±.006 |
| Zeroed features | 0.063±.004 | 0.521±.003 | 2.884±.009 |
| Constant (mean) prior | 0.070±.005 | 0.516±.003 | 2.902±.006 |
| No retrieval | 0.055±.005 | 0.509±.002 | 2.968±.007 |
latter keeps the routing structure but withholds entirely), so the larger cost of withholding there is consistent with this fusion ablation. Because HBM is no longer the deployed retriever, its contribution to ReMoMask-2 is measured in its new role, as a distillation teacher, in Table 10.
Conditioning Fidelity. Table 7 tests whether the generator consumes the semantic content of retrieved evidence or merely benefits from its presence. The decisive evidence is the semantic ladder formed by the first three rows, where the retrieved entries remain real motion latents drawn from the same database and only their relevance to the query is destroyed: quality degrades monotonically from real retrieval (0.042) through shuffled pairing (0.048) to random neighbors (0.056), with each adjacent FID pair separated by non-overlapping confidence intervals; Top1 and MM-Dist reproduce the same ordering, though the gap between the two degraded conditions lies within their intervals. This ordering is the signature of genuine semantic consumption: were retrieval acting as a mere statistical regularizer, degrading its content while preserving its distribution would leave quality unchanged. The claim rests on FID, which is the only column in which the ladder separates step by step; we read the other two as corroborating its direction rather than as independent evidence. Removing retrieval altogether lands at 0.055, statistically indistinguishable from random neighbors. On fidelity the two degenerate conditions are worse still: the dataset-mean prior falls behind even the no-retrieval setting by a margin its confidence interval does not cover (0.070 versus 0.055), while the zero vector (0.063) is at best no better than removing retrieval. That ordering does not carry over to the other two columns: on Top1 and MM-Dist the zero-vector condition is indistinguishable from the rows that receive degraded but real evidence, so the degenerate constants are a statement about fidelity, not about alignment.
Database Coverage. Fig. 7 varies the second quantity retrieval depends on. The ladder above destroys the relevance of the retrieved evidence at a fixed database size; here relevance is left intact and the database is thinned instead, which caps the relevance that is available to be retrieved at all. Quality improves with coverage on both metrics: FID moves from 0.052 at 10% coverage to 0.042 at full coverage and Top1 from 0.513 to 0.528, with the two ends of each sweep separated by their confidence intervals. A straight line in of coverage describes the swept range well—

Fig. 7: Effect of retrieval database coverage on HumanML3D. Subsets of the latent-aligned database are drawn uniformly at random with a shared seed across points and are swapped in at inference time only: the generator, the query projector, and the training recipe are those of the deployed model throughout, so these points share the intervention protocol of Table 7. The dashed line marks the no-retrieval setting of that table; 100% is the deployed configuration.
TABLE 8: Sensitivity to the number of retrieved entries on HumanML3D.
| 1 | 2 (Ours) | 3 | 4 | 6 | |
|---|---|---|---|---|---|
| FID↓ | 0.037±.002 | 0.042±.002 | 0.044±.004 | 0.043±.003 | 0.045±.003 |
| Top1↑ | 0.520±.003 | 0.528±.002 | 0.526±.004 | 0.525±.003 | 0.527±.002 |
on FID, at a slope of about 0.010 FID per decade of database size. This fit describes the measured range only; extending it into a scaling-law claim would require sweeping database sizes beyond the single decade tested here. Because no adjacent pair of points is separated by its confidence interval, and points beyond half coverage are mutually indistinguishable, the figure supports the end-to-end trend and the flattening of returns as a range-level pattern. The two experiments are complementary rather than redundant: the ladder isolates relevance, this sweep isolates supply, and both point away from a distribution-level regularizer account. At 10% coverage the point estimate still outperforms the no-retrieval level of Table 7 (0.052 versus 0.055).
Retrieval Count. Table 8 sweeps the number of retrieved entries. The optimum is shallow: attains the lowest FID (0.037) at a consistent cost in text-motion alignment (Top1 drops from 0.528 to 0.520), while larger degrades FID only mildly and leaves alignment essentially flat. We adopt as the balanced default, trading 0.005 FID for 0.008 Top1 against ; the criterion is joint fidelity and alignment, applied to the same metric suite that Table 4 reports, so the deployed 0.042 is deliberately not the lowest FID this model attains. The remaining inference hyperparameters (guidance scale, iteration count, sampling temperature) are inherited unchanged from the conference protocol.
Value-Pathway Routing. Table 9 verifies the routing decision revisited in Section 4.6, and its four rows settle the
TABLE 9: Value-pathway routing under latent-aligned retrieval on HumanML3D. All rows are separately trained variants that share the same generator, database, and training recipe; retrieval runs in the latent key space throughout and only the content appended to the Value pathway changes. Row 2 appends a fixed random unit vector of the same width, a contentless control that isolates the effect of adding one more Value entry from the effect of what that entry carries. Row 3 appends the undistilled semantic-space embedding , width-matched by a trainable linear adapter and optimized jointly with the rest of the model.
| Value content | FID↓ | Top1↑ |
|---|---|---|
| concat() | 0.081±.003 | 0.525±.003 |
| concat() (random vector) | 0.086±.004 | 0.523±.003 |
| concat() (unaligned) | 0.098±.004 | 0.512±.003 |
| concat() (Ours) | 0.042±.002 | 0.528±.002 |
question inside a single system. Routing the semantic-space into the Value pathway is harmful: at 0.098 FID it is worse than routing no textual evidence at all (0.081), and it is the only row in which text-motion alignment degrades appreciably as well (Top1 0.512, against 0.525 with no textual stream in the pathway). Routing the latent-aligned is beneficial: FID falls by nearly half, from 0.081 to 0.042, while alignment is essentially unchanged (Top1 0.525 versus 0.528). The generator, the fusion block, the database, and the training recipe are identical across the four rows, so the verdict on this design choice reverses once the textual evidence is expressed in the generator's own geometry by the distilled projector , rather than by a separately trained linear adapter. The contentless control separates the two candidate explanations for so large a move from so small an intervention: appending a fixed random vector of the same width, one extra Value entry, no information, does not help and mildly hurts (0.086), so the deployed row's gain is attributable specifically to the content of , as distinct from the mere capacity of an additional entry. The degraded rows are not all the same failure. Withholding leaves the Value pathway with evidence that is genuine and in-domain, so alignment is largely preserved and the cost is confined to fidelity, which we attribute to fusion layers that never learn to reconcile motion evidence with its textual counterpart. Supplying the unaligned instead requires every synthesis step to reconcile two incompatible geometries, which corrupts the conditioning content itself and degrades fidelity and alignment together: the reading Table 7 already supports for its degenerate constants, where forcing an out-of-distribution condition through the fusion layers costs more than removing the condition. Since the adapter is trained end-to-end with the rest of the model, the network is free in principle to learn to ignore this input; that it remains harmful is consistent with incompatible geometry. The damage also stops short of retrieving in the wrong space altogether (0.109 in Table 5): here the retrieved neighbors are the correct ones and only the textual branch is foreign to the substrate. Rows in this table, and the retrieval-space variants of Table 5, are separately trained, unlike the inference-time interventions of Table 7, so their absolute FID reflects that separately-trained protocol, distinct from the no-retrieval row there (0.055).
TABLE 10: Distillation design for the query projector on HumanML3D. The three rows above the rule share the HBM retriever as teacher and vary the distillation objective; the row below it keeps the KL objective and swaps the teacher for TMR [23]. TC@1 denotes top-1 consistency between each projector and its own teacher, measured over 4,384 held-out captions (one per test motion), and is therefore comparable in level only within the HBM-teacher rows; it is reported as a diagnostic and carries no preferred direction, which is why its column has no arrow. FID is obtained by plugging each projector into the frozen generation stack, with the generator, the database, and all inference settings left untouched.
| Objective / teacher | TC@1 | FID↓ |
|---|---|---|
| KL, HBM teacher (Ours) | 0.030 | 0.042±.002 |
| InfoNCE, HBM teacher | 0.051 | 0.064±.003 |
| MSE regression, HBM teacher | 0.048 | 0.372±.004 |
| KL, TMR teacher | 0.044 | 0.071±.003 |
Distillation Design. Table 10 ablates how the query projector is aligned, and the outcome cautions against reading a retrieval proxy as a proxy for generation. Among the rows that share the HBM teacher, consistency with the teacher and downstream fidelity order the objectives differently: InfoNCE attains the highest top-1 agreement (0.051) and MSE regression is close behind (0.048), yet plugging those projectors into the frozen generation stack yields FID 0.064 and 0.372, respectively, whereas soft top- distillation, the lowest on consistency, at 0.030, is the only objective that reaches 0.042. Top-1 agreement is a deliberately strict statistic here. The two spaces order candidates almost independently (Spearman 0.09, Table 5), so the teacher's single highest-ranked entry frequently falls outside the set reachable as an argmax in , and what distillation can transfer is the graded structure over the candidate set rather than its top element. What the deployed projector must do is retrieve relevant motions, and it does: over 4,384 held-out captions against the full database, recovers the ground-truth motion of a held-out caption at R@1 12.4, R@5 24.9 and R@10 34.6 directly in the latent key space, still enough to drive the best generation quality in this table. Regression is the extreme case: caption-to-motion correspondence is many-to-many, so a hard single target induces label noise, and reproducing individual teacher decisions can come at the cost of the geometry around them; InfoNCE improves on regression but still supervises one positive per caption. The size of the regression failure needs an explanation of its own, since 0.372 lies far outside the range that any inference-time perturbation of the deployed model spans in Table 7. It is a collapse of the retrieved neighborhood rather than a ranking error: the MSE projector's queries concentrate into a small region of the key space, and across the held-out captions its retrieved sets cover only 6.2% of the distinct database entries the deployed projector reaches. Nearly every prompt is then conditioned on the same handful of exemplars, which is far more destructive than the uniformly random neighbors of Table 7: those at least vary from prompt to prompt and leave the conditioning signal merely uncorrelated with the text, rather than constant
TABLE 11: Contribution of the residual-refinement stage across systems on HumanML3D. is the FID change from adding the residual stage. The MoMask and conference-version ReMoMask +Residual entries are the same values as in Table 4.
| System | Mask-only | + Residual | |
|---|---|---|---|
| MoMask | -0.039 | ||
| ReMoMask | -0.020 | ||
| ReMoMask-2 (Ours) | +0.026 |
TABLE 12: Reconstruction quality of the frozen 2D RVQ-VAE as a function of the number of decoded quantization layers, on the HumanML3D test set. The tokenizer is the pretrained model of [15]; these numbers are re-measured by us rather than quoted, using the same feature extractor, the same reference statistics and the same set of test motions as the generation FIDs of Table 4, so that reconstruction and generation FID are on a common scale. Reconstruction is deterministic, so no repetition-based confidence intervals are reported.
| Decoding | Recon. FID↓ | MPJPE (mm)↓ |
|---|---|---|
| Base layer only (used by ReMoMask-2) | 0.064 | 36.8 |
| 2 layers | 0.027 | 28.4 |
| 3 layers | 0.014 | 23.1 |
| All 6 layers | 0.005 | 16.1 |
across the dataset. The collapse is partial rather than total: top-1 agreement with the teacher remains at 0.048. The last row varies the teacher rather than the objective, and the same conclusion holds along that second axis: distilling the identical KL objective from the external TMR retriever [23] reproduces that teacher's own top-1 decisions at 0.044, yet generates worse, at FID 0.071. What carries over into generation is therefore how well the teacher ranks in the first place, independent of how faithfully the student reproduces the teacher's own decisions. The database remains in the space in that row, so the retrieved evidence stays in-domain and only the induced neighborhoods change: TMR ranks text-motion pairs less accurately than HBM on this benchmark (Table 3). Read together with Table 5, a weaker ranker operating in the generator's latent space (0.071) is still far better than the strongest ranker operating in the semantic space (0.109), consistent with our central claim that representation consistency between retrieval and generation matters more than the quality of the ranker itself; within the latent space, replacing this weaker teacher with HBM further improves FID from 0.071 to 0.042. This is where HBM earns its place in ReMoMask-2: as the teacher whose graded ranking the projector inherits, distinct from the deployed retriever role reported in Table 3, so that within this distillation pipeline, the teacher's retrieval accuracy (Table 3) contributes to generation quality rather than remaining a disconnected number. We therefore read TC@1 as a diagnostic of alignment rather than as a model-selection criterion, and select both the distillation objective and the teacher by downstream generation quality.
Single-stage sufficiency. Tables 11 and 12 together explain why ReMoMask-2 omits the residual-refinement stage. For prior two-stage systems the residual stage is load-bearing: it improves MoMask by 0.039 FID and the conference-
version ReMoMask by 0.020. ReMoMask-2's single mask-transformer stage, decoding only the base quantization layer, already reaches 0.042, surpassing both the conference-version ReMoMask full pipeline (0.123) and MoMask's two-stage result (0.046). Re-attaching a residual-refinement transformer to that stage actively hurts: FID moves from 0.042 to 0.068, a degradation roughly an order of magnitude larger than the confidence intervals involved. Reconstruction FID falls from 0.064 at the base layer to 0.005 with all six layers (Table 12); the returns diminish with depth, as the first residual layer removes the largest share of the base-layer quantization error and each further layer a smaller one. Our generated motions therefore score better (0.042) than the base-layer reconstructions through which they are decoded (0.064). The two numbers measure different things: FID is a distance between distributions rather than a per-sample fidelity, so the systematic quantization bias shared by all base-layer reconstructions displaces the reconstructed distribution as a whole, whereas the generator, trained to match the data distribution in token space, absorbs part of that displacement. The depth curve reads the same way: adding a single residual layer cuts reconstruction FID by 58% but MPJPE by only 23%, consistent with one residual code already removing most of the shared distributional offset while per-sample error can only be refined code by code. The reconstruction floor thus bounds per-sample accuracy specifically, leaving distributional quality unconstrained by it, and the depth curve marks per-sample-accuracy headroom that a deeper decoding path could still unlock—most of it already within reach at two layers—though, as Table 11 shows, re-attaching a residual transformer forfeits that headroom instead of reaching it.
5.5 Qualitative Results
Fig. 8 illustrates ReMoMask-2's capability in generating diverse human motions. The 16 randomly inferred samples exhibit complex motion patterns such as directional transitions ("walks toward the front, turns to the right"), rhythmic actions ("raises arms three times"), and semantically rich behaviors ("pretending to be a chicken"), suggesting that the model captures nuanced motion dynamics and temporal transitions. Fig. 9 provides a comparative analysis of ReMoMask-2 against the conference-version ReMoMask, MoGenTS, TMR, and ReMoDiffuse. While baseline models generate basic motions like walking or balancing, our approach produces transitions that appear more natural (e.g., "walks forwards and then stops to take a rest" vs. simple linear motion) and physically plausible motion sequences (e.g., "walks forward in a clumsy way"); Sec. A reports a controlled user study quantifying motion quality and text-motion correspondence across methods.
6 LIMITATIONS
The effectiveness of the proposed retrieval-augmented framework depends on the match between the motion database and the distribution a query is drawn from: when relevant motions are absent or sparsely represented in the retrieval corpus, the benefit that retrieval provides diminishes accordingly. In addition, ReMoMask-2 decodes only

a man is pretending to be a chicken. constantly pecking at the ground and waving his arms like a chicken.

a man is walking forward, favoring his left leg and shifting his walk. he is possibly drunk.

a person jumps forward three times and then walks a few steps.

a person jumps forward with both legs and the continues walking until reaching the other side.

a man kicks something or someone with his left leg.

a person is looking around, turns to the left, then looks around again.

a person walks toward the front, turns to the right, bounces into a squat, and places both arms in front.

a person raises its arms then puts them back down 3 times.

a person is walking on a circle.

a person walks slowly forward then toward the left hand side and stands facing that direction.

a person raises there arms towards there shoulders.

person lifts their hands up twice on the same spot.

a person walks forward then turns to the right and continues to walk.

a person walks to the right in a partial circle.

person turns one direction then other direction standing feet apart and arms side to side.

someone working on the construction site.
Fig. 8: We randomly sample and visualize 16 motions generated by the proposed ReMoMask-2 framework. These examples are conditioned on diverse prompts randomly selected from the HumanML3D [33], providing qualitative evidence of the model's ability to synthesize a wide range of realistic and semantically coherent motions.
the base quantization layer of the tokenizer, so its per-sample precision is bounded by base-layer reconstruction quality, leaving the finer detail carried by the deeper quantization layers untapped. Extending latent-aligned retrieval to databases whose domain differs from the target one, detecting when a query falls outside the covered distribution, and unlocking the deeper decoding path within a single generative stage remain important directions for future work.
7 CONCLUSION
In this work, we present ReMoMask and its extension ReMoMask-2, retrieval-augmented masked generative frameworks for text-to-motion generation. To overcome the limitations of coarse-grained retrieval and ineffective fusion, we introduce Hierarchical Bidirectional Momentum (HBM) for precise text-motion alignment and Topology Structured Masking (TSM) to enforce structural consistency during training. Complemented by Semantic Spatial-Temporal Attention (SSTA) for knowledge integration, ReMoMask ef-
| a man walks forwards and then stops to take a rest. | a man is balancing on something. | a man walks forward in a clumsy way. | a man walks forward rather slowly. | |
|---|---|---|---|---|
| ReMoMask-2 | ||||
| ReMoMask | ||||
| MoGenTS | ||||
| TMR | ||||
| ReMoDiffuse |
Fig. 9: Comparison of the proposed ReMoMask-2 with ReMoMask and three state-of-the-art methods: MoGenTS [15], TMR [23], and ReMoDiffuse [16]. We visualize motion sequences generated in response to four distinct text prompts. Each row represents the output of a different method, and each column corresponds to a specific prompt. The results demonstrate that ReMoMask-2 produces more realistic and semantically aligned motions compared to existing approaches.
TABLE 13: Notations and symbols used in ReMoMask.
| Symbol | Definition |
|---|---|
| Input text prompt | |
| Motion sequence | |
| Motion of the k-th body part | |
| Text embedding of the i-th sample | |
| Global motion embedding | |
| Part-level motion embedding for the k-th body part | |
| Retrieved motion embedding | |
| Retrieved text embedding | |
| Latent motion tokens arranged on a spatial-temporal grid | |
| Reconstructed latent motion tokens predicted by the generator | |
| Global semantic token constructed from text and retrieved context | |
| Query, Key, and Value matrices in the attention module | |
| Semantic relevance between text and the k-th body part | |
| Base masking probability | |
| Masking probability of the k-th body part | |
| Momentum queue storing negative embeddings | |
| Momentum coefficient for updating momentum encoders | |
| Temperature parameter in contrastive learning | |
| Weighting coefficient for the part-level contrastive loss | |
| Batch size | |
| Number of body parts | |
| Number of temporal frames | |
| Number of body joints | |
| Length of flattened motion tokens () | |
| Dimension of the latent embedding space | |
| Multilayer perceptron | |
| Concatenation operation | |
| Flattening a 2D latent grid into a 1D sequence | |
| Contrastive semantic space; generative latent space | |
| Implicit cross-space translation in ReMoMask | |
| Frozen 2D RVQ-VAE encoder producing the pre-quantization latent | |
| Pre-quantization continuous latent of the frozen RVQ-VAE encoder | |
| Pooled, -normalized used as a retrieval key | |
| Channel dimension of () | |
| Latent-aligned retrieval database of () pairs | |
| Query projector mapping CLIP text embeddings into the space | |
| Number of teacher candidates in distillation (top-) | |
| Top- teacher candidate set for caption | |
| Teacher / student retrieval distributions in KL distillation | |
| KL distillation objective for the query projector | |
| CLIP text embedding of a single prompt (single-sample form of ) | |
| Temporal / spatial size of the downsampled grid () | |
| Teacher / student similarity scores over candidate |
effectively bridges structured retrieval with high-quality generation. Building on this framework, ReMoMask-2 relocates retrieval into the generator's own pre-quantization latent space, closing the representation gap between retrieved evidence and the generative latents; a graded conditioning analysis confirms that the deployed model genuinely consumes the retrieved semantics rather than merely registering their presence. With retrieval acting in this shared space, a single mask-transformer stage, without a separate residual-refinement network, surpasses the accuracy of the full two-stage pipeline while reducing inference cost, yielding a system that is both more accurate and more efficient. Extensive experiments on HumanML3D, KIT-ML, and SnapMoGen confirm that our retriever delivers state-of-the-art text-to-motion retrieval, and that ReMoMask-2 consistently achieves the best generation fidelity among retrieval-augmented approaches, with the lowest FID among all compared methods on KIT-ML and SnapMoGen, while requiring only a single generative stage.
Acknowledgements. This work was supported by the Fundamental Research Funds for the Central Universities, Peking University.
APPENDIX
We list notations and symbols used in this paper, as shown in Table 13.
To comprehensively evaluate the generation capability of ReMoMask, we conducted a comparative user study. We randomly selected 20 text prompts from the HumanML3D test set and generated motion sequences using ReMoMask, current state-of-the-art retrieval-augmented method (ReMoDiffuse), generative model (MoMask), and ground truth motions.
We employ a forced-choice paradigm in our user study, asking participants two key questions: "Which of the two motions is more realistic?" and "Which of the two motions corresponds better to the text prompt?". The study is conducted via a Google Forms interface, as illustrated in Fig. 13. To ensure fairness and reduce potential bias, the names of the generative models are hidden, and the order of presentation is randomized for each question. In total, over 50 participants took part in the evaluation.
Empirical results, depicted in Fig. 10 and Fig. 11, underscore ReMoMask's strong capability to generate motions that are not only realistic but also closely aligned with textual descriptions. Specifically, as shown in Fig. 10, ReMoMask achieves a 42% preference rate over ground truth (GT) in terms of realism. Although GT motions are derived from real human data, this result indicates that ReMoMask is perceived as comparably realistic by human evaluators. Moreover, the model significantly outperforms both baselines: it achieves 67% preference over MoMask and 75% over ReMoDiffuse, demonstrating its strength in producing high-quality, lifelike motion sequences.
In terms of text correspondence (reported in Fig. 11), ReMoMask attains a 47% preference rate over GT, suggesting that its generated motions exhibit nearly human-level alignment with text prompts. Compared to the baselines, ReMoMask again shows substantial improvements, with 72% preference over MoMask and 86% over ReMoDiffuse.

Fig. 10: Motion Quality User Study

Fig. 11: Text-Motion Correspondence User Study
Video Demonstrations. We provide video demonstrations of our generated motions to facilitate qualitative evaluation. Fig. 12 shows representative video samples, where our method produces temporally coherent and semantically aligned motion sequences.

Fig. 12: Video sample.

Fig. 13: This figure illustrates the User Interface (UI) used in the ReMoMask User Study. Participants are presented with two motion videos, labeled as Motion A and Motion B, alongside a shared textual prompt. The motion clips are sampled from outputs generated by different models or the ground truth (GT), with model identities anonymized and video order randomized. Participants are asked to answer two evaluative questions: (1) "Which of the two motions is more realistic?", assessing the visual plausibility and motion quality; and (2) "Which of the two motions corresponds better to the text prompt?", evaluating the semantic alignment between the motion and the given description. This dual-question design enables a comprehensive human assessment of both motion realism and text-motion correspondence.
REFERENCES
[1] Z. Zhang, Y. Wang, B. Wu, S. Chen, Z. Zhang, S. Huang, W. Zhang, M. Fang, L. Chen, and Y. Zhao, "Motion avatar: Generate hu-
man and animal avatars with arbitrary motion," arXiv preprint arXiv:2405.11286, 2024. 1
[2] I. J. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio, "Generative adversarial networks," 2014. [Online]. Available: https://arxiv.org/abs/1406.2661 1
[3] J. Dong, P. Koniusz, X. Qu, and Y.-S. Ong, "Stabilizing modality gap & lowering gradient norms improve zero-shot adversarial robustness of vlm," in Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 1, 2025, pp. 236–247. 1
[4] J. Dong, C. Zhang, X. Qu, Z. Ma, P. Koniusz, and Y.-S. Ong, "Robust superalignment: Weak-to-strong robustness generalization for vision-language models," in The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. 1
[5] J. Dong, P. Koniusz, Y. Zhang, H. Zhu, W. Liu, X. Qu, and Y.-S. Ong, "Improving zero-shot adversarial robustness in vision-language models by closed-form alignment of adversarial path simplices," in Forty-second International Conference on Machine Learning, 2025. 1
[6] J. Dong, J. Liu, X. Qu, and Y.-S. Ong, "Confound from all sides, distill with resilience: Multi-objective adversarial paths to zero-shot robustness," in Proceedings of the IEEE/CVF International Conference on Computer Vision, 2025, pp. 624–634. 1
[7] D. P. Kingma and M. Welling, "Auto-encoding variational bayes," 2022. [Online]. Available: https://arxiv.org/abs/1312.6114 1
[8] J. Ho, A. Jain, and P. Abbeel, "Denoising diffusion probabilistic models," 2020. [Online]. Available: https://arxiv.org/abs/2006.11239 1
[9] Y. Li, J. Yang, Z. Yang, B. Li, H. He, Z. Yao, L. Han, Y. V. Chen, S. Fei, D. Liu et al., "Cama: Enhancing multimodal in-context learning with context-aware modulated attention," arXiv preprint arXiv:2505.17097, 2025. 1
[10] Y. Zhang, Y. He, Y. Shao, Z. Yao, H. Xu, J. Dong, Z. Yao, and Z. Dong, "Chromouvqa: Benchmarking vision-language models under chromatic camouflaged images," arXiv preprint arXiv:2512.05137, 2025. 1
[11] B. Jiang, X. Chen, W. Liu, J. Yu, G. Yu, and T. Chen, "Motiongpt: Human motion as a foreign language," 2023. [Online]. Available: https://arxiv.org/abs/2306.14795 1, 3
[12] E. Pinyoanuntapong, P. Wang, M. Lee, and C. Chen, "Mmm: Generative masked motion model," 2024. [Online]. Available: https://arxiv.org/abs/2312.03596 1, 3
[13] C. Guo, Y. Mu, M. G. Javed, S. Wang, and L. Cheng, "Momask: Generative masked modeling of 3d human motions," in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024, pp. 1900–1910. 1, 2, 3, 8, 9, 10
[14] C. Guo, I. Hwang, J. Wang, and B. Zhou, "Snapmogen: Human motion generation from expressive texts," 2025. [Online]. Available: https://arxiv.org/abs/2507.09122 1, 3, 7, 9
[15] W. Yuan, W. Shen, Y. HE, Y. Dong, X. Gu, Z. Dong, L. Bo, and Q. Huang, "Mogents: Motion generation based on spatial-temporal joint modeling," in Neural Information Processing Systems (NeurIPS), 2024. 1, 6, 8, 9, 10, 14, 16
[16] M. Zhang, X. Guo, L. Pan, Z. Cai, F. Hong, H. Li, L. Yang, and Z. Liu, "Remodiffuse: Retrieval-augmented motion diffusion model," arXiv preprint arXiv:2304.01116, 2023. 2, 3, 6, 9, 16
[17] A. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, J. Clark et al., "Learning transferable visual models from natural language supervision," in International conference on machine learning. PmLR, 2021, pp. 8748–8763. 2, 7, 10
[18] Q. Yu, M. Tanaka, and K. Fujiwara, "Remogpt: Part-level retrieval-augmented motion-language models," in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 39, no. 9, 2025, pp. 9635–9643. 2, 3, 5, 6, 8, 9
[19] G. Tevet, S. Raab, B. Gordon, Y. Shafir, D. Cohen-or, and A. H. Bermano, "Human motion diffusion model," in The Eleventh International Conference on Learning Representations, 2023. [Online]. Available: https://openreview.net/forum?id=SJ1kSyO2jwu 2, 9
[20] J. Zhang, Y. Zhang, X. Cun, S. Huang, Y. Zhang, H. Zhao, H. Lu, and X. Shen, "T2m-gpt: Generating human motion from textual descriptions with discrete representations," in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2023. 2, 3, 9
[21] Z. Meng, Y. Xie, X. Peng, Z. Han, and H. Jiang, "Rethinking diffusion for text-driven human motion generation," arXiv preprint arXiv:2411.16575, 2024. 2, 9
[22] Z. Li, W. Yuan, Y. He, L. Qiu, S. Zhu, X. Gu, W. Shen, Y. Dong, Z. Dong, and L. T. Yang, "Lamp: Language-motion pretraining for motion generation, retrieval, and captioning," 2025. [Online]. Available: https://arxiv.org/abs/2410.07093 2, 9
[23] M. Petrovich, M. J. Black, and G. Varol, "Tmr: Text-to-motion retrieval using contrastive 3d human motion synthesis," 2023. [Online]. Available: https://arxiv.org/abs/2305.00976 2, 3, 8, 13, 14, 16
[24] S. S. Kalakonda, S. Maheshwari, and R. K. Sarvadevabhatla, "Morag – multi-fusion retrieval augmented generation for human motion," 2024. [Online]. Available: https://arxiv.org/abs/2409.12140 2, 3, 6, 9
[25] M. Petrovich, M. J. Black, and G. Varol, "Temos: Generating diverse human motions from textual descriptions," 2022. [Online]. Available: https://arxiv.org/abs/2204.14109 2, 3, 8
[26] Q. Zou, S. Yuan, S. Du, Y. Wang, C. Liu, Y. Xu, J. Chen, and X. Ji, "Parco: Part-coordinating text-to-motion synthesis," 2024. [Online]. Available: https://arxiv.org/abs/2403.18512 2, 3, 5
[27] Z. Li, S. Wang, Z. Zhang, and H. Tang, "Remomask: Retrieval-augmented masked motion generation," in Proceedings of the European Conference on Computer Vision (ECCV), 2026, arXiv:2508.02605. 2, 3, 9, 11
[28] C. Guo, X. Zuo, S. Wang, and L. Cheng, "Tm2t: Stochastic and tokenized modeling for the reciprocal generation of 3d human motions and texts," in European Conference on Computer Vision. Springer, 2022, pp. 580–597. 3
[29] J. Song, C. Meng, and S. Ermon, "Denoising diffusion implicit models," 2022. [Online]. Available: https://arxiv.org/abs/2010.02502 3
[30] Z. Liao, M. Zhang, W. Wang, L. Yang, and T. Komura, "Rmd: A simple baseline for more general human motion generation via training-free retrieval-augmented motion diffuse," 2024. [Online]. Available: https://arxiv.org/abs/2412.04343 3, 9
[31] G. Hinton, O. Vinyals, and J. Dean, "Distilling the knowledge in a neural network," 2015. [Online]. Available: https://arxiv.org/abs/1503.02531 7
[32] Q. Yu, M. Tanaka, and K. Fujiwara, "Exploring vision transformers for 3d human motion-language models with motion patches," in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024. 8
[33] C. Guo, S. Zou, X. Zuo, S. Wang, W. Ji, X. Li, and L. Cheng, "Generating diverse and natural 3d human motions from text," in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2022, pp. 5152–5161. 7, 8, 10, 15
[34] M. Plappert, C. Mandery, and T. Asfour, "The KIT motion-language dataset," Big Data, vol. 4, no. 4, pp. 236–252, dec 2016. [Online]. Available: http://dx.doi.org/10.1089/big.2016.0028 7

Zeyu Zhang is a researcher working on generative AI, with a particular interest in building models that understand and interact with the physical world. He received his bachelor's degree from the Australian National University, where he was advised by Prof. Richard Hartley and Prof. Ian Reid. His research explores generative modeling for learning physical dynamics from visual data. His work spans world models, multimodal foundation models, embodied AI, and AI for health.

Ling Shao (Fellow, IEEE) is a Distinguished Professor with the University of Chinese Academy of Sciences, Beijing, China. He was the founder of the Inception Institute of Artificial Intelligence (IIAI) and the Mohamed bin Zayed University of Artificial Intelligence (MBZUAI), Abu Dhabi, UAE. His research interests include physical AI, multimodal AI, and AI for healthcare. He is a fellow of the IEEE, the IAPR, the BCS and the IET.

Yiran Wang is a PhD student at the University of Sydney, Australia, advised by Dr Viorela Ila. He received his bachelor's and master's degrees from the University of Sydney. His research interests include computer vision and embodied AI, with a focus on human motion generation, retrieval-augmented generation, multimodal representation learning, and robotics.

Hao Tang is an Assistant Professor at Peking University, China. Previously, he held postdoctoral positions at CMU, USA, and ETH Zürich, Switzerland. He earned his master's degree from Peking University, and his Ph.D. from the University of Trento, Italy. He has had the opportunity to visit the University of Oxford, Northeastern University, NUS, and IIAI, among other institutions. His research interests include computer vision, generative AI, spatial intelligence, world model, and embodied AI.