Toward Interpretable Music Tagging with Self-Attention
arXiv:1906.04972
Abstract
Self-attention is an attention mechanism that learns a representation by relating different positions in the sequence. The transformer, which is a sequence model solely based on self-attention, and its variants achieved state-of-the-art results in many natural language processing tasks. Since music composes its semantics based on the relations between components in sparse positions, adopting the self-attention mechanism to solve music information retrieval (MIR) problems can be beneficial. Hence, we propose a self-attention based deep sequence model for music tagging. The proposed architecture consists of shallow convolutional layers followed by stacked Transformer encoders. Compared to conventional approaches using fully convolutional or recurrent neural networks, our model is more interpretable while reporting competitive results. We validate the performance of our model with the MagnaTagATune and the Million Song Dataset. In addition, we demonstrate the interpretability of the proposed architecture with a heat map visualization.
13 pages, 12 figures; code: https://github.com/minzwon/self-attention-music-tagging
References in corpus (6)
- On the difficulty of training Recurrent Neural Networks
- WaveNet: A Generative Model for Raw Audio
- A Structured Self-attentive Sentence Embedding
- Improving Generalization Performance by Switching from Adam to SGD
- NSML: A Machine Learning Platform That Enables You to Focus on Your Models
- Explaining Deep Convolutional Neural Networks on Music Classification