SongMASS: Automatic Song Writing with Pre-training and Alignment Constraint

Zhonghao Sheng, Kaitao Song, Xu Tan, Yi Ren, Wei Ye +2 more
12/9/2020
cs.SDcs.CLeess.AS

Official code: microsoft/muzic (4,958 stars, Python, MIT, last commit 2024-10-12).

Abstract

Automatic song writing aims to compose a song (lyric and/or melody) by machine, which is an interesting topic in both academia and industry. In automatic song writing, lyric-to-melody generation and melody-to-lyric generation are two important tasks, both of which usually suffer from the following challenges: 1) the paired lyric and melody data are limited, which affects the generation quality of the two tasks, considering a lot of paired training data are needed due to the weak correlation between lyric and melody; 2) Strict alignments are required between lyric and melody, which relies on specific alignment modeling.

Show full abstract

In this paper, we propose SongMASS to address the above challenges, which leverages masked sequence to sequence (MASS) pre-training and attention based alignment modeling for lyric-to-melody and melody-to-lyric generation. Specifically, 1) we extend the original sentence-level MASS pre-training to song level to better capture long contextual information in music, and use a separate encoder and decoder for each modality (lyric or melody); 2) we leverage sentence-level attention mask and token-level attention constraint during training to enhance the alignment between lyric and melody. During inference, we use a dynamic programming strategy to obtain the alignment between each word/syllable in lyric and note in melody. We pre-train SongMASS on unpaired lyric and melody datasets, and both objective and subjective evaluations demonstrate that SongMASS generates lyric and melody with significantly better quality than the baseline method without pre-training or alignment constraint.

View on arXivView PDF

Code Implementations(1)

microsoft/muzicOfficial100%
MIT

Muzic: Music Understanding and Generation with Artificial Intelligence

4,958504Python, ShellJun 3, 20212 years agoMIT
ai-musicdeep-learningmusicmusic-composition

Similar Papers

Cite this paper

@article{sheng2020songmass,
  title  = {SongMASS: Automatic Song Writing with Pre-training and Alignment Constraint},
  author = {Zhonghao Sheng and Kaitao Song and Xu Tan and Yi Ren and Wei Ye and Shikun Zhang and Tao Qin},
  year   = {2020},
  eprint = {2012.05168},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.05168}
}

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/2012.05168.svg)](https://codeofpaper.com/paper/2012.05168)

Discussion