English

Melody-Guided Music Generation

Sound 2024-12-31 v4 Artificial Intelligence Audio and Speech Processing

Abstract

We present the Melody-Guided Music Generation (MG2) model, a novel approach using melody to guide the text-to-music generation that, despite a simple method and limited resources, achieves excellent performance. Specifically, we first align the text with audio waveforms and their associated melodies using the newly proposed Contrastive Language-Music Pretraining, enabling the learned text representation fused with implicit melody information. Subsequently, we condition the retrieval-augmented diffusion module on both text prompt and retrieved melody. This allows MG2 to generate music that reflects the content of the given text description, meantime keeping the intrinsic harmony under the guidance of explicit melody information. We conducted extensive experiments on two public datasets: MusicCaps and MusicBench. Surprisingly, the experimental results demonstrate that the proposed MG2 model surpasses current open-source text-to-music generation models, achieving this with fewer than 1/3 of the parameters or less than 1/200 of the training data compared to state-of-the-art counterparts. Furthermore, we conducted comprehensive human evaluations involving three types of users and five perspectives, using newly designed questionnaires to explore the potential real-world applications of MG2.

Keywords

Cite

@article{arxiv.2409.20196,
  title  = {Melody-Guided Music Generation},
  author = {Shaopeng Wei and Manzhen Wei and Haoyu Wang and Yu Zhao and Gang Kou},
  journal= {arXiv preprint arXiv:2409.20196},
  year   = {2024}
}

Comments

16 pages, 8 figure, 8 tables

R2 v1 2026-06-28T19:02:10.512Z