All models

Mustango

Text-to-music latent diffusion model whose denoiser attends to text, beats and chords.

Audio and speech · 4,162 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

This diagram has 4,162 operations (65 KB) and is drawn when you ask.

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
1.8B
Operations
4,162
Framework
PyTorch
Recurrent
No
Published
NAACL 2024
Cited by
1 (as of 29 October 2026)
Authors
Jan Melechovsky, Zixun Guo, Deepanway Ghosal and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m18614
Graph hash
cd4681242a105015a07da4271c0bbf12a4a854bb5e85120274d61f1a0e81371f
Skeleton hash
0d39887cbd72499171b394494be4b91f9a33ca6bd4c2df50a94c1f804b632cb4
Architecture hash
d35577e4398bc1827f67bf3aa2cd4a9b2a7a5ae0cd12acbbe23c6c72cc860398
Diagram SHA-256
12eb231b7e3796285fd9d7b4646941d3b98a29874636d17bae5b422b589136d6
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

Mustango is a text-to-music system based on diffusion that accepts captions with instructions about chords, beats, tempo and key, not only general descriptions. It is a latent diffusion model: like Tango, it uses the pre-trained VAE from AudioLDM to obtain a latent code of the audio, and denoising happens in that latent space.

The denoiser is MuNet, a UNet with added conditioning cross-attention blocks. Where Tango used one cross-attention layer for text, MuNet adds two more, one for encoded beats and one for encoded chords, and it attends to the beats before the chords. Chord roots are encoded with the Fundamental Music Embedding from Guo et al. (2023). In training the true beats and chords condition the model, and at inference two separately trained transformer predictors infer them from the caption.

To train it the authors built MusicBench from MusicCaps by altering clips and enriching their captions, giving a final training set of 52,768 samples. The paper reports that Mustango outperforms MusicGen and AudioLDM2 in FAD and KL on its three test sets.

Key idea. Mustango conditions a latent diffusion denoiser on beats and chords as well as text, through added cross-attention layers, so prompts can control chords, tempo and key.

  • Mustango
  • MuNet
  • text-to-music
  • controllable music generation
  • music diffusion model
  • chord conditioning
  • beat conditioning
  • MusicBench
  • latent diffusion

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{melechovsky2024mustangocontrollabletexttomusicgeneration,
      title={Mustango: Toward Controllable Text-to-Music Generation}, 
      author={Jan Melechovsky and Zixun Guo and Deepanway Ghosal and Navonil Majumder and Dorien Herremans and Soujanya Poria},
      year={2024},
      eprint={2311.08355},
      archivePrefix={arXiv},
      primaryClass={eess.AS},
      url={https://arxiv.org/abs/2311.08355}, 
}