Detecting Music Performance Errors with Transformers
Benjamin Shiue-Hal Chou, Purvish Jajal, Nicholas John Eliopoulos, Tim Nadolsky, Cheng-Yun Yang, Nikita Ravi, James C. Davis, Kristen Yeon-Ji Yun, Yung-Hsiang Lu
TL;DR
This work tackles the challenge of providing fine-grained feedback for music performance errors in beginner musicians, where prior tools rely on brittle alignment and offer limited error types. It introduces Polytune, an end-to-end transformer that ingests audio from both a musical score and a performance to output annotated, MIDI-like tokens without explicit alignment, and it leverages large-scale synthetic datasets MAESTRO-E and CocoChorales-E for training. Polytune achieves state-of-the-art performance with an average Error Detection F1 of $64.1\%$ across 14 instruments, significantly outperforming alignment-based baselines and enabling multi-instrument error detection. The approach demonstrates the value of end-to-end latent alignment and synthetic data for scalable, fine-grained feedback in music education, and it provides open-source code and data resources for further research.
Abstract
Beginner musicians often struggle to identify specific errors in their performances, such as playing incorrect notes or rhythms. There are two limitations in existing tools for music error detection: (1) Existing approaches rely on automatic alignment; therefore, they are prone to errors caused by small deviations between alignment targets.; (2) There is a lack of sufficient data to train music error detection models, resulting in over-reliance on heuristics. To address (1), we propose a novel transformer model, Polytune, that takes audio inputs and outputs annotated music scores. This model can be trained end-to-end to implicitly align and compare performance audio with music scores through latent space representations. To address (2), we present a novel data generation technique capable of creating large-scale synthetic music error datasets. Our approach achieves a 64.1% average Error Detection F1 score, improving upon prior work by 40 percentage points across 14 instruments. Additionally, compared with existing transcription methods repurposed for music error detection, our model can handle multiple instruments. Our source code and datasets are available at https://github.com/ben2002chou/Polytune.
