MART: Learning Hierarchical Music Audio Representations with Part-Whole Transformer

Dong Yao, Jieming Zhu, Jiahao Xun, Shengyu Zhang, Zhou Zhao, Liqun Deng, Wenqiao Zhang, Zhenhua Dong, Xin Jiang · DOI

TL;DR

This paper introduces MART, a novel approach for learning music representations that explicitly models the hierarchical structure of music (notes forming measures, measures forming phrases, etc.). By using a "part-whole transformer" and a hierarchical contrastive learning objective, MART captures richer musical relationships than previous methods, leading to improved performance on tasks like music classification and cover song identification.

What Problem Does This Paper Address?

Current self-supervised learning methods for music audio often treat music as a sequence of equally-sized clips, overlooking the inherent hierarchical organization of music. This structure, where smaller musical units (like notes and chords) combine to form larger ones (measures, phrases, sections), is crucial for understanding music's composition and for tasks like identifying cover songs or classifying genres. Existing methods fail to effectively leverage these part-whole relationships, limiting the expressiveness and utility of learned music representations.

Methods

MART addresses this by introducing two key innovations:

  • Hierarchical Audio Cropping (HAC): This strategy recursively splits an audio clip into multiple sub-clips at different levels, creating a natural part-whole hierarchy. For example, a song is first split into a few large clips, and then each of those is split into smaller clips, and so on, up to a defined number of hierarchical levels.
  • Part-Whole Transformer: This module is designed to explicitly model interactions between "part" clips and their corresponding "whole" clips. It uses a transformer encoder where "whole" clips act as queries to gather information from their "part" clips (keys and values), and vice-versa. This allows the model to learn how smaller musical segments contribute to the larger structure.
  • Hierarchical Contrastive Learning: To further refine these representations, a contrastive learning objective is employed. This objective encourages representations of "part" and "whole" clips at adjacent hierarchical levels to be similar, while pushing apart dissimilar clips. This helps build a multi-level representation space that captures the hierarchical relationships.

Datasets

The paper evaluates MART on the following datasets:

  • Music Classification: MTAT (used for pre-training and evaluation), GTZAN (used for evaluation).
  • Cover Song Identification: SHS100K-SUB (a subset of SHS100K) and Covers80.

Key Insights and Ideas

  • Music is inherently hierarchical: The paper strongly emphasizes that treating music as flat sequences misses crucial structural information.
  • Explicitly modeling part-whole relationships is beneficial: The proposed "part-whole transformer" and hierarchical contrastive loss are shown to be effective in capturing these relationships.
  • Hierarchical structure aids downstream tasks: The improved representations learned by MART lead to better performance on tasks that implicitly rely on understanding musical structure.
  • Pretraining is key: MART leverages self-supervised pre-training, demonstrating its effectiveness in learning general-purpose music representations that can be fine-tuned for specific tasks.

Key Results

MART demonstrates strong performance across various tasks:

  • Music Classification (MTAT): Achieved state-of-the-art results in linear probing and finetuning scenarios, outperforming methods like CLMR, Multi-Format, COLA, and BYOL-A. For instance, in linear probing on MTAT, MART achieved an ROC-AUC of 89.5 and PR-AUC of 36.7.
  • Music Classification (GTZAN): Showcased superior performance compared to both supervised and finetuning methods, indicating good cross-dataset transfer capabilities. MART achieved a ROC-AUC of 94.7 and PR-AUC of 77.2 in the finetuning scenario.
  • Cover Song Identification: MART outperformed existing pretrained methods on SHS100K-SUB, achieving a MAP of 52.2 and P@10 of 35.8. It also achieved comparable or better results on Covers80 in a zero-shot setting.
  • Ablation Study: Removing either the part-whole transformer or the hierarchical contrastive learning component led to performance degradation, highlighting the importance of both proposed modules. Removing both components resulted in the most significant drop, emphasizing the value of capturing hierarchical structure.

Limitations and Future Work

  • Limitations: The paper doesn't explicitly detail limitations beyond the need for further scaling. The ablation study shows that removing components hurts performance, implying that the current model relies heavily on these specific architectural choices.
  • Future Work: The authors propose extending MART's training to massive open-domain music datasets to further enhance its zero-shot generability. This suggests a direction towards even more robust and versatile music representation learning.

Summary updated

BibTeX
@inproceedings{yao2024mart,
  author = {Dong Yao and Jieming Zhu and Jiahao Xun and Shengyu Zhang and Zhou Zhao and Liqun Deng and Wenqiao Zhang and Zhenhua Dong and Xin Jiang},
  title = {{MART: Learning Hierarchical Music Audio Representations with Part-Whole Transformer}},
  booktitle = {The Web Conference},
  year = {2024},
  doi = {10.1145/3589335.3651535},
}
Figure