Improving Music Genre Classification from Multi-Modal Properties of Music and Genre Correlations Perspective

Ganghui Ru, Xulong Zhang, Jianzong Wang, Ning Cheng, Jing Xiao

TL;DR

Researchers from Ping An Technology have developed a state-of-the-art multi-modal framework for multi-label music genre classification. By combining audio and lyrics through a symmetric cross-modal attention mechanism and modeling genre relationships with a Graph Convolutional Network (GCN), the model achieves significant performance gains on the Music4All dataset.

What Problem Does This Paper Address?

Music genre classification (MGC) is a cornerstone of Music Information Retrieval (MIR), but it faces two major hurdles. First, music is inherently multi-modal; a song's genre is defined by both its sonic characteristics (audio) and its thematic content (lyrics). Most existing models either focus on a single modality or fuse them naively (e.g., simple concatenation), failing to account for the fact that audio and text features are heterogeneous and often misaligned.

Second, MGC is a multi-label problem. A single track might be "Alternative Rock," "Indie," and "Grunge" simultaneously. Most models treat these labels as independent, ignoring the rich topological structure of genre correlations—where certain genres frequently co-occur while others are mutually exclusive.

Methods

The authors propose a three-part architecture to tackle these challenges:

Fig. 1. Architectures of our proposed model, which consists of three modules: music representation learning module, multi- modal fusion module, and genre correlations extraction module.
  1. Music Representation Learning Module:
    • Audio: Uses a 5-block CNN to process Mel-spectrograms.
  2. Lyrics: Employs a pre-trained, frozen BERT model to extract semantic features.
  3. Alignment: Crucially, they introduce an Audio-Lyrics (A-L) contrastive loss. This forces the model to map corresponding audio and lyrics into a shared space before fusion, ensuring the two modalities are "speaking the same language."
  4. Multi-modal Fusion Module: Instead of simple concatenation, they use Symmetric Cross-Modal Attention (SCMA). This consists of two paths: one where audio features act as the "Query" to attend to lyric "Keys/Values," and vice versa. This allows the model to dynamically weigh which parts of the audio correspond to specific lyrical cues.

  5. Genre Correlations Extraction Module (GCEM): To model the relationships between genres, the authors use a Graph Convolutional Network (GCN).

  6. Nodes: Represented by the semantic embeddings of genre names (via BERT).

  7. Edges: Defined by a correlation matrix that combines statistical co-occurrence (how often genres appear together in the training set) and semantic similarity (how close genre names are in vector space).

The final classification is performed by taking the dot product of the fused multi-modal features and the updated genre embeddings from the GCN.

Datasets

The model was evaluated on the Music4All dataset, a large-scale collection containing audio features and lyrics. To ensure data quality, the authors filtered the set to include only tracks with English lyrics and complete metadata, resulting in a final experimental set of 43,650 samples across 87 genre categories.

Key Insights and Ideas

  • Alignment is as important as Fusion: The ablation studies show that adding the A-L contrastive loss significantly boosts performance. Fusing misaligned features is like trying to translate a book by gluing pages of two different languages together; alignment ensures the features are contextually relevant to each other.
  • Genres are a Social Graph: By using a GCN, the model treats genres as a network. This allows the system to "reason" that if a song has strong "Heavy Metal" features, it is statistically likely to also be "Hard Rock" but unlikely to be "K-Pop."
  • The Power of Semantic Priors: Using BERT embeddings for genre names (e.g., the word "Jazz") provides a better starting point for the GCN than random initialization, as it captures the inherent cultural and linguistic relationships between genre labels.

Key Results

The proposed model achieved a new state-of-the-art on the filtered Music4All dataset, outperforming previous multi-modal benchmarks by a wide margin.

Comparison with other multi-modal methods.

As shown in Table 1, the model reached an accuracy of 0.456 and an F-measure of 0.534, significantly higher than Pandeya’s model (0.387 accuracy).

The authors also explored the impact of the hyperparameter $\lambda$, which balances the contrastive loss and the classification loss. They found a "sweet spot" at $\lambda = 0.3$.

Fig. 2. The accuracy and F-measure of our proposed model when using different λ. The horizontal and vertical coordi- nates represent the value of λ and the performance of the model, respectively.

Limitations and Future Work

While the paper demonstrates strong results, a few areas remain open for exploration:

  • Language Constraints: The study focused exclusively on English lyrics. Expanding the model to handle multi-lingual lyrics remains a challenge due to the complexities of cross-lingual semantic alignment.
  • Modality Expansion: The authors mention that other modalities, such as album cover art or playlist co-occurrence data, could be integrated into this framework to further refine classification.
  • Class Imbalance: Like most multi-label datasets, Music4All suffers from long-tail distribution (some genres are very rare). While the GCN helps, more specialized loss functions might be needed to improve performance on niche genres.

Summary updated

BibTeX
@inproceedings{ru2023improving,
  author = {Ganghui Ru and Xulong Zhang and Jianzong Wang and Ning Cheng and Jing Xiao},
  title = {{Improving Music Genre Classification from Multi-Modal Properties of Music and Genre Correlations Perspective}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=u5-wWppgMl},
}
Figure