Towards Real-Time Human-AI Musical Co-Performance: Accompaniment Generation with Latent Diffusion Models and MAX/MSP
On the map: Diffusion models → Audio, speech and music
Abstract (arXiv)
We present a framework for real-time human-AI musical co-performance, in which a latent diffusion model generates instrumental accompaniment in response to a live stream of context audio. The system combines a MAX/MSP front-end-handling real-time audio input, buffering, and playback-with a Python inference server running the generative model, communicating via OSC/UDP messages. This allows musicians to perform in MAX/MSP - a well-established, real-time capable environment - while interacting with a large-scale Python-based generative model, overcoming the fundamental disconnect between real-time music tools and state-of-the-art AI models. We formulate accompaniment generation as a sliding-window look-ahead protocol, training the model to predict future audio from partial context, where system latency is a critical constraint. To reduce latency, we apply consistency distillation to our diffusion model, achieving a 5.4x reduction in sampling time, with both models achieving real-time operation. Evaluated on musical coherence, beat alignment, and audio quality, both models achieve strong performance in the Retrospective regime and degrade gracefully as look-ahead increases. These results demonstrate the feasibility of diffusion-based real-time accompaniment and expose the fundamental trade-off between model latency, look-ahead depth, and generation quality that any such system must navigate.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Audio, speech and music, one of 14 directions in Diffusion models. Builds on 34 of its 57 references that are in the map. First posted on arXiv 8 Apr 2026.
Builds on
34 of 57 references.
Closest ancestors · 9
Same direction, newest first
- 2025MGE-LDM: Joint Latent Diffusion for Simultaneous Music Generation and Source Extraction29 May
- 2024Improving Musical Accompaniment Co-creation via Diffusion Transformers30 Oct
- 2024Simultaneous Music Separation and Generation Using Multi-Track Latent Diffusion Models18 Sep
- 2024Multi-Source Music Generation with Latent Diffusion10 Sep
- 2024Music2Latent: Consistency Autoencoders for Latent Audio Compression12 Aug
- 2024Diff-A-Riff: Musical Accompaniment Co-creation via Latent Diffusion Models12 Jun
- 2024Bass Accompaniment Generation via Latent Diffusion2 Feb
- 2023MusicLDM: Enhancing Novelty in Text-to-Music Generation Using Beat-Synchronous Mixup Strategies3 Aug
- 2023Multi-Source Diffusion Models for Simultaneous Music Generation and Separation4 Feb
Other references · 25
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
- 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,101
- 2022Elucidating the Design Space of Diffusion-Based Generative Modelscited by 3,045
- 2022DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Stepscited by 1,979
- 2023Consistency Modelscited by 1,822
- 2020Jukebox: A Generative Model for Musiccited by 542
- 2023Simple and Controllable Music Generationcited by 488
- 2023Consistency Trajectory Models: Learning Probability Flow ODE Trajectory of Diffusioncited by 459
- 2025Real-Time Execution of Action Chunking Flow Policiescited by 216
- 2017MuseGAN: Multi-track Sequential Generative Adversarial Networks for Symbolic Music Generation and Accompanimentcited by 151
- 2019Cutting Music Source Separation Some Slakh: A Dataset to Study the Impact of Training Data Quality and Quantitycited by 86
- 2023SingSong: Generating musical accompaniments from singingcited by 55
13 more
- 2020MMM : Exploring Conditional Multi-Track Music Generation with the Transformercited by 49
- 2023StemGen: A music generation model that listenscited by 32
- 2022Multitrack Music Transformercited by 28
- 2024Beat this! Accurate beat tracking without DBN postprocessingcited by 27
- 2023JEN-1 Composer: A Unified Framework for High-Fidelity Multi-Track Music Generationcited by 17
- 2019High-Level Control of Drum Track Generation Using Learned Patterns of Rhythmic Interactioncited by 14
- 2024COCOLA: Coherence-Oriented Contrastive Learning of Musical Audio Representationscited by 14
- 2022SongDriver: Real-time Music Accompaniment Generation without Logical Latency nor Exposure Biascited by 13
- 2025MusicGen-Stem: Multi-stem music generation and edition through autoregressive modelingcited by 12
- 2025Live Music Modelscited by 10
- 2025ReaLJam: Real-Time Human-AI Music Jamming with Reinforcement Learning-Tuned Transformerscited by 7
- 2025Adaptive Accompaniment with ReaLchordscited by 4
- 2026A Design Space for Live Music Agentscited by 2
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025SAMUeL: Efficient Vocal-Conditioned Music Generation via Soft Alignment Attention and Latent Diffusion
- 2020RL-Duet: Online Music Accompaniment Generation Using Deep Reinforcement Learning
- 2026SqueezeComposer: Temporal Speed-up is A Simple Trick for Long-form Music Composing
- 2025SAGE-Music: Low-Latency Symbolic Music Generation via Attribute-Specialized Key-Value Head Sharing
- 2026Pitch-class Steering for Diffusion-based Music Generation via Latent-space Probes
- 2024Long-form music generation with latent diffusion
- 2025ProGress: Structured Music Generation via Graph Diffusion and Hierarchical Music Analysis
- 2023Mousai: Text-to-Music Generation with Long-Context Latent Diffusion