The Power of Fragmentation: A Hierarchical Transformer Model for Structural Segmentation in Symbolic Music Generation
- 31 March 2023
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE/ACM Transactions on Audio, Speech, and Language Processing
- Vol. 31 (23299290) , 1409-1420
Abstract
Symbolic music generation relies on the contextual representation capabilities of the generative model, where the most prevalent approach is the Transformer-based model. Learning contextual representations are also related to the structural elements in music, i.e., intro, verse, and chorus, which have not received much attention of scientific publications. In this paper, we propose a hierarchical Transformer model to learn multiscale contexts in music. In the encoding phase, we first design a fragment scope localization module to separate the music parts into chords and sections. Then, we use a multiscale attention mechanism to learn note-, chord-, and section-level contexts. In the decoding phase, we propose a hierarchical Transformer model that uses fine decoders to generate sections in parallel and a coarse decoder to decode the combined music. We also designed a music style normalization layer to achieve a consistent music style between the generated sections. Our model is evaluated on two open MIDI datasets. Experiments show that our model outperforms other comparative models in 50% (6 out of 12 metrics) and 83.3% (10 out of 12 metrics) of the quantitative metrics for short- and long-term music generation, respectively. Preliminary visual analysis also suggests its potential in following compositional rules, such as reuse of rhythmic patterns and critical melodies, which are associated with improved music quality.Keywords
All Related Versions
Funding Information
- Science and Technology on Underwater Test and Control Laboratory, China (61424070506)
This publication has 21 references indexed in Scilit:
- PopMNet: Generating structured pop music melodies using neural networksArtificial Intelligence, 2020
- Pop Music GenerationACM Transactions on Knowledge Discovery From Data, 2020
- Deep Learning Techniques for Music Generation2020
- Representing Modifiable and Reusable Musical Content on the Web With Constrained Multi-Hierarchical StructuresIEEE Transactions on Multimedia, 2019
- A Hierarchical Attentive Deep Neural Network Model for Semantic Music Annotation Integrating Multiple Music Representations2019
- Unsupervised Learning of Deep Features for Music Segmentation2019
- Transformer-XL: Attentive Language Models beyond a Fixed-Length Context2019
- On the evaluation of generative models in musicNeural Computing and Applications, 2018
- Arbitrary Style Transfer in Real-Time with Adaptive Instance Normalization2017
- Perplexity—a measure of the difficulty of speech recognition tasksThe Journal of the Acoustical Society of America, 1977