Ensemble-based cover song detection

Marc Sarfati, Anthony Hu, Jonathan DonierarXiv 2019

Abstract

Audio-based cover song detection has received much attention in the MIR community in recent years. To date, the most popular formulation of the problem has been to compare the audio signals of two tracks and to make a binary decision based on this information only. However, leveraging additional signals might be key if one wants to solve the problem at an industrial scale. In this paper, we introduce an ensemble-based method that approaches the problem from a many-to-many perspective. Instead of considering pairs of tracks in isolation, we consider larger sets of potential versions for a given composition, and create and exploit the graph of relationships between these tracks. We show that this can result in a significant improvement in performance, in particular when the number of existing versions of a given composition is large.

Introduction

Detecting cover songs is a fundamental challenge in Music Information Retrieval (MIR). Traditionally, this is framed as a "1-vs-1" matching problem where two audio signals are compared to determine if they share the same underlying composition. However, radical transformations in tempo, key, genre, or structure often render direct audio similarity insufficient. At an industrial scale, such as Spotify's catalog of millions of tracks, these divergent covers are frequently missed. We propose an ensemble-based approach that leverages the collective information of multiple versions of a song, using them as "bridges" to identify even the most distant covers.

Methodology

Our approach consists of a two-stage pipeline designed to move beyond isolated pairwise comparisons.

Pairwise Matching

The first stage utilizes a state-of-the-art 1-vs-1 algorithm. It extracts and fuses multiple audio features: Harmonic Pitch Class Profiles (HPCP) to capture harmonic content and Mel-frequency Cepstral Coefficients (MFCCs) for timbral information. This process generates a similarity score for every pair of tracks within a candidate pool.

High-level overview of the 1-vs-1 matching pipeline

Ensemble Analysis

The core innovation lies in the subsequent graph-based analysis. Rather than relying solely on the direct score between a candidate and a reference, we construct a graph of all candidates.

  1. Distance Conversion: Similarity scores are mapped to distances via a logistic function.
  2. Loose Floyd-Warshall: A modified Floyd-Warshall algorithm updates distances by identifying transitive relationships. If track A is distant from the original (O) but close to track B, and B is close to O, the distance between A and O is reduced.
  3. Hierarchical Clustering: Tracks are grouped into composition clusters using hierarchical clustering, with final similarity derived from cophenetic distances.

Experimental Setup

We evaluated the method on three datasets:

  • Covers80: A standard benchmark of 160 tracks (80 pairs).
  • Internal Dataset: 452 positive pairs across diverse genres (including Jazz and Classical) and types (Acoustic, Live, Remix).
  • "10 Works" Dataset: Real-world Spotify catalog data for 10 iconic songs, with candidate pools ranging from 110 to nearly 3,000 tracks per song.

Results and Discussion

The ensemble method demonstrated substantial performance gains over traditional 1-vs-1 matching.

The "Bridge" Effect and Graph Geometry

The graph-based approach successfully captures transitive relationships. For instance, an acoustic cover might share little similarity with a high-energy original but may match a karaoke version perfectly. By treating the karaoke version as a bridge, the system can correctly cluster the acoustic cover with the original. This process effectively "cleans" the distance space, making composition clusters more distinct from unrelated outliers.

Final graph representation showing identified relationships between different versions of a composition

Performance Metrics

On the "10 works" dataset, the total error rate (false positives and negatives) fell to below 1% for most compositions. In a notable case, the direct approach missed 72 versions of John Lennon's "Imagine" (7.1% error), whereas the ensemble method missed only one (0.1% error). Furthermore, the method "rescued" tracks with extremely low direct similarity; a string quartet version of "Get Lucky" saw its similarity score jump from 6.9/100 to 86.6/100 after ensemble processing.

Challenges: Jazz and Transitivity

Jazz remains a significant challenge due to extensive improvisation, yielding only 35% recall in initial tests. Additionally, "medley" tracks pose a risk of transitivity errors, potentially merging distinct composition clusters. Metadata filtering or advanced graph structural analysis may be required to mitigate these effects.

Conclusion

By moving from a 1-vs-1 to a many-to-many perspective, we significantly improve cover song detection at scale. Future work will focus on automating threshold selection and refining the graph logic to handle complex cases like medleys.

Summary updated

BibTeX
@misc{sarfati2019ensemble,
  author = {Marc Sarfati and Anthony Hu and Jonathan Donier},
  title = {{Ensemble-based cover song detection}},
  year = {2019},
  eprint = {1905.11700},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.11700},
}
Figure