Learnable Front Ends Based on Temporal Modulation for Music Tagging

Yinghao Ma, Richard M. SternarXiv 2022

Abstract

While end-to-end systems are becoming popular in auditory signal processing including automatic music tagging, models using raw audio as input needs a large amount of data and computational resources without domain knowledge. Inspired by the fact that temporal modulation is regarded as an essential component in auditory perception, we introduce the Temporal Modulation Neural Network (TMNN) that combines Mel-like data-driven front ends and temporal modulation filters with a simple ResNet back end. The structure includes a set of temporal modulation filters to capture long-term patterns in all frequency channels. Experimental results show that the proposed front ends surpass state-of-the-art (SOTA) methods on the MagnaTagATune dataset in automatic music tagging, and they are also helpful for keyword spotting on speech commands. Moreover, the model performance for each tag suggests that genre or instrument tags with complex rhythm and mood tags can especially be improved with temporal modulation.

Introduction

Automatic music tagging is a core task in auditory signal processing, yet it faces a persistent challenge in feature representation. Traditional hand-crafted features like Mel spectrograms often discard fine-grained musical details such as vibrato or complex rhythmic textures. Conversely, raw-audio end-to-end systems, while powerful, are computationally expensive and require vast datasets to learn basic acoustic principles from scratch. This paper introduces the Temporal Modulation Neural Network (TMNN), a "middle way" that incorporates domain knowledge of temporal modulation—the way energy in frequency bands changes over time—into a learnable deep learning pipeline.

Methodology

The TMNN architecture is designed to mimic the human subcortical auditory system's perception of modulation spectra. It consists of three primary stages:

  1. Learnable Spectral Front End: Utilizing a Mel-like front end based on Harmonic-NN, the model learns to adjust its frequency sensitivity specifically for musical characteristics.
  2. Temporal Modulation Filters: The core innovation involves calculating the energy envelope for each frequency channel and applying 1-D sinc-based convolutional kernels. These bandpass filters are constrained to focus on specific modulation frequencies relevant to rhythm and texture.
  3. Skip Connections and Back End: To prevent gradient vanishing and retain basic spectral information, the original spectrum is concatenated with the modulated output. This combined feature set is then processed by a 12-layer ResNet back end.
The TMNN architecture, illustrating the transition from raw audio to a fundamental spectrum and the subsequent learnable temporal modulation front end.

Experimental Results

The TMNN was evaluated on the MagnaTagATune (MTAT) dataset, a standard benchmark for music tagging. The model achieved a state-of-the-art (SOTA) PR-AUC of 47.13%, demonstrating a statistically significant improvement over existing methods (p=0.036 for PR-AUC).

Performance comparison of TMNN against various baseline models on the MTAT dataset, showing superior ROC-AUC and PR-AUC values.

Beyond music tagging, the model demonstrated robust generalization by performing well on the Speech Commands keyword spotting dataset. This suggests that temporal modulation is a robust feature across diverse auditory signals.

Discussion and Key Insights

A key finding of this research is the "less is more" principle regarding modulation filters. Performance was found to peak with only 1 to 3 filters; increasing the count beyond this led to diminished returns and training instability. This indicates that the most critical musical information is concentrated within a few low-frequency modulation bands.

Furthermore, the impact of modulation filters was tag-specific. Significant improvements were noted for tags related to complex textures and moods—such as "synth," "metal," "soft," and "quiet"—while tags with potentially ambiguous ground truths (e.g., "rock") saw less benefit. Some tags, like "choir" and "solo," actually saw a decrease in performance, possibly due to the filters not being tuned for the specific temporal characteristics of human singing.

Conclusion

The TMNN offers a computationally efficient and bio-inspired alternative to raw-audio systems. By leveraging learnable temporal modulation, it achieves SOTA performance in music tagging while providing interpretable insights into the importance of rhythmic and textural features. Future work will explore pairing this front end with more advanced back ends, such as Transformers, to further push the boundaries of machine listening.

Summary updated

BibTeX
@misc{ma2022learnable,
  author = {Yinghao Ma and Richard M. Stern},
  title = {{Learnable Front Ends Based on Temporal Modulation for Music Tagging}},
  year = {2022},
  eprint = {2211.15254},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.15254},
}
Figure