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.