IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v11y2023i4p798-d1057871.html
   My bibliography  Save this article

MRBERT: Pre-Training of Melody and Rhythm for Automatic Music Generation

Author

Listed:
  • Shuyu Li

    (Department of Multimedia Engineering, Graduate School, Dongguk University–Seoul, Seoul 04620, Republic of Korea)

  • Yunsick Sung

    (Department of Multimedia Engineering, Dongguk University–Seoul, Seoul 04620, Republic of Korea)

Abstract

Deep learning technology has been extensively studied for its potential in music, notably for creative music generation research. Traditional music generation approaches based on recurrent neural networks cannot provide satisfactory long-distance dependencies. These approaches are typically designed for specific tasks, such as melody and chord generation, and cannot generate diverse music simultaneously. Pre-training is used in natural language processing to accomplish various tasks and overcome the limitation of long-distance dependencies. However, pre-training is not yet widely used in automatic music generation. Because of the differences in the attributes of language and music, traditional pre-trained models utilized in language modeling cannot be directly applied to music fields. This paper proposes a pre-trained model, MRBERT, for multitask-based music generation to learn melody and rhythm representation. The pre-trained model can be applied to music generation applications such as web-based music composers that includes the functions of melody and rhythm generation, modification, completion, and chord matching after being fine-tuned. The results of ablation experiments performed on the proposed model revealed that under the evaluation metrics of HITS@k, the pre-trained MRBERT considerably improved the performance of the generation tasks by 0.09–13.10% and 0.02–7.37%, compared to the usage of RNNs and the original BERT, respectively.

Suggested Citation

  • Shuyu Li & Yunsick Sung, 2023. "MRBERT: Pre-Training of Melody and Rhythm for Automatic Music Generation," Mathematics, MDPI, vol. 11(4), pages 1-14, February.
  • Handle: RePEc:gam:jmathe:v:11:y:2023:i:4:p:798-:d:1057871
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/11/4/798/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/11/4/798/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Shuyu Li & Sejun Jang & Yunsick Sung, 2019. "Automatic Melody Composition Using Enhanced GAN," Mathematics, MDPI, vol. 7(10), pages 1-13, September.
    2. Zhe Jiang & Shuyu Li & Yunsick Sung, 2022. "Enhanced Evaluation Method of Musical Instrument Digital Interface Data based on Random Masking and Seq2Seq Model," Mathematics, MDPI, vol. 10(15), pages 1-17, August.
    3. Lvyang Qiu & Shuyu Li & Yunsick Sung, 2021. "DBTMPE: Deep Bidirectional Transformers-Based Masked Predictive Encoder Approach for Music Genre Classification," Mathematics, MDPI, vol. 9(5), pages 1-17, March.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Shuyu Li & Yunsick Sung, 2023. "Transformer-Based Seq2Seq Model for Chord Progression Generation," Mathematics, MDPI, vol. 11(5), pages 1-14, February.
    2. Arulsamy, Karen & Delaney, Liam, 2022. "The impact of automatic enrolment on the mental health gap in pension participation: Evidence from the UK," Journal of Health Economics, Elsevier, vol. 86(C).
    3. Yihang Zhang & Yunsick Sung, 2023. "Traffic Accident Detection Using Background Subtraction and CNN Encoder–Transformer Decoder in Video Frames," Mathematics, MDPI, vol. 11(13), pages 1-15, June.
    4. Zhe Jiang & Shuyu Li & Yunsick Sung, 2022. "Enhanced Evaluation Method of Musical Instrument Digital Interface Data based on Random Masking and Seq2Seq Model," Mathematics, MDPI, vol. 10(15), pages 1-17, August.
    5. Wenkai Huang & Feng Zhan, 2023. "A Novel Probabilistic Diffusion Model Based on the Weak Selection Mimicry Theory for the Generation of Hypnotic Songs," Mathematics, MDPI, vol. 11(15), pages 1-26, July.
    6. Shuyu Li & Yunsick Sung, 2021. "INCO-GAN: Variable-Length Music Generation Method Based on Inception Model-Based Conditional GAN," Mathematics, MDPI, vol. 9(4), pages 1-16, February.
    7. Sejun Jang & Shuyu Li & Yunsick Sung, 2020. "FastText-Based Local Feature Visualization Algorithm for Merged Image-Based Malware Classification Framework for Cyber Security and Cyber Defense," Mathematics, MDPI, vol. 8(3), pages 1-13, March.
    8. Yihang Zhang & Yunsick Sung, 2023. "Traffic Accident Detection Method Using Trajectory Tracking and Influence Maps," Mathematics, MDPI, vol. 11(7), pages 1-14, April.
    9. Hyewon Yoon & Shuyu Li & Yunsick Sung, 2021. "Style Transformation Method of Stage Background Images by Emotion Words of Lyrics," Mathematics, MDPI, vol. 9(15), pages 1-20, August.
    10. Yu-Huei Cheng & Che-Nan Kuo, 2022. "Machine Learning for Music Genre Classification Using Visual Mel Spectrum," Mathematics, MDPI, vol. 10(23), pages 1-19, November.
    11. Lvyang Qiu & Shuyu Li & Yunsick Sung, 2021. "DBTMPE: Deep Bidirectional Transformers-Based Masked Predictive Encoder Approach for Music Genre Classification," Mathematics, MDPI, vol. 9(5), pages 1-17, March.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:11:y:2023:i:4:p:798-:d:1057871. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.