HyperAIHyperAI

Command Palette

Search for a command to run...

Motion Mamba 2.0: 장기 지평 휴머노이드 제어를 위한 자기회귀 확산 맘바

Yue Huang Tianshan Zhang Zeyu Zhang Jayeon Kang Akide Liu Sungjoon Choi Dacheng Tao Hao Tang

초록

장기 지평의 실시간 제어 가능한 모션 생성은 상호작용형 애니메이션과 휴머노이드 로봇공학에서 필수적이며, 이때 에이전트는 움직이면서 변화하는 명령과 공간적 목표에 대응해야 한다. 기존의 자기회귀 확산 방법은 모션을 점진적으로 생성하지만, 제한된 어텐션 캐시로 인해 먼 과거 이력에 접근하기 어렵고, 반복적인 디노이징은 상당한 추론 오버헤드를 초래한다. 본 논문에서는 장기 지평의 제어 가능한 모션 생성을 위해 로컬 어텐션, 재개 가능한 순환 상태, 그리고 영속적 콘텐츠 메모리(PCM)를 통합한 맘바 기반 루트-바디 확산 아키텍처인 Motion Mamba 2.0을 제안한다. PCM은 맘바 순환 상태로부터 압축된 모션 이력을 상태 변화 및 텍스트 조건 특징과 함께 변환하여, 로컬 어텐션이 접근할 수 있는 동적으로 갱신되는 콘텐츠 슬롯으로 만든다. 효율적인 추론을 위해, 정규 이력 갱신을 보존하면서 CUDA Graph 재생, 융합 커널, 실행 흐름 단순화를 결합한 이 아키텍처 맞춤형 실행 기법을 추가로 개발한다. 리타게팅된 HiPHI에 대한 평가는 최대 39.52초의 롤아웃에 걸쳐 정확한 종단 제어를 입증하며, BONES Seed와 리타게팅된 HumanML3D에 대한 단기 지평 비교는 모델이 강력한 공간 제어와 텍스트-모션 정합성 또한 유지함을 보여준다. RTX 4090에서 최적화된 실행은 전체 윈도우 지연 시간의 중앙값을 1685.35ms에서 276.14ms로 줄여, 테스트된 롤아웃에서 동일한 출력과 커밋된 상태를 보존하면서 중앙값 기준 6.138배의 속도 향상을 달성한다. 나아가 Unitree G1에 대한 광범위한 실세계 평가를 수행하여, 키보드 및 마우스 제어를 통한 순차적 텍스트 기반 행동 구성, 표현력 있는 모션, 상호작용형 이동을 입증한다.

One-sentence Summary

The authors present Motion Mamba 2.0, a Mamba-based root–body diffusion architecture that integrates local attention, resumable recurrent states, and persistent content memory for long-horizon controllable motion generation, while CUDA Graph replay and fused kernels reduce median latency from 1685.35 ms to 276.14 ms and enable real-time text-guided humanoid control on Unitree G1.

Key Contributions

  • Motion Mamba 2.0 introduces a Mamba-based root-body diffusion architecture that combines local attention, resumable recurrent states, and persistent content memory for long-horizon controllable motion generation. The persistent content memory converts compressed recurrent motion history, state changes, and text-conditioned features into dynamically updated content slots for bounded local attention.
  • The paper introduces an optimized execution scheme tailored to this architecture, using CUDA Graph replay, fused kernels, and execution-flow simplification while preserving the canonical history update. On an RTX 4090, this scheme reduces median complete-window latency from 1685.35 ms to 276.14 ms and achieves a median paired speedup of 6.138x with identical outputs and committed states in tested rollouts.
  • Evaluations demonstrate long-horizon control and real-world applicability: on retargeted HiPHI, the model reaches Root CE of 7.55 cm and End CE of 13.64 cm at 39.52 s, the lowest among evaluated methods, and on Unitree G1 hardware it completes 94 of 100 trials with multi-stage text-guided action composition and interactive locomotion.

Introduction

Interactive humanoid motion generation requires models that can follow changing text commands and spatial targets while continuing from already produced motion, with latency low enough for real-time control. Prior diffusion and autoregressive approaches either retain only a bounded cache of recent motion features, discarding older context, or allow memory and compute to grow with sequence length; recurrent state-space summaries are compact but not directly accessible to attention, and repeated short-window denoising adds execution overhead. The authors propose Motion Mamba 2.0, an autoregressive root-body diffusion model that combines local attention with a resumable Mamba branch and a persistent content memory. This memory maps accepted recurrent-state summaries, state changes, and text-conditioned features into dynamically updated slots that local attention can access, while an accepted-only history commit separates denoising iterations from physical motion time. The optimized inference reaches 276.14 ms per 52-frame window on an RTX 4090 with a 6.138x median speedup, and a physical Unitree G1 completes 94 of 100 interactive trials without falls.

