Abstract
Music genre classification is a fundamental challenge in Music Information Retrieval (MIR). Traditional approaches often struggle with the heterogeneous nature of audio and lyrical data and the inherent overlap between musical styles. This paper presents a multi-modal deep learning framework that addresses these issues through two primary innovations: an Audio-Lyrics (A-L) contrastive learning objective for modality alignment and a Genre Correlations Extraction Module (GCEM) based on Graph Convolutional Networks (GCN). Experimental results on the Music4All dataset demonstrate that the proposed model achieves state-of-the-art performance, significantly outperforming existing benchmarks in both accuracy and F-measure.
1. Introduction
Classifying music by genre is a complex task because musical styles are rarely mutually exclusive. A single track often belongs to multiple categories, such as "Indie," "Alternative," and "Rock." Existing AI systems for genre classification typically face two major hurdles. First, there is a modality mismatch: audio signals and textual lyrics are fundamentally different data types, and simple concatenation often fails to capture the nuanced relationships between them. Second, most models ignore genre overlap, treating labels as independent entities rather than a structured web of related concepts. This research proposes a framework designed to bridge the gap between modalities and model the "topology" of musical genres.
2. Methodology
The proposed architecture consists of three integrated modules designed to extract, align, and correlate musical features.
2.1 Music Representation Learning and Contrastive Alignment
The system utilizes a five-block Convolutional Neural Network (CNN) to extract features from Mel-spectrograms (audio) and a pre-trained, frozen BERT model to extract features from lyrics. To solve the modality mismatch problem, the researchers introduced an Audio-Lyrics (A-L) Contrastive Loss. Inspired by the CLIP architecture, this loss function forces the model to project both audio and text features into a shared embedding space. By minimizing the distance between related audio-lyric pairs, the model learns a unified representation before the classification stage.
2.2 Multi-modal Fusion via Attention
Rather than simply "stitching" features together, the framework employs Symmetric Cross-modal Attention (SCMA). This mechanism allows the audio features to "attend" to specific lyrical cues and vice versa. This cross-pollination ensures that the most relevant characteristics of each modality are highlighted, leading to a more robust fused representation.
2.3 Genre Correlations Extraction Module (GCEM)
To address the multi-label nature of music, the authors developed a Graph Convolutional Network (GCN). In this module, genres are represented as nodes in a graph. The edges (connections) between genres are determined by two factors:
- Statistical Co-occurrence: How often genres appear together in the training data.
- Semantic Similarity: The proximity of genre names within a BERT embedding space.
This allows the model to understand that if a song is identified as "Punk," it is statistically and semantically more likely to be "Hardcore" than "Smooth Jazz."
3. Experimental Setup
The model was evaluated using the Music4All dataset. The researchers preprocessed the data to include only tracks with English lyrics and complete metadata, resulting in a final subset of 43,650 samples across 87 genre categories. The data was split into training (70%), validation (10%), and testing (20%) sets.
4. Results and Discussion
The proposed framework demonstrated a significant performance leap over previous state-of-the-art (SOTA) models:
- Accuracy: The model achieved 0.456, compared to 0.387 (Pandeya’s model) and 0.354 (Santana’s model).
- F-measure: The model reached 0.534, a substantial improvement over the previous best of 0.442.
4.1 Ablation Studies
Ablation studies confirmed that every component of the architecture contributed to its success. The addition of the A-L contrastive loss provided a notable boost, suggesting that pre-aligning data is more effective than late-stage fusion. Furthermore, the researchers found a "sweet spot" for the contrastive loss weight at $\lambda = 0.3$; exceeding this value hindered model convergence, while lower values reduced the alignment benefit.
5. Conclusion and Future Work
By combining multi-modal alignment with graph-based genre modeling, this research provides a more holistic approach to music classification. While the results are promising, future work could expand the model's utility by incorporating multilingual models (like mBERT) to handle non-English repertoire. Additionally, integrating other modalities such as album art or social metadata could further refine the model's understanding of the complex relationships between musical genres. Finally, addressing the inherent noise in large-scale datasets like Music4All remains a priority for achieving even higher classification precision.
Summary updated