arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.16150cs.SDcs.AI
收藏

关注旋律的注意:单编码旋律和声的课程掩码

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(音乐研究学院 阿里斯托芬大学)

Maximos Kaliakatsos-Papakostas, Dimos Makris, Konstantinos Soiledis, Konstantinos-Theodoros Tsamis, Vassilis Katsouros, Emilios Cambouropoulos

AI总结:

本研究提出FF课程掩码方法,通过逐步解掩码强化旋律与和声的交互,提升单编码旋律和声生成的鲁棒性和适应性。

摘要:

旋律和声,即为给定旋律生成和声伴奏的任务,仍然是计算音乐生成中的核心挑战。最近的单编码变压器方法将和声视为一个掩码序列建模问题,但受离散扩散启发的现有训练课程往往导致旋律与和声之间的弱(交叉)注意力。这导致了对旋律线索的利用有限,尤其是在域外情境中。在本工作中,我们引入了一种训练课程,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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