Zero-shot Learning for Audio-based Music Classification and Tagging

Jeong Choi, Jongpil Lee, Jiyoung Park, Juhan Nam

Introduction

Traditional music auto-tagging systems are typically "closed-world" models, trained to recognize a fixed set of genres or tags. However, the music landscape is dynamic, with new sub-genres and subjective descriptors (e.g., "dreamy" or "aggressive") emerging constantly. To address this, researchers have developed a Zero-Shot Learning (ZSL) framework for music. This approach allows a model to classify tracks using labels it has never explicitly seen during training by learning the relationship between audio signals and a high-dimensional semantic space.

Mapping audio features and semantic word vectors into a shared embedding space.

Methodology

The core of the proposed system is a Deep Embedding Model that bridges audio features and semantic information.

Audio and Semantic Embeddings

The model utilizes two primary components:

  1. Audio CNN Module: A Convolutional Neural Network processes mel-spectrograms to generate an audio embedding vector ($y_A$).
  2. Semantic Vector Lookup: Labels are converted into vectors using "side information." Two types were evaluated:
  3. Instrumental Attributes: Using annotations that describe the typical instrumentation of a genre (e.g., "Funk" involves trumpets and drums).
  4. General Word Semantics: Using GloVe (Global Vectors for Word Representation) to capture linguistic relationships between tags.

Training Objective

The model is trained using a max-margin hinge loss. This objective function encourages the audio embedding to be closer to the vector of a positive (correct) tag ($W+$) than to a negative (incorrect) tag ($W-$) by at least a defined margin.

The Deep Embedding Model architecture using Max Margin Hinge Loss.

Data Split and Datasets

A significant contribution of this work is a new data split scheme designed for multi-label music data. Unlike single-label ZSL, music often has overlapping tags. The authors partitioned the data into subsets (A, B, and C) to rigorously evaluate performance on seen vs. unseen label combinations.

The study utilized several large-scale datasets:

  • FMA & OpenMIC-2018: Used for instrument-attribute experiments, combining 157 genre labels with 20 instrument annotations.
  • Million Song Dataset (MSD) & Last.fm: Used for general semantic experiments, scaling up to 1,126 tags and over 400,000 audio instances.

Results and Discussion

The ZSL framework demonstrated strong performance across both annotation and retrieval tasks.

  • Annotation Performance: On the MSD dataset, the model achieved an AUC-i (Area Under ROC Curve per instance) of 0.937, indicating high accuracy in ranking tags even when some were unseen during training.
  • Semantic Intuition: Qualitative analysis showed that the learned embedding space is musically intuitive. For instance, while raw GloVe vectors might group "guitar" with other physical instruments like "percussion," the trained music space moves "guitar" closer to "rock," reflecting its functional role in the genre.
  • Regularization Effect: Interestingly, the embedding model often outperformed standard classifiers even on seen labels, suggesting that semantic supervision acts as a powerful regularizer.

Conclusion

This research proves that ZSL is a viable path for open-ended music tagging. By leveraging instruments and general word semantics, models can generalize to an infinite vocabulary. Future work includes incorporating richer side information, such as song lyrics or music-specific language models, to capture more nuanced context.

Summary updated

BibTeX
@inproceedings{choi2019zero,
  author = {Jeong Choi and Jongpil Lee and Jiyoung Park and Juhan Nam},
  title = {{Zero-shot Learning for Audio-based Music Classification and Tagging}},
  booktitle = {ISMIR},
  year = {2019},
  url = {https://openreview.net/forum?id=1f6Ao9ffka},
}
Figure