Abstract
Music auto-tagging is often handled similarly to image classification by treating 2D audio spectrograms as images. However, music tags are highly diverse and exist at various levels of abstraction. We propose a CNN-based architecture that aggregates multi-level and multi-scale features. The process involves supervised feature learning from short audio segments of varying sizes, extracting features from all convolutional layers, and aggregating them for global classification. Our experiments demonstrate that this approach is highly effective, outperforming state-of-the-art models on the MagnaTagATune and Million Song Datasets, and showing strong performance in transfer learning.
Introduction
Music auto-tagging involves assigning descriptive labels such as "guitar," "happy," or "jazz" to audio clips. Unlike standard image classification, music tags vary significantly in their level of abstraction. Local tags like "female vocalist" can be identified from short segments, while global tags like "80s" or "genre" require broader context. Most existing models treat these tags uniformly, failing to capture this multi-scale nature. This paper introduces a framework that explicitly leverages features across multiple temporal scales and network depths.
Methodology
The proposed architecture follows a three-step pipeline:
- Local Feature Learning: CNNs are trained on short audio spectrogram segments. To capture different rhythmic and melodic scales, three different input sizes are used: 18, 27, and 54 frames (approx. 400ms to 1.2s).
- Multi-Level and Multi-Scale Aggregation: Features are extracted from every convolutional layer (multi-level) across all input-size models (multi-scale). These are max-pooled and then average-pooled over a 30-second clip to form a comprehensive feature vector.
- Global Classification: This aggregated vector is fed into a final fully-connected network (MLP) to make the ultimate tag predictions.
This decoupled design allows the feature extractors to be pre-trained on large datasets and then applied to new tasks via transfer learning.
Key Insights
The research reveals several critical aspects of music auto-tagging:
- Tag-Specific Scale Sensitivity: Different tags respond better to different temporal windows. For example, "Hard Rock" and "Female Vocalist" are more easily detected with shorter windows, whereas "90s" or "Alternative" benefit from larger contexts.
- Layer Depth Contributions: While deeper layers (L3) are generally better for high-level concepts like mood and genre, lower layers (L1, L2) are crucial for identifying specific instruments. Combining all layers consistently yields the best performance.
- Global vs. Local Context: The "Global" model, which aggregates features across the entire song, significantly outperforms "Local" models that merely average short-term predictions.
Experimental Results
The model achieved state-of-the-art results on major benchmarks:
- MagnaTagATune (MTAT): Reached an AUC of 0.9021, surpassing previous 1D and Time-Frequency CNNs.
- Million Song Dataset (MSD): Achieved an AUC of 0.8878.
- Transfer Learning: Features pre-trained on MSD achieved 72% accuracy on the GTZAN genre dataset, a significant improvement over the previous 65.9% benchmark.
Conclusion
Aggregating multi-level and multi-scale features effectively addresses the diverse abstractions present in music tags. While computationally intensive to train, the resulting feature representations are robust and highly transferable. Future work will explore end-to-end optimization of the entire pipeline to further enhance efficiency and performance.
Summary updated