Text-to-Song: Towards Controllable Music Generation Incorporating Vocal and Accompaniment

Zhiqing Hong, Rongjie Huang, Xize Cheng, Yongqi Wang, Ruiqi Li, Fuming You, Zhou Zhao, Zhimeng Zhang

Abstract

Generating a complete song—combining both a singing voice and musical accompaniment—remains a significant challenge in AI music research. Traditional approaches often treat Singing Voice Synthesis (SVS) and Music Generation as independent tasks, leading to a lack of stylistic cohesion and high computational complexity. This paper presents Melodist, a novel two-stage framework designed for controllable text-to-song synthesis. Melodist leverages a tri-tower contrastive pre-training strategy to align text, vocal, and accompaniment modalities in a shared embedding space. Experimental results demonstrate that Melodist outperforms existing baselines in subjective quality, pitch accuracy, and style consistency.

Introduction

The field of AI-driven music generation has seen rapid progress, yet the synthesis of full songs remains difficult. Most existing models focus either on Singing Voice Synthesis (SVS), which converts lyrics and notes into vocals, or Music Generation, which creates instrumental tracks. This separation results in three primary issues: high computational overhead for end-to-end generation, limited user control over musical style via natural language, and a scarcity of high-quality, multi-modal datasets.

The Melodist Framework

To address these challenges, the authors propose Melodist, a pipeline that decomposes song generation into two distinct stages:

  1. Stage 1: Singing Voice Synthesis (SVS): The model processes a music score (including lyrics, notes, and durations) to produce vocal "acoustic tokens."
  2. Stage 2: Vocal-to-Accompaniment (V2A) Synthesis: Using the generated vocal tokens and a natural language prompt as input, the model synthesizes a matching musical accompaniment.
The Melodist framework architecture, featuring a two-stage synthesis pipeline and multi-scale transformer design.

This "vocal-first" approach ensures that the accompaniment is harmonically and rhythmically aligned with the lead melody, mimicking the natural process of music production.

Technical Innovations

Melodist introduces several key components to enhance generation quality and efficiency:

  • Neural Codec Acoustic Tokens: Instead of raw waveforms, the model utilizes discrete acoustic tokens from a neural codec (SoundStream). This representation significantly reduces the complexity of the generation task.
  • Multi-scale Transformer: The architecture employs a hierarchical transformer design. A "Global Transformer" captures long-term structural dependencies, while "Local Transformers" focus on fine-grained audio details.
  • Tri-Tower Contrastive Pre-training: A core innovation is the use of three separate encoders for text, vocals, and accompaniment. By training these encoders to map different modalities into a shared embedding space, Melodist learns the semantic relationships between descriptive prompts and audio features. This allows for precise stylistic control during the V2A stage.

Experimental Setup and Results

The model was trained on a newly curated Chinese song dataset comprising 180 hours of audio, separated into vocal and instrumental tracks using Demucs. Additional supervision was provided by open-source SVS datasets and text-to-music datasets.

Melodist was evaluated against state-of-the-art models, including MUSICGEN and DiffSinger, using both subjective and objective metrics.

Comparison of Melodist against baseline models across MOS, SMOS, and FFE metrics.

Key findings include:

  • Superior Subjective Quality: Melodist achieved a Mean Opinion Score (MOS) of 3.90, the highest among the tested models, indicating better overall vocal and musical quality.
  • High Pitch Accuracy: The model recorded a low F0 Frame Error (FFE) of 0.09, demonstrating its ability to maintain precise pitch.
  • Style Consistency: Thanks to the tri-tower pre-training, Melodist showed significantly better alignment with text prompts compared to models lacking this cross-modal alignment strategy.

Conclusion

Melodist represents a significant step toward controllable, high-quality text-to-song synthesis. By decoupling the generation process and employing contrastive pre-training, the framework achieves impressive results in style consistency and audio quality. Future work will focus on addressing artifacts from source separation, expanding to multi-track generation, and incorporating a wider variety of languages and musical genres.

Summary updated

BibTeX
@inproceedings{hong2024text,
  author = {Zhiqing Hong and Rongjie Huang and Xize Cheng and Yongqi Wang and Ruiqi Li and Fuming You and Zhou Zhao and Zhimeng Zhang},
  title = {{Text-to-Song: Towards Controllable Music Generation Incorporating Vocal and Accompaniment}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.339},
}
Figure