Dataset

The authors build a unified motion dataset by converting robot and human recordings into a common G1 robot representation with 29 degrees of freedom and 414 physical features at 25 Hz.

Sources and composition

  • BONES Seed provides robot motion references.
  • HumanML3D provides human motion recordings and captions.
  • HiPHI contributes only the high-precision human-motion subset; the object-interaction subset is excluded.
  • The training pool contains 156,819 motion records and 588.92 stored hours:
    • BONES Seed: 124,658 records
    • HumanML3D: 14,612 records
    • HiPHI: 17,549 records
  • This gives roughly 79.5% BONES Seed, 9.3% HumanML3D, and 11.2% HiPHI records.
  • Validation and test manifests contain 9,998 and 12,831 additional records, respectively, and are excluded from training.
  • Counts include mirrored records; duration is measured from stored frames.

Filtering and processing

  • For HiPHI, the authors keep only the high-precision human-motion subset and exclude object trajectories and object-interaction supervision.
  • HumanML3D motions are reconstructed from AMASS parameters using the SMPL-H body-and-hand model.
  • HiPHI motions are reconstructed using BVH forward kinematics.
  • Rest-pose transforms and pelvis-height scaling align the human skeletons with the common G1 robot asset.
  • Root translations and local rotations are resampled to 25 Hz before retargeting.
  • BONES Seed motions retain their official G1 trajectories through resampling and representation conversion.
  • Human motions are retargeted using source-specific adapters built on General Motion Retargeting, with position and orientation objectives, joint limits, temporal refinement, and bounded ground and rate corrections.

Metadata and quality

  • Exported records retain source captions, mirror identities, and transformation provenance.
  • Retargeting quality is assessed over all admitted human-source records: 18,525 HumanML3D and 19,503 HiPHI records across training, validation, and test splits.
  • Median ankle retargeting residual:
    • HumanML3D: 1.49 cm
    • HiPHI: 0.93 cm
  • Cross-clip 95th percentile ankle residual:
    • HumanML3D: 3.37 cm
    • HiPHI: 2.39 cm
  • Median pelvis residual:
    • HumanML3D: 0.99 cm
    • HiPHI: 0.56 cm
  • Round-trip conversion between stored motion formats and the 414-D representation has a maximum position discrepancy of 1.31e-6 m.

How the data is used

  • The unified training pool is used to learn a common motion generator from human and robot recordings.
  • Human and robot data share the same embodiment, temporal resolution, and feature representation.
  • Validation and test records are held out from training.

Method

The authors propose Motion Mamba 2.0, a framework that combines autoregressive root-body diffusion with local attention, resumable Mamba-3 states, and persistent content memory (PCM).

As illustrated in the framework diagram, the system generates motion autoregressively through a two-stage diffusion denoiser conditioned on text, spatial controls, and accepted motion history. The output is divided into windows of tokens, where each token represents a sequence of consecutive frames. At each window, the conditions comprise a text instruction, spatial targets, and a validity mask, while the memory is constructed from the accepted motion prefix. The conditional distribution is factorized over these windows. The authors adopt a hybrid representation that retains an explicit root trajectory and compresses articulation with a causal motion codec. At each frame, the root comprises position and heading, while body features include joint rotations, positions, velocities, and contact indicators. A token concatenates a root patch with a body latent. The encoder maps explicit motion to body latents, and the decoder reconstructs articulation from these latents and local root features. This representation exposes the trajectory directly to spatial control while reducing the dimensionality of articulated motion.

Recurrent Root-Body Denoising

Following the root-body decomposition, each diffusion evaluation first predicts the global root and then predicts articulation conditioned on that root. The conditioning vector combines text, diffusion time, and the available initial heading. The root input contains noisy hybrid features and temporally aligned controls, where valid root observations replace the corresponding noisy coordinates. The body input concatenates local features of the predicted root, noisy body latents, and aligned observations. The root and body networks operate as separate stacks with distinct parameters and layer-specific memories. The sampler consumes the concatenated clean prediction, ensuring that root prediction is refreshed before body prediction at every diffusion step. This decomposition exposes global translation and heading for direct spatial conditioning while allowing articulated motion to adapt to the predicted root trajectory.

