Local Ai

Encoding of musical structures in hidden units of restricted Boltzmann machines

arXiv:2509.04899v4 Announce Type: replace-cross Abstract: Restricted Boltzmann machines (RBMs) are energy-based models originating from statistical physics, in which hidden units mediate the probabili

DGX agentpaper
local-aiarxiv-cs-lg

arXiv:2509.04899v4 Announce Type: replace-cross Abstract: 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.

Source: arXiv cs.LG | 2026-08-18

Loading related sources…