[Paper Review] Onsets and Frames: Dual-Objective Piano Transcription
This paper proposes a dual-objective deep learning model that jointly predicts piano note onsets and framewise pitch content using a convolutional and recurrent neural network. By conditioning framewise predictions on onset detections, the model achieves a 100%+ relative improvement in note F1 score (with offsets) on the MAPS dataset and extends to predict relative velocities for more expressive transcriptions.
We advance the state of the art in polyphonic piano music transcription by using a deep convolutional and recurrent neural network which is trained to jointly predict onsets and frames. Our model predicts pitch onset events and then uses those predictions to condition framewise pitch predictions. During inference, we restrict the predictions from the framewise detector by not allowing a new note to start unless the onset detector also agrees that an onset for that pitch is present in the frame. We focus on improving onsets and offsets together instead of either in isolation as we believe this correlates better with human musical perception. Our approach results in over a 100% relative improvement in note F1 score (with offsets) on the MAPS dataset. Furthermore, we extend the model to predict relative velocities of normalized audio which results in more natural-sounding transcriptions.
Motivation & Objective
- Improve polyphonic piano music transcription by jointly modeling note onsets and framewise pitch detection.
- Address limitations of prior methods that optimize onsets or frames in isolation, which do not correlate well with human perception.
- Enhance transcription quality by incorporating note duration (offsets) and velocity information to better capture musical expressivity.
- Develop a model that generalizes across diverse recording conditions, including real piano recordings (Disklavier) not seen during training.
- Establish more perceptually relevant evaluation metrics by emphasizing note-with-offset and velocity transcription, moving beyond standard frame and onset-only scores.
Proposed method
- Train a deep convolutional and recurrent neural network (CNN-RNN) to jointly predict onsets and framewise pitch activations.
- Use onset predictions as a conditional prior to restrict framewise pitch detection, ensuring no new note starts without a corresponding onset.
- Apply a two-stage inference process: first predict onsets, then use those to condition and refine framewise pitch outputs.
- Extend the model to predict relative velocity for each onset, using a separate head to estimate dynamic intensity.
- Utilize time-frequency representations (e.g., constant-Q transform) as input, with frame-level targets for pitch and onset detection.
- Optimize using a joint loss function combining onset and frame objectives, with careful handling of temporal alignment and frame resolution.
Experimental results
Research questions
- RQ1Can joint modeling of onsets and framewise pitch detection significantly improve transcription quality compared to isolated optimization?
- RQ2Does conditioning framewise predictions on onset detections lead to more accurate and perceptually plausible transcriptions?
- RQ3To what extent does including note offset and velocity information improve the perceptual quality of transcriptions?
- RQ4How well does the model generalize across different recording environments (e.g., synthesized vs. real piano recordings) without domain-specific fine-tuning?
- RQ5What impact do stricter evaluation criteria—such as tighter onset tolerance and offset accuracy—have on model performance and comparison?
Key findings
- The model achieves a 100%+ relative improvement in note F1 score (with offsets) on the MAPS dataset, significantly outperforming prior state-of-the-art methods.
- The note F1 score increases from 82.29 to 84.34 when evaluating only on the 'close' recording configuration, and to 86.38 when using only the first 30 seconds, indicating strong performance on realistic test conditions.
- The model performs poorly on low-velocity notes (MIDI velocity < 30), suggesting limitations in detecting soft or quiet piano notes, especially in real recordings.
- When trained at 24ms frame resolution, the model’s note F1 score with offsets drops to 49.99 under standard 50ms tolerance, indicating sensitivity to temporal resolution and potential overfitting to coarser timing.
- The model generalizes well to unseen data, successfully transcribing recordings from Musopen.org and even a harpsichord recording, demonstrating robustness to instrument and genre shifts.
- Audio examples show that the model produces more natural-sounding transcriptions with accurate dynamics and rhythm, particularly when velocity is included, making the output perceptually more expressive.
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.