Music theory enables performers, composers, and listeners to engage more deeply with music. Schenkerian analysis (SchA) is a particularly illustrative and widely used approach for modeling tonal structure, organizing music into hierarchical layers of harmonic and voice-leading relationships. Despite its importance in pedagogy and scholarship, producing well-formatted Schenkerian graphs remains difficult. A typical workflow might involve writing the Schenkerian analysis on paper, and then manually, painstakingly, entering each symbol by hand into music software, exporting to vector graphics, and manually refining layouts in graphical editors. Existing optical music recognition (OMR) systems for handwritten common western music notation (CWMN) can be leveraged for their ability to recognize small-scale symbols common to those in SchA. However, CWMN OMR models generally fail to recognize large symbols such as phrase slurs, struggle with dense notation, and do not recognize Schenkerian analysis markings. Thus, these models do not extend well to digitizing SchA. This paper introduces a novel framework for optical music recognition of both CWMN and SchA. Our novel contributions include (1) an ensemble model in which each individual model follows a different image-cropping scheme for improved object detection, (2) a topological neural network architecture for notation assembly, where candidate hyperedges attend to one another and perform hierarchical message passing, (3) the first dataset of labeled handwritten SchAs, gathered with novel model integration to the OMR-annotation software, MuNG Studio, and (4) the first algorithm for converting semantic Schenkerian graphs into typeset format.
Figures & tables
Fig. 1: Handwritten SchA (left) transformed into a typeset graph (right).
Fig. 2: a) Typeset CWMN, b) handwritten SchA, and c) mixed notation, from Timothy Jackson’s analysis of Schubert’s Einsamkeit , D. 620, mm. 1-16.
Fig. 3: Model pretraining and update strategy for data collection. A symbol detector is first pretrained on CWMN data (top). The symbol detector and the prediction models for syntax links, time groups, and precedence links then generate initial predictions for new SchA pages. Predictions are postprocessed with heuristics and then corrected and completed by a human annotator. The corrected pages become new training data for these models (bottom).
Symbol recognition
Syntax links
Time groups
Precedence links
Pages
47
36
37
44
Annotations
30,780
22,138
2,309
11,038
TABLE I: Subsets of HandSchA used in our experiments. Annotations are symbols in the symbol-recognition subset and the named relation in the other subsets.
Split
Symbol recognition
Syntax links
Time groups
Precedence links
Random splits
30/7/10
23/5/8
24/5/8
28/7/9
Held-out
33/7/7
26/5/5
25/5/7
30/7/7
TABLE II: Training, validation, and test pages in each split.
Fig. 4: Crop layouts for symbol recognition: RF-DETR detects large symbols in overlapping full-width horizontal strips (left), while YOLOv8L detects small symbols in overlapping square tiles (right).
Fig. 5: Syntax-link prediction through symbol–candidate incidences. (A-left) Rank-0 cells (0-cells) i and j represent a notehead and slur respectively. The rank-1 cell (1-cell) connects i to j . (A-right) The first rank-0 embeddings h(0) are determined via box geometry g and learned class embeddings a , fed through a shared encoder fn . (B) The binary masks of the two boxes provide visual features ve and a confidence logit be . A shared encoder processes the visual features, combined class embeddings S(ai,aj) , and pair geometry re to create initial rank-1 embeddings ze(0) . (C) Initial context embeddings cj(0) associated with each object are generated through multihead attention with K channels over all candidate hyperedges τj,e associated with node j and edge e . (D) Tensor diagram summarizing the message passing scheme between node, edge, and context embeddings.
Feature group
Definition
Dim.
Box geometry gi
Box corners
ℓi/W,ti/H,ri/W,bi/H
4
Center
xi/W,yi/H
2
Size
wi/W,hi/H
2
Symmetric pair geometry re
Center offsets
∣Δx∣/W,∣Δy∣/H
2
TABLE III: Geometry used by the syntax-link model. Pair geometry is unchanged when the endpoints are exchanged. Incidence geometry describes one endpoint relative to the other.
All symbols
Large symbols L>400 pixels
Very large symbols L>800 pixels
Method
mAP 50
w-mAP 50
mAP 50:95
w-mAP 50:95
mAP 50
w-mAP 50
mAP 50
w-mAP 50
Eight random splits
Baselines
Faster R-CNN + Inception-ResNet-v2 [ 49 ]
58.37 ± 3.12
87.13 ± 2.21
33.94 ± 2.06
47.92 ± 2.60
30.84 ± 2.80
55.96 ± 3.51
31.87 ± 2.82
44.05 ± 3.35
completeOMR [ 28 ]
55.25 ± 2.21
87.77 ± 1.03
40.41 ± 1.58
60.62 ± 0.86
44.00 ± 3.84
69.97 ± 2.61
40.30 ± 4.65
54.52 ± 4.84
MuSViT + Faster R-CNN [ 31 ]
62.81 ± 2.89
91.03 ± 1.31
37.93 ± 1.84
54.02 ± 0.89
49.20 ± 2.54
71.13 ± 2.20
45.28 ± 5.64
52.70 ± 4.68
TABLE IV: Symbol detection on handwritten Schenkerian analysis. All values are percentages. The upper block gives the mean ± sample standard deviation (SD) across the eight random splits, and the lower block gives the mean ± sample SD over two runs on the test pages of the held-out work. Bold indicates the highest value in each column of each block.
All symbols
Large symbols L>400 pixels
Very large symbols L>800 pixels
Method
mAP 50
w-mAP 50
mAP 50:95
w-mAP 50:95
mAP 50
w-mAP 50
mAP 50
w-mAP 50
Baselines
Faster R-CNN + Inception-ResNet-v2 [ 49 ]
70.94 ± 1.82
90.65 ± 0.13
46.88 ± 0.86
58.03 ± 0.46
40.14 ± 9.64
34.19 ± 3.13
15.86 ± 1.07
5.81 ± 0.82
completeOMR [ 28 ]
84.24 ± 0.55
96.73 ± 0.09
69.86 ± 0.28
72.38 ± 0.92
79.19 ± 2.16
87.47 ± 0.16
62.41 ± 1.49
72.00 ± 1.32
MuSViT + Faster R-CNN [ 31 ]
84.53 ± 0.72
95.28 ± 0.46
59.67 ± 1.57
67.05 ± 0.34
79.62 ± 7.19
80.35 ± 2.80
60.36 ± 0.35
61.87 ± 0.55
Ours
TABLE V: Symbol detection on MUSCIMA++. All methods use the 73-class vocabulary and the 84/28/28-page split of completeOMR [ 28 ] . All values are percentages, given as the mean ± sample SD over two runs. Bold indicates the highest value in each column.
MUSCIMA++
DoReMi
Method
All links
Non-staff links
All links
Baselines
Efficient NA–MLP32 [ 39 ]
87.66±5.35
82.81±5.71
85.21±0.73
Efficient NA–MLP64–512 [ 39 ]
86.88±7.53
78.36±13.64
83.67±0.94
completeOMR–MLP [ 28 ]
90.56±0.79
86.19±0.58
81.11±0.12
General-purpose models
TABLE VI: Directed syntax-edge micro-F1 (%, mean ± sample SD over two runs) on MUSCIMA++ and DoReMi. The non-staff column excludes staff-related links.
Method
Mean of eight random splits
Held-out work
Baselines
Efficient NA–MLP32 [ 39 ]
51.10±3.24
44.67±1.33
Efficient NA–MLP64–512 [ 39 ]
64.54±3.04
60.47±3.23
completeOMR–MLP [ 28 ]
51.64±2.13
44.76±3.33
General-purpose models
Logistic regression
39.02±2.96
33.71±0.12
TABLE VII: Syntax-link prediction on HandSchA. Directed-edge micro-F1 (%), with the sample SD across the eight random splits and across two runs on the held-out work.
Fig. 6: Effect of training-data size on the four tasks. The horizontal axis gives the number of training pages, which correspond to 25%, 50%, 75%, and 100% of the training pages. Points are means over three of the random splits and bars are sample SDs. In the symbol panel, solid lines show all symbols and dashed lines show L>400 . Horizontal lines mark rules, whose results do not change with the number of training pages.
Method
Mean of eight random splits
Held-out work
Alignment rule, page-height tolerance
87.79±6.55
94.57
Alignment rule, stem and pitch cues
92.92±1.61
93.73
Pair MLP
78.61±4.16
92.10±1.25
Target-node attention
77.03±7.89
94.26±1.18
Ours, connected components
93.44±1.48
90.80±0.00†
Ours
94.98±1.33
97.54±0.00†
TABLE VIII: Time-group prediction on HandSchA. Pair F1 (%), with the sample SD across the eight random splits and across two runs on the held-out work.
Method
Mean of eight random splits
Held-out work
Nearest same-family rule
57.01±3.35
50.04
Pair MLP
50.32±4.15
53.80±4.42
Target-node attention
54.32±3.51
56.85±3.53
Ours, single threshold
72.20±2.06
71.46±0.51
Ours
74.70±2.25
73.84±0.48
TABLE IX: Precedence-link prediction on HandSchA. Directed-edge micro-F1 (%), with the sample SD across the eight random splits and across two runs on the held-out work.
Task
Annotated symbols
Detected symbols
Syntax links (directed-edge F1)
85.70±0.37
80.79±0.41
Time groups (pair F1)
97.54±0.00
95.04±0.18
Precedence links (directed-edge F1)
73.84±0.48
71.38±0.64
TABLE X: End-to-end notation assembly on the held-out work. F1 (%) with annotated and with detected symbols, mean ± sample SD over two runs.
In this work, we introduce the Sheet Music Benchmark (SMB), a dataset of six hundred and eighty-five pages specifically designed to benchmark Optical Music Recognition (OMR) research. SMB encompasses a diverse array of musical textures, including monophony, pianoform, quartet, and others, all encoded in Common Western Modern Notation using the Humdrum **kern format. Alongside SMB, we introduce the OMR Normalized Edit Distance (OMR-NED), a new metric tailored explicitly for evaluating OMR performance. OMR-NED builds upon the widely-used Symbol Error Rate (SER), offering a fine-grained and detailed error analysis that covers individual musical elements such as note heads, beams, pitches, accidentals, and other critical notation features. The resulting numeric score provided by OMR-NED facilitates clear comparisons, enabling researchers and end-users alike to identify optimal OMR approaches. Our work thus addresses a long-standing gap in OMR evaluation, and we support our contributions with baseline experiments using standardized SMB dataset splits for training and assessing state-of-the-art methods.
Juan C. Martinez-Sevilla, Joan Cerveto-Serrano, Noelia Luna +4
Pattern Recognition and Artificial Intelligence Group, University of Alicante, Spain · Self-employed · Center for Computer Research in Music and Acoustics, Stanford University, USA +1
We propose a novel pipeline, Legato 2, for extracting symbolic notation and semantic knowledge from images of sheet music. Legato 2 features the first large-scale neural model for optical music recognition (OMR) to operate sequentially on a system-by-system basis, following the horizontal lines of notation as they are read on the page, rather than treating the page as an undifferentiated image, enabling better scaling to arbitrarily long inputs. It is also the first OMR model capable of generating symbolic transcriptions that include embedded textual content, such as titles and annotations. The pipeline combines system-level segmentation with an autoregressive vision-LM to capture both local notation details and score structure. Across multiple datasets, Legato 2 consistently outperforms prior state of the art. We also show that symbolic transcriptions complement visual inputs for frontier language models, improving their interpretation of dense musical documents. Legato 2 establishes new state-of-the-art performance in both OMR and downstream sheet music understanding.
Guang Yang, Brian Siyuan Zheng, Victoria Ebert +1
Paul G. Allen School of Computer Science & Engineering, University of Washington · Allen Institute for AI
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. This forces models to rely on either few-shot transfer or synthetic training pipelines that remain overly simplistic. A secondary challenge is encoding non-uniqueness: in the popular Humdrum **kern format for transcribing music, multiple different text encodings can render into the same visual sheet music. This one-to-many mapping creates a harder learning task and introduces high uncertainty during decoding. We propose Transcoda, an OMR system built on (i) an advanced synthetic data generation pipeline, (ii) a normalization of the **kern encoding to enforce a unique normal form and (iii) grammar-based decoding to ensure the syntactic correctness of the output. This approach allows us to train a compact 59M-parameter model in just 6 hours on a single GPU that outperforms billion-parameter baselines. Transcoda achieves the best score among state of the art baselines on a newly curated benchmark of synthetically rendered scores at 18.46% OMR-NED (compared to 43.91% for the next-best system, Legato) and reduces the error rate on historical Polish scans to 63.97% OMR-NED (down from 80.16% for SMT++).