mlsanityData to 14 Oct 2026

Aligning Language Models for Lyric-to-Melody Generation with Rule-Based Musical Constraints

arXiv 2604.18489 ↗First posted 20 Apr 2026cs.SD cs.CL eess.AScited by 0

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  4. 2024Qwen2.5 Technical Reportcited by 4,942
  5. 2017Deep reinforcement learning from human preferencescited by 3,912
  6. 2019Fine-Tuning Language Models from Human Preferencescited by 2,150
  7. 2022Survey of Hallucination in Natural Language Generationcited by 2,075
  8. 2020Jukebox: A Generative Model for Musiccited by 542
  9. 2024GLM-4-Voice: Towards Intelligent and Human-Like End-to-End Spoken Chatbotcited by 224
  10. 2020SongMASS: Automatic Song Writing with Pre-training and Alignment Constraintcited by 41
  11. 2024Seed-Music: A Unified Framework for High Quality and Controlled Music Generationcited by 22
  12. 2021TeleMelody: Lyric-to-Melody Generation with a Template-Based Two-Stage Methodcited by 20
3 more
  1. 2025TechSinger: Technique Controllable Multilingual Singing Voice Synthesis via Flow Matchingcited by 19
  2. 2022ReLyMe: Improving Lyric-to-Melody Generation by Incorporating Lyric-Melody Relationshipscited by 13
  3. 2025Step-Audio-AQAA: a Fully End-to-End Expressive Large Audio Language Modelcited by 7

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025LeVo: High-Quality Song Generation with Multi-Preference Alignment
  2. 2024SongGLM: Lyric-to-Melody Generation with 2D Alignment Encoding and Multi-Task Pre-Training
  3. 2026TuneJury: An Open Metric for Improving Music Generation Preference Alignment
  4. 2025Aligning Generative Music AI with Human Preferences: Methods and Challenges
  5. 2025DiffRhythm 2: Efficient and High Fidelity Song Generation via Block Flow Matching
  6. 2025MR-FlowDPO: Multi-Reward Direct Preference Optimization for Flow-Matching Text-to-Music Generation
  7. 2026LeVo 2: Stable and Melodious Song Generation via Hierarchical Representation Modeling and Progressive Post-Training
  8. 2026MuseCritic: Learning Multi-Aspect Song Rewards through Natural-Language Aesthetic Critiques