In-Context Model Predictive Generation: Open-Vocabulary Motion Synthesis from Language Models to Physics

Xiaomeng Fu, Junfan Lin, Yang Liu, Yaowei Wang, Guanbin Li, Liang Lin, Ziliang ChenarXiv 2026

TL;DR

ICMPG (In-Context Model Predictive Generation) bridges the gap between the open-vocabulary reasoning of Large Language Models (LLMs) and the strict constraints of physical reality for human motion synthesis. By framing motion generation as a closed-loop, receding-horizon optimization process—analogous to Model Predictive Control (MPC)—it iteratively refines motion sequences using both physical simulation and semantic feedback at inference time. This approach eliminates the need for task-specific reinforcement learning policy retraining while achieving state-of-the-art open-vocabulary generalization.

What Problem Does This Paper Address?

Generating realistic human motion from text descriptions (text-to-motion) is crucial for gaming, virtual reality, and animation. However, current methods suffer from a frustrating trade-off:

  1. LLM-based generative models excel at understanding creative, complex, and "open-vocabulary" text prompts, but they lack an understanding of physical laws, often producing motions that float, slide, or clip through the ground.
  2. Physics-aware models use physics engines or reinforcement learning (RL) to ensure realistic movements, but they are semantically brittle. They struggle with complex or novel text instructions because they typically rely on rigid, task-specific policies trained from scratch.

The authors tackle this dilemma by asking: How can we synthesize human motion that is both semantically faithful to open-vocabulary text and physically plausible in a simulated environment, without costly offline retraining?

Methods

The core innovation is In-Context Model Predictive Generation (ICMPG), which treats motion generation as a closed-loop control loop. The framework is divided into two main modules:

1. Context-Aware Motion Generation (CAMG)

This module acts as the "planner" and "generator" using a frozen LLM:

  • Motion Tokenization: A VQ-VAE encodes continuous human motion into discrete "motion tokens" (representing atomic motion primitives).
  • LLM Planner: A high-level LLM decomposes complex, open-vocabulary text prompts into structured, time-ordered atomic descriptions.
  • SemAligner: A trained Transformer-based module retrieves semantically relevant in-context motion examples from a dataset to guide the LLM.
  • LLM Generator: The LLM uses these prompts and examples to propose a set of candidate motion token sequences.

2. Model Predictive Generation (MPG)

Instead of just accepting the LLM's first guess (open-loop), the MPG module introduces a closed-loop refinement process:

  • Physical Reward ($R_{phy}$): Candidates are executed in a physics simulator (Isaac Gym) using a pre-trained universal policy to evaluate physical stability and ground contact.
  • Semantic Reward ($R_{sem}$): The candidate motions are rendered into textureless SMPL meshes (to eliminate background noise), and a vision-language model (ActionCLIP) evaluates how well the actual motion matches the text prompt.
  • Receding-Horizon Selection: The framework calculates a total reward, selects the best motion segment, appends it to the generated history, and rolls the generation window forward.

The authors also introduce a LoRA fine-tuned variant that utilizes a differentiable world model to approximate the physics simulator, significantly speeding up inference.

Fig. 2. Complete Workflow of the In-Context Model Predictive Generation (ICMPG) Framework. The pipeline begins with a one-time offline preparation phase, where a VQ-VAE, SemAligner, and a pre-trained policy π are initialized for motion encoding, demonstration retrieval, and physical simulation, respectively. In the online motion refinement phase, the LLM Planner decomposes the input text t into a structured target prompt tp using atomic demonstrations Adem. The LLM Generator then combines tp with semantic demonstrations Sdem to produce candidate motion sequences Sm. The Model Predictive Generation (MPG) module evaluates these candidates using the physical reward Rphy and semantic reward Rsem, selects the optimal motion sequence oi, and appends it to the history O for the next generation step.

Datasets

The framework was evaluated on three major datasets:

  • HumanML3D & KIT-ML: Standard text-to-motion benchmarks used to evaluate motion quality and basic text alignment.
  • BABEL: A large-scale dataset containing highly diverse natural language annotations of motion capture sequences. The authors used BABEL specifically for zero-shot, open-vocabulary testing, noting that 24% of the action verbs and 39% of the object nouns in the test set were completely unseen during training.

Key Insights and Ideas

  • Online Refinement over Offline Training: Instead of training an RL agent to learn a new policy for every unique prompt, ICMPG shifts the burden to inference-time filtering. The frozen LLM proposes creative variations, and the physics engine acts as a validator.
  • Compositionality for Out-of-Distribution (OOD) Tasks: A t-SNE analysis of the motion codebook revealed that the model doesn't need new tokens to express unseen actions (like "ballroom dance"). Instead, the LLM successfully recombines a finite set of learned atomic primitives into novel temporal sequences.
  • Canonicalization via Textureless Meshes: To bridge the domain gap between real-world video text-matchers and simulated characters, rendering motions as textureless SMPL meshes forces the semantic evaluator to focus purely on pose dynamics rather than visual artifacts.

Key Results

  • Open-Vocabulary Superiority: On the challenging zero-shot BABEL dataset, the LoRA-fine-tuned ICMPG achieved a Top-1 R-Precision of 0.316 and a CLIP Score of 29.32, outperforming leading open-vocabulary baselines like AnySkill and MotionCLIP.
  • Physical Realism: ICMPG maintained a physical simulation success rate of 82.9% on BABEL, matching heavy RL-based methods without requiring their extensive task-specific training.
  • Standard Benchmarks: On HumanML3D, ICMPG dramatically reduced physical errors (achieving a Phys-Err of 2.622 mm compared to over 20 mm for standard generative models like T2M-GPT and MotionGPT) while keeping competitive semantic scores.

Limitations and Future Work

  • Inference Latency: The standard inference-time optimization version of ICMPG requires running multiple simulation iterations and LLM generation steps online, resulting in an inference latency of ~10 seconds per sequence. While the LoRA variant cuts this down to ~0.6 seconds, achieving true real-time performance remains a challenge.
  • Dependence on LLM Scale: The ablation studies showed that the framework relies heavily on the reasoning capabilities of advanced foundation models (e.g., LLaMA-3.1-70B). Performance drops noticeably when scaled down to weaker open-weight models without the dedicated planning module.
  • Future Directions: The authors plan to extend this closed-loop paradigm to multi-modal inputs (such as audio-driven or video-guided motion) and interactive environments where the character must physically react to dynamic obstacles.

Summary updated

BibTeX
@misc{fu2026context,
  author = {Xiaomeng Fu and Junfan Lin and Yang Liu and Yaowei Wang and Guanbin Li and Liang Lin and Ziliang Chen},
  title = {{In-Context Model Predictive Generation: Open-Vocabulary Motion Synthesis from Language Models to Physics}},
  year = {2026},
  eprint = {2606.26981},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.26981},
}
Figure