MediaEval 2019 Emotion and Theme Recognition task: A VQ-VAE Based Approach

Hsiao-Tzu Hung, Yu-Hua Chen, Maximilian Mayerl, Michael Vötter, Eva Zangerle, Yi-Hsuan YangMediaEval 2019

Introduction

Music auto-tagging involves the automatic assignment of semantic labels—such as "melancholic," "energetic," or "guitar-driven"—to audio clips. This task is fundamentally a multi-label classification problem. While state-of-the-art systems typically rely on supervised learning with large-scale labeled datasets, such data is often scarce and expensive to acquire. This study explores the potential of Vector-Quantized Variational Auto-Encoders (VQ-VAE) for unsupervised representation learning, investigating whether discrete latent features learned through signal reconstruction can be effectively repurposed for discriminative music tagging.

Methodology

The proposed approach follows a two-step training pipeline designed to leverage large-scale unlabeled data before fine-tuning on specific tagging tasks.

  1. Step 1: Unsupervised Pre-training: A VQ-VAE is trained on the Million Song Dataset (MSD) to minimize reconstruction error. The model processes 128-dimensional log-mel spectrograms, compressing them into a discrete "codebook" of latent features.
  2. Step 2: Supervised Classification: The pre-trained encoder is cascaded with a classifier. Two classifier architectures were evaluated: a Convolutional Neural Network (CNN) and a Gated Recurrent Unit (GRU).
Schematic architecture of the proposed two-step training procedure.

The authors also investigated two embedding configurations: Type-1 ($256 \times 4 \times 512$), which preserves more spatial/temporal information, and Type-2 ($256 \times 1 \times 512$), a more compressed one-dimensional variant.

Experimental Setup

The study utilized three primary datasets to validate the approach:

  • Million Song Dataset (MSD): Used exclusively for the unsupervised pre-training of the VQ-VAE.
  • MagnaTagATune (MTAT): Used as a secondary test set to verify the effectiveness of the feature extractor on genre and instrument tags.
  • MediaEval 2019 Jamendo Dataset: The primary target dataset for emotion and theme recognition.

Results and Discussion

The performance was evaluated across five distinct "runs" submitted to the MediaEval task. The results indicate several key findings regarding the use of VQ-VAE features for discriminative tasks.

Freezing vs. Fine-tuning

A critical observation was that fixing the pre-trained encoder parameters (Run-2 and Run-4) yielded superior performance compared to updating them during the classification stage (Run-1 and Run-3). This suggests that the unsupervised features are sufficiently robust and that fine-tuning on smaller labeled datasets may lead to overfitting or the loss of generalized audio representations.

Architecture and Embedding Impact

The Type-1 embedding shape consistently outperformed Type-2, highlighting the importance of maintaining spatial-temporal resolution in the latent space. Furthermore, the CNN-based classifier slightly outperformed the GRU-based model, indicating that the spatial patterns within the VQ-VAE's discrete latent space are well-captured by convolutional filters.

Evaluation metrics for various model configurations on the Jamendo dataset.

As shown in the results, Run-4 (Type-1 VQ-VAE, fixed encoder, CNN classifier) achieved the highest performance among the proposed models with an ROC-AUC of 0.7207. While this significantly outperformed the popularity-based baseline, it remained slightly below the VGG-ish baseline of 0.7258. On the MTAT dataset, the model achieved a respectable ROC-AUC of 0.90, nearing state-of-the-art performance for that benchmark.

Conclusion

This study demonstrates that VQ-VAE-based unsupervised representation learning provides a viable path for music auto-tagging, particularly when labeled data is limited. Although the current models did not surpass the VGG-ish baseline, the results confirm that discrete latent representations contain valuable semantic information. Future work will focus on optimizing VQ-VAE architectures for discriminative potential and exploring joint generative-discriminative training strategies.

Summary updated

BibTeX
@inproceedings{hung2019mediaeval,
  author = {Hsiao-Tzu Hung and Yu-Hua Chen and Maximilian Mayerl and Michael Vötter and Eva Zangerle and Yi-Hsuan Yang},
  title = {{MediaEval 2019 Emotion and Theme Recognition task: A VQ-VAE Based Approach}},
  booktitle = {MediaEval},
  year = {2019},
  url = {https://openreview.net/forum?id=DDazcvAyDp},
}
Figure