QUICK REVIEW
[Paper Review] Musical Tempo and Key Estimation using Convolutional Neural Networks with Directional Filters
Hendrik Schreiber, Meinard Müller|arXiv (Cornell University)|Mar 26, 2019
TL;DR
This paper proposes using convolutional neural networks (CNNs) with directional filters—aligned with either the time or frequency axis—for musical tempo and key estimation. By designing shallow, task-specific architectures with axis-aligned filters, the method achieves performance comparable to standard VGG-style networks while being more robust to confounding factors and requiring fewer parameters, especially in low-capacity settings.
ABSTRACT
(Abstract to follow)
Motivation & Objective
- To investigate whether directional filters aligned with spectrogram axes (time or frequency) improve performance in musical tempo and key estimation compared to standard square filters.
- To evaluate if shallow, domain-specific CNN architectures using directional filters can match the performance of deeper, general-purpose VGG-style networks while being less vulnerable to confounding factors.
- To determine whether directional filters enhance model interpretability and efficiency, particularly in low-capacity models.
- To compare the effectiveness of axis-aligned filters (temporal or spectral) versus square filters in capturing task-specific musical features such as rhythmic patterns or pitch class distributions.
- To assess whether architectural specialization via directional filtering reduces reliance on spurious correlations (e.g., genre-tempo links) that plague general-purpose models.
Proposed method
- The authors use constant-Q magnitude spectrograms as input, with dimensions 168×60 (frequency × time), representing 7 octaves at 2 bins per semitone and 0.19s per time frame.
- They design two primary network variants: ShallowSpec (spectral filters, 1×k) for key estimation and ShallowTemp (temporal filters, k×1) for tempo estimation, both with small, shallow architectures.
- For deeper models, they introduce DeepSpec and DeepTemp, which are VGG-style networks with directional filters (1×k and k×1 respectively), replacing square filters to enforce axis-specific learning.
- The models are trained using random cropping of spectrograms with random pitch transpositions (±11 semitones) to augment data and handle class imbalance.
- Normalization is applied to input spectrograms (zero mean, unit variance), and training uses cross-entropy loss for classification tasks.
- The performance is evaluated on two datasets: GTzan Key (24-class key estimation) and Ballroom (256-class tempo estimation), with accuracy reported as the primary metric.
Experimental results
Research questions
- RQ1Can shallow CNNs with directional filters (aligned with time or frequency) achieve performance comparable to standard VGG-style networks in musical tempo and key estimation?
- RQ2Does using directional filters reduce vulnerability to confounding factors such as genre-tempo correlations, especially in low-capacity models?
- RQ3To what extent do directional filters improve model efficiency and interpretability compared to square filters?
- RQ4How does architectural specialization (e.g., temporal vs. spectral filters) affect performance when the network is applied to a task it was not designed for?
- RQ5Can a VGG-style network with directional filters match the performance of its square-filtered counterpart while being more robust to spurious correlations?
Key findings
- Shallow networks with directional filters (ShallowSpec and ShallowTemp) achieve performance comparable to deeper VGG-style networks on their respective tasks, despite having fewer parameters.
- The DeepSquare architecture (VGG-style with square filters) achieves the highest accuracy on both tasks—4.2 pp higher on Ballroom tempo and 5.1 pp higher on GTzan Key than DeepSpec and DeepTemp, respectively.
- In low-capacity settings (k=2 for DeepSpec, k=1 for DeepSquare), DeepSpec outperforms DeepSquare by a significant margin, indicating that directional filtering enhances performance when model capacity is limited.
- DeepSpec and DeepTemp perform poorly on tasks they were not designed for, supporting the hypothesis that they learn only the intended features (pitch patterns or rhythmic patterns), reducing confounding learning.
- The 2×2 max pooling in DeepMod modules may cause deeper models to generalize beyond their intended filter direction, leading to improved performance on unintended tasks for k>2.
- Directional filters reduce model vulnerability to confounds such as genre-tempo correlations, especially in low-capacity models, where the standard VGG-style network lacks sufficient capacity in the right direction.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.