Research
AHEADance: Anticipatory Humanoid Dance from Streaming Audio
A robot dancing to streamed music cannot wait to hear a section of music before choreographing it: each short motion chunk must be committed before the music it accompanies has been heard, and it…

- arXiv
- 2611.13370 · Preprint · not peer-reviewed
- Published
- 2026-11-09
- Authors
- Tianhu Peng, Yukun Wang, Lingfan Bao, Yiyang Jia, Chengxu Zhou
In plain words
A robot dancing to streamed music cannot wait to hear a section of music before choreographing it: each short motion chunk must be committed before the music it accompanies has been heard, and it must continue from motion the robot has already committed rather than from clean reference data.
AI summary
Overview
Research area: Robotics — specifically humanoid motion generation, music-driven dance, and streaming (causal) generative models for robot control.
Technical level: Advanced. The paper assumes familiarity with diffusion models, motion codecs/vector quantization, autoregressive history conditioning, and whole-body tracking controllers.
Scope: The paper describes AHEADance, a system that generates humanoid reference dance chunk by chunk from audio that is still arriving, and executes it on a physical Unitree G1 robot with a whole-body tracker.
What This Paper Is About
A robot dancing to streamed music cannot wait to hear a section of music before choreographing it: each short motion chunk must be committed before the music it accompanies has been heard, and it must continue from motion the robot has already committed rather than from clean reference data. The paper asks how much of the upcoming music a causal generator can exploit, how to train continuation from the model's own committed outputs, and how to show that the resulting movement actually follows the music instead of drifting on its own momentum. The goal is a robot that dances for as long as music plays, comes to rest when it stops, and resumes when it returns — without falling.
Key Contributions
-
ListenAhead — a music-conditioning scheme that combines the music already heard with short-horizon forecasts of a frozen music model (MRT-2). The forecasts are aligned to the times they are expected to occur and weighted by a learned reliability score, so the generator can lean on reliable predictions and ignore unreliable ones.
-
Commit Forcing — a training procedure that teaches continuation from the model's own committed chunks. Noise-corrupted reference chunks are reconstructed, decoded and committed in sequence, and every commit updates both the latent history and the decoded pose boundary that conditions the next chunk.
-
A validated music-correspondence evaluation — three evaluators (ChoreoSync for synchronization, MMR for song matching, and a style classifier), each validated on real G1 dance it was never trained on, plus a rule-based tempo-salience score.
-
A complete robot-native pipeline — a commit-aligned motion codec, a three-stage per-chunk generator (root trajectory, discrete codes, continuous corrections), and execution on a physical Unitree G1 through the SONIC whole-body tracker.
Main Findings
-
Forecasts carry real musical information. Cross-validated linear read-outs on 235 held-out songs show that over 0.04–0.52 s ahead, MRT-2 forecasts provide 95% of the gain the actual future gives for the timing of upcoming beats, 96% for beat phase and 74% for note onsets, helping least for loudness changes. At 0.52 s ahead, beat timing is read with r = 0.63 from forecasts versus 0.65 from the actual future and 0.20 from heard music alone.
-
Forecasts improve synchronization and beat-frequency energy. Without the future channel, ChoreoSync offset accuracy is 6.8 [2.4, 11.2] points lower (17.4% vs. 24.2%) and tempo salience 5.5 [2.3, 8.7] points lower (51.3% vs. 56.8%). Filling the forecast slots with the last heard music state instead is also worse: 8.4 [3.3, 13.5] points lower ChoreoSync and 10.6 [5.8, 15.5] points lower tempo salience on the 60 AIST++ pieces.
-
The gain tracks tempo changes. When music is time-stretched between 0.8× and 1.2×, the future channel raises tempo salience from 45.0% to 65.7% (20.7 [14.3, 27.1]), higher for all ten pieces; with the last heard state it is 12.3 [6.4, 18.2] points lower, keeping 40% of the gain.
-
Commit Forcing removes motion collapse. Low activity falls from 83.5% under reference-history training to 10.3%, close to the 9.7% of real dance (−73.1 [−76.2, −69.9] points). Late in continuation (8.8 to 32.8 s, on the 284 sequences that reach that length) it falls from 98.5% to 8.4%.
-
Both halves of the commit matter. Keeping the decoded reference boundary fixed while the latent history is self-generated raises low activity to 72.5% (−62.1 [−65.2, −59.0] relative to the complete model) and FID_k to 45.1 (−28.4 [−33.7, −24.3]), so the decoded boundary must be generated too.
-
Best music correspondence among compared generators. On 42 songs unseen in training, AHEADance reaches the highest ChoreoSync offset accuracy (28.6%) and MMR (0.187, against at most 0.046), and the lowest FID_k (18.8, against at least 23.7), with every 95% CI excluding zero.
-
Style follows the music. On 23 FineDance songs it never heard, AHEADance's style following is 32.6 [22.5, 40.9] points (real dance 47.4), higher than every generator given no genre and every strictly online variant, not significantly different from Lodge, and lower than offline MEGADance.
-
Silence handling emerges without rules. Across 28 programmes with 60 s silence interruptions, AHEADance stops and dances again in every one; in simulation it is near standing a median 2.32 s after the music stops on the 16 test-split songs. By contrast, Bailando++ stops and restarts in 3 programmes, Danceba in 2, and EDGE, Lodge, MEGADance and the strictly online variants in none.
-
Real-time operation on hardware. A 16-frame chunk (0.533 s at 30 Hz) is committed 0.13 s after its audio cutoff (0.15 s at the 95th percentile), forecasting included. Because SONIC reads the reference about 0.9 s ahead, the robot runs with a 1.24 s delay; waiting to hear each chunk's music would add 0.53 s. With low-latency SONIC (0.32 s preview) all 8 programmes run in real time in simulation with a 0.8 s delay.
-
Physical deployment. On a Unitree G1 the music is streamed through a loudspeaker, so the robot lags the audience by about 1.2 s. Near-standing followed each of 20 music stops and sustained dancing followed each of 20 starts, a median 1.75 s and 0.85 s later in the stream; no run fell, and joints track the reference with a median error of 5.5°.
-
Evaluators were validated, not assumed. ChoreoSync estimates the offset within 0.2 s for 45.2% [39.5, 50.9] of 721 real G1 sequences (chance 11.1%), and MMR prefers a dance's own music in 68.6% [65.9, 71.4] of comparisons (chance 50%). The common BAS does not distinguish real dance on its own music from real dance on other songs' music (0.247 vs. 0.241).
-
Remaining gaps. Kinetic diversity stays below real dance (Div_k 2.94 vs. 6.28), and forecasts anticipate regular structure such as beats but not an abrupt stop, to which the robot responds afterwards (about 1 s in simulation).
Methodology in Plain English
The system generates dance in short fixed chunks of 16 frames (0.533 s at 30 Hz). At each decision point it has three inputs: the audio heard so far, a bounded history of latent motion it has already produced, and a boundary state — the pose, joint velocity, root velocity and orientation reconstructed from the last committed chunk, which the tracker actually executes.
Music conditioning. Because the chunk belongs to music that has not yet played, the authors run a frozen music model (MRT-2) to forecast future hidden states — 14 states at 25 Hz reaching about 0.5 s past the audio cutoff, each the mean of eight sampled continuations. These are averaged once per decision and held fixed. Attention over the forecasts includes a timing term built from sinusoidal features at 32 log-spaced frequencies, so a predicted state is matched to the motion position where it is expected. A separately fitted reliability score, computed from causal features such as lead time and recent music activity, scales each forecast's contribution after attention normalisation — so the whole pathway can weaken rather than redistributing attention among unreliable states. The pathway is zero-initialised, so forecasts enter training only as far as they reduce the loss. Heard music enters through gated cross-attention and style through a MusicCoCa embedding of the trailing 10 s, which scales and shifts hidden states.
Motion representation. The codec encodes body motion alone, independent of history or boundary, into 16-dimensional latents at two frames per vector, with a 512-entry codebook. Each latent is split into a code (the nearest codebook entry) and a residual. When the sampled code differs from the reference code, the residual target is rebased so that code plus correction still reconstructs the same body target. The decoder receives the codes, the corrections, an explicit root trajectory and the committed boundary, which lets the trajectory handle global placement separately from body structure.
Generation order. Each chunk is sampled in three stages that share history, boundary and music: continuous diffusion for the root trajectory (fixing placement), categorical diffusion for the codes given the trajectory, then conditional diffusion for the corrections given both. The decoder attends over the whole chunk plan at once — coordinating entrance and exit — but never reads unheard waveform, since causality is imposed at the music decision boundary.
Commit Forcing. After a warmup on reference histories, the generator reconstructs a sequence of K = 8 noise-corrupted reference chunks, decoding and committing each complete chunk before the next, so the latent history and the decoded boundary always describe the same motion. Gradients stop at the history construction; the current continuation is supervised against reference targets.
Training and data. Training uses six public datasets retargeted to the G1 — AIOZ-GDANCE, FineDance, CoMPAS3D, AIST++, ChoreoMaster and OpenDance — via the OMG-Data release with its official splits, giving 61.7 h of training motion (AIOZ-GDANCE 48.5 h, FineDance 5.5 h, CoMPAS3D 4.5 h, AIST++ 2.4 h, ChoreoMaster 0.9 h, OpenDance 0.04 h), 6.9 h validation and 7.5 h test. The codec has 10.7 M parameters; the generator has 619 M (width 768, 12 layers with 12 heads, 9 diffusion layers), conditions on 64 history tokens (128 frames, 4.27 s) and generates eight tokens per decision with ten sampling steps per stage. Training runs on four GPUs with 1,536 target chunks per update; generation runs off-board on a workstation.
Execution. A fixed SONIC controller tracks the generated motion in simulation, with the interface converting joint, orientation and timing conventions. The generator updates its history from committed motion while SONIC uses measured state for feedback.
Why This Matters
Impact on research. The paper separates three problems that streaming humanoid systems usually conflate: how to use music that has not arrived, how to train on a model's own irrevocable outputs when both the latent history and the decoded pose boundary shift, and how to demonstrate musical correspondence with evaluators that have themselves been validated on real robot dance. The evaluator-validation protocol (including the finding that BAS does not separate real dance on its own music from real dance on other songs) is a methodological contribution beyond the dance generator itself. The distinction between latent-history forcing and boundary forcing — with an ablation showing the boundary must also be generated — is a concrete design lesson for any chunked robot generator.
Real-world applications:
- Entertainment and performance robots that accompany live or streamed music and must react within a fixed latency budget.
- Human–robot interaction in public spaces, where responding to music starting and stopping, and settling into a stable stand, are safety-relevant behaviours.
- Social and therapeutic settings such as dance sessions for older adults or rehabilitation, where continuous, non-collapsing movement matters more than choreographic novelty.
- A reusable recipe for other streaming, irrevocable motion generation tasks beyond dance — for example gesture generation during conversation or rhythmic industrial humanoid tasks.
Industry relevance. The pipeline is built for deployment constraints that matter commercially: a fixed tracking controller, a known delivery delay, a latency budget that is measured on hardware (commit 0.13 s after audio cutoff, 1.24 s total delay with SONIC's ~0.9 s preview), and demonstrated zero falls across 20 stop/start events on a physical Unitree G1. Generating robot-native references rather than retargeting human motion at run time removes a runtime component from the deployment stack.
Future Directions
- Turning forecast beats into motion accents. The authors identify converting anticipated beats into the timing of movement accents as the most direct next step, since the current system uses forecasts for synchronization but not explicitly for accent placement.
- Anticipating abrupt change. Forecasts capture regular structure like beats but not sudden events such as a stop, to which the robot responds afterwards (about 1 s in simulation). Predicting discontinuity is left open.
- A dance-specialised tracker. Music scores are measured on generated references, which a general-purpose tracker executes after a fixed delivery delay; a tracker trained for dance could preserve more beat-level detail and help close the diversity gap (Div_k 2.94 vs. 6.28 for real dance).
- Closed-loop, on-robot generation. The generator does not receive measured robot state and runs off-board on a workstation; feeding state back and running on the robot are named as future work.
- Perceptual evaluation. The authors propose a study of how audiences judge the dance, beyond the automatic music scores.
Target Audience
Robotics and graphics researchers working on music-driven motion generation, streaming or autoregressive generative models, and humanoid whole-body control. It is also relevant to engineers building deployable humanoid behaviour pipelines who need to reason about latency budgets, tracking interfaces and evaluation, and to readers interested in how generative models can be trained on their own irrevocable outputs. The paper is not beginner-friendly: it assumes comfort with diffusion models, discrete motion representations and learned tracking controllers.
Authors’ abstract
A humanoid that dances to streamed music must commit each motion chunk before it has heard the music that chunk accompanies, and must continue from motion it has already committed. We present AHEADance, a robot-native streaming dance generator executed on a humanoid robot by a whole-body tracker. ListenAhead conditions each chunk on heard music and a frozen music model's forecasts of the coming music, aligned to their target times and weighted by reliability. The forecasts…
The full abstract on arXivRelated papers
- PAMoR: Parameterized Affective Motion Generation in Real Time for Humanoid Robots 2026-08-28 · cs.RO · Also by Chengxu Zhou, Lingfan Bao +1
- TRACE: Target-State Risk-Aligned Conditional Execution for Embodied Tracking 2026-10-30 · cs.RO · Also by Yiyang Jia
- An Empirical Study and Open Testbed for Federated Fine-Tuning of Vision-Language-Action Models 2026-09-19 · cs.RO · Also by Chengxu Zhou
- MoViC: Real-Time Humanoid Whole-Body Control from Monocular Video Streams 2026-11-15 · cs.RO · Key terms of the title in common
- AMBIT: Anticipatory Multimodal Body Recruitment for Bimanual Tracking on a Humanoid 2026-09-27 · cs.RO · Key terms of the title in common