Abstract: We tackle the task of conditional music generation. We introduce MusicGen, a single Language Model (LM) that operates over several streams of compressed discrete music representation, i.e., tokens. Unlike prior work, MusicGen is comprised of a single-stage transformer LM together with efficient token interleaving patterns, which eliminates the need for cascading several models, e.g., hierarchically or upsampling. Following this approach, we demonstrate how MusicGen can generate high-quality samples, both mono and stereo, while being conditioned on textual description or melodic features, allowing better controls over the generated output. We conduct extensive empirical evaluation, considering both automatic and human studies, showing the proposed approach is superior to the evaluated baselines on a standard text-to-music benchmark. Through ablation studies, we shed light over the importance of each of the components comprising MusicGen.
Introduction
Generating high-fidelity music is a significantly more complex task than generating speech. Music requires the full frequency spectrum—typically sampled at 44.1 or 48 kHz compared to 16 kHz for speech—and involves intricate harmonic and melodic structures. Furthermore, human perception is notoriously sensitive to even slight disharmony or "wrong notes," making the generative task highly demanding.
To make this computationally tractable, researchers often employ Residual Vector Quantization (RVQ) to compress audio into multiple parallel streams of discrete tokens. However, modeling these parallel streams effectively has historically been a challenge. Previous state-of-the-art models, such as Google’s MusicLM, relied on a "cascading" approach: one model generates coarse semantic tokens, another generates acoustic tokens, and a third upsamples the result. This hierarchical structure is difficult to train and computationally expensive. Meta AI researchers have unveiled MusicGen, a single-stage Transformer model that proves these complexities are not strictly necessary to achieve professional-grade audio quality.
Methodology: Single-Stage Modeling and Token Interleaving
The core innovation of MusicGen lies in how it handles the multiple streams of tokens produced by the EnCodec audio tokenizer. Instead of flattening all token streams into one massive sequence—which would cause the sequence length to explode and become computationally unfeasible—the authors introduced a novel "Delay Pattern."
By introducing a small offset between the parallel codebook streams, the model can predict tokens across different levels of the RVQ hierarchy simultaneously. This allows a single Transformer to capture both high-level structure and fine-grained acoustic detail in one pass. The model is a standard autoregressive Transformer decoder, scaled across three sizes: 300M, 1.5B, and 3.3B parameters.
Controllable Conditioning
MusicGen offers two primary modes of control:
- Textual Conditioning: The model uses text encoders (such as T5) to process prompts like "90s rock song with a heavy guitar riff."
- Melodic Conditioning: To provide more granular control, the researchers introduced unsupervised melody conditioning. They extract a chromagram—a representation of melodic and harmonic content—from a reference track and pass it through an information bottleneck. This forces the model to follow the melodic skeleton of the source without simply "copying" the audio, allowing for stylistic transformations.
Experimental Setup and Datasets
The model was trained on a massive corpus of 20,000 hours of licensed music. This includes an internal dataset of 10,000 high-quality tracks and professional media collections from Shutterstock and Pond5. For evaluation, the team used the MusicCaps benchmark, a publicly available dataset of 5,500 ten-second samples annotated by expert musicians.
Results and Performance
Empirical evaluations show that MusicGen outperforms existing baselines in both audio quality and prompt adherence. In human listening tests, MusicGen (3.3B) achieved an Overall Quality (OVL) score of 84.81/100, significantly higher than MusicLM’s 80.51.
Objective metrics further support these findings. MusicGen achieved a Fréchet Audio Distance (FAD) of 3.1, outperforming Riffusion (14.8) and Mousai (7.5). This indicates that the generated audio distribution is much closer to real human-made music. Additionally, the model excelled at "Text Relevance" (REL), demonstrating a superior ability to match user descriptions compared to previous models.
One of the most striking results is the model's ability to handle stereo audio. Because the architecture manages parallel streams efficiently, the researchers extended it to stereo by adding the right-channel codebooks as additional parallel streams. This resulted in high-quality stereo generation with virtually no extra computational overhead.
Conclusion
MusicGen demonstrates that simplicity can be highly scalable. By replacing complex hierarchical cascades with a single-stage model and an efficient token interleaving strategy, the researchers have created a powerful, controllable tool for music generation. While future work remains to achieve "surgical" control over specific instruments or notes, MusicGen represents a significant step forward in making high-quality AI music generation accessible and efficient.
Summary updated