TL;DR
MotionRelay lets humanoid robots dance for a full minute or switch between text commands on the fly without pausing or stumbling. By pairing a fast, 4-step motion generator with an "Execution-Aligned Relay" that seamlessly stitches new motion chunks onto already-committed movements, it bridges the gap between high-level AI planning and real-time, physical robot control.
What Problem Does This Paper Address?
Getting a humanoid robot to move to music or follow natural language commands (like "wave with right hand" or "walk normally in a circle") usually forces a tough trade-off. Offline pipelines generate the entire motion trajectory before the robot takes a single step—which means long startup delays and zero ability to respond to new commands mid-motion.
Online pipelines try to fix this by generating motion in chunks while the robot is already moving. But this creates a high-wire act: if the generator is too slow, the robot's execution buffer runs dry and it freezes or falls. Even if it's fast enough, naively stitching a new motion chunk onto a moving robot causes jarring physical jerks or overwrites frames the robot is already committed to executing.
Methods
MotionRelay solves this coordination problem with three interlocking components:
- Execution-Aligned Relay (EAR): Think of this as a baton pass in a relay race. While the robot's low-level tracking policy (MimicLite) continuously executes frames from a shared buffer, the motion generator asynchronously cooks up the next chunk. Before starting, EAR locks the upcoming "committed prefix" (30 frames) that the robot is about to execute and forces the generator to continue from it. When the new chunk arrives, EAR skips the frames that elapsed during generation, preserves the committed prefix, and applies a 12-frame local blend right after it to smooth out any velocity or jerk spikes.
- Continuation-Aware Generation (CAG): Standard flow-matching Transformers aren't naturally good at picking up from arbitrary mid-motion prefixes, and they suffer from exposure bias (error accumulation when feeding their own imperfect predictions back as history). CAG fixes this during training by randomly varying prefix lengths, jointly training overlapping chunks with a mix of ground-truth and self-predicted history, and adding motion-space regularizers to prevent foot sliding or floating.
- Trajectory-Guided Distillation (TGD): A 50-step flow-matching model is too slow for real-time control, taking ~0.83 seconds for text and ~2.44 seconds for music. TGD distills this teacher into a 4-step student by supervising not just the final output, but also intermediate states along the teacher's sampling trajectory. This keeps generation latency under 0.2 seconds—well within EAR's 0.6-second committed-prefix window.
Datasets
To train the generator to output robot-ready motions directly, the authors retargeted human motion datasets to the Unitree G1 humanoid using General Motion Retargeting (GMR) and tracked them in simulation with a privileged PPO policy to filter out physical artifacts:
- HumanML3D (Text-conditioned): 24,846 processed text–motion sequences with a mean duration of 7.46 seconds.
- FineDance (Music-conditioned): Segmented into non-overlapping 60-second clips, yielding 534 processed music–motion sequences with a mean duration of 48.77 seconds.
Key Insights and Ideas
- Delay alignment alone isn't enough: Simply shifting a newly generated chunk to match the current execution clock still leaves massive velocity discontinuities at the boundary. You need both committed-prefix conditioning (to anchor the trajectory) and local blending (to smooth the handoff).
- Intermediate trajectory supervision matters for few-step distillation: Distilling a 50-step generator down to 4 steps using only the final endpoint loses quality, especially for complex music-driven motions. Matching the teacher's intermediate states keeps the 4-step student on the rails.
- Self-predicted history prevents long-horizon drift: Training on overlapping chunks where the model occasionally has to condition on its own imperfect predictions stops errors from snowballing over 60-second performances.
Key Results
- Massive Speedup: TGD cuts generation latency by 7.1× for text (0.8276 s → 0.1170 s) and 12.7× for music (2.4365 s → 0.1913 s).
- Seamless Transitions: Compared to naive delay-aligned async execution, Full EAR slashes root velocity discontinuity (
Root Δv) from 1.894 to 0.107 m/s (text) and 2.525 to 0.159 m/s (music), while dropping transition jerk by over 30×. - Top Quality & Real-World Execution: MotionRelay achieves the best FID (4.61) and R@3 (74.83%) on text, and the best FID-K (40.05) and BeatAlign (0.4257) on music, with the lowest fall rates across both. On a physical Unitree G1, it successfully executes real-time text command switches and uninterrupted 60-second dances.
Limitations and Future Work
Hardware evaluation was limited to the Unitree G1. Because different humanoid platforms have different joint configurations and actuation limits, deploying MotionRelay elsewhere will require adapting the motion retargeting and low-level tracking policies, which the authors leave for future validation.
Summary updated