Abstract
Music information retrieval faces a challenge in modeling contextualized musical concepts formulated by a set of co-occurring tags. In this paper, we investigate the suitability of our recently proposed approach based on a Siamese neural network in fighting off this challenge. By means of tag features and probabilistic topic models, the network captures contextualized semantics from tags via unsupervised learning. This leads to a distributed semantics space and a potential solution to the out of vocabulary problem which has yet to be sufficiently addressed. We explore the nature of the resultant music-based semantics and address computational needs. We conduct experiments on three public music tag collections—namely, CAL500, MagTag5K and Million Song Dataset—and compare our approach to a number of state-of-the-art semantics learning approaches. Comparative results suggest that this approach outperforms previous approaches in terms of semantic priming and music tag completion.
Introduction
In Music Information Retrieval (MIR), a significant "semantic gap" exists between low-level machine-extracted audio features and the high-level linguistic concepts humans use to describe music. While textual tags (e.g., "mellow," "rock," "90s") serve as a bridge, traditional machine learning often treats these tags as isolated binary labels. This leads to two primary issues: context blindness, where the nuanced meaning of a tag (like "slow") is lost without considering its neighbors, and the Out-of-Vocabulary (OOV) problem, where systems fail when encountering tags not present during training.
Methodology
To address these challenges, we propose a Contextual Embedding (CE) approach using a Siamese Neural Network. This architecture is designed to learn the "contextualized" meaning of music tags by analyzing their co-occurrence patterns.
Feature Engineering and Architecture
Each tag is represented by a global usage pattern and a local context vector derived via Latent Dirichlet Allocation (LDA), capturing the thematic "topic" of a track. The Siamese network consists of two identical branches trained through unsupervised learning to predict "companion tags." The output of the penultimate layer serves as the semantic embedding, where Euclidean distance represents semantic relatedness. For OOV tags, the system estimates meaning by calculating the centroid of known companion tags that appear alongside the new term.
Experimental Setup
We evaluated the model on three public music tag collections with varying characteristics:
- CAL500: A small, dense dataset (500 songs, 158 tags) with heavy annotation.
- MagTag5K: A sparser dataset (5,259 songs, 136 tags).
- MSDSub: A subset of the Million Song Dataset (14,627 songs, 300 tags), representing a "long-tail" distribution where many tags are used infrequently.
Key Results and Insights
Our experiments compared the CE model against standard approaches such as PLSA, LDA, and Conditional Restricted Boltzmann Machines (CRBM).
- Semantic Priming and Tag Completion: The Siamese CE model significantly outperformed baselines across all datasets. It was particularly effective in high-recall scenarios and on sparse datasets like MSDSub.
- Polysemy and Continuity: Visualization via t-SNE revealed a continuous semantic space with smooth transitions between genres. The model successfully disambiguated polysemous tags; for instance, the tag "guitar" naturally clustered into distinct "acoustic" and "electric" contexts based on its thematic environment.
- OOV Robustness: Unlike traditional models, the CE approach maintained high accuracy on unseen tags by inferring their meaning from neighboring known tags.
Conclusion and Future Work
While the CE model demonstrates superior performance in capturing music semantics, computational scaling remains a challenge for massive vocabularies (e.g., the full Million Song Dataset). Future work will explore dimensionality reduction techniques and the integration of "labeled LDA" to incorporate expert-defined genre or instrument labels, further refining the precision of the embeddings for automated music discovery and playlist generation.
Summary updated