Why Humanoids Forget During Long Motion Sequences—and How Mamba Memory Enables Real-Time Generation

Motion Mamba 2.0 generates long motion sequences in real time as instructions change, using PCM to make compressed Mamba memory readable by attention and inference optimizations that preserve identical outputs.
← All posts
온
온틀 리서치
2026년 11월 24일 Updated 2026.12.01 37 min read views 4

Motion Mamba 2.0 is a motion generation model designed to keep humanoids moving in real time without losing the context of earlier movements, even as instructions keep changing over long periods. It has two core components: Persistent Content Memory (PCM), which converts the compressed memory of Mamba, a state-space model, into a form attention can read directly; and execution optimizations that accelerate inference without changing the generated results. On a physical Unitree G1 robot, the authors report a 94% task success rate across 100 trials, with 0 falls.

The Problem This Paper Tackles

Whether generating a video of someone walking or getting a humanoid robot to move, the hard part is not producing one impressive movement. It is keeping the motion going without interruption. A user might suddenly ask for a change of direction, add an upper-body movement while the robot is walking, or specify a target position to reach a few seconds from now. Playing back a finished motion and incorporating a new instruction into motion already underway are very different problems.

Existing approaches hit two limits here. The first is memory. Autoregressive diffusion models, which generate motion incrementally, typically carry their history in an attention cache. Fix the cache size, and older motion gets pushed out. Let the cache grow indefinitely, and storage and computation grow with the motion sequence. Generating long sequences requires retaining the past, but the cost of retaining it scales with sequence length.

The second is speed. Diffusion models generate each segment by repeatedly removing noise, a process called denoising. When short segments must be generated continuously, execution costs accumulate even if each model call is small. The paper makes clear that these are separate problems. Reducing the number of sampling steps does not extend the history the model retains, and compressing that history does not eliminate the overhead of repeated calls. Its starting point is that each problem needs its own solution.

The Core Idea

The model follows the “root–body decomposition” introduced in earlier work called ARDY. It splits motion generation into two stages: first predicting where and how the whole body moves through space—the root trajectory—and then predicting detailed limb and joint movements—the body—conditioned on that trajectory. Deciding global movement and orientation first makes it easier to impose spatial constraints such as “go here,” while the detailed motion adapts to the trajectory. The two stages update alternately at every diffusion step, staying coupled throughout generation.

On top of this, the model maintains two kinds of memory. An attention cache serves as a short-term notepad, providing direct access to specific features of recent motion. A Mamba-3 recurrent state serves as long-term memory, carrying a compressed summary of the motion so far. The difficulty is that these memories have different properties. The cache is directly readable but covers only a narrow span; the recurrent state reaches further back, but attention cannot read it directly. Simply placing both in the same network does not make recurrent memory visible to attention.

PCM, or Persistent Content Memory, acts as the translator between them. It takes a summary of the Mamba recurrent state, the change from its previous state, and features from the text conditioning, then converts them into “content slots” that attention can read. These slots are continually updated as the motion progresses. Think of it as rewriting long-term memory in a language attention understands and placing the latest notes on its desk. The authors are explicit about the scope, though. These slots are not designed to reproduce arbitrary past instructions verbatim, such as “what was I told 3 minutes ago?” They help satisfy endpoint spatial constraints over long sequences and sustain motion that follows the instructions. The state, cache, and slots all have fixed sizes, so their capacity is limited; they cannot guarantee every detail from the distant past.

The model also addresses a subtle trap specific to diffusion. The noisy candidates produced during sampling are alternative proposals for the same output segment, not successive moments of elapsed physical time. Writing these intermediate candidates into memory would mix sampling iterations with physical time. The model therefore follows an “update only from accepted history” rule. Intermediate noisy predictions only read an immutable snapshot of the past. The attention cache, recurrent state, and PCM slots update together only after a clean motion segment has been accepted. This creates a clear boundary between prediction and committing to memory.

Speed is handled through separate execution optimizations. “Read-only denoising” reads only accepted history, avoiding the creation of candidate states that will never be used. Fused kernels combine the necessary operations to reduce intermediate memory transfers, while CUDA Graph replay reduces repeated host-call overhead. These optimizations leave the sampling computation itself intact: they run the same computation faster. The root→body order and the prescribed history-update rules are therefore preserved.

How the Experiments Were Designed

The evaluation starts by bringing three datasets into a single robot representation. BONES Seed, HumanML3D, and HiPHI were standardized to a 29-DoF G1 representation with 414 physical features at 25Hz. Including mirrored motions, the resulting training pool contains 156,819 motion records, totaling 588.92 hours as stored. It consists of 124,658 BONES Seed records, 14,612 HumanML3D records, and 17,549 HiPHI records. Separate validation and test sets contain 9,998 and 12,831 records, respectively. Human motion is mapped onto the robot body using GMR, or General Motion Retargeting.

