Introduction
Music segmentation is a fundamental task in Music Information Retrieval (MIR), yet it remains one of the most subjective. Traditional approaches often struggle with the inherent hierarchical nature of music, where a song is composed of nested structures: sections like verses and choruses contain phrases, which in turn consist of bars and beats.
Most automated systems treat segmentation as a "flat" problem, targeting a single functional level (e.g., identifying the chorus). This research, published in IEEE/ACM Transactions on Audio, Speech, and Language Processing, addresses this by proposing a self-supervised contrastive learning framework that learns to represent music at multiple levels of detail simultaneously.
Methodology: Self-Supervised Contrastive Learning
To overcome the scarcity of high-quality, multi-level structural annotations, the researchers utilize Self-Supervised Learning (SSL). The core principle is the "homogeneity principle": audio frames close in time likely belong to the same musical section.
Sampling Strategy
The model employs a specific sampling strategy to define "positive" (similar) and "negative" (dissimilar) examples relative to an anchor segment ($i_a$).
As shown in the figure above, positive samples ($i_p$) are drawn from a temporal window $I_p$ near the anchor, while negative samples ($i_n$) are drawn from a more distant window $I_n$. By varying the size and distance of these windows ($δ_{min}, δ_{max}$), the model is trained to recognize structures at different temporal scales—from broad sections to fine-grained phrases. The authors found that using a contrastive (N-pair) loss, which compares an anchor to many negatives at once, was superior to traditional triplet loss for ignoring "noise" in musical structure.
Disentangled Representations
A key innovation is the use of Conditional Similarity Networks. The model splits its output embedding vector into sub-regions. One half of the vector is optimized to represent coarse structural features (like instrumentation changes), while the other half captures refined details (like melodic variations). This "disentanglement" allows a single embedding to provide multiple hierarchical "views" of the same audio clip.
Experimental Setup and Results
The model was pre-trained on 40,000 unlabeled tracks from YouTube and evaluated on several benchmark datasets: SALAMI (the gold standard for music structure), the Jazz Structure Dataset (JSD), and the Harmonix popular music dataset.
Key Findings
- Performance: The multi-level representations significantly outperformed traditional baselines like Laplacian Structural Decomposition (LSD) and previous SSL methods.
- Supervision Rivalry: On the Harmonix dataset, the self-supervised model achieved a Pairwise Frame Clustering (PFC) score of 0.794, outperforming some fully supervised models (like Harmonic CNN) that rely on manual labels.
- Hierarchical Capture: On the SALAMI dataset, the model achieved an L-recall of 0.775, indicating it successfully captured over 75% of the multi-level structural information defined by human experts.
Conclusion
By leveraging massive amounts of unlabeled data, this framework learns robust features that generalize across genres better than models trained on small, genre-specific sets. While the model currently lacks global positional context (knowing if it's at the start or end of a song), it demonstrates that hierarchical awareness is a powerful regularizer for music representation learning. Future work will focus on incorporating temporal priors to prevent unrealistic segment lengths and improving the bridge between self-supervised features and human-defined functional roles.
Summary updated