Supervised contrastive learning from weakly-labeled audio segments for musical version matching
Joan Serrà, R. Oguz Araz, Dmitry Bogdanov, Yuki Mitsufuji
TL;DR
This work tackles segment-based musical version matching under weak supervision by introducing CLEWS, which combines a Segment Distance Reduction framework with a decoupled, supervised contrastive loss built on Euclidean geometry. The reduction maps segment-level distances to track-level scores, while CLEWS optimizes aligned positives and dispersed negatives to produce robust embeddings. Across two large datasets, CLEWS achieves state-of-the-art track-level results and, importantly, dramatic improvements at the segment level for varying query lengths, demonstrating strong generalization to partial matches. The proposed approach, with its ablations and hyper-parameter analysis, offers a versatile blueprint for weakly-labeled contrastive learning beyond audio, with practical implications for music discovery, copyright management, and related domains.
Abstract
Detecting musical versions (different renditions of the same piece) is a challenging task with important applications. Because of the ground truth nature, existing approaches match musical versions at the track level (e.g., whole song). However, most applications require to match them at the segment level (e.g., 20s chunks). In addition, existing approaches resort to classification and triplet losses, disregarding more recent losses that could bring meaningful improvements. In this paper, we propose a method to learn from weakly annotated segments, together with a contrastive loss variant that outperforms well-studied alternatives. The former is based on pairwise segment distance reductions, while the latter modifies an existing loss following decoupling, hyper-parameter, and geometric considerations. With these two elements, we do not only achieve state-of-the-art results in the standard track-level evaluation, but we also obtain a breakthrough performance in a segment-level evaluation. We believe that, due to the generality of the challenges addressed here, the proposed methods may find utility in domains beyond audio or musical version matching.
