Mustango: Toward Controllable Text-to-Music Generation
Jan Melechovsky, Zixun Guo, Deepanway Ghosal, Navonil Majumder, Dorien Herremans, Soujanya Poria
TL;DR
Mustango tackles the limited controllability of diffusion-based text-to-music by introducing MuNet, a music-domain-knowledge-informed UNet that conditions on tempo, key, and chord progressions in addition to text. It constructs MusicBench, a 53k-sample dataset augmented with music-theory attributes via MIR tools and targeted audio transformations, to train a controllable latent-diffusion model. Empirical results show Mustango achieves state-of-the-art musicality and markedly improved controllability over baselines like Tango, MusicGen, and AudioLDM2, with strong chord and tempo control demonstrated in objective and subjective evaluations. The work provides public access to MusicBench and Mustango, highlighting practical implications for music production and AI-assisted composition while acknowledging Western-centric limitations and scope for longer-form generation.
Abstract
The quality of the text-to-music models has reached new heights due to recent advancements in diffusion models. The controllability of various musical aspects, however, has barely been explored. In this paper, we propose Mustango: a music-domain-knowledge-inspired text-to-music system based on diffusion. Mustango aims to control the generated music, not only with general text captions, but with more rich captions that can include specific instructions related to chords, beats, tempo, and key. At the core of Mustango is MuNet, a Music-Domain-Knowledge-Informed UNet guidance module that steers the generated music to include the music-specific conditions, which we predict from the text prompt, as well as the general text embedding, during the reverse diffusion process. To overcome the limited availability of open datasets of music with text captions, we propose a novel data augmentation method that includes altering the harmonic, rhythmic, and dynamic aspects of music audio and using state-of-the-art Music Information Retrieval methods to extract the music features which will then be appended to the existing descriptions in text format. We release the resulting MusicBench dataset which contains over 52K instances and includes music-theory-based descriptions in the caption text. Through extensive experiments, we show that the quality of the music generated by Mustango is state-of-the-art, and the controllability through music-specific text prompts greatly outperforms other models such as MusicGen and AudioLDM2.
