Abstract
Moûsai is a cascading two-stage latent diffusion model designed to generate high-quality, multi-minute 48kHz stereo music from text prompts. By leveraging a novel diffusion autoencoder and a specialized 1D U-Net architecture, Moûsai achieves real-time inference on consumer-grade hardware, addressing the significant computational and structural challenges inherent in high-fidelity music synthesis.
Introduction
While generative models for images and speech have advanced rapidly, high-quality text-to-music generation remains a complex frontier. Music presents unique difficulties: it requires long-term structural coherence over several minutes, involves high data density (e.g., 48kHz stereo), and typically demands immense computational resources. Furthermore, accurately mapping diverse textual descriptions—ranging from specific instruments to abstract moods—to musical output is a non-trivial task. Moûsai is introduced to bridge these gaps, offering an expressive and efficient system capable of handling long-form musical structures.
Methods
Moûsai employs a two-stage cascading latent diffusion strategy to manage the complexity of high-fidelity audio.
Stage 1: Diffusion Magnitude-Autoencoding (DMAE)
Rather than operating directly on raw waveforms, the model utilizes a compressed representation. The DMAE converts audio into magnitude spectrograms, discarding phase information to achieve a 64x compression ratio. A key innovation is the use of a powerful diffusion decoder that can "hallucinate" realistic phase information during reconstruction, significantly reducing the data overhead compared to direct phase compression.
Stage 2: Text-Conditioned Latent Diffusion (TCLD)
In the second stage, the model learns to generate the compressed latents from Stage 1, conditioned on text. Textual prompts are processed through a frozen T5 language model to extract embeddings. Classifier-Free Guidance (CFG) is then applied to ensure the generated music remains faithful to the input prompt.
The 1D U-Net Architecture
A critical component of Moûsai's efficiency is its specialized 1D U-Net. Unlike the 2D U-Nets standard in image generation, the 1D architecture is optimized for sequential audio data. This design choice enables significantly faster processing, allowing the model to be trained and run on a single NVIDIA A100 or high-end consumer GPU.
Datasets: TEXT2MUSIC
The model was trained on a newly curated dataset, TEXT2MUSIC, comprising 50,000 text-music pairs (approximately 2,500 hours of audio). The dataset features 48kHz stereo audio across diverse genres including Pop, Electronic, Rock, Metal, and Hip Hop. Metadata such as title, artist, and genre were used to synthesize the training prompts.
Key Insights
- Magnitude-Based Compression: The discovery that phase information can be discarded during compression—provided a sufficiently powerful diffusion decoder is used—is a major efficiency gain.
- 1D Kernels for Speed: Treating audio as a 1D sequence avoids the computational overhead of 2D convolutions, leading to massive speedups in both training and inference.
- Long-Context Latents: Operating in a 64x compressed latent space extends the model's temporal "attention," allowing it to learn complex musical structures like sonata forms over several minutes.
Key Results
Moûsai demonstrates substantial improvements over existing baselines such as Riffusion and Musika.
- Audio Quality: The model achieved a Fréchet Audio Distance (FAD) of 0.00015, outperforming Riffusion (0.0018) by an order of magnitude.
- Inference Efficiency: With a Real-Time Factor (RTF) of 1.14, Moûsai can generate 43 seconds of music in approximately 49 seconds on a consumer GPU, roughly 5x faster than previous state-of-the-art models.
- Prompt Adherence: Human evaluations and genre identification tasks confirm that Moûsai’s outputs are highly relevant to textual prompts.
Limitations and Future Work
While Moûsai represents a significant step forward, several areas for improvement remain. The current dataset of 2,500 hours is relatively small compared to the 50,000+ hours likely needed for a true "foundation" model. Additionally, the model occasionally struggles with high-frequency details, a limitation that might be addressed by moving from L2 loss to perceptual loss functions. Future work will also explore more advanced sampling techniques and multi-modal conditioning, such as using short audio clips to guide style generation.
Summary updated