musicnn: Pre-trained convolutional neural networks for music audio tagging.

Jordi Pons, Xavier SerraarXiv 2019

TL;DR

The musicnn library offers pre-trained convolutional neural networks (CNNs) for music audio tagging, making it easy to use these models out-of-the-box, as feature extractors, or for transfer learning. The authors also provide the training code and demonstrate that novel architectures, like those with attention mechanisms, can achieve state-of-the-art results on music tagging benchmarks.

What Problem Does This Paper Address?

Manually tagging music with descriptive labels (e.g., "rock," "slow," "female vocal") is a time-consuming and subjective process. Automating this task, known as music audio tagging, is crucial for organizing and searching large music libraries. While deep learning models have shown promise, developing and training them requires significant expertise and computational resources. This paper addresses the need for readily available, high-performing pre-trained models that can be easily integrated into existing workflows for music tagging, feature extraction, and transfer learning.

Methods

The core contribution is the musicnn library, which provides pre-trained "musically motivated" convolutional neural networks. These networks are designed with an architecture that aims to capture musical characteristics. The library also includes VGG-like models as baselines. The models can be used in three primary ways:

  • Out-of-the-box taggers: Directly predict tags for audio files.
  • Feature extractors: Generate intermediate representations (features) from audio, which can be used for other downstream tasks.
  • Pre-trained models for transfer learning: Allow users to fine-tune these models on their specific music-related tasks.

The authors also release the code for training these models and for performing transfer learning experiments using SVM classifiers on extracted features. They highlight a novel architecture with an attention-based output layer that surpasses previous state-of-the-art results.

Datasets

The musicnn models are trained on two datasets:

  • MagnaTagATune (MTT): Contains 19,000 training songs.
  • Million Song Dataset (MSD): A larger dataset with 200,000 training songs.

The paper also mentions using the GTZAN dataset for evaluating transfer learning performance.

Key Insights and Ideas

  • Democratizing Music Tagging: By providing pre-trained models, musicnn lowers the barrier to entry for researchers and developers wanting to leverage advanced deep learning for music audio tasks.
  • Versatility of Pre-trained Models: The models are not just for tagging; their ability to act as feature extractors opens up possibilities for various music information retrieval (MIR) applications.
  • Architectural Innovations Matter: The paper demonstrates that even with established architectures, modifications like attention mechanisms can yield significant performance improvements, pushing the state-of-the-art.
  • Larger Datasets Yield Better Models: The MSD-trained models generally outperform MTT-trained models, underscoring the importance of data scale in deep learning.

Key Results

  • State-of-the-Art Performance: The musicnn models achieve strong performance on music audio tagging benchmarks. For example, the MTT_musicnn model achieves 90.69 ROC-AUC and 38.44 PR-AUC on the MagnaTagATune dataset.
  • Improved Transfer Learning: When used as feature extractors, the MSD_musicnn models achieve competitive results with established audio feature extractors like VGGish, despite being trained on a smaller dataset than VGGish's training data.
  • Novel Architecture Success: A musically motivated CNN with an attention-based output layer achieves new state-of-the-art results: 90.77 ROC-AUC / 38.61 PR-AUC on MagnaTagATune and 88.81 ROC-AUC / 31.51 PR-AUC on the Million Song Dataset.

Limitations and Future Work

  • Dataset Specificity: While trained on large datasets, the models' performance might vary on music genres or styles not well-represented in the training data.
  • Computational Cost: Although pre-trained models are provided, training new models or fine-tuning can still be computationally intensive.
  • Future Work: The authors suggest that their training framework can be used to implement and explore other novel models, hinting at continued research into more advanced architectures for music audio understanding. The availability of the code for training and transfer learning also encourages further experimentation by the community.

Summary updated

Abstract

Pronounced as "musician", the musicnn library contains a set of pre-trained musically motivated convolutional neural networks for music audio tagging: https://github.com/jordipons/musicnn. This repository also includes some pre-trained vgg-like baselines. These models can be used as out-of-the-box music audio taggers, as music feature extractors, or as pre-trained models for transfer learning. We also provide the code to train the aforementioned models: https://github.com/jordipons/musicnn-training. This framework also allows implementing novel models. For example, a musically motivated convolutional neural network with an attention-based output layer (instead of the temporal pooling layer) can achieve state-of-the-art results for music audio tagging: 90.77 ROC-AUC / 38.61 PR-AUC on the MagnaTagATune dataset --- and 88.81 ROC-AUC / 31.51 PR-AUC on the Million Song Dataset.
BibTeX
@misc{pons2019musicnn,
  author = {Jordi Pons and Xavier Serra},
  title = {{musicnn: Pre-trained convolutional neural networks for music audio tagging.}},
  year = {2019},
  eprint = {1909.06654},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.06654},
}
Figure