Manuscript Offprint

arXiv:2609.35407

BiMoGen: Bidirectional Motion-Text Generation via Unified Masked Discrete Diffusion

Wanjiang Weng, Yongliang Wu, Xiaofeng Tan, Xingyu Zhu, Wenbo Zhu, Hongsong Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Text-to-motion generation and motion-to-text captioning are two fundamental tasks in human motion modeling, both grounded in the same underlying motion-text correspondence. Existing unified approaches mostly rely on autoregressive modeling, which imposes a fixed generation order and is therefore poorly suited to the bidirectional dependencies between language and motion, allowing early prediction errors to persist as fixed context and degrade both temporal coherence and cross-modal consistency. Masked discrete diffusion, which models sequences through iterative bidirectional prediction, offers a natural remedy. We therefore propose BiMoGen (Bidirectional Motion-text Generation), a unified masked discrete diffusion framework for bidirectional motion-text modeling. To stabilize training, we design Decoupled Uni- and Cross-Modal Training, in which masked pretraining first establishes cross-modal correspondence on paired motion-text sequences, after which supervised fine-tuning specializes the model for bidirectional generation. Masked diffusion nonetheless introduces its own source of error, as the model is trained on clean ground-truth context yet encounters self-generated and potentially erroneous context at inference, with errors committed under heavily masked states propagating through subsequent steps. We further introduce Generation-Aware Self-Correction that exposes the model to its own predictions during training and applies correction passes at early sampling steps to revise unreliably committed tokens. Extensive experiments on HumanML3D and KIT-ML demonstrate competitive performance on both tasks, validating the effectiveness of the proposed two-stage training and self-correction designs. The project page is available at https://wengwanjiang.github.io/BiMoGen-Page.

1 Introduction

Text-to-motion generation (T2M) and motion-to-text captioning (M2T) are two closely related tasks that both rely on understanding the correspondence between human motion and natural language [41, 6, 15, 25, 13, 55, 26]. Recent work has therefore pursued unified frameworks that address both tasks within a single model, since jointly modeling the two directions promises stronger cross-modal grounding and a more compact deployment. Most existing approaches build on autoregressive modeling [21, 65, 52, 46, 63], which discretizes motion into tokens, concatenates them with text tokens, and trains a Transformer through next-token prediction [65, 21, 46, 28, 20]. Yet the underlying causal backbone imposes a fixed left-to-right generation order and provides no mechanism to revise early prediction errors. Once a token is incorrectly produced, it remains in the prefix conditioning all

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

Preprint.

Figure

Figure 1: Overview of the BiMoGen framework. BiMoGen unifies text-to-motion generation and motion-to-text captioning within a single masked discrete diffusion model, and employs a self-correction mechanism that revises unreliable predictions at early sampling steps.

subsequent steps, and the resulting errors propagate through the sequence and ultimately degrade temporal coherence and motion-text consistency.

Masked discrete diffusion offers a more principled alternative [51, 30, 2, 34, 4, 39, 1]. By iteratively predicting masked tokens from bidirectional context, it naturally captures the bidirectional dependencies between text and motion and avoids premature commitments made under limited information. However, applying masked diffusion to unified motion-text modeling raises two fundamental challenges. First, training a single model for both T2M and M2T entangles cross-modal correspondence learning with conditional generation, forcing the model to produce target tokens before reliable motion-text alignment has emerged and destabilizing optimization. Second, the model is trained on corrupted ground-truth context yet must condition on its own earlier predictions at inference, and this train-test misalignment becomes most severe under the high mask ratios encountered in early sampling steps, where committed errors persist and cascade into later predictions.

To address these challenges, we propose BiMoGen (Bidirectional Motion-text Generation), a unified masked discrete diffusion framework for bidirectional motion-text modeling. As shown in Figure 2, BiMoGen handles both T2M and M2T within a single model through masked token prediction, naturally accommodating the bidirectional dependencies between the two modalities. Recognizing that cross-modal alignment and conditional generation impose fundamentally different learning objectives, we introduce a two-stage strategy named Decoupled Uni- and Cross-Modal Training. The first stage performs masked pretraining on paired motion-text sequences to establish robust cross-modal correspondence, while the second stage applies supervised fine-tuning that specializes the model for bidirectional generation. To further close the gap between training and inference, we propose Generation-Aware Self-Correction that explicitly aligns the two regimes. During training, the model learns to recover ground-truth tokens from its own predicted context, while at inference correction passes are applied at early sampling steps to revise unreliable tokens before errors propagate to subsequent steps. Extensive experiments on HumanML3D [13] and KIT-ML [37] demonstrate that BiMoGen achieves competitive performance on both T2M generation and M2T captioning.

Our contributions are summarized as follows:

• We propose BiMoGen, a unified masked discrete diffusion framework that formulates T2M generation and M2T captioning under a shared bidirectional architecture.

• We introduce Generation-Aware Self-Correction, applied to both training and sampling, to mitigate the train–test misalignment inherent in masked diffusion.

• We design Decoupled Uni- and Cross-Modal Training, which comprises masked pretraining and supervised fine-tuning stages to disentangle cross-modal alignment from conditional generation.

References (63)