Transfer Learning for Music Classification and Regression Tasks

Keunwoo Choi, György Fazekas, Mark B. Sandler, Kyunghyun Cho

This paper explores the power of transfer learning in the audio domain, specifically for Music Information Retrieval (MIR). The authors demonstrate that a Convolutional Neural Network (ConvNet) pre-trained on a large-scale music tagging task can serve as a highly effective, general-purpose feature extractor. By "recycling" these learned features, researchers can achieve high performance on diverse tasks—ranging from genre classification to emotion prediction—even when training data is scarce.

The Challenge of Small Audio Datasets

Deep learning models are data-hungry. In many specialized audio tasks, such as predicting the emotional "arousal" of a song or detecting vocal segments, datasets are often too small to train a deep neural network from scratch without massive overfitting.

In computer vision, the standard solution is to take a model trained on a massive dataset (like ImageNet) and "transfer" its knowledge to a new task. This paper addresses the lack of a similar, standardized transfer learning pipeline for music. The authors specifically investigate whether a model trained to predict tags (like "jazz," "mellow," or "electric guitar") learns a sufficiently rich representation of audio to be useful for entirely different problems.

Methodology: Multi-Layer Feature Extraction

The researchers followed a three-step process:

  1. Source Task Training: They trained a VGG-style ConvNet (5 layers, 3x3 kernels, ELU activations) on the Million Song Dataset to predict the top 50 tags from Last.fm. The input was a 96-bin mel-spectrogram.
  2. Feature Extraction: Instead of just using the final layer of the network, they extracted activations from all five convolutional layers. They used average pooling to reduce these feature maps to a fixed size (32 dimensions per layer).
  3. Target Task Evaluation: They tested 31 different combinations of these layers (e.g., using only layer 1, or concatenating layers 1, 3, and 5). These "ConvNet features" were then fed into a Support Vector Machine (SVM) to perform classification or regression on six target datasets.
ConvNet architecture for tagging and the transfer learning pipeline for feature extraction.

This multi-layer approach is a key contribution, as it allows the model to leverage both low-level "textures" (early layers) and high-level "concepts" (later layers).

Evaluation and Results

The model was evaluated on several target tasks, including genre classification (T1, T2), speech vs. music (T3), emotion prediction (T4), vocal detection (T5), and audio event classification (T6).

Performance comparison across six tasks (T1-T6) showing ConvNet features consistently beating MFCC baselines.

Key Insights

  • Hierarchical Utility: Different tasks "prefer" different layers. For example, Ballroom genre classification (T1), which relies heavily on rhythmic patterns, performed best using early layers (1-2-3). Conversely, Emotion prediction (T4) relied heavily on the 5th (deepest) layer.
  • Generalization to Non-Music: Even though the model was trained only on music, it outperformed MFCCs on the Urbansound8K dataset (T6). This indicates that the filters learned to recognize fundamental audio patterns (like transients or harmonic structures) that exist outside of music.
  • State-of-the-Art (SoTA) Competitiveness: In Gtzan Genre classification (T2), the transfer learning approach achieved 89.8% accuracy, outperforming many complex hand-crafted feature sets. In Speech/Music classification (T3), the model achieved 100% accuracy across almost all layer combinations.

Conclusion and Future Work

While the transfer learning approach is highly competitive and beats traditional MFCC baselines in all tasks, it did not always beat the absolute state-of-the-art in tasks where a dedicated deep model was trained with heavy data augmentation (like Task 6). The authors suggest that deep layers are somewhat biased toward the source tags. Future work may explore different source tasks, such as unsupervised learning, to further improve the universality of these audio features.

Summary updated

BibTeX
@inproceedings{choi2017transfer,
  author = {Keunwoo Choi and György Fazekas and Mark B. Sandler and Kyunghyun Cho},
  title = {{Transfer Learning for Music Classification and Regression Tasks}},
  booktitle = {ISMIR},
  year = {2017},
  url = {https://openreview.net/forum?id=HSWThdLFCW1},
}
Figure