PopMelodyGen: A Copyright-Aware Platform for Controllable Pop-Melody Generation
Authors: Di Lu, Xinran Zhang, Qingwen Zhou, Yan Gao, Yuan Zhang, Xiaoqing Wang, Yuming Sun, Xiaobing Li, Maosong Sun
Organizations: Department of AI Music and Music Information Technology, Central Conservatory of Music · Key Laboratory of Music and Brain Science, Central Conservatory of Music, Ministry of Education, China · Laboratory of AI Music, Central Conservatory of Music, Laboratory of Philosophy and Social Sciences, Ministry of Education, China · Department of Computer Science and Technology, Tsinghua University
Large-scale redistributable symbolic pop-melody data remain scarce due to copyright restrictions, creating a bottleneck for both practical deployment and reproducible research in music generation. We present PopMelodyGen, a copyright-aware platform for controllable pop-melody generation that combines rule-based synthesis with neural generation. Our approach first uses an expert synthesizer to produce large-scale labeled synthetic melodies from explicit musical knowledge and templates, providing scalable pretraining data with auditable provenance. A neural model is then pretrained on this corpus and adapted with a small licensed real-pop corpus to improve melodic naturalness while preserving controllability. The platform supports interactive melody creation with accompaniment playback and export for creators, as well as batch construction of annotated symbolic datasets for researchers. PopMelodyGen demonstrates a practical training and deployment paradigm for creative AI when large-scale reusable real-world data are limited.
Figures & tables
Figure 1: Overview of the PopMelodyGen pipeline, from synthetic data generation to interactive deployment.
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 2: Expert synthesizer for synthetic melody generation. The system instantiates global settings, structure, harmony, rhythm, and pitch, and outputs a melody MIDI file with structured metadata.
Intro
Verse
Pre-chorus
Chorus
Outro
I8
A8A8
-
B8B8
O8
A16
C8
B16
A16A16
B16B16
Appendix
Table 1: Structure-template families. I, A, C, B, and O denote Intro, Verse, Pre-chorus, Chorus, and Outro, respectively. Numerals indicate bar counts.
Section
Tempo class
8-bar
16-bar
Verse
Slow
20
9
Verse
Mid
23
4
Verse
Fast
8
9
Pre-chorus
Slow
13
–
Pre-chorus
Mid
23
–
Pre-chorus
Fast
14
–
Appendix
Table 2: Number of chord progression templates by section type, tempo class, and section length. Dashes (–) indicate that no 16-bar templates are provided for Pre-chorus sections, as they are fixed to 8 bars in our structure design.
Figure 3: Melody model training process with synthetic pretraining and real-pop adaptation using synthetic replay.
Figure 4: Event-based tokenization with a control-token prefix followed by bar-level and note-level events.
Item
Pretraining
Adaptation
Max context length
1,300
1,300
Hidden size
512
512
Decoder layers
6
6
Attention heads
8
8
Dropout
0.1
0.1
Optimizer
AdamW
AdamW
Appendix
Table 3: Training configuration for both training stages.
Figure 5: Online chord injection: the chord token is inserted at each bar boundary to steer subsequent note-event decoding.
System
HAR ↑
CAD ↑
Expert reference
1.000
1.000
Synth-10k
0.914
0.543
Synth-30k
0.991
0.834
Synth-100k
0.998
0.893
Synth-300k
0.998
0.828
Appendix
Table 4: Synthetic pretraining-scale ablation.
Figure 6: Synthetic pretraining scale ablation on HAR and CAD metrics. The highlighted 100k setting is selected as the Synth-Base checkpoint.
Real-pop:synthetic replay
HAR ↑
CAD ↑
1:0 (real-only)
0.917
0.320
2:1 (final Real-FT)
0.983
0.834
1:1
0.987
0.844
1:2
0.994
0.890
Expert reference
1.000
1.000
Real-pop reference
0.898
0.798
Appendix
Table 5: Real-pop adaptation with synthetic replay. The 2:1 mixture is the reported final checkpoint; the other rows are ablation settings.
Figure 7: Real-pop adaptation mixture ablation on HAR and CAD metrics. The highlighted 2:1 mixture is selected as the final Real-FT setting.
System
HAR ↑
CAD ↑
RGL
SMR
Expert
1.000
1.000
5.992
0.634
Synth-Base (100k)
0.998
0.893
5.881
0.612
Real-FT (2:1)
0.983
0.834
4.946
0.663
RWC real-pop reference
0.898
0.798
3.231
0.724
Appendix
Table 6: Objective evaluation for the three final systems and the descriptive real-pop reference. RGL and SMR are not monotonic quality scores.
Figure 8: Objective comparison of Expert , Synth-Base , and Real-FT across four symbolic metrics. Dashed lines indicate the Expert and Real-Pop reference values.
System
MOS ↑
Best-of-three ↑
Expert
3.231±0.059
25.6%
Synth-Base
3.244±0.064
26.1%
Real-FT
3.548±0.057
48.3%
Appendix
Table 7: Human study with 30 participants and 18 generated songs. MOS is mean ± SE on a 5-point scale; Best-of-three is the preference win rate within each prompt group.
Figure 9: Nearest-neighbor similarity between melodies generated by the three systems and the RWC reference set.
Figure 10: Creator Mode interface for controllable melody generation, audition, and export.
Figure 11: Researcher Mode interface for batch generation of annotated symbolic melodies.
Large Language Models (LLMs) show promise in lyric-to-melody generation, but models trained with Supervised Fine-Tuning (SFT) often produce musically implausible melodies with issues like poor rhythm and unsuitable vocal ranges, a phenomenon we term "constraint violation". To address this, we propose a novel alignment framework that instills musical knowledge without human annotation. We define rule-based musical constraints to automatically generate a preference dataset from an SFT model's outputs. The model is then aligned through a sequential process, first using Direct Preference Optimization (DPO) on paired preference data, followed by Kahneman-Tversky Optimization (KTO) on unpaired negative samples. Experimental results demonstrate that our aligned model substantially reduces rule violations and outperforms strong baselines in both objective and subjective evaluations, generating melodies with substantially improved musicality and coherence. An interactive demo with audio comparisons is available at https://arain233.github.io/AligningMelody-demo.
Deep learning has transformed symbolic music generation by borrowing the training paradigms of large language models, with systems such as NotaGen now producing complete, stylistically convincing classical scores from a short prompt. These systems could become powerful creative partners, helping musicians generate endless possibilities. However, current systems expose almost no control handles on the music itself. In principle, control handles could be built into a foundation model trained from scratch, but this is rarely practical without massive amounts of quality annotated data and compute resources. We therefore present MotiGen, a recipe for retrofitting pretrained symbolic music models to use new instruction prompts. MotiGen injects a musical motif as a structured prompt line, reinforces it with a scalar attention bias toward the motif tokens, and learns the association with a two-phase curriculum. First, it learns from focused excerpts cropped around motif occurrences in the training data, then full scores including the motifs. Our experiments show that our model composes with the prompted motif in over 92.3% of generated pieces. Generated pieces using a variety of motifs are included in our sample site: https://motigen-site.github.io/.
Chao Peter Yang, Cynthia Rudin, Yue Jiang +2
Yale University New Haven, CT · Duke University Durham, NC · Chinese University of Hong Kong, Shenzhen Shenzhen, Guangdong
Regenerating singing voices with altered lyrics while preserving melody consistency remains challenging, as existing methods either offer limited controllability or require laborious manual alignment. We propose YingMusic-Singer, a fully diffusion-based model enabling melody-controllable singing voice synthesis with flexible lyric manipulation. The model takes three inputs: an optional timbre reference, a melody-providing singing clip, and modified lyrics, without manual alignment. Trained with curriculum learning and Group Relative Policy Optimization, YingMusic-Singer achieves stronger melody preservation and lyric adherence than Vevo2, the most comparable baseline supporting melody control without manual alignment. We also introduce LyricEditBench, the first benchmark for melody-preserving lyric modification evaluation. The code, weights, benchmark, and demos are publicly available at https://github.com/ASLP-lab/YingMusic-Singer-Plus.