Each stack consists of diffusion transformer layers with adaptive normalization and a gated residual multilayer perceptron. Inside the sequence mixer, attention and Mamba process the same normalized, condition-modulated features. Attention retrieves recent features, whereas Mamba resumes its state from the accepted prefix. Their outputs are combined by a learned layerwise gate. The authors adopt the resumable SISO Mamba-3 scan for the recurrent branch. The recurrence combines adjacent state inputs through a trapezoidal update and represents relative phase through accumulated rotations, providing a mechanism for retaining evolving dynamics. The carried state includes the recurrent matrix, accumulated phase, and previous state-input and value vectors required to resume the scan, with a size independent of the accepted sequence length.

Persistent Content Memory

The recurrent state and attention cache play complementary roles. The bounded cache directly exposes recent keys and values but evicts older features, while Mamba carries a fixed-size compressed representation of accepted motion history. PCM learns a state-to-attention mapping from recurrent summaries, their changes, and text conditions to content slots, making the accumulated motion context available to subsequent windows.

In each layer, the cache stores projected keys, values, and validity masks from the latest accepted windows. Learned sink tokens are included to remain available when the cache is short or empty. Current-window attention is bidirectional because the noisy window is denoised jointly. PCM maintains memory slots initialized to zero. A projector pools the accepted recurrent matrix to compute a state summary and its difference from the previous accepted window. The write path projects the pooled text embedding into a layer-specific representation and predicts featurewise modulation parameters to condition the normalized state difference on the active instruction. The state summary, text-modulated difference, and projected text embedding are concatenated to construct the candidate slot content. A gate computed from the joint representation and the previous memory controls the write rate, bounding the contribution of candidate content to each update. Text conditions both candidate-content generation and write gating, allowing the same state transition to produce different memory updates under different instructions.

The current window reads the memory slots without modifying them. Augmented keys and values insert projected slots immediately after the sinks. Base and augmented attention use the same query. A learned scalar controls the attention difference, and another controls the Mamba contribution. Initializing the attention difference scalar to zero recovers the native mixer output exactly. Each denoising evaluation reads an immutable snapshot. After sampling, the accepted window is recentered and materialized as clean history in a canonical pass at diffusion time zero, which updates only accepted motion tokens. Layerwise cache append, recurrent-state replacement, and PCM writing are committed together across the root and body stacks.

State-Preserving Efficient Inference

To address overhead from repeated diffusion denoising, the authors implement state-preserving execution optimizations. During denoising, they avoid materializing state proposals and diagnostics that are not consumed by the prediction or a later commit, ensuring all recurrent computation contributing to predicted motion is retained. They fuse Mamba transition preprocessing, including decay activation, decay floor, step-size transformation, and product calculations, into a single traversal. Intermediate values remain in FP32 registers before outputs are written in the required layout. Compatible scale-shift and gated-residual operations are also fused. Furthermore, the root and body sequence stacks use separate CUDA Graphs. Within each stack, the text-conditioned, spatially conditioned, and unconditional branches execute serially and are captured together. Stable input and state buffers are refreshed before replay.

Learning Objective

The authors optimize clean-window prediction with four terms. The hybrid term applies Smooth L1 to explicit root patches and body latents. The decoded-body term applies L1 to reconstructed articulation. The goal term applies L1 only to observed coordinates inside the generated window, while later goals remain conditioning inputs until their target frames enter the output window. The consistency term measures Euclidean disagreement between joint positions obtained from decoded rotations through forward kinematics and those represented directly by decoded position features. Each term is normalized over its applicable elements, and the codec is frozen during denoiser training. Histories, generation regions, and future observations use explicit validity masks, excluding outputs outside the generation region from the supervised reduction.

Experiment

The experiments evaluate Motion Mamba 2.0 on short- and long-horizon motion generation, architectural ablations, inference efficiency, and physical deployment. The model consistently achieves strong spatial constraint control across HiPHI, BONES Seed, and HumanML3D, with recurrent modeling and persistent content memory contributing most clearly to long-horizon accuracy and command matching. Execution-flow simplification, kernel fusion, and CUDA graph replay substantially reduce latency while preserving generated outputs and committed states. Real-world tests on the Unitree G1 robot further show high success rates for sequential action composition and interactive locomotion, supporting the system's ability to transfer generated motion references into responsive physical execution.

Motion Mamba 2.0 achieves the lowest root error at every evaluated horizon and the lowest or tied-lowest end error, including multi-window rollouts up to 39.52 seconds. It also records the highest command matching and retrieval scores across all four horizons and the lowest L2-FID at most durations. The results show stronger terminal control and text-motion alignment over long horizons relative to the compared methods. Motion Mamba 2.0 reduces root error at the longest horizon by 3.0% relative to MotionStreamer and improves end error by 8.1% over the best competing method. Command matching and retrieval are highest for Motion Mamba 2.0 across all evaluated horizons. L2-FID is lowest at 8.32, 18.72, and 39.52 seconds, while CMDM leads only at the shortest horizon.

