TL;DR
This paper explores using "triplet networks" to learn music similarity based on audio features, aiming to improve music recommendations for new or obscure artists. They found that even shallow networks trained on simple audio features can effectively embed songs for artist retrieval, with randomly selected negative examples surprisingly outperforming genre-matched ones.
What Problem Does This Paper Address?
Music streaming services rely heavily on user listening history for recommendations. However, this approach struggles with the "cold-start problem" for new or less popular artists, where little to no historical data exists. Content-based approaches, which analyze the music itself, offer a solution. This paper specifically investigates how to measure acoustic similarity between songs to enable better recommendations, especially when user preference data is scarce. They are motivated by the observation that people often use acoustic similarity when creating playlists and recommending music.
Methods
The core of this work is the application of triplet networks, a type of Siamese network. These networks learn to embed data points (in this case, songs) into a vector space such that similar items are close together and dissimilar items are far apart.
The training process involves presenting the network with "triplets" of songs:
- Anchor (a): A reference song.
- Positive (p): A song that is similar to the anchor (in this paper, by the same artist).
- Negative (n): A song that is dissimilar to the anchor (by a different artist).
The network is trained using a triplet loss function that aims to minimize the distance between the anchor and positive embeddings ($||f(a) - f(p)||^2$) while maximizing the distance between the anchor and negative embeddings ($||f(a) - f(n)||^2$), with a margin $\alpha$ to enforce separation.
The authors compare two training strategies for selecting the negative song:
- Random Triplets: The negative song is chosen randomly from a different artist.
- Genre Triplets: The negative song is chosen from a different artist but within the same musical genre as the anchor. This is intended to create a more challenging training scenario.
The network architecture used is a shallow, fully connected network with two layers (sigmoid activation followed by tanh activation), operating on standard audio features.
Datasets
- Free Music Archive (FMA) dataset: Specifically, the 518 audio features extracted using Librosa from the
features.csvfile. These features include metrics like Zero-Crossing Rate, CQT, Tonnetz, MFCC, and STFT.
Key Insights and Ideas
- Shallow networks are sufficient: Surprisingly, even a simple, shallow fully connected network can learn meaningful embeddings for music similarity using standard audio features. This suggests that complex deep architectures might not always be necessary for this task.
- Random negatives can be effective: The authors expected that training with genre-matched negative examples (a harder task) would lead to better results. However, the network trained with randomly selected negative examples performed best. This might indicate that the audio features themselves are discriminative enough that distinguishing between artists is already a significant challenge, and adding genre similarity as a constraint doesn't necessarily improve performance on this specific evaluation.
- Content-based similarity is viable for artist retrieval: The triplet network approach demonstrates a promising way to tackle the cold-start problem by enabling artist retrieval based purely on acoustic content.
Key Results
The paper evaluates the performance using the Area Under the Receiver Operating Characteristic (AUC) curve for artist retrieval. For each artist in the evaluation set, a query song is selected, and the system ranks all other songs based on their similarity to the query.
- Baseline:
- Euclidean distance on raw audio features: AUC = 0.800
- Euclidean distance on z-scored audio features: AUC = 0.825
- Triplet Networks:
- Triplet NN (Random Triplets): AUC = 0.900
- Triplet NN (Genre Triplets): AUC = 0.883
The triplet networks significantly outperform the baseline methods. The random triplet model achieved the highest AUC of 0.900, followed closely by the genre triplet model.
Limitations and Future Work
- Subjectivity of Similarity: The authors acknowledge that defining music similarity is inherently subjective, and the "proper creation of training and evaluation data is the most critical component."
- Artist Diversity: Many artists have diverse musical styles, making their songs potentially poor examples for assessing acoustic similarity.
- Future Work:
- Listening Study Data: Incorporate similarity data from actual listening studies to better assess the model's performance.
- Hard Triplet Selection: Explore more advanced methods for selecting "hard" triplets (as discussed in Schroff et al., 2015) to potentially improve robustness.
- Model Architecture and Loss Functions: Investigate different network architectures, loss functions, and embedding space sizes.
- Feature Sets: Compare performance with different audio feature sets, such as those available from the Spotify API.
Summary updated