Re$^2$MoGen: Open-Vocabulary Motion Generation via LLM Reasoning and Physics-Aware Refinement

Jiakun Zheng, Ting Xiao, Shiqin Cao, Xinran Li, Zhe Wang, Chenjia Bai

TL;DR

Re$^2$MoGen is a novel three-stage framework that solves the challenge of open-vocabulary text-to-motion generation by combining the spatial reasoning of Large Language Models (LLMs) with physics-aware reinforcement learning. By using Monte Carlo Tree Search (MCTS) to plan sparse keyframes and fine-tuning a diffusion model with a flexible temporal objective, it generates highly creative, semantically accurate, and physically plausible human motions from completely unseen text prompts.

What Problem Does This Paper Address?

Generating 3D human motion from textual descriptions (Text-to-Motion or T2M) has advanced rapidly thanks to diffusion models. However, standard models suffer from a major flaw: they are bound to their training data. When faced with "open-vocabulary" prompts—complex, sequential, or highly unusual descriptions that fall outside the training distribution—their performance plummets.

Existing attempts to fix this either map static poses to a joint text-image space (like CLIP), which discards crucial temporal dynamics and causes jerky motions, or use LLMs to clumsily splice together pre-existing motion clips. Re$^2$MoGen addresses this generalization gap, ensuring that characters can execute novel instructions fluidly without floating, sinking into the floor, or sliding their feet unnaturally.

Methods

The authors break down motion generation into a top-down, three-stage "Reasoning and Refinement" pipeline:

Figure 1. The framework of Re2MoGen, which consists of three key parts: (i) MCTS-enhanced LLM Reasoning; (ii) Motion Completion and Finetuning, and (iii) Physics-aware refinement.
  1. MCTS-Enhanced LLM Reasoning: Instead of forcing an LLM to generate complex full-body angular data, the authors task it (specifically using DeepSeek-R1) with planning a sparse sequence of keyframes. The LLM only outputs the 3D displacement deltas for 5 key joints: the pelvis (root) and four end-effectors (wrists and ankles). To overcome the spatial reasoning limitations of LLMs, they implement Monte Carlo Tree Search (MCTS) at test time, evaluating generated keyframe paths using a CLIP-based semantic similarity score on rendered images to select the most accurate motion plan.
  2. Motion Completion and Finetuning: The sparse keyframes are transformed into full-body poses using VPoser (a learned human pose prior) as an optimization constraint. To turn these disconnected keyframes into a smooth animation, the authors fine-tune a pre-trained Motion Latent Diffusion (MLD) model. Crucially, they introduce a dynamic temporal matching loss based on soft-DTW (Dynamic Time Warping), which allows the model to flexibly align the generated motion with the planned keyframes over time rather than forcing rigid, unnatural frame-by-frame matches.
  3. Physics-Aware Refinement: LLM plans often contain physical errors. The final stage uses Reinforcement Learning (Proximal Policy Optimization or PPO) to post-train the denoising network. The agent is rewarded based on three physics-aware metrics: minimizing foot sliding, eliminating floating artifacts, and preventing ground penetration.

Datasets

The framework was trained and evaluated using several prominent motion datasets:

  • HumanML3D: The primary text-motion dataset. To rigorously test open-vocabulary performance, the authors created a custom split: they withheld 40 distinct text prompts as "unseen" test data and filtered out any training pairs with a CLIP text similarity score higher than 0.75 to the test set.
  • AMASS & Motion-X: Used to train and enhance the representational capacity of the VPoser human pose prior model.
  • SnapMotion: An independent dataset containing 100 text descriptions used to verify the model's out-of-distribution generalization capabilities.

Key Insights and Ideas

  • Simplifying the LLM's Action Space: Trying to make an LLM output full-body joint rotations usually fails due to error accumulation. Restricting the LLM to just 5 end-effector joints and framing the output as directional displacement deltas (e.g., "move left wrist up 0.2m") makes spatial planning highly effective.
  • Test-Time Scaling via MCTS: LLMs often hallucinate spatial coordinates on the first try. Using MCTS allows the system to "think out loud," exploring multiple trajectory prefixes and backpropagating visual-textual alignment rewards to find the optimal motion path.
  • The Necessity of Soft-DTW: Standard reconstruction losses fail when combining LLM plans with diffusion models because the exact timing of an action (e.g., when a foot hits the ground during a jump) varies. Soft-DTW provides the temporal elasticity needed to smoothly interpolate between sparse keyframes.

Key Results

Re$^2$MoGen achieves state-of-the-art performance on open-vocabulary tasks, outperforming standard diffusion models (MDM, MLD) and prior open-vocabulary methods (AnySkill, MotionCLIP).

  • Semantic Alignment: On the modified HumanML3D dataset, Re$^2$MoGen achieved a CLIP Score of 23.64 and a VLM Score of 2.72, vastly outperforming the baseline MLD model (21.38 and 1.44, respectively).
  • Physical Plausibility: The RL refinement stage successfully reduced physical artifacts. The floating metric dropped significantly to 2.46 mm and ground penetration was minimized to 21.70 mm, yielding much more grounded animations than unrefined outputs.
Figure 2. Qualitative comparison results of motions generated by different methods.

The authors also demonstrated the practical viability of their approach by successfully deploying the generated motions onto physical hardware—a real-world humanoid robot executing complex tasks like squatting and lifting knees.

Figure 4. Deploy generated motions on the real world robot.

Limitations and Future Work

While Re$^2$MoGen marks a significant step forward, it relies heavily on test-time MCTS sampling, which introduces computational overhead during the initial keyframe generation phase. Additionally, the physical refinement happens via a reward model rather than a true differentiable physics engine, meaning highly dynamic or contact-rich interactions (like interacting with complex objects) might still require further simulation tuning. Future work could explore accelerating the search process or integrating tighter coupling with real-time physics simulators.

Summary updated

Abstract

Text-to-motion (T2M) generation aims to control the behavior of a target character via textual descriptions. Leveraging text-motion paired datasets, existing T2M models have achieved impressive performance in generating high-quality motions within the distribution of their training data. However, their performance deteriorates notably when the motion descriptions differ significantly from the training texts. To address this issue, we propose Re$^2$MoGen, a Reasoning and Refinement open-vocabulary Motion Generation framework that leverages enhanced Large Language Model (LLM) reasoning to generate an initial motion planning and then refine its physical plausibility via reinforcement learning (RL) post-training. Specifically, Re$^2$MoGen consists of three stages: We first employ Monte Carlo tree search to enhance the LLM's reasoning ability in generating reasonable keyframes of the motion based on text prompts, specifying only the root and several key joints' positions to ease the reasoning process. Then, we apply a human pose model as a prior to optimize the full-body poses based on the planned keyframes and use the resulting incomplete motion to supervise fine-tuning a pre-trained motion generator via a dynamic temporal matching objective, enabling spatiotemporal completion. Finally, we use post-training with physics-aware reward to refine motion quality to eliminate physical implausibility in LLM-planned motions. Extensive experiments demonstrate that our framework can generate semantically consistent and physically plausible motions and achieve state-of-the-art performance in open-vocabulary motion generation.
BibTeX
@inproceedings{zheng2026re,
  author = {Jiakun Zheng and Ting Xiao and Shiqin Cao and Xinran Li and Zhe Wang and Chenjia Bai},
  title = {{Re$^2$MoGen: Open-Vocabulary Motion Generation via LLM Reasoning and Physics-Aware Refinement}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=zwYQmH4yW8},
}
Figure