The authors also quantify retargeting accuracy. They measure the 95th-percentile distance within each clip between robot body origins and human target positions, then aggregate those measurements across clips. The median ankle residual across clips was 1.49cm for HumanML3D and 0.93cm for HiPHI; the corresponding 95th percentiles were 3.37cm and 2.39cm. Median pelvis residuals were 0.99cm and 0.56cm. The authors explicitly state that these numbers measure lower-body target alignment, not the precision of hand contacts or the preservation of motion semantics. A small target-position error does not necessarily mean the motion has been faithfully expressed, and a plausible pose does not guarantee accurate fingertip contact.

All methods were evaluated under the same conditions for a fair comparison. Instead of using their originally released pretrained weights, every method was retrained for G1 with the same budget of 100,000 updates. Evaluation covers four dimensions: spatial control accuracy, instruction–motion alignment, motion quality, and inference efficiency. Long sequences are evaluated on retargeted HiPHI with rollouts of up to 39.52 seconds; short sequences are evaluated on BONES Seed and retargeted HumanML3D. BONES Seed retains its officially provided G1 trajectories. This setup measures the ability to sustain long motion while responding to changing instructions. The paper also distinguishes that ability from what retargeting residuals can establish: those metrics alone cannot fully measure motion naturalness or physical executability.

Results and What They Mean

For generation accuracy, the authors report that long HiPHI rollouts accurately satisfied terminal spatial constraints over sequences of up to 39.52 seconds. Spatial control and text–motion alignment also remained strong in the short-sequence comparisons on BONES Seed and HumanML3D. The main finding is that the model gained the ability to sustain long motion without sacrificing short-sequence performance.

Inference speed provides the paper’s clearest numbers. On an RTX 4090, median latency for generating one complete window fell from 1685.35ms before optimization to 276.14ms afterward. The median speedup in paired comparisons using the same inputs was 6.138×. Crucially, the authors state that this speedup preserved identical outputs and identical committed states on the tested rollouts. The gain came from producing the same results at lower cost, without sacrificing quality. The 276.14ms figure is also the steady-state generation time for one 52-frame window. The paper explicitly distinguishes this from the delay between a user issuing a command and seeing the corresponding movement.

Finally, the authors tested the system on physical hardware. On a Unitree G1, they demonstrated sequential composition of text-instructed motions, expressive movements, and real-time locomotion control using a keyboard and mouse. Task completion reached 94% across 100 trials, with no observed falls. A large-scale tracker called SONIC executes the generated motion references. This research generates the kinematic references that specify how to move, while an existing tracking system handles their physical execution without falling. That separation allows generation accuracy and inference cost to be evaluated apart from the quality of physical execution.

Limitations and Open Questions

Start with the limitations the authors acknowledge. The recurrent state, cache, and PCM slots all have fixed sizes, placing an upper bound on how much context they can retain. They do not guarantee preservation of every detail from the distant past. The authors explicitly state that PCM slots are not intended to reproduce arbitrary earlier instructions verbatim. The model is good at summarizing motion history and continuing from it; recalling a specific instruction from 20 seconds ago word for word is outside its design goals. Likewise, retargeting accuracy measures only lower-body target alignment. Precise hand contact and preservation of motion semantics remain separate issues.

What I would pay closer attention to is the scope of the reported numbers. The 6.138× speedup is a median measured on an RTX 4090 over the tested rollouts. That number alone cannot establish whether the same speedup and output identity hold on other GPUs or on longer, more varied rollouts. The 94% success rate likewise comes from a specific set of 100 Unitree G1 trials; it should not be read as a figure that generalizes to other robot bodies or harsher environments. The three headline numbers—39.52-second HiPHI control, 6.138× acceleration on a 4090, and 94% G1 success—come from different experiments and should not be combined into a single overall result.

How It Compares with Other Approaches

Several lines of work address this problem. A traditional approach to long motion is temporal composition: dividing a sequence into segments with separate descriptions and joining them together, or overlapping and refining segments. FlowMDM blends positional encodings to smooth transitions, while Lagrangian Motion Fields represents long sequences through compressed higher-level motions. These methods offer flexibility when composing planned segments, but are less suited to interactive settings where new conditions arrive after a motion stream is already underway.

There are also token-based approaches: autoregressive token prediction in T2M-GPT, masked-token reconstruction in MMM, and a hierarchical causal transformer over quantized tokens in MOGO. For spatial control, Guided Motion Diffusion, OmniControl, COMET, and ARDY—the direct foundation of this paper—address how to impose trajectory and joint targets. State-space approaches include MADM, which combines Mamba with autoregressive diffusion, and Dyadic Mamba and InterMamba, which address interactions between people. The idea of passing long-range context between segments also appears in Transformer-XL, which reuses previous hidden representations, and Recurrent Memory Transformer, which propagates dedicated memory tokens.

