Melody-Guided Music Generation

Shaopeng Wei, Manzhen Wei, Haoyu Wang, Yu Zhao, Gang Kou
9/30/2024
3 citations
cs.SDcs.AIeess.AS

Official code: shaopengw/Awesome-Music-Generation (167 stars, Python, MIT, last commit 2025-03-29).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Awesome music generation model——MG²

16713Python, ShellSep 27, 20241 years agoMIT
alignmentartificial-intelligencecreationdiffusion-modelsgenerative-ai+9 more

Similar Papers

Cite this paper

@article{wei2024melodyguided,
  title  = {Melody-Guided Music Generation},
  author = {Shaopeng Wei and Manzhen Wei and Haoyu Wang and Yu Zhao and Gang Kou},
  year   = {2024},
  eprint = {2409.20196},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.20196v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.20196.svg)](https://codeofpaper.com/paper/2409.20196)

Discussion