NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MusicFlow: Cascaded Flow Matching for Text Guided Music Generation

K. R. Prajwal, Bowen Shi, Matthew Le, Apoorv Vyas, Andros Tjandra, Mahi Luthra, Baishan Guo, Huiyu Wang, Triantafyllos Afouras, David Kant, Wei-Ning Hsu · DOI

Abstract

MusicFlow is a novel cascaded generative model designed for high-quality text-to-music synthesis. By leveraging the efficiency of flow matching and a decoupled two-stage architecture—separating high-level musical semantics from dense acoustic details—MusicFlow achieves state-of-the-art results. Despite having only 330 million parameters, the model outperforms significantly larger autoregressive and diffusion-based counterparts in both audio quality and inference speed. Furthermore, its training objective enables zero-shot capabilities for music infilling and continuation without task-specific fine-tuning.

1. Introduction

Generating music from natural language descriptions is a formidable challenge in generative AI. Unlike speech, music requires the modeling of complex long-term structures, polyphonic textures (multiple overlapping instruments), and a wide frequency spectrum. Current state-of-the-art (SOTA) approaches typically fall into two categories: Autoregressive (AR) models, which are high-quality but computationally expensive due to sequential token generation, and Diffusion models, which offer faster sampling but often require hundreds of denoising steps and struggle with fine-grained text alignment.

MusicFlow addresses these limitations by utilizing Cascaded Flow Matching. This framework provides a more efficient generative path than traditional diffusion while maintaining the structural integrity required for complex musical compositions.

2. Methodology

2.1 Cascaded Flow Matching

The core of MusicFlow is the flow matching framework, a generative approach that learns to transform a simple noise distribution into a complex data distribution along a straight probability path (an ODE). This linear trajectory is inherently more efficient to solve than the curved paths found in standard diffusion models, allowing for high-quality synthesis in fewer steps.

MusicFlow decomposes the generation process into two distinct stages:

  • Stage 1: Semantic Flow: This stage generates high-level musical "semantics" from a text prompt. The authors utilize HuBERT (Hidden Unit BERT) features as a form of pseudo-transcription. These features capture essential musical elements such as melody, rhythm, and harmony without requiring manual symbolic labels like MIDI.
  • Stage 2: Acoustic Flow: This stage takes the semantic features from Stage 1, combined with the original text prompt, to generate dense acoustic features using Encodec. These features represent the "texture" of the audio, including timbre, volume, and recording quality.

2.2 Masked Prediction and In-Context Learning

MusicFlow is trained using a masked prediction objective. During training, segments of the musical features are randomly hidden, and the model learns to reconstruct them based on the surrounding context and text prompts. This approach allows the model to perform not only text-to-music generation but also music infilling and continuation using the same set of weights, effectively treating these tasks as in-context learning problems.

3. Experimental Setup

3.1 Datasets

The model was trained on a proprietary dataset of 20,000 hours of music (~400,000 tracks), pre-processed to 32kHz mono audio with vocals removed. For evaluation, the researchers utilized MusicCaps, a benchmark of 5,500 expert-annotated music clips. A subset of 1,000 genre-balanced tracks was also used for human subjective preference testing.

3.2 Metrics

Performance was measured using the Frechet Audio Distance (FAD) to assess overall quality, alongside FD and CLAP similarity to measure text-audio alignment. Human evaluators participated in "win/loss" subjective tests to compare MusicFlow against existing baselines.

4. Results and Discussion

4.1 Efficiency and Quality

MusicFlow demonstrates a significant improvement in the efficiency-to-quality ratio. At 330 million parameters, it is approximately 1/5th the size of the 1.5B parameter MusicGen model. Despite this smaller footprint, MusicFlow achieved a superior FAD score of 2.82 compared to MusicGen's 3.40.

4.2 Inference Speed

Due to the straight-path ODEs of the flow matching framework, MusicFlow requires 5x fewer iterative steps than standard diffusion models to reach peak audio quality. This makes it highly suitable for real-time or resource-constrained applications.

4.3 Versatility in Editing

In zero-shot tasks, MusicFlow significantly outperformed AudioLDM-2. Specifically, in music infilling (reconstructing the middle 70% of a track), MusicFlow showed superior consistency and adherence to the original musical context across all objective metrics.

5. Conclusion

MusicFlow represents a shift toward more efficient, modular generative architectures for audio. By using semantics as a bridge between text and raw sound, the model simplifies the generative task while maintaining high fidelity. Future work will focus on improving the gap between model-generated audio and ground-truth human compositions, as well as exploring more sophisticated ODE solvers to further accelerate inference. Additionally, the authors emphasize the importance of ethical data sourcing and providing opt-out mechanisms for artists in future large-scale training efforts.

Summary updated

BibTeX
@inproceedings{prajwal2024musicflow,
  author = {K. R. Prajwal and Bowen Shi and Matthew Le and Apoorv Vyas and Andros Tjandra and Mahi Luthra and Baishan Guo and Huiyu Wang and Triantafyllos Afouras and David Kant and Wei-Ning Hsu},
  title = {{MusicFlow: Cascaded Flow Matching for Text Guided Music Generation}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=kOczKjmYum},
}
Figure