A Comparative Study of LSTM and Transformer Models in Music Melody Generation
Year: 2023
Type: article
Abstract: Background: In recent years, using deep learning models to generate music has become the mainstream direction in AI music. However, the main models for music generation still face several issues, the biggest of which is the inability to effectively simulate musical structure, hindering computers from creating compositions that conform to musical structures. Objective: To address this, we need to explore which models can effectively simulate the structure of music and create more humanized music. Methods: We conduct comparative experiments, analyzing the advantages and disadvantages of music generated by LSTM and Transformer models, and propose improvements based on the findings. Results: Experimental results demonstrate that LSTM performs better than Transformer in simulating musical structure in shorter sequences, but struggles with longer sequences; whereas Transformer outperforms LSTM in handling longer sequences and can effectively simulate musical structure in longer sequences after improvements, creating compositions that align with human musical perception. Conclusion: Therefore, we believe that the Transformer model is more suitable for AI music composition tasks, and improving its attention mechanism to enhance recognition of musical structure will be the mainstream direction for music generation in the future.
Source: Journal of Global Arts Studies
Authors: Jiaxiang Zheng, Moxi Cao
Language: English
Subfield: Music
Field: Arts and Humanities
Domain: Social Sciences
Open Access status: diamond
OpenAlex ID: W7219860160
