Abstract
This paper introduces MusicSlots, an unsupervised autoencoder framework designed to decompose complex musical chords into individual note components. By adapting the SlotAttention mechanism to account for the additive nature of audio spectra rather than visual occlusion, the model achieves state-of-the-art performance in note property prediction and zero-shot generalization to higher polyphony. Our results demonstrate that respecting the physics of the auditory medium allows for the emergence of discrete musical objects without the need for human-labeled data.
Introduction: The Challenge of Auditory Superposition
In computer vision, object-centric learning has seen significant success by grouping pixels into meaningful entities like "balls" or "cubes." These models typically rely on the principle of occlusion: if one object is in front of another, it exclusively owns those pixels.
However, audio operates under a different physical reality. When multiple instruments play a chord, their sound waves do not hide one another; they add together. A single frequency bin in a spectrogram often contains energy from multiple notes simultaneously. Standard object-centric models, which use a "winner-take-all" (Softmax) approach to assign features to objects, fail to "unmix" these overlapping layers.
Methods: The MusicSlots Architecture
To bridge the gap between visual and auditory perception, we propose MusicSlots, an autoencoder framework consisting of three main components:
- Convolutional Encoder: Extracts high-level features from a mel-scale spectrogram of a musical chord.
- Slot Attention Module: An iterative mechanism where a set of abstract representations, or "slots," compete to explain the input features.
- Broadcast Decoder: Each slot is decoded independently into a note-level spectrogram.
The critical innovation lies in the Alpha Masking logic. While vision models use Softmax normalization to ensure each pixel belongs to only one slot, MusicSlots utilizes Sigmoid normalization or No Masking. This allows multiple slots to contribute to the same spectral region, mimicking the additive nature of power spectra. The model is trained purely on reconstruction loss (MSE), attempting to rebuild the original chord by summing the notes it discovers.
Experimental Setup and Datasets
As no standard benchmark existed for unsupervised musical object discovery, we developed two new multi-object datasets:
- JSB-multi: Based on Bach Chorales, featuring combinations of piano, violin, and flute.
- JazzNet-multi: Featuring complex jazz chords with high polyphony.
To test the model's conceptual understanding, we utilized Generalization Splits, where the model was trained on low polyphony (e.g., 2-note chords) and tested on higher polyphony (e.g., 4-note chords).
Key Results
- Note Discovery: On the JSB-multi dataset, MusicSlots achieved a Mean Intersection over Union (mIoU) of 0.91, significantly outperforming the standard visual-style Softmax version (0.79).
- Property Prediction: When using frozen representations to predict pitch and instrument, MusicSlots achieved 97.77% accuracy, beating a supervised CNN baseline (93.03%).
- Zero-Shot Generalization: On JazzNet, MusicSlots maintained an accuracy of 87.65% when tested on 4-note chords after seeing only 2- and 3-note chords during training. In contrast, the supervised baseline's performance plummeted to 71.22%.
Conclusion and Future Work
MusicSlots proves that "objects" exist in audio just as they do in vision, provided the model's inductive biases respect the additive nature of sound. While the model currently faces challenges with oversegmentation and fixed slot counts, it opens the door for more human-like machine hearing and advanced automated music transcription. Future research will focus on scaling these methods to long-form, polyphonic music with varying temporal rhythms.
Summary updated