Abstract
Melodist is a novel two-stage generative framework designed for the "text-to-song" task—creating a complete musical piece (vocals plus accompaniment) from a music score and natural language prompts. By utilizing a unique tri-tower contrastive pre-training strategy, the model ensures that the generated instruments are stylistically and melodically synchronized with the singing voice, outperforming existing independent synthesis methods.
Introduction
In AI music research, Singing Voice Synthesis (SVS) and Music Generation have traditionally been treated as separate domains. SVS models focus on converting lyrics and notes into a voice, while music generation models typically produce instrumental tracks from text descriptions, often overlooking the lead vocal's nuances.
The "Text-to-Song" task is significantly more complex because a song requires perfect alignment between vocals and accompaniment in terms of melody, rhythm, and emotional tone. Furthermore, high-quality datasets containing paired vocals, accompaniments, and annotated music scores are scarce, creating a significant bottleneck for model development.
Methodology: The Melodist Framework
Melodist addresses these challenges by decomposing the song generation process into a logical two-stage pipeline.
- Stage 1: Singing Voice Synthesis (SVS): The model takes a music score (lyrics, notes, and duration) and generates the singing voice.
- Stage 2: Vocal-to-Accompaniment (V2A): Using the generated vocal and a natural language prompt (e.g., "a jazz song with a soft piano") as conditions, the model generates the matching accompaniment.
Both stages utilize a Multi-scale Transformer architecture, which employs hierarchical global and local processing to handle long-sequence audio modeling efficiently. Instead of raw waveforms, the model predicts discrete "acoustic tokens" via SoundStream, which are subsequently converted to audio using a high-fidelity BigVGAN vocoder.
Tri-Tower Contrastive Pre-training
The core innovation of Melodist is its Tri-Tower Contrastive Pre-training strategy. While standard models use two "towers" (text and audio) to learn representations, Melodist incorporates three: Text, Vocal, and Accompaniment.
By pulling these three embeddings closer in a shared latent space, the model learns the deep relationships between text prompts, vocal characteristics, and instrumental energy. This grounding ensures that a "rock" prompt influences both the grit in the vocal and the driving energy of the drum kit simultaneously.
Data and Training
To overcome data scarcity, the authors curated a Chinese song dataset by mining 5,000 Mandarin songs (approx. 180 hours). They employed source separation (Demucs) to isolate vocals and instruments and used automated tools to extract scores and attribute tags. Training also leveraged open-source SVS datasets like Opencpop and M4Singer, alongside large-scale music datasets like LP-MusicCaps-MSD for accompaniment context.
Results and Discussion
Melodist was evaluated against state-of-the-art baselines, including DiffSinger and Make-A-Voice.
- Vocal Quality: Melodist achieved a Mean Opinion Score (MOS) of 3.90, the highest among tested SVS models.
- Accompaniment Relevance: In the V2A task, Melodist significantly outperformed MUSICGEN in Relevance (REL) and Melody Alignment (MEL), scoring 85.72 and 75.86 respectively.
- Retrieval Accuracy: The tri-tower pre-training led to a substantial improvement in text-to-audio retrieval, with a mean Average Precision (mAP) of 16.3 for vocals and 19.4 for accompaniment.
Conclusion
Melodist demonstrates that treating vocals as a primary condition for accompaniment generation leads to superior melodic and stylistic alignment. While current limitations include source separation artifacts and single-track accompaniment generation, future work aims to explore multi-track stems and fully end-to-end synthesis.
Summary updated