Reconstructing an editable music score requires musical events, sung text and the instructions that organise them on the page. Existing recognition targets often omit part of this information, while direct MusicXML prediction repeats substantial structural markup. We introduce Cecilia, a compact representation of canonicalised MusicXML that retains musical content, lyric attachments and layout instructions. Cecilia-OMR predicts this representation through metadata and measure-bounded music segments from shared visual memory. A learned count head determines the number of output segments. Across paired complete scores under a common tokeniser, the ratio of mean MusicXML to Cecilia sequence lengths is 27.73. Cecilia-OMR outperforms Legato 2 on Camera String Quartets and both Lieder conditions, with a four-condition OpenScore macro normalised edit distance of 0.2232 against 0.2998. Separate evaluations of lyrics, notation trees and rendered layout reveal complementary aspects of reconstruction and quantify the contribution of layout instructions. Training-stage, reward and candidate-selection studies further examine how recognition changes across model adaptation and decoding.
Figures & tables
Figure 1: Differences across three formats. (a) Layout. (b) Content. (c) Token lengths; μ and σ denote the mean and standard deviation of token counts.
Figure 2: Cecilia-OMR shares visual memory across structured output segments. (a) An encoder maps the input image to shared visual memory. Kind and segment embeddings condition the decoder, while a count head predicts segment counts. (b) Compact Cecilia notation reconstructs the retained MusicXML tree. (c) Music segments follow measure boundaries and independently predict boundary states, reusing visual memory with separate self-attention caches.
Figure 3: Score rendering makes layout differences visible. We present the rendered first-page inference results of three models. The corresponding OMR-NED scores are 0.0188, 0.4072, and 0.0682 for Cecilia-OMR, Legato 1, and GPT-6 Astra (XML), respectively. Cecilia-OMR adopts a two-stage training strategy consisting of SFT followed by GRPO.
Model
Rendered
Camera
Handwritten
String Quartets
Lieder
Lieder with lyrics
String Quartets
Lieder
Lieder with lyrics
CVC-MUSCIMA
N=252
N=64
N=64
N=252
N=64
N=64
N=100
GPT-6 Astra
0.4468
0.3195
0.4486
0.4352
0.3548
0.4752
0.4061
GPT-6 Astra (XML)
0.4131
0.3233
0.2430
0.4650
0.3698
0.2745
0.3297
Claude Fable 5.1
0.8210
0.7666
0.6543
0.8453
0.8195
0.6983
0.7991
Gemini 4 Argon
0.7265
0.6176
0.5613
0.7039
0.6238
0.5808
0.5512
Table 1: Recognition OMR-NED across seven fixed subsets. String Quartets, Lieder and Lieder with lyrics are OpenScore subsets. OMR-NED is a lower-is-better ratio. Bold marks the best score. A dash denotes an unavailable result. Cecilia-OMR uses SFT followed by GRPO.
Figure 4: Recognition and layout measure complementary aspects of score reconstruction. RQ: Rendered OpenScore String Quartets; CQ: Camera OpenScore String Quartets; RL: Rendered OpenScore Lieder; CL: Camera OpenScore Lieder; RL+L and CL+L: the corresponding conditions with lyrics; CVC: CVC-MUSCIMA. CER, SER, LER and TEDn are percentages. Arrows indicate the preferred direction. Layout metrics compare Cecilia-OMR after SFT and GRPO with direct MusicXML prediction by GPT-6 Astra.
Evaluation
Unconstrained
XML selection
OpenScore
0.2591
0.2232
Lieder with lyrics
0.3432
0.2455
CVC-MUSCIMA
0.5651
0.5257
Table 2: OMR-NED for two decoding strategies. OpenScore averages four domain ratios; Lieder with lyrics averages two; CVC-MUSCIMA uses one corpus ratio.
Metric
Predicted layout
Automatic layout
System-break F1 ↑
0.6917
0.2063
Page-break F1 ↑
0.5417
0.6667
Measure IoU ↑
0.2734
0.1319
Staff IoU ↑
0.0802
0.1043
Text IoU ↑
0.0263
0.0120
Measure NPE ↓
0.3210
0.3641
Table 3: Layout ablation on 48 pages with identical predicted music and lyrics. Only layout instructions differ.
Figure 5: Training stages improve aggregate recognition in Cecilia-OMR. Macro OMR-NED across Base, SFT and GRPO, averaging the four OpenScore benchmark conditions or the two Lieder conditions with lyrics.
Subset
SFT
Original
Lyric
Format
Rendered Quartets
0.2418
0.2401
0.2657
0.2596
Camera Quartets
0.2753
0.2533
0.3255
0.3089
Rendered Lieder
0.3008
0.0841
0.2705
0.1263
Camera Lieder
0.2643
0.2600
0.3909
0.3412
Rendered Lieder + lyrics
0.1829
0.1880
0.1195
0.1301
Camera Lieder + lyrics
0.1871
0.2701
0.1434
0.1524
Table 4: Subset OMR-NED on eight pages per condition. SFT is the common initial model; Original, Lyric and Format use the respective reward designs. Bold marks the best score.
T
N=1
N=2
N=4
0.3
0.3212 / 0.3623
0.3133 / 0.2376
0.2822 / 0.2892
0.7
0.3405 / 0.4084
0.3220 / 0.3771
0.2696 / 0.2620
1.0
0.5406 / 0.7232
0.4263 / 0.7046
0.4281 / 0.5656
Table 5: Macro OMR-NED on 48 pages: OpenScore / lyric-preserving. Nested candidates pair metadata and music by seed; selection uses native validity and mean model log probability, with references used only for scoring.
Format
Mean
Std. dev.
Median
ABC
11,175.86
20,413.60
5,626.5
Cecilia
12,702.02
30,126.33
4,702.0
MusicXML
352,228.32
681,560.15
156,222.0
Table S1 : Token lengths for 1,000 paired complete scores under one fixed tokeniser. The statistics describe representation length under the common tokeniser.
Component
Configuration
Input
RGB, padded 1024×1024
Vision encoder
12 blocks, width 768, patch 16
Memory per image
4096×2048
Patch projector
768→2048→2048
Decoder
28 blocks, width 2048
Attention
16 heads, head width 128
Table S2 : The active Cecilia-OMR architecture.
Condition
N
Cecilia-OMR
GPT-6 Astra (XML)
Invalid
ABC-only
Invalid
ABC-only
Rendered OpenScore String Quartets
252
11
0
52
0
Camera OpenScore String Quartets
252
22
0
56
0
Rendered OpenScore Lieder
64
5
1
5
2
Camera OpenScore Lieder
64
6
0
5
1
Rendered OpenScore Lieder with lyrics
64
7
0
6
0
Table S3 : Failure counts for notation and ABC-based text evaluation. Invalid denotes an unusable XML prediction under the notation evaluator. ABC-only denotes an additional model-structure failure in XML-to-ABC conversion whose notation score remains available. Counts record which predictions each metric can evaluate. All failure pages remain in the fixed evaluation sets.
Metric
Model
Rendered
Camera
Handwritten
String Quartets
Lieder
Lieder with lyrics
String Quartets
Lieder
Lieder with lyrics
CVC-MUSCIMA
N=252
N=64
N=64
N=252
N=64
N=64
N=100
CER (%) ↓
Cecilia-OMR
41.71
38.08
41.16
41.72
57.71
51.91
40.53
GPT-6 Astra
35.86
44.58
55.76
38.89
46.37
55.25
31.21
GPT-6 Astra (XML)
54.53
61.30
50.90
59.23
65.18
53.49
41.59
Claude Fable 5.1
57.33
60.59
57.04
59.70
62.18
58.27
52.07
Table S4 : Complete numerical recognition results corresponding to the main paper's metric figure. Every value retains the fixed domain size. CER, SER and LER aggregate edits and reference units across the domain; TEDn averages complete-page normalised tree distances. Values above 100% remain unclipped. String Quartets, Lieder and Lieder with lyrics are OpenScore subsets. Cecilia-OMR uses the selected GRPO model.
Metric
Model
Rendered
Camera
Handwritten
String Quartets
Lieder
Lieder with lyrics
String Quartets
Lieder
Lieder with lyrics
CVC-MUSCIMA
N=252
N=64
N=64
N=252
N=64
N=64
N=100
System-break F1 ↑
Cecilia-OMR
0.6829
0.7311
0.6989
0.6513
0.4324
0.4140
0.4231
GPT-6 Astra (XML)
0.4404
0.4832
0.6240
0.4445
0.4681
0.6159
0.4258
Page-break F1 ↑
Cecilia-OMR
0.6534
0.7656
0.5729
0.1039
0.7344
0.3125
0.9700
GPT-6 Astra (XML)
0.0913
0.6406
0.4062
0.0483
0.7031
0.3906
0.8400
Table S5 : Final-layout geometry results. The same reference and prediction XML pairs enter the system-break, page-break, overlap and normalised position measurements. Empty outputs retain their prescribed penalties. These values compare final rendered layouts, not registration to the photographed or handwritten input. String Quartets, Lieder and Lieder with lyrics are OpenScore subsets. Cecilia-OMR uses the selected GRPO model.
OpenScore benchmarks
Lieder with lyrics
Stage
Rendered
Camera
Rendered
Camera
Rendered
Camera
Quartets
Quartets
Lieder
Lieder
Base
.3615
.5569
.1308
.4201
.2478
.5634
SFT
.2372
.2359
.2187
.2336
.2383
.2732
GRPO
.2513
.2307
.1839
.2270
.2048
.2862
Table S6: Domain-level OMR-NED for the training-stage comparison in Figure 5 . Each Quartets condition contains 252 pages; each Lieder condition contains 64.
Reward
Rendered (%)
Camera (%)
Lyric
12.2795
95.1220
Format
11.7368
99.1516
Table S7: Lyric-text CER for the new GRPO reward variants. Each score pools eight pages; lower is better.
OMR-NED ↓
Lyric CER (%) ↓
T
N
RQ
CQ
RL
CL
RL+L
CL+L
Rendered
Camera
0.3
1
0.3273
0.3881
0.1448
0.4248
0.2812
0.4434
46.68
72.96
0.3
2
0.3627
0.2999
0.1244
0.4662
0.2353
0.2400
39.82
68.61
0.3
4
0.3486
0.2342
0.1184
0.4277
0.2920
0.2863
44.64
71.05
0.7
1
0.3409
0.3580
0.2522
0.4111
0.3910
0.4259
48.91
65.64
0.7
2
0.3166
0.2763
0.1299
0.5651
0.4765
0.2777
52.65
75.50
Table S8: Sampling temperature and nested candidate-count results. Every domain contains the same eight target pages at all settings. RQ/CQ denote rendered/camera Quartets, RL/CL denote rendered/camera Lieder, and +L retains the vocal staff and lyrics. OMR-NED pools notation counts within each domain; lyric CER pools character counts. Candidate selection uses native XML validity and model probabilities, with references used only for evaluation.