TL;DR
Sample Identification (SI) models have traditionally relied on artificial data because large-scale, real-world datasets were unavailable. This paper introduces SI Embeddings (SIE), the first model trained entirely on real-world music sample pairs, setting a new state-of-the-art by outperforming previous models by up to 56% in relative mean average precision (mAP).
What Problem Does This Paper Address?
In music production, "sampling" involves taking a snippet from an existing track (the source) and creatively transforming it—via pitch-shifting, time-stretching, scratching, or chopping—into a new track (the destination). Sample Identification (SI) is the task of automatically matching these pairs.
While related fields like audio fingerprinting (Track Identification) and cover song identification (Version Identification) have long used data-driven deep learning, SI has lagged behind due to a lack of large-scale, annotated datasets of real samples. To get around this, previous state-of-the-art methods generated artificial training pairs by programmatically manipulating isolated audio stems. However, these artificial pipelines fail to capture the complex, messy transformations real music producers use.
This paper tackles two main questions:
- How well do models trained on artificial samples actually generalize to real-world samples?
- Can we build a superior SI model by training directly on real-world sample data?
Methods
The authors introduce SI Embeddings (SIE), which merges the robust architecture and training recipe of Fish (a model originally designed for track and version identification) with the SI-specific front-end of SampleID.
Key components of the SIE pipeline include:
- Front-end Features: Audio is converted into a 258-bin Variable-Q Transform (VQT), which provides excellent frequency resolution tailored for musical audio.
- Back-end Architecture: A ResNet50-IBN backbone with Generalized Mean (GeM) pooling, mapping the audio down to a compact 1024-dimensional embedding space (half the size of previous models).
- Training Loss: SIE uses Triplet Loss with a hard-negative mining strategy, which the authors prove significantly outperforms the NT-Xent (contrastive) loss commonly used in prior SI models.
- Augmentation Chains: To force the network to learn invariant features, they apply heavy audio degradation (noise, reverb, microphone simulation) and VQT-level signal manipulation (pitch shifts, time stretching, and spectral masking).
Datasets
The models were trained and evaluated using the following datasets:
- WhoSampled130K (Training Set): A recently released dataset containing 79,111 real-world annotated sample pairs across 114,721 tracks.
- Sample100: An established evaluation benchmark consisting of 104 real sample pairs, exclusively from hip-hop tracks.
- SamplePairs: A genre-unrestricted evaluation benchmark consisting of 100 real sample pairs.
- WhoSampled130K (Test Set): A massive, newly utilized evaluation benchmark containing 8,463 sample pairs from 10,444 tracks, providing a true test of scalability.
Key Insights and Ideas
- Artificial Data Has a Ceiling: Models trained on infinite streams of artificial data generalize poorly to real-world data at scale. Swapping artificial data for real data immediately boosts performance.
- The "Recipe" Matters as Much as the Data: Simply retraining old architectures on real data isn't enough. By comparing their model to a retrained baseline (SampleID-R), the authors showed that SIE's architectural choices—specifically the triplet loss and the Fish training recipe—contributed the lion's share of the performance gains.
- Data Efficiency: Remarkably, when SIE was trained on just 5% of the real-world dataset, it matched the performance of the previous state-of-the-art model trained on orders of magnitude more artificial data.
Key Results
SIE achieved dominant, state-of-the-art results across all three evaluation benchmarks:
- Sample100 & SamplePairs: SIE achieved an mAP of 0.758 on Sample100 (a 26% relative improvement over SampleID) and 0.701 on SamplePairs (a 56% relative improvement). It also drastically reduced the mean normalized average rank (mNAR), meaning correct matches were ranked much higher.
- WhoSampled130K Test Set: On this large-scale dataset, SIE achieved an mAP of 0.389, far outperforming SampleID (0.226) and models strictly trained for version or track identification like CLEWS and Fish.
Limitations and Future Work
While SIE marks a massive step forward, the authors note a few limitations:
- Data Saturation: As shown in Figure 1, the performance curve for data proportion has not yet fully flattened out, implying that the model's performance is still bottlenecked by the size of the training dataset. More real-world data will likely yield even better results.
- The Artificial Gap: While training on real data is superior, acquiring real-world annotations is difficult and expensive. The authors note that future work should focus on improving artificial pair generation pipelines to better mimic real-world producer techniques (like chopping and scratching), though whether artificial data can ever truly close the gap remains an open question.
Summary updated