Skip to main content
QUICK REVIEW

[Paper Review] Neural Melody Composition from Lyrics

Hangbo Bao, Shaohan Huang|arXiv (Cornell University)|Sep 12, 2018
Music and Audio ProcessingComputer Science23 references4 citations
TL;DR

This paper proposes an end-to-end neural sequence-to-sequence model for lyrics-conditional melody generation that jointly produces musical notes and their precise syllable-to-note alignments, including one-to-many mappings. The model uses dual encoders for lyrics and context melody and a hierarchical RNN decoder to generate melodically coherent, tuneful melodies that outperform baselines in both automatic and human evaluations on a large-scale Chinese pop song dataset.

ABSTRACT

In this paper, we study a novel task that learns to compose music from natural language. Given the lyrics as input, we propose a melody composition model that generates lyrics-conditional melody as well as the exact alignment between the generated melody and the given lyrics simultaneously. More specifically, we develop the melody composition model based on the sequence-to-sequence framework. It consists of two neural encoders to encode the current lyrics and the context melody respectively, and a hierarchical decoder to jointly produce musical notes and the corresponding alignment. Experimental results on lyrics-melody pairs of 18,451 pop songs demonstrate the effectiveness of our proposed methods. In addition, we apply a singing voice synthesizer software to synthesize the "singing" of the lyrics and melodies for human evaluation. Results indicate that our generated melodies are more melodious and tuneful compared with the baseline method.

Motivation & Objective

  • To address the lack of end-to-end neural models for lyrics-conditional melody generation that handle complex syllable-to-note alignments.
  • To overcome the limitation of existing methods that assume only one-to-one alignment, which ignores the prevalent one-to-many mappings in real music.
  • To build a large-scale, high-precision lyrics-melody dataset with 18,451 Chinese pop songs and 644,472 syllable-melody triples for training and evaluation.
  • To develop a model that jointly generates melody and alignment, improving musical naturalness and tunefulness.
  • To validate the model's superiority through automatic metrics and human evaluation using singing voice synthesis.

Proposed method

  • The model employs a sequence-to-sequence framework with two bi-directional RNN encoders: one for encoding current lyrics syllables and another for encoding context melody using an attention mechanism.
  • The hierarchical RNN decoder consists of three layers: two for predicting pitch and duration of each musical note, and one for predicting alignment labels indicating which syllable each note corresponds to.
  • The alignment prediction layer enables the model to learn one-to-many mappings, where a single syllable can correspond to multiple consecutive notes.
  • The model is trained end-to-end on a large-scale dataset of 18,451 Chinese pop songs with precisely annotated syllable-note alignments.
  • A singing voice synthesizer is used to render the generated melodies and lyrics into audio for human evaluation.
  • The training objective optimizes for both melody generation and alignment accuracy, with joint optimization of pitch, duration, and alignment labels.

Experimental results

Research questions

  • RQ1Can an end-to-end neural network model effectively generate melodies from lyrics while learning the exact alignment between syllables and musical notes?
  • RQ2Does modeling one-to-many syllable-to-note alignments improve melody quality compared to models restricted to one-to-one mappings?
  • RQ3Can a joint sequence-to-sequence framework with dual encoders and hierarchical decoding outperform traditional sequence labeling or classification baselines in melody generation?
  • RQ4How do automatic metrics and human evaluations compare in assessing the musical quality of generated melodies?
  • RQ5To what extent does incorporating precise alignment information improve the naturalness of note durations and pauses in sung melodies?

Key findings

  • The proposed model significantly outperforms baseline methods on all automatic evaluation metrics, demonstrating superior performance in melody generation and alignment accuracy.
  • Human evaluation results show that melodies generated by the proposed method received a mean overall score of 4.57, substantially higher than the baseline Seq2seq model (3.28) and Songwriter baseline (3.83).
  • The human annotators rated the proposed model's melodies as more melodious and tuneful, particularly noting improved naturalness in note duration and pauses.
  • The model successfully captures one-to-many alignments, as evidenced by the fact that 97.9% of songs in the dataset contain at least one syllable mapped to multiple notes, a pattern the model learns effectively.
  • The use of explicit alignment prediction in the decoder leads to more natural rhythm and timing, as confirmed by higher scores on the 'Rhythm' metric (4.17 vs. 2.66 for Seq2seq).
  • The results confirm that using exact syllable-level alignment information is more effective than soft attention mechanisms in traditional sequence-to-sequence models for melody generation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.