[Paper Review] An Attentional Neural Network Architecture for Folk Song Classification
This paper proposes an unsupervised attentional neural network that uses skip-gram word2vec to learn melodic motif embeddings from monophonic folk songs of Germany, China, and Sweden. By modeling motifs as contextual units and applying attention mechanisms, the architecture achieves state-of-the-art classification accuracy (up to 94.58%) without handcrafted features, demonstrating the effectiveness of motif embeddings in cross-cultural music analysis.
In this paper we present an attentional neural network for folk song classification. We introduce the concept of musical motif embedding, and show how using melodic local context we are able to model monophonic folk song motifs using the skipgram version of the word2vec algorithm. We use the motif embeddings to represent folk songs from Germany, China, and Sweden, and classify them using an attentional neural network that is able to discern relevant motifs in a song. The results show how the network obtains state of the art accuracy in a completely unsupervised manner, and how motif embeddings produce high quality motif representations from folk songs. We conjecture on the advantages of this type of representation in large symbolic music corpora, and how it can be helpful in the musicological analysis of folk song collections from different cultures and geographical areas.
Motivation & Objective
- To develop an unsupervised method for representing and classifying folk songs using melodic motifs as fundamental units.
- To investigate whether the skip-gram version of word2vec can effectively learn high-quality vector representations of musical motifs from monophonic folk songs.
- To evaluate the performance of an attention-based neural network in classifying folk songs based on motif embeddings from diverse cultural collections.
- To explore the potential of motif embeddings for musicological analysis, particularly in identifying melodic variations and structural patterns across cultures.
Proposed method
- The skip-gram version of the word2vec algorithm is applied to extract motif embeddings from melodic sequences, treating motifs as 'words' and their local melodic context as 'sentences'.
- Musical motifs are represented using intervallic and rhythmic features, encoded as vectors of dimension 150, and trained via negative sampling to optimize the skip-gram objective.
- An attentional neural network architecture is used to classify songs, where the attention mechanism identifies the most relevant motifs in a song based on their contribution to the classification decision.
- The model is trained using stochastic gradient descent with mini-batches of size 10, and cosine similarity is used to measure semantic relatedness between motif embeddings.
- The architecture processes multi-word motifs (mw) of size 2 and 3, using 200 hidden units in both the motif encoder and attention layer.
- The method is evaluated on symbolic music corpora from Germany, China, and Sweden, with no human-annotated labels or expert features used.
Experimental results
Research questions
- RQ1Can the skip-gram word2vec model effectively learn meaningful vector representations of musical motifs from monophonic folk songs?
- RQ2How well can an attention-based neural network classify folk songs using only unsupervised motif embeddings?
- RQ3To what extent do motif embeddings capture culturally relevant melodic patterns and variations across different folk traditions?
- RQ4How does the performance of the proposed architecture compare to baseline models like doc2vec and average word2vec in cross-cultural folk song classification?
Key findings
- The attentional neural network achieved a precision score of 94.58% in binary classification of Chinese and German folk songs using intervallic motif representations of size 2.
- The model outperformed both doc2vec and average word2vec baselines across all representation types and motif sizes, demonstrating the superiority of the attention mechanism with motif embeddings.
- Even with an imbalanced corpus including two closely related European collections (German and Swedish), the model maintained high accuracy, achieving 92.2% precision in multi-class classification.
- The Chinese folk song collection was most accurately classified (95.7% precision), reflecting its greater melodic distinctiveness from the other two collections.
- Motif embeddings captured meaningful melodic relationships, as evidenced by high cosine similarity (0.996) between perceptually similar motifs such as 21_20_20 and its interval permutation 20_21_20.
- The method achieved state-of-the-art performance without any human-annotated features or expert knowledge, highlighting its scalability and robustness for large symbolic music corpora.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.