NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

JEPOO: Highly Accurate Joint Estimation of Pitch, Onset and Offset for Music Information Retrieval

Haojie Wei, Jun Yuan, Rui Zhang, Yueguo Chen, Gang Wang

Abstract

Melody extraction is a core task in music information retrieval, and the estimation of pitch, onset and offset are key sub-tasks in melody extraction. Existing methods have limited accuracy, and work for only one type of data, either single-pitch or multi-pitch. In this paper, we propose a highly accurate method for joint estimation of pitch, onset and offset, named JEPOO. We address the challenges of joint learning optimization and handling both single-pitch and multi-pitch data through novel model design and a new optimization technique named Pareto modulated loss with loss weight regularization. This is the first method that can accurately handle both single-pitch and multi-pitch music data, and even a mix of them. A comprehensive experimental study on a wide range of real datasets shows that JEPOO outperforms state-of-the-art methods by up to 10.6%, 8.3% and 10.3% for the prediction of Pitch, Onset and Offset, respectively, and JEPOO is robust for various types of data and instruments. The ablation study validates the effectiveness of each component of JEPOO.

Introduction

Melody extraction involves converting raw audio into a sequence of musical notes, each defined by its fundamental frequency (pitch), start time (onset), and end time (offset). Despite its importance, the field has long struggled with two primary challenges: the "optimization tug-of-war" between these three distinct tasks and the rigid divide between single-pitch (SPP) and multi-pitch prediction (MPP) models.

Most existing models specialize in one domain; SPP models fail on polyphonic music, while MPP models often over-predict notes in solo melodies. JEPOO (Joint Estimation of Pitch, Onset, and Offset) is designed to bridge this gap, offering a universal framework that balances these tasks effectively through advanced architecture and a novel loss modulation strategy.

The JEPOO Architecture

JEPOO employs a multi-stage deep learning architecture designed to extract both shared and task-specific features from log-mel spectrograms.

The JEPOO architecture featuring shared residual convolutional layers and task-specific stacks for onset, pitch, and offset prediction.

Shared and Task-Specific Layers

The model begins with Shared Bottom Layers using "ReConv" (Residual Convolution) blocks. These blocks allow for a deeper network without the risk of vanishing gradients, facilitating the extraction of common acoustic features. The architecture then branches into three dedicated stacks:

  • Onset Stack: Predicts the start of notes.
  • Pitch Stack: Predicts the fundamental frequency.
  • Offset Stack: Predicts the end of notes.

Each stack utilizes a BiLSTM (Bidirectional Long Short-Term Memory) network to capture temporal context, which is vital for distinguishing sustained notes from rapid successions. Notably, the model uses preliminary predictions from the onset and offset stacks to refine the pitch prediction, mimicking human auditory perception where timing helps clarify pitch identity.

Optimization: PML with LWR

The core innovation of JEPOO lies in its optimization strategy: Pareto Modulated Loss (PML) combined with Loss Weight Regularization (LWR).

In standard multi-task learning, task losses are typically summed, which can lead to one task dominating the gradient. JEPOO uses Pareto optimization to dynamically adjust task weights during training. By integrating Focal Loss into this framework, the model effectively manages the extreme data imbalance inherent in music (where "silent" frames far outnumber "onset" frames). LWR ensures that the model maintains a high level of accuracy across all three tasks simultaneously, preventing any single task from being sacrificed for the others.

Experimental Evaluation

JEPOO was evaluated against state-of-the-art (SOTA) models—including CREPE, MT3, and OAF—across diverse benchmarks such as MDB-stem-synth (single-pitch), MAPS (mixed), and MAESTRO (multi-pitch).

Performance comparison of JEPOO against state-of-the-art models across varying proportions of multi-pitch data.

Key Findings

  • Superior Accuracy: JEPOO outperformed SOTA methods by 10.6% in Pitch, 8.3% in Onset, and 10.3% in Offset prediction F1 scores.
  • Robustness Across Data Types: As shown in the performance graphs, JEPOO maintains high accuracy regardless of the proportion of multi-pitch data in the dataset. While other models like CREPE degrade rapidly as multi-pitch data increases, JEPOO remains stable.
  • Instrument Versatility: Testing across 15 different instruments (e.g., Tuba, Erhu, Cello) demonstrated that JEPOO is not specialized for a single instrument type, showing significantly lower performance variance than its competitors.

Conclusion

JEPOO represents a significant advancement in melody extraction by successfully unifying pitch, onset, and offset estimation into a single, highly accurate framework. By solving the optimization imbalances and the single/multi-pitch divide, JEPOO provides a robust tool for a wide variety of music information retrieval applications. Future work may explore applying Pareto-modulated approaches to related tasks such as beat tracking and instrument separation.

Summary updated

BibTeX
@inproceedings{wei2023jepoo,
  author = {Haojie Wei and Jun Yuan and Rui Zhang and Yueguo Chen and Gang Wang},
  title = {{JEPOO: Highly Accurate Joint Estimation of Pitch, Onset and Offset for Music Information Retrieval}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=hv7K3Xgx6N},
}
Figure