Motion Mamba 2.0 achieves the lowest Root CE and End CE at both short-horizon durations on BONES Seed, along with the highest R@3, indicating accurate spatial control and retrieval alignment for native G1 trajectories. At 8.32 s it reduces Root CE by 62.5% relative to ARDY, while its command matching is not the highest among compared methods. Baselines show wide variation in accuracy and latency, with several strong command-matching methods incurring higher position error. Motion Mamba 2.0 reports the lowest root and end position errors at both evaluated durations on BONES Seed. At 8.32 s, the root error is reduced by 62.5% relative to ARDY, and retrieval recall is highest even though command matching does not lead. Among baselines, MoLingo attains high command matching but also much higher position and distributional errors than other methods. Latency varies widely across methods, from under 100 ms to more than 12 seconds per accepted window.

This table compares short-horizon motion generation on retargeted HumanML3D at a single 52-frame window and an 8.32-second rollout. Across the compared methods, spatial error, command agreement, and retrieval all degrade as the horizon lengthens, with DreamControl retaining strong command accuracy and Go-to-Zero achieving the lowest spatial errors at 8.32 seconds. Latency and distributional realism vary widely, and no method dominates every criterion. At the 52-frame horizon, DreamControl has the lowest root error among compared methods, while MoLingo and DreamControl are close for the highest command accuracy. At the 8.32-second horizon, Go-to-Zero achieves the lowest root and end errors, DreamControl achieves the highest command accuracy, and DiP achieves the highest retrieval and lowest latency. Every listed method shows worse root/end error, command agreement, and retrieval at 8.32 seconds than at 52 frames, indicating a consistent short-horizon degradation trend.

This ablation isolates recurrent Mamba modeling and persistent content memory on retargeted HiPHI. Recurrent modeling produces large long-horizon reductions in root and end constraint errors, and the complete Motion Mamba 2.0 with PCM adds further long-horizon gains in command matching and retrieval. Improvements are not uniform, as some short-horizon metrics favor simpler or partial configurations. At the longest evaluated horizon, adding recurrent Mamba to the minimal model yields much lower Root CE and End CE, while the single-window difference is comparatively small. Adding PCM to the native recurrent model at the longest horizon reduces Root CE by roughly one-fifth and lifts command matching from about one-third to nearly half. Both partial PCM variants retain better long-horizon Root CE and End CE than Native, but they trail the complete model on command matching at 18.72 s. Short-horizon results are mixed, with some Cmd., R@3, and L2-FID scores favoring other variants.

This architectural ablation on BONES Seed shows that recurrent modeling and persistent content memory both improve long-horizon constraint accuracy, with the complete Motion Mamba 2.0 achieving the lowest root and end constraint errors and L2-FID at the 8.32 s horizon. Partial PCM variants reduce constraint errors relative to Native but perform less well on command matching, while short-horizon command and retrieval metrics sometimes favor other configurations. Overall, the results support complementary roles for text-conditioned writing and explicit state-difference features in long-horizon generation. Recurrent modeling provides the largest gains in root and end constraint errors at the multi-window 8.32 s horizon. The complete model achieves the best long-horizon Root CE, End CE, and L2-FID among all ablated configurations, while partial PCM variants trail on longer-horizon command matching.

The experiments evaluate Motion Mamba 2.0 on long-horizon text-to-motion benchmarks including BONES Seed, retargeted HumanML3D, and HiPHI, using baseline comparisons and ablations to isolate recurrent Mamba modeling and persistent content memory. The method generally achieves the strongest terminal spatial control and text-motion alignment across extended multi-window rollouts, while short-horizon comparisons show more mixed rankings and no baseline dominates every criterion. Ablations indicate that recurrent modeling and persistent content memory contribute complementary long-horizon improvements in constraint accuracy, command matching, and distributional realism.


AI로 AI 구축

아이디어에서 출시까지 — 무료 AI 코코딩, 즉시 사용 가능한 환경, 최적의 GPU 가격으로 AI 개발을 가속화하세요.

AI 협업 코딩
바로 사용 가능한 GPU
최적의 가격

HyperAI Newsletters

최신 정보 구독하기
한국 시간 매주 월요일 오전 9시 에 이번 주의 최신 업데이트를 메일로 발송합니다
이메일 서비스 제공: MailChimp