arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2504.04479cs.SD
收藏

用于音乐生成中可解释引导的激活修补

Activation Patching for Interpretable Steering in Music Generation

Sapienza University of Rome(罗马大学);École Polytechnique Fédérale de Lausanne(洛桑联邦理工学院)

Simone Facchiano, Giorgio Strano, Donato Crisostomi, Irene Tallini, Tommaso Mencattini, Fabio Galasso, Emanuele Rodolà

AI总结:

本文首次在文本到音乐生成中研究大型音频模型的潜在方向向量,通过均值差方法计算速度、音色等二元属性的引导向量并注入中间激活,实现了细粒度可控音乐生成,证明了基于方向的引导是一种更具机制性和可解释性的方法。

摘要:

理解大型音频模型如何表征音乐,并利用这种理解来引导生成,既具有挑战性,也尚未得到充分探索。受语言模型中机制可解释性的启发——其中Transformer残差流中的方向向量是模型分析和控制的关键,我们在音频领域研究了类似的技术。本文首次研究了大型音频模型中的潜在方向向量,以及它们在文本到音乐生成中对音乐属性进行连续控制的应用。聚焦于二元概念,如速度(快与慢)和音色(明亮与暗淡),我们使用精心构建的提示集上的均值差方法计算引导向量。这些向量经过系数缩放并注入中间激活,能够对特定音乐特征进行细粒度调制,同时保持整体音频质量。我们分析了引导强度的影响,比较了不同的注入策略,并识别出影响最大的层。我们的发现突显了基于方向的引导作为一种更具机制性和可解释性的可控音乐生成方法的前景。

英文摘要:

Understanding how large audio models represent music, and using that understanding to steer generation, is both challenging and underexplored. Inspired by mechanistic interpretability in language models, where direction vectors in transformer residual streams are key to model analysis and control, we investigate similar techniques in the audio domain. This paper presents the first study of latent direction vectors in large audio models and their use for continuous control of musical attributes in text-to-music generation. Focusing on binary concepts like tempo (fast vs. slow) and timbre (bright vs. dark), we compute steering vectors using the difference-in-means method on curated prompt sets. These vectors, scaled by a coefficient and injected into intermediate activations, allow fine-grained modulation of specific musical traits while preserving overall audio quality. We analyze the effect of steering strength, compare injection strategies, and identify layers with the greatest influence. Our findings highlight the promise of direction-based steering as a more mechanistic and interpretable approach to controllable music generation.

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

↑