Summary (Overview)
- Motion Mamba 2.0 is a Mamba-based autoregressive diffusion architecture for long-horizon, real-time controllable humanoid (Unitree G1) motion generation, integrating local attention, resumable Mamba-3 recurrent states, and a novel Persistent Content Memory (PCM) mechanism.
- The method achieves accurate terminal spatial control over rollouts up to 39.52 seconds, with Root CE of 7.55 cm and End CE of 13.64 cm on retargeted HiPHI, outperforming all compared baselines.
- A hardware-aware inference pipeline combining CUDA Graph replay, fused kernels, and execution-flow simplification reduces median complete-window latency from 1685.35 ms to 276.14 ms on an RTX 4090, achieving a 6.138× median paired speedup.
- Real-world deployment on a physical Unitree G1 demonstrates 94% full-task success across 100 trials with no observed falls, supporting sequential text-guided action composition and interactive keyboard/mouse control.
- The work extends the authors' ECCV 2024 paper (Motion Mamba) with a reformulated autoregressive root–body diffusion framework, architectural redesign, and comprehensive evaluation across three G1 motion benchmarks.
Introduction and Theoretical Foundation
Background and Motivation
Interactive humanoid control requires a motion generator that can:
- Interpret action descriptions and accommodate spatial constraints
- Continue from already-produced motion while incorporating new commands
- Provide references quickly enough for interactive use and downstream tracking
Existing autoregressive diffusion methods face two fundamental difficulties:
- Bounded attention caches discard older motion features, while unbounded caches grow storage/computation with sequence length
- Repeated denoising of short windows incurs substantial execution overhead even when individual model evaluations are small
Key Theoretical Insight
State-space models (SSMs) offer an alternative to storing every historical token by summarizing sequences in a recurrent state. However, a compressed recurrent state and an attention cache expose history differently: the former carries evolving context, while the latter permits direct retrieval of explicit features. This motivates a learned interface between accumulated recurrent motion state and attention-accessible content.
A critical distinction for diffusion: successive noisy candidates describe alternatives for the same output window, not successive moments of the accepted motion stream. Therefore, the boundary between prediction and history commitment must be part of the model's streaming formulation.
Streaming Formulation
The conditional distribution is factorized over windows:
where is the text instruction, spatial targets, validity masks, and the memory from the accepted motion prefix.
Motion Representation
The hybrid root–body representation retains an explicit root trajectory and compresses articulation with a causal motion codec:
where is position, heading, a root patch, and a body latent.
Methodology
Two-Stage Recurrent Root–Body Denoising
Each diffusion evaluation first predicts the global root, then predicts articulation conditioned on that root:
Mamba-3 Recurrence
The resumable SISO Mamba-3 scan uses trapezoidal state updates with accumulated phase rotations:
Persistent Content Memory (PCM)
PCM learns a state-to-attention mapping that converts:
- State summaries — pooled accepted recurrent matrix:
- State differences — latest accepted transition:
- Text-conditioned features — modulated via learned parameters
The write path (Eqs. 9–12) uses featurewise modulation and a gated update:
The residual attention readout combines base attention, PCM-augmented attention, and Mamba outputs:
Accepted-Only State Updates
During denoising, all historical states are frozen. The cache, recurrent states, and PCM slots are committed only after a clean motion window is accepted, separating diffusion sampling iterations from temporal evolution of generated motion.
Learning Objective
Inference Optimizations
- Read-only execution: avoids materializing unused state proposals during denoising
- Fusion kernel: fuses Mamba transition preprocessing into a single traversal
- CUDA Graph replay: captures root and body DiT stacks separately, with the three CFG branches executed serially
Empirical Validation / Results
Datasets and Retargeting
- 29-DoF G1 representation with 414 physical features at 25 Hz
- Training pool: 156,819 motion records, 588.92 stored hours
- Composition: 124,658 BONES Seed, 14,612 HumanML3D, 17,549 HiPHI records
- Retargeting quality: cross-clip median ankle residuals of 1.49 cm (HumanML3D) and 0.93 cm (HiPHI)
Main Results on HiPHI (Table 1)
| Duration | Root CE (cm) | End CE (cm) | Cmd. (%) | R@3 (%) |
|---|---|---|---|---|
| 2.08 s | 2.78 | 7.19 | 86.96 | 35.58 |
| 8.32 s | 2.53 | 7.11 | 48.82 | 21.35 |
| 18.72 s | 2.87 | 8.45 | 47.11 | 23.05 |
| 39.52 s | 7.55 | 13.64 | 46.05 | 23.68 |
Motion Mamba 2.0 achieves the lowest Root CE at every duration and the lowest or tied-lowest End CE, demonstrating accurate terminal constraint satisfaction over extended rollouts.
Architectural Ablations (HiPHI, 39.52 s)
| Variant | Root CE↓ | End CE↓ | Cmd.↑ | R@3↑ |
|---|---|---|---|---|
| Minimal (no Mamba) | 60.00 | 64.86 | 35.27 | 17.26 |
| Native (Mamba, no PCM) | 9.36 | 15.54 | 32.20 | 17.44 |
| Native + PCM (w/o text) | 8.62 | 14.62 | 33.34 | 21.18 |
| Native + PCM (w/o delta) | 8.30 | 14.18 | 32.65 | 21.11 |
| Motion Mamba 2.0 | 7.55 | 13.64 | 46.05 | 23.68 |
Key findings:
- Recurrent modeling reduces Root CE from 60.00 to 9.36 cm at 39.52 s (vs. Minimal)
- PCM further reduces Root CE by 19.3% and improves Cmd. from 32.20% to 46.05%
- Text conditioning and state-difference features both contribute to long-horizon control
Inference Efficiency (Table 7)
| Flow | Fusion | Graph | p50 (ms) | p95 (ms) | Speedup |
|---|---|---|---|---|---|
| — | — | — | 1685.35 | 2471.65 | 1.000× |
| ✓ | — | — | 1102.82 | 1647.52 | 1.525× |
| ✓ | ✓ | — | 1069.52 | 1588.74 | 1.578× |
| ✓ | — | ✓ | 285.20 | 352.22 | 5.943× |
| ✓ | ✓ | ✓ | 276.14 | 345.82 | 6.138× |
The optimized path preserves bitwise-identical generated outputs and committed states across four 100-window rollouts.
Real-World Evaluation (Tables 8–9)
| Task | Full Success | Stages | Text Switches | Falls |
|---|---|---|---|---|
| T1: Action composition | 18/20 (90.0%) | 136/140 | 117/120 | 0 |
| T2: Expressive motion | 19/20 (95.0%) | 99/100 | 78/80 | 0 |
| T3: Keyboard control | 29/30 (96.7%) | 59/60 | 30/30 | 0 |
| T4: Mouse control | 28/30 (93.3%) | 58/60 | 29/30 | 0 |
Interactive control metrics: Speed RMSE of 0.041/0.045 m/s (keyboard/mouse), heading MAE of 4.6°/5.1°, median physical-response latencies of 351/360 ms, and 98.7%/97.3% events within the 1.5-s deadline.
Theoretical and Practical Implications
Theoretical Contributions
- State-attention interface: PCM provides a principled learned mapping between compressed recurrent state and attention-accessible content, addressing the complementary roles of SSM recurrence and attention retrieval
- Accepted-only history updates: Formal separation of diffusion sampling iterations from temporal motion evolution prevents intermediate noisy candidates from corrupting the history
- Bounded computational context: Fixed-size recurrent states, cache, and PCM slots bound memory/computation per window regardless of elapsed generation time
Practical Implications
- Real-time interactive control: 276.14 ms per 2.08-s window (0.133 real-time factor) enables responsive humanoid control on consumer hardware (RTX 4090)
- Physical deployment: Successful multi-stage text-guided execution and interactive locomotion on a real Unitree G1 demonstrate practical viability
- Dataset contribution: Unified 29-DoF G1 representation across three benchmarks with retargeting assessment provides a standardized evaluation protocol
Conclusion
Motion Mamba 2.0 presents an autoregressive diffusion framework combining local attention, resumable Mamba-3 states, and persistent content memory for long-horizon controllable humanoid motion generation. Key achievements include:
- Lowest Root/End CE across all evaluated horizons (up to 39.52 s) on HiPHI
- 6.138× median paired inference speedup via state-preserving optimizations
- 94% full-task success on physical G1 with no falls
Future work will focus on whole-body loco-manipulation, coordinating locomotion with object manipulation—extending beyond the current scope of controllable motion generation without object interaction.
Related papers
- CAST: History-Adaptive Spectral Clipping for LLM Pretraining
CAST adapts spectral gradient clipping thresholds using optimizer-state histories and output spectral-norm feedback, beating nine baselines in MoE pretraining loss and stability.
- Done, But Still Working: Anytime Evaluation of When Coding Agents Should Stop
Anytime evaluation of coding agents shows they waste 42-66% of run cost after passing self-tests, and stopping rules can save up to 57% without losing quality.
- Do Halting Heads Really Save Compute in Looped Language Models?
Halting heads in looped language models save far less compute than reported because mixture-trained heads rarely stop tokens and batching overhead eliminates most remaining gains.