Transcoda: End-to-End Zero-Shot Optical Music Recognition via Data-Centric Synthetic Training
Abstract
Optical Music Recognition (OMR), the task of transcribing sheet music into a structured textual representation, is currently bottlenecked by a lack of large-scale, annotated datasets of real scans. Synthetic training pages often lack the crowded layouts, performance markings, and scan defects found in real scores. In Humdrum **kern, a text format for music notation, different encodings can produce the same printed score. The model must therefore learn encoding choices as well as musical content. We propose Transcoda, an OMR system built on (i) a synthetic data pipeline that combines dense score layouts, notation distractors, and scan degradation, (ii) a normalization of common equivalent **kern encodings and (iii) constrained decoding to ensure the syntactic correctness of the output. This approach allows us to train a compact 108M-parameter model in 9.8 hours on a single GPU that outperforms Legato, a model with 8.7x more parameters. It also has the lowest error of all compared systems on our synthetic test set. On real scans it reaches 22.59% OMR-NED, a music-aware error rate, on the 202 pages of IMSLP-Real, a new benchmark of manually checked transcriptions (Legato: 53.20%), and reduces the error rate on historical Polish scans to 21.95% OMR-NED (down from 52.00% for Legato). We make our model, data and generation pipeline publicly available at https://github.com/btrkeks/transcoda.