Aligning Language Models for Lyric-to-Melody Generation with Rule-Based Musical Constraints
On the map: LLM alignment / RLHF / preference optimisation → Preference alignment for recommenders and RAG
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Preference alignment for recommenders and RAG, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 15 of its 18 references that are in the map. First posted on arXiv 20 Apr 2026.
Builds on
15 of 18 references.
References · 15
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2017Deep reinforcement learning from human preferencescited by 3,912
- 2019Fine-Tuning Language Models from Human Preferencescited by 2,150
- 2022Survey of Hallucination in Natural Language Generationcited by 2,075
- 2020Jukebox: A Generative Model for Musiccited by 542
- 2024GLM-4-Voice: Towards Intelligent and Human-Like End-to-End Spoken Chatbotcited by 224
- 2020SongMASS: Automatic Song Writing with Pre-training and Alignment Constraintcited by 41
- 2024Seed-Music: A Unified Framework for High Quality and Controlled Music Generationcited by 22
- 2021TeleMelody: Lyric-to-Melody Generation with a Template-Based Two-Stage Methodcited by 20
3 more
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025LeVo: High-Quality Song Generation with Multi-Preference Alignment
- 2024SongGLM: Lyric-to-Melody Generation with 2D Alignment Encoding and Multi-Task Pre-Training
- 2026TuneJury: An Open Metric for Improving Music Generation Preference Alignment
- 2025Aligning Generative Music AI with Human Preferences: Methods and Challenges
- 2025DiffRhythm 2: Efficient and High Fidelity Song Generation via Block Flow Matching
- 2025MR-FlowDPO: Multi-Reward Direct Preference Optimization for Flow-Matching Text-to-Music Generation
- 2026LeVo 2: Stable and Melodious Song Generation via Hierarchical Representation Modeling and Progressive Post-Training
- 2026MuseCritic: Learning Multi-Aspect Song Rewards through Natural-Language Aesthetic Critiques