Skip to main content
QUICK REVIEW

[Paper Review] Moûsai: Text-to-Music Generation with Long-Context Latent Diffusion

Flavio Schneider, Kamal, Ojasv|arXiv (Cornell University)|Jan 27, 2023
Music and Audio ProcessingComputer Science15 citations
TL;DR

Moûsai is a two-stage cascading diffusion model that converts text to long-context music (minutes) at 48kHz, using a diffusion autoencoder for 64x audio compression and a text-conditioned latent diffusion stage for generation, with open-source code and dataset Text2Music.

ABSTRACT

Recent years have seen the rapid development of large generative models for text; however, much less research has explored the connection between text and another "language" of communication -- music. Music, much like text, can convey emotions, stories, and ideas, and has its own unique structure and syntax. In our work, we bridge text and music via a text-to-music generation model that is highly efficient, expressive, and can handle long-term structure. Specifically, we develop Moûsai, a cascading two-stage latent diffusion model that can generate multiple minutes of high-quality stereo music at 48kHz from textual descriptions. Moreover, our model features high efficiency, which enables real-time inference on a single consumer GPU with a reasonable speed. Through experiments and property analyses, we show our model's competence over a variety of criteria compared with existing music generation models. Lastly, to promote the open-source culture, we provide a collection of open-source libraries with the hope of facilitating future work in the field. We open-source the following: Codes: https://github.com/archinetai/audio-diffusion-pytorch; music samples for this paper: http://bit.ly/44ozWDH; all music samples for all models: https://bit.ly/audio-diffusion.

Motivation & Objective

  • Bridge text and music by enabling text-conditioned music generation with long-context capability.
  • Achieve high efficiency to enable real-time inference on consumer GPUs while generating multi-minute stereo music.
  • Develop a two-stage diffusion pipeline (DMAE encoding + TCLD generation) and a diverse, large-scale dataset for training.
  • Provide open-source libraries and a dataset to foster further research in text-to-music diffusion.

Proposed method

  • Stage 1 trains a diffusion magnitude autoencoder (DMAE) to compress audio 64x by encoding magnitude spectrograms into a latent space and reconstructing via a 1D U-Net conditioned on noise level and latent content.
  • Stage 2 trains a text-conditioned latent diffusion (TCLD) model that denoises a latent representation conditioned on text embeddings from a frozen language model (T5) using cross-attention/long-context attention blocks.
  • Text conditioning uses classifier-free guidance (CFG) with a 0.1 sampling dropout to enhance prompt strength during inference.
  • The text encoder is frozen, and the TCLD U-Net operates on a compressed latent space to generate music that aligns with descriptive prompts.
  • The model uses a DDIM sampler for efficient denoising and realistic sample generation.
  • An efficient 1D U-Net architecture with ResNet blocks, modulation units, and flexible conditioning (inject, attention, cross-attention) enables fast training and inference.
Figure 1: We propose a two-stage cascading diffusion method, where the first stage compresses the music using a novel diffusion autoencoder, and the second stage generates music from the reduced representation conditioned on the encoding of a textual description.
Figure 1: We propose a two-stage cascading diffusion method, where the first stage compresses the music using a novel diffusion autoencoder, and the second stage generates music from the reduced representation conditioned on the encoding of a textual description.

Experimental results

Research questions

  • RQ1Can a two-stage cascading diffusion approach produce long-duration, high-quality text-conditioned music?
  • RQ2What are the efficiency gains when using a diffusion autoencoder plus latent diffusion for text-to-music?
  • RQ3How well does text-conditioned diffusion align music outputs with textual prompts across genres and long contexts?
  • RQ4What data and architectural choices maximize long-context musical structure and multi-genre diversity?

Key findings

  • Moûsai achieves minutes-long 48kHz stereo music conditioned on text descriptions.
  • DMAE compresses audio by 64x, enabling a compact latent space for subsequent diffusion generation.
  • The TCLD stage conditioned on text embeddings via cross-attention and long-context attention blocks improves text–music alignment.
  • The model demonstrates strong text–music relevance (CLAP score) and superior music quality (FAD, human evaluations) compared with baselines.
  • Moûsai enables real-time inference on a consumer GPU and training on a single A100 GPU within about one week per stage.
Figure 2: The training scheme of our diffusion magnitude autoencoder (DMAE). When denoising (bottom right), we condition the U-Net on the noise level ( ) and compressed latent representation ( ) from a reduced version of the non-noisy audio (the pink matrix).
Figure 2: The training scheme of our diffusion magnitude autoencoder (DMAE). When denoising (bottom right), we condition the U-Net on the noise level ( ) and compressed latent representation ( ) from a reduced version of the non-noisy audio (the pink matrix).

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.