What distinguishes Motion Mamba 2.0 is that it makes the interface between recurrent memory and attention itself something the model learns. Its premise is that neither recurrent state nor a cache is sufficient on its own. PCM connects the two, while separate update rules keep intermediate diffusion candidates apart from accepted history. That is the central design decision. This work also substantially extends the ECCV 2024 conference version of Motion Mamba in six respects. It reorganizes the original single-clip generator into an autoregressive architecture that produces successive 52-frame windows, and expands evaluation to physical simulation and deployment on an actual G1.

ONTLE’s Take

The relevance of this research becomes clearer if you think about a familiar moment in AI product management: a new instruction arrives while a task is already running. When a user changes direction or adds a constraint during a long-running agent task, many systems gather the entire context again and restart their reasoning. That reconstruction is slow and expensive, making real-time interaction less fluid than it sounds.

The design principles in Motion Mamba 2.0 map directly onto this problem. First, long context need not be a choice between carrying everything and cutting it off. Separate compressed long-term memory from a directly readable short-term cache, then learn a translation layer between them. For an agent, that would mean carrying a summarized state instead of appending the entire task history to every prompt, with a layer that converts the summary into a form the current reasoning process can read. Second, the “commit only accepted history” rule is particularly useful. Writing tentative reasoning candidates straight into persistent memory mixes attempts with decisions and contaminates the state. Updating memory only after work is finalized, while reading immutable snapshots until then, translates directly into state management for multistep agents. Third, there is the commitment to accelerating execution while preserving the same output. Separating execution improvements from quality tradeoffs, and providing evidence of identical results, is the safest way to make the case for cost optimization in a product.

A Checklist for Practitioners

  • If your system handles long context, consider separating compressed state from a retrieval cache and connecting them through a conversion layer, instead of choosing between retaining history forever and discarding it. The key is a layer like PCM that converts a summary into a form the current computation can read.
  • If your system generates or reasons iteratively, keep intermediate candidates out of persistent state. Consider a “commit only when finalized; read immutable snapshots until then” rule. It is the simplest safeguard against state contamination.
  • When assessing speed optimizations, always check whether they preserve identical outputs. This paper pairs its 6.138× speedup with identical results and identical committed states. That distinction tells you whether speed was gained by sacrificing quality.
  • Cite numbers with their conditions. The 39.52 seconds for HiPHI terminal control, 6.138× median speedup on an RTX 4090 over tested rollouts, and 94% success across 100 Unitree G1 trials belong to different experiments. Combining them overstates the result.
  • Design around the limits of fixed-size memory. This model does not guarantee complete preservation of distant details. If exact reproduction of a specific past instruction is essential, a separate storage mechanism is needed.
  • Consider separating generation from execution. This research evaluates motion generation and physical tracking through SONIC separately. Accurate references do not automatically guarantee stable execution, so clear responsibility boundaries make debugging and evaluation easier.

FAQ

How is PCM different from simply enlarging the attention cache?

Expanding the cache makes storage and computation grow with motion length. PCM takes Mamba’s fixed-size recurrent state—its compressed memory—along with state changes and text conditioning, and converts them into a fixed number of slots that attention can read. Unlike a larger cache, its storage size remains fixed as the sequence grows, and it translates compressed long-term memory into a form attention can use.

If a 52-frame window takes 276.14ms to generate, does the robot respond that long after a command?

No. The paper explicitly states that 276.14ms is the time to generate one window in steady state. It is separate from the delay between a user command and the corresponding movement becoming visible. The two should not be treated as equivalent.

Under what conditions did the physical robot achieve a 94% success rate?

The figure measures task completion across 100 trials on a physical Unitree G1, with no falls observed during those trials. It comes from a specific robot body and trial set, so it should not be interpreted as generalizing to other hardware or environments.

Is the Mamba-3 recurrence a contribution of this paper?

No. The paper explicitly says it uses a resumable SISO Mamba-3 scan as a temporal modeling component; the recurrence itself is not a contribution. The contributions are PCM, which connects recurrent memory to attention; the mechanism that updates memory only from accepted history; and inference optimizations that preserve the output.

Can I run it myself?

The authors have released links to the code and project website, with GitHub and project-page links listed in the paper. Training and evaluation are tailored to the G1 robot representation—29-DoF, 414 features, 25Hz—and its retargeting pipeline, so reproducing the work first requires matching the dataset setup and retargeting procedure.

References