Multitask Learning for Fundamental Frequency Estimation in Music

Rachel M. Bittner, Brian McFee, Juan Pablo BelloarXiv 2018

Introduction

Estimating the fundamental frequency ($f_0$), or pitch, of multiple instruments within a complex musical mixture remains one of the most significant challenges in Music Information Retrieval (MIR). Researchers from NYU’s Music and Audio Research Lab have proposed a novel multitask deep learning framework that jointly estimates multiple-$f_0$, melody, vocal, and bass lines. By leveraging the hierarchical nature of musical tasks and a specialized input representation, their model achieves state-of-the-art performance even in the face of limited human-annotated data.

The Challenge of Polyphonic Pitch Estimation

Polyphonic music presents several hurdles for automated transcription: interference from percussive elements, overlapping harmonics from different instruments, and a severe lack of precisely labeled training data. Historically, these problems were addressed with specialized, separate models for melody extraction, bass tracking, or general multiple-$f_0$ estimation. This research explores whether a single, unified model can perform all these tasks simultaneously, allowing the sub-networks to learn from one another.

Methodology: HCQT and Multitask Architectures

The proposed system introduces two primary innovations: the Harmonic Constant-Q Transform (HCQT) and a hierarchical multitask masking architecture.

Harmonic Constant-Q Transform (HCQT)

Standard spectrograms often struggle to represent the relationship between a pitch and its overtones. The HCQT addresses this by representing audio as a 3D "image" where the depth dimension contains the first five harmonics of a frequency. This geometric alignment allows the Convolutional Neural Network (CNN) to inherently "see" harmonic relationships without needing to learn them from scratch.

The Harmonic Constant-Q Transform (HCQT) stacks harmonics along a third dimension, allowing the CNN to exploit the mathematical relationship between fundamental frequencies and overtones.

Multitask Masking

The architecture enforces a logical hierarchy among tasks. The model first generates a "Multiple-$f_0$" salience map representing all active notes. This map then acts as a mask for auxiliary tasks like melody or bass tracking. By forcing sub-networks to search for specific lines only within the set of already identified active notes, the model ensures consistency across different outputs.

Multitask learning overview: The model takes a Harmonic Constant-Q Transform (HCQT) as input and jointly predicts multiple-f0, melody, and bass.

Data Augmentation and Synthesis

To overcome the "data scarcity" problem, the authors employed a semi-automatic labeling strategy. They utilized 320 multitrack songs from MedleyDB and commercial sources. For monophonic stems, pitch trackers like pYIN provided "silver standard" labels. For polyphonic instruments like piano and guitar, the researchers used transcription algorithms to generate MIDI files, which were then re-synthesized using high-quality sound fonts to provide 100% accurate ground truth.

Key Results and Insights

The multitask approach proved superior to single-task equivalents across nearly all evaluation benchmarks, including Bach10, MAPS, and Orchset. Key findings include:

  • Cross-Task Reinforcement: Performance on general pitch estimation improved as more specific auxiliary tasks (like melody or bass) were added, suggesting the model develops a more robust internal representation of musical notes.
  • Effectiveness of Synthetic Data: Training on MIDI-synthesized audio significantly improved performance on real-world recordings, indicating the model learns underlying musical structures rather than just acoustic textures.
  • Harmonic De-emphasis: The model demonstrated a superior ability to distinguish fundamental frequencies from their harmonics, reducing "false alarm" errors common in traditional systems.

Limitations and Future Directions

Despite its success, the model faces challenges with timbre confusion—occasionally mistaking instruments like trumpets for vocals—and octave errors in bass estimation. Future work aims to incorporate onset detection and explicit instrument identification to further refine the model’s understanding of complex musical scenes.

Summary updated

BibTeX
@misc{bittner2018multitask,
  author = {Rachel M. Bittner and Brian McFee and Juan Pablo Bello},
  title = {{Multitask Learning for Fundamental Frequency Estimation in Music}},
  year = {2018},
  eprint = {1809.00381},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1809.00381},
}
Figure