arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2610.15957cs.SDcs.LG
收藏

符号音乐Transformer中的谐波表示是局部化且可控制的

Harmonic Representations in Symbolic Music Transformers are Localized and Controllable

Adi Silberschein, Megan Wei, Tamar Rott Shaham

AI总结:

本研究以基于LLaMA的符号音乐Transformer Aria为对象,发现其谐波表示从中间层逐步局部化,可通过潜在方向操纵实现音乐生成的谐波控制,验证了模型内部谐波知识可用于控制输出。

摘要:

在符号音乐上训练的Transformer模型已具备出色的能力,但目前尚不清楚它们如何表示音乐结构,以及理解其内部表示是否可用于开发模型控制方法。我们通过谐波分析的案例研究来探究这一问题:当音乐Transformer处理终止式(cadence)时,其内部对谐波语境有何“认知”,且该认知能否用于影响生成过程?我们使用基于LLaMA的符号音乐Transformer Aria(在巴赫众赞歌上评估),发现谐波决策从中间层开始逐步呈现因果局部化特性。线性探测显示,调式(mode)在与补丁(patching)识别到的因果效应增长相同的层范围内可被解码,而调式主音(key identity)则在更晚的层出现。我们随后证实这些表示可用于音乐生成控制:通过对应谐波变化的潜在方向进行引导,可可靠地产生欺骗性终止或小调和声解决,同时保持结构连贯性和生成质量。这表明在推理时,模型的内部谐波知识可被直接操纵以控制谐波输出。

英文摘要:

Transformer models trained on symbolic music have become remarkably capable. However, it is yet unclear how they represent music structure, and whether understanding their internal representations can be used to unlock methods for model control. We examine this through a case study of harmonic analysis: when a music transformer navigates a cadence, what does it internally "know" about its harmonic context, and can that knowledge be used to affect the generation? Using Aria, a LLaMA-based symbolic music transformer evaluated on Bach chorales, we find that harmonic decisions are causally localized progressively from middle layers onward. Linear probes show that mode becomes decodable in the same layer range where patching identifies growing causal effect, while key identity emerges later. We then confirm these representations are actionable for music generation control: steering via latent directions corresponding to harmonic changes reliably produces a deceptive or minor resolution, while preserving structural coherence and generation quality. This demonstrates that, at inference time, the model's internal harmonic knowledge can be directly manipulated to control the harmonic output.

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

↑