In-Context Model Predictive Generation
- In-Context Model Predictive Generation (ICMPG) is a framework for text-driven human motion synthesis that reformulates motion generation as a receding-horizon control problem using discrete motion tokens.
- It employs a two-module system where the Context-Aware Motion Generation (CAMG) module decomposes instructions and the Model Predictive Generation (MPG) module evaluates candidates via physical simulation and semantic scoring.
- The framework achieves improved physical plausibility and semantic fidelity through a closed-loop, MPC-like iterative refinement process validated by extensive quantitative benchmarks.
Searching arXiv for the cited papers to ground the article. I’ll look up the arXiv entries for the main and related papers mentioned. In-Context Model Predictive Generation (ICMPG) is a framework for text-driven human motion synthesis that integrates language-model planning with inference-time physical feedback, introduced in 2026 as a method for addressing the persistent trade-off between semantic fidelity and physical realism in motion generation (Fu et al., 25 Jun 2026). It reformulates motion synthesis as a Model Predictive Control (MPC)-like process with two modules: Context-Aware Motion Generation (CAMG), which uses an LLM to decompose instructions and propose motion-token candidates, and Model Predictive Generation (MPG), which evaluates those candidates through physical simulation and semantic alignment before selecting the sequence that guides subsequent generation. In the formulation of the paper, this closed-loop refinement allows adaptation to both input semantics and the simulated physical environment without task-specific policy retraining (Fu et al., 25 Jun 2026).
1. Problem setting and conceptual motivation
ICMPG is motivated by a specific failure mode in text-to-motion generation: methods centered on LLMs can interpret diverse open-vocabulary instructions and compose high-level action plans, but they often generate motions that violate physical constraints, whereas physics-aware models improve realism through simulation or control but struggle with semantic complexity, fine-grained instructions, and novel concepts (Fu et al., 25 Jun 2026). The framework is presented as a direct response to that gap.
The central conceptual move is to treat motion generation not as a one-shot decoding problem but as a receding-horizon decision process over discrete motion tokens. CAMG proposes candidate continuations, and MPG evaluates them against two criteria that the paper treats jointly: physical plausibility and semantic faithfulness. This differs explicitly from open-loop generation. The paper states that unlike open-loop generation, the closed-loop refinement enables ICMPG to adapt motions to both the input semantics and the simulated physical environment, while remaining flexible enough to incorporate different LLM backbones (Fu et al., 25 Jun 2026).
A common misunderstanding is to regard ICMPG as a prompt-engineering variant of text-to-motion. In the formulation of the paper, that is too narrow. The LLM is frozen and used as a planner/generator, but the decisive selection step occurs through simulation-time feedback. The resulting system is therefore neither a purely linguistic planner nor a purely physics-based controller; it is an MPC-like synthesis loop over tokenized motion sequences.
2. System architecture: CAMG and MPG
The pipeline consists of two major modules, preceded by one-time offline preparation (Fu et al., 25 Jun 2026). The offline stage includes a VQ-VAE trained to encode 3D human motion clips into discrete motion tokens, a lightweight Transformer called SemAligner trained by contrastive loss to retrieve the top–K text–motion demonstration pairs, and a pre-trained physics policy such as PHC for later simulation.
Within CAMG, the online process begins with an LLM Planner. It is prompted with the raw text and a small set of atomic “CMU” motion examples , and outputs a decomposition into a sequence of simple motion-focused instructions of the form “he does X, he does Y …” (Fu et al., 25 Jun 2026). SemAligner then encodes and retrieves , the top–K semantically closest full motion–text pairs from the training set. Finally, the LLM Generator receives , , and any previously selected motion prefix , and samples candidate motion-token sequences, each of length 0.
The notation given for candidate generation is
1
where each sampled sequence is a token block proposed at iteration 2 (Fu et al., 25 Jun 2026). The architecture is therefore compositional in two senses: the text is decomposed into simpler action units, and the motion is built incrementally as a sequence of token blocks chosen under feedback.
The second module, MPG, performs the control-like evaluation. At each iteration it simulates each candidate under policy 3 in Isaac Gym, computes a discounted physical return, renders key-frames as SMPL meshes for semantic scoring with ActionCLIP or CLIP, forms a composite reward, and selects the highest-scoring candidate to append to the current history (Fu et al., 25 Jun 2026). In the paper’s summary phrase, CAMG proposes, MPG evaluates and controls, in a receding-horizon MPC-like loop.
3. MPC-like formulation over motion tokens
The paper explicitly casts motion synthesis as a discrete-time control problem over motion tokens (Fu et al., 25 Jun 2026). Let 4 denote the current motion-token prefix and let 5 denote the next block of 6 tokens. The state transition is defined by concatenation: 7
This formulation treats each candidate token block as a control action. The short-horizon optimization then amounts to selecting the block that maximizes a composite reward conditioned on the current prefix. The control law is written as
8
followed by the update 9 (Fu et al., 25 Jun 2026).
The composite reward is presented in two closely related forms in the paper. In the high-level module description, MPG computes
0
In the explicit MPC-like optimization section, the combined score is written as
1
with typical choice 2 (Fu et al., 25 Jun 2026). The paper’s ablation statement that reward weight 3 trades off R-Precision versus Phys-Err, with 4 best overall, reinforces the interpretation that ICMPG is tuned as a hybrid semantic-physical objective rather than as a pure feasibility filter.
This MPC analogy should not be overstated. The “state” is a token prefix rather than a continuous physical state, and the “control” is a candidate token block. Nevertheless, the receding-horizon structure, iterative replanning, and reward-based candidate selection are all explicit parts of the formulation (Fu et al., 25 Jun 2026).
4. Prompting, retrieval, and inference-time feedback
ICMPG uses two distinct prompt templates (Fu et al., 25 Jun 2026). The planner prompt asks the model to re-phrase the raw user input into a JSON object with keys "CoT" and "Motions", using only verbs from the atomic actions set and illustrated with 3–5 short atomic examples 5. The generator prompt asks the model to map the decomposed prompt 6 plus the prefix tokens 7 into a list of candidate motion-token sequences, again in JSON format with "CoT" and "Candidate motion tokens" fields. Sampling is performed with temperature 8 and top-p 9 (Fu et al., 25 Jun 2026).
The retrieval component is semantically targeted. The few-shot context contains both atomic-action examples and retrieved semantic demonstrations. Specifically, the prompts interleave 0, the retrieved text–motion pairs 1, the current decomposition 2, and the already selected motion prefix 3 (Fu et al., 25 Jun 2026). This makes the in-context signal heterogeneous: part of it is symbolic decomposition guidance, and part of it is demonstration-based retrieval.
The physical evaluation loop is equally specific. The simulator is NVIDIA Isaac Gym at 4 Hz, and the policy 5 is a pre-trained PHC policy that can track any realistic human motion clip (Fu et al., 25 Jun 2026). The physical reward over horizon 6 is defined as
7
where 8 is the normalized RL reward (Fu et al., 25 Jun 2026). The semantic reward is formed by rendering a subset of key-frames 9 as SMPL meshes, encoding the text with 0 and the images with 1, and computing a cosine-style alignment score: 2
The closed-loop refinement algorithm then proceeds by repeatedly generating candidates, simulating each one, computing 3, 4, and 5, selecting the best candidate 6, appending it to the prefix, and decoding the final token sequence through the VQ-VAE decoder into 3D motion (Fu et al., 25 Jun 2026). This is the operational core of ICMPG: inference is itself the control loop.
5. Experimental results and ablations
The paper reports extensive experiments across standard and zero-shot open-vocabulary settings, and states that ICMPG generalizes robustly to diverse commands while producing motions that are more physically plausible and semantically faithful than representative baselines on the evaluated benchmarks (Fu et al., 25 Jun 2026). The quantitative profile is divided across BABEL, HumanML3D, KIT-ML, and zero-shot generalization benchmarks.
On the zero-shot BABEL evaluation, with no BABEL training unless otherwise noted, the reported FID values are: AvatarCLIP 7, MotionCLIP 8, AnySkill 9, ICMPG (no LoRA) 0, and ICMPG (LoRA) 1, with the LoRA variant marked as best (Fu et al., 25 Jun 2026). For CLIP_Score, the reported values are AvatarCLIP 2, MotionCLIP 3, AnySkill 4, ICMPG 5, and ICMPG (LoRA) 6, again best for the LoRA variant. For R-Precision@1, MotionCLIP obtains 7, AnySkill 8, ICMPG 9, and ICMPG (LoRA) 0. On simulation success rate, AnySkill reaches 1, ICMPG 2, and ICMPG (LoRA) 3. For Phys-Err, the values are AnySkill 4, ICMPG 5, and ICMPG (LoRA) 6 (Fu et al., 25 Jun 2026).
On standard text-to-motion benchmarks, the paper reports for HumanML3D that R-Precision@1 is 7 for T2M-GPT, 8 for MotionDiffuse, 9 for ICMPG, and 0 for ICMPG(LoRA), while Phys-Err is 1 for MotionDiffuse, 2 for T2M-GPT, 3 for ICMPG, and 4 for ICMPG(LoRA) (Fu et al., 25 Jun 2026). For KIT-ML, the listed R-Precision@1 values are MDM 5, T2M-GPT 6, ICMPG 7, and ICMPG(LoRA) 8, while Phys-Err is MDM 9, T2M-GPT 0, ICMPG 1, and ICMPG(LoRA) 2 (Fu et al., 25 Jun 2026).
On zero-shot generalization with MotionMillion and PP-Motion, semantic performance measured by MM-Hit@1 is 3 for MotionGPT, 4 for MotionCraft, and 5 for ICMPG, marked as best (Fu et al., 25 Jun 2026). For physical metrics, UniPhys attains Mod-Cost 6 and Penetration 7, identified as best physics, MotionCraft gives 8, and ICMPG gives 9, described as a strong hybrid (Fu et al., 25 Jun 2026).
The ablations are structurally important. The paper states that reward weight 0 trades off R-Precision and Phys-Err, with 1 best overall; larger LLM backbones, specifically LLaMA-3.1 and Phi-4, improve semantic scores; and inclusion of the LLM Planner module drastically improves FID and success on long, complex prompts (Fu et al., 25 Jun 2026). This suggests that the planner is not merely an auxiliary prompt formatter, but a major determinant of long-horizon compositional behavior.
6. Broader usage of the term and relation to adjacent work
Within the motion-synthesis literature, ICMPG refers specifically to the CAMG–MPG framework of (Fu et al., 25 Jun 2026). At the same time, several related papers and expository mappings use “In-Context Model Predictive Generation” as a broader label for systems that combine in-context inference with receding-horizon prediction, feedback, or control. This suggests that the acronym is functioning both as a proper name for a specific framework and as a more general design pattern.
In dynamic manipulation, Van der Merwe and Jha describe an in-context iterative policy-improvement loop that can be rendered in MPC-style ICMPG form: a parametric policy 2 is rolled out, a task-specific error 3 is computed, the 4 nearest examples are retrieved from an offline dataset, an LLM predicts 5, and the update 6 is applied for 7 iterations; the reported retrieval size is 8, the model is gpt-4o with temperature 9 and top_p 00, and the final best-policy cost after 20 iterations reaches 01 on slide and 02 on roll-gc-real (Merwe et al., 20 Aug 2025). In that usage, ICMPG denotes LLM-mediated receding-horizon policy adjustment rather than token-level motion synthesis.
In power-grid control, InstructMPC presents a closed-loop framework in which an LLM-guided Contextual Disturbances Predictor produces disturbance forecasts for finite-horizon MPC, and only the decoder’s last layer is fine-tuned online; for linear systems optimized via the tailored loss, the paper gives a regret bound of 03 (Wu et al., 5 Dec 2025). In prompt optimization, self-instructed derived-prompt generation is explicitly interpreted as a special case of a more general ICMPG paradigm in which a planner proposes a derived prompt, a frozen response model and reward model evaluate it, and the resulting pair 04 is re-used as an in-context demonstration (Li et al., 2024). In language-model pretraining, ContextLM is described as realizing ICMPG by predicting next-context embeddings and feeding them back into token decoding; for GPT2-XL the average perplexity is reported as approximately 05 (Dai et al., 23 Oct 2025).
These broader usages matter because they clarify what is distinctive about the 2026 motion-synthesis framework and what is more generic. The specific contribution of (Fu et al., 25 Jun 2026) is not simply that it is “closed-loop” or “in-context,” since related work uses similar descriptors in other domains. Its specificity lies in the coupling of open-vocabulary motion planning, discrete motion tokens, simulation-based physical evaluation, semantic scoring from rendered SMPL key-frames, and iterative selection under an MPC-like loop. A plausible implication is that ICMPG names both a concrete architecture for text-driven human motion synthesis and an emerging cross-domain pattern for combining LLM proposals with predictive feedback.