MelodyGLM: Multi-task Pre-training for Symbolic Melody Generation
Not on the map. Why?
Abstract (arXiv)
Pre-trained language models have achieved impressive results in various music understanding and generation tasks. However, existing pre-training methods for symbolic melody generation struggle to capture multi-scale, multi-dimensional structural information in note sequences, due to the domain knowledge discrepancy between text and music. Moreover, the lack of available large-scale symbolic melody datasets limits the pre-training improvement. In this paper, we propose MelodyGLM, a multi-task pre-training framework for generating melodies with long-term structure. We design the melodic n-gram and long span sampling strategies to create local and global blank infilling tasks for modeling the local and global structures in melodies. Specifically, we incorporate pitch n-grams, rhythm n-grams, and their combined n-grams into the melodic n-gram blank infilling tasks for modeling the multi-dimensional structures in melodies. To this end, we have constructed a large-scale symbolic melody dataset, MelodyNet, containing more than 0.4 million melody pieces. MelodyNet is utilized for large-scale pre-training and domain-specific n-gram lexicon construction. Both subjective and objective evaluations demonstrate that MelodyGLM surpasses the standard and previous pre-training methods. In particular, subjective evaluations show that, on the melody continuation task, MelodyGLM gains average improvements of 0.82, 0.87, 0.78, and 0.94 in consistency, rhythmicity, structure, and overall quality, respectively. Notably, MelodyGLM nearly matches the quality of human-composed melodies on the melody inpainting task.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 38 of its 62 references that are in the map. First posted on arXiv 19 Sep 2023.
Builds on
38 of 62 references.
References · 38
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,031
- 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 834
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 762
- 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 670
- 2022AudioLM: a Language Modeling Approach to Audio Generationcited by 616
26 more
- 2019ERNIE: Enhanced Language Representation with Informative Entitiescited by 528
- 2019MASS: Masked Sequence to Sequence Pre-training for Language Generationcited by 347
- 2019ERNIE: Enhanced Representation through Knowledge Integrationcited by 302
- 2020Revisiting Pre-Trained Models for Chinese Natural Language Processingcited by 266
- 2018Enabling Factorized Piano Music Modeling and Generation with the MAESTRO Datasetcited by 217
- 2018Music Transformercited by 211
- 2020UniLMv2: Pseudo-Masked Language Models for Unified Language Model Pre-Trainingcited by 204
- 2022Should You Mask 15% in Masked Language Modeling?cited by 118
- 2021Compound Word Transformer: Learning to Compose Full-Song Music over Dynamic Directed Hypergraphscited by 110
- 2021MusicBERT: Symbolic Music Understanding with Large-Scale Pre-Trainingcited by 89
- 2020PopMAG: Pop Music Accompaniment Generationcited by 68
- 2021Video Background Music Generation with Controllable Music Transformercited by 56
- 2019LakhNES: Improving multi-instrumental music generation with cross-domain pre-trainingcited by 54
- 2020PMI-Masking: Principled masking of correlated spanscited by 54
- 2022Museformer: Transformer with Fine- and Coarse-Grained Attention for Music Generationcited by 49
- 2020SongMASS: Automatic Song Writing with Pre-training and Alignment Constraintcited by 41
- 2021Theme Transformer: Symbolic Music Generation with Theme-Conditioned Transformercited by 40
- 2020GiantMIDI-Piano: A large-scale MIDI dataset for classical piano musiccited by 37
- 2021MELONS: generating melody with long-term structure using transformers and structure graphcited by 18
- 2022Compose & Embellish: Well-Structured Piano Performance Generation via A Two-Stage Approachcited by 18
- 2020ERNIE-Gram: Pre-Training with Explicitly N-Gram Masked Language Modeling for Natural Language Understandingcited by 17
- 2017A Hierarchical Recurrent Neural Network for Symbolic Melody Generationcited by 14
- 2019Midi Miner -- A Python library for tonal tension and track classificationcited by 6
- 2022MeloForm: Generating Melody with Musical Form based on Expert Systems and Neural Networkscited by 5
- 2023WuYun: Exploring hierarchical skeleton-guided melody generation using knowledge-enhanced deep learningcited by 5
- 2022Melody Infilling with User-Provided Structural Contextcited by 4
Built on by
Citing papers per year: 2024: 3; 2025: 3; 2026: 4.
10 papers.
- 2025NotaGen: Advancing Musicality in Symbolic Music Generation with Large Language Model Training Paradigmscited by 30
- 2024Motifs, Phrases, and Beyond: The Modelling of Structure in Symbolic Music Generationcited by 7
- 2025A Survey on Music Generation from Single-Modal, Cross-Modal, and Multi-Modal Perspectivescited by 4
- 2024MuDiT & MuSiT: Alignment with Colloquial Expression in Description-to-Song Generationcited by 2
- 2024SongGLM: Lyric-to-Melody Generation with 2D Alignment Encoding and Multi-Task Pre-Trainingcited by 1
- 2026MusiChat: Vibe Composing for Music Creationcited by 1
- 2025Singing Timbre Popularity Assessment Based on Multimodal Large Foundation Modelcited by 0
- 2026MIDI-RAE-JEPA: Hierarchical Representation Learning and Generation for Symbolic Musiccited by 0
- 2026RPPNet: Perceptually-Grouped Rhythm-Pitch Primitives for Long-Term Structure Melody Generation via Boundary-Aware Modelingcited by 0
- 2026Helping Music Co-Creation Agents 'Listen' Well: Hierarchical Self-Supervised World Models for Understanding and Generationcited by 0
- 2026Helping Music Co-Creation Agents 'Listen' Well: Hierarchical Self-Supervised World Models for Understanding and Generation5 Aug 2026
- 2026MusiChat: Vibe Composing for Music Creation27 Jul 2026
- 2026RPPNet: Perceptually-Grouped Rhythm-Pitch Primitives for Long-Term Structure Melody Generation via Boundary-Aware Modeling22 Jul 2026
- 2026MIDI-RAE-JEPA: Hierarchical Representation Learning and Generation for Symbolic Music16 Jul 2026
- 2025Singing Timbre Popularity Assessment Based on Multimodal Large Foundation Model7 Dec 2025
- 2025A Survey on Music Generation from Single-Modal, Cross-Modal, and Multi-Modal Perspectives1 Apr 2025
- 2025NotaGen: Advancing Musicality in Symbolic Music Generation with Large Language Model Training Paradigms25 Feb 2025
- 2024SongGLM: Lyric-to-Melody Generation with 2D Alignment Encoding and Multi-Task Pre-Training24 Dec 2024
- 2024MuDiT & MuSiT: Alignment with Colloquial Expression in Description-to-Song Generation3 Jul 2024
- 2024Motifs, Phrases, and Beyond: The Modelling of Structure in Symbolic Music Generation12 Mar 2024