Pay (Cross) Attention to the Melody: Curriculum Masking for Single-Encoder Melodic Harmonization
Department of Music Technology(音乐技术系);Acoustics Hellenic Mediterranean University, Greece Archimedes, Athena RC, Greece(声学 希腊地中海大学 阿里卡斯萨斯);Institute of Language(语言研究所);School of Music Studies Aristotle University of Thessaloniki, Greece(音乐研究学院 阿里斯托芬大学)
旋律和声,即为给定旋律生成和声伴奏的任务,仍然是计算音乐生成中的核心挑战。最近的单编码变压器方法将和声视为一个掩码序列建模问题,但受离散扩散启发的现有训练课程往往导致旋律与和声之间的弱(交叉)注意力。这导致了对旋律线索的利用有限,尤其是在域外情境中。在本工作中,我们引入了一种训练课程,FF(全到全),在多个训练步骤中保持所有和声标记被掩码,然后逐步解掩码整个序列以加强旋律-和声互动。我们系统地评估了该方法与先前课程在多个实验轴上的对比,包括时间量化(四分音符 vs. 六分音符)、小节级 vs. 时间签名条件、旋律表示(完整范围 vs. 音高类)以及推理时的掩码策略。模型在HookTheory数据集上进行训练,并在域内和一个精心编写的爵士标准集合上进行评估,使用一套全面的指标来评估和声进行结构、和声-旋律对齐以及节奏一致性。结果表明,所提出的FF课程在几乎所有指标上都优于基线,特别是在域外评估中,其中和声对新旋律序列的适应性至关重要。我们还发现,四分音符量化、小节标记的交织以及音高类旋律表示在FF设置中具有优势。我们的发现突显了训练课程在实现有效旋律条件化方面的重要性,并表明全到全的解掩码提供了一种稳健的单编码和声策略。
英文摘要:
Melodic harmonization, the task of generating harmonic accompaniments for a given melody, remains a central challenge in computational music generation. Recent single encoder transformer approaches have framed harmonization as a masked sequence modeling problem, but existing training curricula inspired by discrete diffusion often result in weak (cross) attention between melody and harmony. This leads to limited exploitation of melodic cues, particularly in out-of-domain contexts. In this work, we introduce a training curriculum, FF (full-to-full), which keeps all harmony tokens masked for several training steps before progressively unmasking entire sequences during training to strengthen melody-harmony interactions. We systematically evaluate this approach against prior curricula across multiple experimental axes, including temporal quantization (quarter vs. sixteenth note), bar-level vs. time-signature conditioning, melody representation (full range vs. pitch class), and inference-time unmasking strategies. Models are trained on the HookTheory dataset and evaluated both in-domain and on a curated collection of jazz standards, using a comprehensive set of metrics that assess chord progression structure, harmony-melody alignment, and rhythmic coherence. Results demonstrate that the proposed FF curriculum consistently outperforms baselines in nearly all metrics, with particularly strong gains in out-of-domain evaluations where harmonic adaptability to novel melodic queues is crucial. We further find that quarter-note quantization, intertwining of bar tokens, and pitch-class melody representations are advantageous in the FF setting. Our findings highlight the importance of training curricula in enabling effective melody conditioning and suggest that full-to-full unmasking offers a robust strategy for single encoder harmonization.
Incorporating Structure and Chord Constraints in Symbolic Transformer-based Melodic Harmonization
Department of Music Technology and Acoustics(音乐科技与声学系);Hellenic Mediterranean University(希腊地中海大学);Archimedes, Athena RC(阿基米德,雅典RC);Institute of Language and Speech Processing and Archimedes, Athena RC(语言与语音处理研究所及阿基米德,雅典RC);School of Music Studies(音乐研究学院)
WuYun: Exploring hierarchical skeleton-guided melody generation using knowledge-enhanced deep learning
Zhejiang University(浙江大学);Alibaba-Zhejiang University Joint Institute of Frontier Technologies(阿里巴巴-浙江大学前沿技术联合研究院);Innovation Center of Yangtze River Delta(长三角创新中心);Microsoft Research Asia(微软亚洲研究院)
MeloDISinger: Melody-Aware & Duration-Preserving Singing Voice Editing with Audio Infilling
Graduate School of Artificial Intelligence, KAIST, South Korea(韩国釜山科学技术院人工智能研究生院);Graduate School of Culture Technology, KAIST, South Korea(韩国釜山科学技术院文化科技研究生院)
SurpriseNet: Melody Harmonization Conditioning on User-controlled Surprise Contours
Academia Sinica(中央研究院)
歌曲的重复性是决定听众是否喜欢它的一个基本的主观因素,在信息论的帮助下,它可以被描述为一个马尔可夫链模型的音乐序列的转移概率。在这项研究中,我们引入的概念,推导熵随时间的变化,使每个和弦序列的惊喜轮廓可以提取。在此基础上,我们提出了一个用户可控的框架,使用条件变分自编码器(CVAE)协调的旋律的基础上给定的和弦惊喜指示。通过显式条件,该模型可以随机生成各种和声和弦进行旋律,斯皮尔曼的相关性和p值的显着性表明,所得到的和弦进行匹配给定的惊喜轮廓相当好。香草CVAE模型进行了评估,在一个基本的旋律协调任务(无惊喜控制)的六个客观指标。在Hooktheory Lead Sheet数据集上的实验结果表明,我们的模型达到了与最先进的旋律协调模型相当的性能。
Automatic Melody Harmonization with Triad Chords: A Comparative Study
Academia Sinica(中央研究院);National Institute of Advanced Industrial Science and Technology(日本产业技术综合研究所);Nihon University(日本大学);Georgia Institute of Technology(佐治亚理工学院);KKBOX Inc.(KKBOX公司)
The MPB Corpus: A Dataset of Melody, Rhythm, Harmony, and Melody-Harmony Relationships in Brazilian Popular Music
School of Music, Federal University of Rio de Janeiro(里约热内卢联邦大学音乐学院);Institute of Mathematics, Federal University of Rio de Janeiro(里约热内卢联邦大学数学研究所);Institut für Theorie und Geschichte, Anton Bruckner Universität(安东布鲁克纳大学理论与历史研究所)
University of Cambridge, UK(剑桥大学,英国);RITMO Centre for Interdisciplinary Studies in Rhythm, Time and Motion, University of Oslo, Norway(节奏、时间与运动跨学科研究中心,奥斯陆大学,挪威);Department of Psychology, Goldsmiths College, University of London, UK(心理学系,伦敦大学金史密斯学院,英国);Department of Life Sciences, Leipzig University, Germany(生命科学系,莱比锡大学,德国);Division of Social Science, New York University Abu Dhabi, UAE(社会科学系,阿布扎赫尔新 york 大学,阿联酋);Department of Psychology, Cornell University, USA(心理学系,康奈尔大学,美国)
Evolutionary modelling reveals melodic and harmonic constraints on global scale structure
Department of Physics, Ulsan National Institute of Science and Technology(物理系,乌山国立科学技术研究所);McMaster University(麦马斯特大学);University of Auckland(奥克兰大学);Keio University(庆应大学)