Skip to main content
QUICK REVIEW

[Paper Review] Simple and Controllable Music Generation

Jade Copet, Felix Kreuk|arXiv (Cornell University)|Jun 8, 2023
Music and Audio ProcessingComputer Science64 citations
TL;DR

MusicGen presents a single-stage autoregressive transformer that generates high-quality mono and stereo music conditioned on text or melody using interleaved EnCodec token streams, outperforming baselines on MusicCaps.

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. Music samples, code, and models are available at https://github.com/facebookresearch/audiocraft

Motivation & Objective

  • Motivate conditional music generation and the need for controllable, high-fidelity outputs.
  • Propose a simple, single-stage LM over multiple streams of discrete audio tokens.
  • Introduce codebook interleaving patterns to model parallel token streams efficiently.
  • Enable text and melody conditioning to improve generation controllability.
  • Demonstrate stereo extension with no extra computational cost and conduct extensive evaluations.

Proposed method

  • Use EnCodec to tokenize audio into multiple discrete codebooks per time step.
  • Train a single autoregressive transformer over interleaved codebook streams with pattern-based parallelization.
  • Introduce codebook interleaving patterns (exact and inexact) to control autoregressive dependencies.
  • Condition generation on text encodings (T5/FLAN-T5/CLAP) or unsupervised melody (chromagram with bottleneck).
  • Provide stereo extension by processing left/right channels with adapted interleaving patterns.
  • Perform ablations to study codebook patterns, model size, and conditioning strategies.

Experimental results

Research questions

  • RQ1Can a single-stage transformer over interleaved audio tokens match or exceed multi-stage baselines for text-to-music generation?
  • RQ2How do different codebook interleaving patterns affect generation quality and controllability?
  • RQ3Does melody (chromagram) conditioning improve alignment with harmonic structure without sacrificing quality?
  • RQ4Can the model scale to stereo generation without increasing compute?
  • RQ5Which text encoders and conditioning strategies best support high-quality, controllable music generation?

Key findings

  • MusicGen outperforms baselines (Riffusion, Mousai, MusicLM, Noise2Music) on MusicCaps in subjective quality and text relevance.
  • Melody conditioning via chromagrams improves melody adherence, with gains in alignment when using chroma conditioning during training and testing.
  • Stereo extensions yield high-quality stereo samples with marginally different patterns; downmix to mono retains quality.
  • Codebook interleaving patterns matter: flattening improves objective metrics but at higher cost; delay-based patterns offer strong performance with lower cost.
  • Model size boosts objective metrics, with 1.5B often optimal for subjective quality; larger models better capture text prompts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.