Streaming Generation for Music Accompaniment
Yusong Wu, Mason Wang, Heidi Lei, Stephen Brade, Lancelot Blanchard, Shih-Lun Wu, Aaron Courville, Anna Huang
TL;DR
The paper tackles real-time acoustic-to-acoustic music accompaniment by formalizing streaming chunked prediction with design variables $t_f$ (future visibility) and $k$ (output chunk duration). It trains decoder-only Transformer models on the Slakh2100 dataset using residual vector-quantized tokens to study latency, coherence, and throughput across a grid of $(t_f,k)$ settings. Key findings show that small positive $t_f$ improves coherence and rhythm alignment, while larger $k$ increases throughput but reduces the ability to react to the latest input; negative $t_f$ can severely degrade perception, underscoring latency compensation challenges. The work highlights the need for anticipatory and coordinative training objectives for real-time jamming and provides code and pretrained models to enable reproducible research in live audio accompaniment.
Abstract
Music generation models can produce high-fidelity coherent accompaniment given complete audio input, but are limited to editing and loop-based workflows. We study real-time audio-to-audio accompaniment: as a model hears an input audio stream (e.g., a singer singing), it has to also simultaneously generate in real-time a coherent accompanying stream (e.g., a guitar accompaniment). In this work, we propose a model design considering inevitable system delays in practical deployment with two design variables: future visibility $t_f$, the offset between the output playback time and the latest input time used for conditioning, and output chunk duration $k$, the number of frames emitted per call. We train Transformer decoders across a grid of $(t_f,k)$ and show two consistent trade-offs: increasing effective $t_f$ improves coherence by reducing the recency gap, but requires faster inference to stay within the latency budget; increasing $k$ improves throughput but results in degraded accompaniment due to a reduced update rate. Finally, we observe that naive maximum-likelihood streaming training is insufficient for coherent accompaniment where future context is not available, motivating advanced anticipatory and agentic objectives for live jamming.
