
musicgen_melody (base text to music melody)
Audio and speech1,920 ops1.6B params
MusicGen-Melody generates music from a text prompt and a reference melody with one transformer over EnCodec tokens.
Audio and speech · 1,920 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
About this model's family
MusicGen-Melody is a music generation model that produces audio from a text description together with a melody taken from a reference recording. It is the melody-guided variant of MusicGen, a single stage autoregressive Transformer trained over a 32kHz EnCodec tokenizer with 4 codebooks sampled at 50 Hz. It matters because a single-stage model with token interleaving removes the need to cascade several models.
A small delay between the codebooks lets the model predict them in parallel, so one second of audio needs only 50 autoregressive steps. The melody conditioning is provided to the transformer as a prefix of its input rather than through cross-attention. The melody is represented by a chromagram reduced to its dominant time-frequency bin at each step, an information bottleneck that keeps the model from copying the reference. This melody conditioning is unsupervised and needs no annotated melody data.
This page describes the 1.5B-parameter melody model. The model card lists sizes of 300M, 1.5B and 3.3B parameters. On the MusicCaps benchmark the card reports Fréchet Audio Distance at 4.93 for this checkpoint, as a result at the time. Vocals were removed from the training data, and the card notes the model is not able to generate realistic vocals.
Key idea. MusicGen-Melody generates music from text and a reference melody with a single transformer over interleaved EnCodec codebooks, using unsupervised chromagram conditioning.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{copet2024simplecontrollablemusicgeneration,
title={Simple and Controllable Music Generation},
author={Jade Copet and Felix Kreuk and Itai Gat and Tal Remez and David Kant and Gabriel Synnaeve and Yossi Adi and Alexandre Défossez},
year={2024},
eprint={2306.05284},
archivePrefix={arXiv},
primaryClass={cs.SD},
url={https://arxiv.org/abs/2306.05284},
}