arXiv:2509.04899cs.SDcs.LG2025-09

用伯努利RBMs研究巴赫音乐在隐藏层的编码规律

Encoding of musical structures in hidden units of restricted Boltzmann machines

  • 通过激活单个隐藏单元分析其对乐谱的响应模式
  • 隐藏单元主要编码局部音高与时间结构,非完整乐理概念
  • 模型不具移调等价性,暴露标准RBMs的局限性

受限玻尔兹曼机(RBMs)是源自统计物理的能量模型,其中隐藏单元介导高维可见状态的概率分布。本研究以符号化音乐作为结构化的非物理数据集,探究伯努利-伯努利RBMs的隐藏层如何编码音乐规律。将巴赫的乐谱转换为二进制钢琴滚筒表示,并以无监督方式训练模型。通过单独激活每个隐藏单元并计算对应的期望可见配置,分析其诱导的可见层模式。训练后的模型能重建类似钢琴滚筒的输入,并对钢琴滚筒配置赋予更低能量,表明学习到的能量函数捕捉了钢琴滚筒数据集的统计特征。隐藏单元主要编码局部时间与音高统计结构,如稀疏的钢琴滚筒纹理,而非可分离的音乐概念(如旋律、和弦或调性)。通过t-SNE分析隐藏层表示发现,同一乐曲的不同移调版本未必映射到隐藏空间中的邻近区域。这一行为表明训练后的模型未稳健捕获移调等价性,这自然归因于标准RBMs架构缺乏平移不变性。从训练模型生成的样本显示局部音高组织,而迭代延续则表现出有限的长程一致性。这些结果为简单自旋模型如何表征结构化创造性数据提供了一个统计物理案例研究,并阐明了标准RBMs作为音乐结构可解释模型的有用性与局限性。

原文摘要 · Abstract (English)

Restricted Boltzmann machines (RBMs) are energy-based models originating from statistical physics, in which hidden units mediate the probability distribution of high-dimensional visible configurations. In this study, we use symbolic music as a structured non-physical dataset and investigate how musical regularities are encoded in the hidden layer of a Bernoulli-Bernoulli RBM. Musical scores by J.~S.~Bach are converted into binary piano-roll representations and used to train the model in an unsupervised manner. We then analyze the visible-layer patterns induced by individual hidden units by activating hidden units separately and computing the corresponding expected visible configurations. The trained RBM reconstructs piano-roll-like inputs and assigns lower energies to piano-roll configurations than to most non-musical binary images, indicating that the learned energy function captures statistical features of the piano-roll dataset. The hidden units mainly encode local temporal and pitch-statistical structures, such as sparse piano-roll-like textures, rather than directly separable musical concepts such as melodies, chords, or keys. We also analyze hidden-layer representations using t-SNE and find that transposed versions of the same musical pieces are not necessarily mapped to nearby regions in the hidden space. This behavior indicates that the trained RBM does not robustly capture transposition equivalence, which is naturally explained by the lack of translational invariance in standard RBM architectures. Samples from the trained RBM show local pitch organization, whereas iterative continuation reveals limited long-range coherence. These results provide a statistical-physics case study of how a simple spin model represents structured creative data and clarify both the usefulness and limitations of standard RBMs as interpretable models of musical structure.

音乐生成RBMs可解释性结构编码

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。