Multi-Level and Multi-Scale Feature Aggregation Using Sample-level Deep Convolutional Neural Networks for Music Classification

Jongpil Lee, Juhan NamarXiv 2017

Abstract

Music classification requires the extraction of features that represent a wide range of abstractions, from low-level acoustic properties to high-level semantic genres. This paper introduces a novel approach using sample-level deep convolutional neural networks (DCNNs) trained directly on raw audio waveforms. By implementing multi-level and multi-scale feature aggregation, the model captures hierarchical representations across different network depths and input granularities. Evaluation on several benchmark datasets, including GTZAN and the Million Song Dataset, shows that this end-to-end learning approach achieves competitive performance compared to traditional spectrogram-based methods.

Introduction

Music auto-tagging and classification involve predicting labels that exist at vastly different levels of abstraction. For example, an acoustic tag like "piano" describes a concrete, low-level sound, whereas a tag like "techno" or "sad" describes a high-level, abstract concept such as genre or mood. Historically, a single, fixed-scale feature representation—often based on hand-crafted features like mel-spectrograms—has struggled to capture this diversity. This research aims to bridge the gap by learning hierarchical representations end-to-end directly from raw waveforms, capturing both local and global song characteristics simultaneously.

Methodology

The proposed framework integrates two primary techniques into a unified pipeline:

  1. Sample-level Deep CNNs (DCNNs): Unlike traditional models that ingest spectrograms, these networks process raw audio waveforms at a fine granularity. The initial filters are extremely small, processing as few as 2 or 3 audio samples at a time to learn frequency-sensitive filters directly from the source.
  2. Multi-Level and Multi-Scale Aggregation: To capture the hierarchical nature of music, the authors extract features from the top three hidden layers of pre-trained DCNNs (multi-level). Additionally, they utilize networks trained on different input frame sizes (multi-scale). These features are concatenated and processed through a fully-connected neural network for final classification.
Architecture of the proposed multi-level and multi-scale feature aggregation framework.

Datasets

The approach was validated on four standard datasets:

  • GTZAN (fault-filtered): 10-class genre classification.
  • MagnaTagATune (MTAT): Auto-tagging across 50 tags.
  • Million Song Dataset (TAGTRAUM): 15-class genre classification.
  • Million Song Dataset (MSD): Large-scale auto-tagging across 50 tags.

Results and Analysis

Layer-Wise Feature Specialization

A key insight from the study is that different musical tags are best represented at different depths within the network. A t-SNE visualization of the learned features revealed that instrument-specific tags like "Piano" cluster more tightly in lower layers (e.g., 3 layers below the output). In contrast, abstract genre tags like "Techno" exhibit better clustering in higher layers (e.g., 1 layer below the output). This validates the hypothesis that multi-level aggregation is essential for comprehensive music tagging.

t-SNE visualization of learned features for "Techno" (genre) and "Piano" (instrument) across different network layers, showing that genre clusters better in higher layers while instruments cluster better in lower layers.

Performance Metrics

  • Accuracy Gains: Multi-level aggregation significantly improved performance on the GTZAN dataset, reaching 82.1% accuracy, a notable increase from the 72.0% achieved in previous spectrogram-based work.
  • Ensemble Success: On the MagnaTagATune dataset, an ensemble of eight multi-scale architectures achieved an AUC of 0.9064.
  • Scalability: On the massive Million Song Dataset, the model achieved an AUC of 0.8842, proving that raw waveform models can remain competitive with state-of-the-art spectrogram-based approaches at scale.

Conclusion

The success of sample-level DCNNs demonstrates that deep learning models can effectively bypass domain-specific preprocessing like mel-frequency spectrograms. While the computational cost of training on raw waveforms remains high—requiring approximately two weeks on a single high-end GPU for the Million Song Dataset—the ability to aggregate features across scales and levels provides a robust path forward for complex audio classification tasks. Future work will focus on optimizing training efficiency to allow for even larger multi-scale ensembles on massive datasets.

Summary updated

BibTeX
@misc{lee2017multi,
  author = {Jongpil Lee and Juhan Nam},
  title = {{Multi-Level and Multi-Scale Feature Aggregation Using Sample-level Deep Convolutional Neural Networks for Music Classification}},
  year = {2017},
  eprint = {1706.06810},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1706.06810},
}
Figure