P5-1: Does Notation Matter? MusicXML Tokenisation for Symbolic Music Generation and Understanding
Andrea Poltronieri, Matteo Spanio, Simone Chieppa, Xavier Serra, Martín Rocamora
Subjects: Representation learning ; Open Review ; Representations of music ; Musical features and properties ; MIR data fundamentals ; Symbolic music processing
Presented Remote
Symbolic music representations encode musical content at varying levels of completeness, from performance-oriented formats such as MIDI to fully notated scores such as MusicXML. Yet the impact of this representational richness on deep learning models remains poorly understood. While tokenisation has been extensively studied for MIDI, score-based formats have received considerably less attention, and MusicXML in particular remains largely unexplored despite being the de-facto standard for score interchange. In this paper, we introduce the first general-purpose tokenisation framework for MusicXML, and conduct a systematic empirical study to determine whether notational richness confers a measurable advantage for deep learning on symbolic music. We train 26 autoregressive and masked language models, comparing MusicXML tokenisation against MIDI and ABC-based representations, probing the effect of different tokenisation strategies within MusicXML, and testing whether music-grammar-aware tokenisation outperforms treating scores as plain text. We evaluate music understanding tasks using linear probing across composer classification, difficulty estimation, and accompaniment suggestion, and generative tasks using objective statistical metrics and a human pairwise preference study. Our results show that MusicXML-tokenised models outperform MIDI and text-based counterparts on understanding and generative tasks.
Q18. Write ONE line (in your own words) with the main take-home message from the paper.
The paper explores tokenization strategies based on XML scores, improving results compared to classical tokenization methods for MIDI and abc formats on generation and understanding tasks.
Q23. Main review and comments for the authors (to be completed before the discussion phase). Please summarize strengths and weaknesses of the paper. It is essential that you justify the reason for the overall evaluation score in detail. Keep in mind that belittling or sarcastic comments are not appropriate.
The paper explores tokenization strategies based on XML-scores.
The paper is interesting and generally well written. A few points would need to be clarified:
- Paragraph 3.1 mentions that REMI+ is also applied to XML-score content, but it is not the case for REMI+ according to paragraph 3.3 and Table 2 (I'm not sure I would see the point of using REMI+ and octuple tokenization on XML files, since it looses all the information not present in the MIDI...?)
- The adaptation of Octuple for XML scores is not clear.
Scholarly/scientific quality The paper's methodology is well described and adapted to the question at hand. The tasks chosen to study xml tokenization are relevant, and the evaluation is quite solid.
However it is difficult to see which XML properties add advantages since no clue about the occurrence of dynamics, pedal markings etc... in the files of the chosen datasets. It would be good to have statistics on the actual occurrences of these specificities compared to poor midi or abc formats. (even while the ablation study confirms that there is additionnal content that seem to have importance in the XML files). I encourage the authors to add something to give more insight about the specific characteristics of the MXL content that has impact on the results, which is likely not to be homogeneous among datasets and subgenres.
Reproducibility: The authors mention that all the code will be available if the paper is accepted. Although not fully available, the datasets used are accessible (partly on demand).
Q25. Meta-review and final comments for authors (to be completed after the discussion phase)
All reviewers agree that the paper should be accepted, underlying the novelty of the proposed tokenization strategy and the importance of this work. Congratulations to the authors for their nice work.
However, some points of clarification were requested, as well as suggestions for improvement, including:
- positionning the article in relation to missing relevant references linked to the subject (R1, R3)
- mentioning the limitations of the work, and putting in perspective the impact of the format relatively to the dataset's musical properties (R1, R3, MR)
- clarification of several points (R2)
We strongly recommend the authors to consider all reviewers' comments to further improve their paper and increase its impact on the community.
Q18. Write ONE line (in your own words) with the main take-home message from the paper.
There is some evidence that enriched music representations can be better exploited than simple MIDI using properly engineered tokenisation schemes and sufficiently large models.
Q23. Main review and comments for the authors. Please summarize strengths and weaknesses of the paper. It is essential that you justify the reason for the overall evaluation score in detail. Keep in mind that belittling or sarcastic comments are not appropriate.
Overall, the paper faces an important point that is generally under-study in the community. However, it gives strong statements that are not fully supported by the analysis.
The main weaknesses are:
- ABC format is tokenized using a standard text tokenizer, which seems definetely uncomparable with the carefully designed MusicXML tokenizer
- The authors studied some axes, but not all the possible axes, e.g. datasets, genres, semiological habits (e.g. '600 music versus '900), model size, architecture type (only LLM tested)
- No statistical tests and small subjective evaluation
I'm not saying that the authors should have accomplished all of the above, but at least they should highlight the limits of the study and keep their statements low. Basically, this is a further evidence that MusicXML can be better exploited, but it's not clear if:
- other model architectures can do better with MIDI
- what is the price of the efficacy improvement in term of computational efficiency
- how the MusicXML tokenization effect is distributed across composers, and music styles
- if it holds when compared to other SOTA models, e.g. ARIA,
- ...
Aside from this, I note that table 1 mixes file formats and tokenizers. Moreover, authors used accuracy, but balanced accuracy would have been preferable. Also, authors used kern scores for composer classification. As reported by [1], many authors used the same dataset for composer classification. They could then do some comparison with other models out-of-the-box.
[1] F. Simonetta, “Style-based composer identification and attribution of symbolic music scores: a systematic survey,” Trans. Int. Soc. Music Inf. Retr., vol. 8, no. 1, Jul. 2025, doi: 10.5334/tismir.240.
Q18. Write ONE line (in your own words) with the main take-home message from the paper.
A dedicated MusicXML tokenizer is necessary to perform MIR tasks on XML-based musical scores.
Q23. Main review and comments for the authors. Please summarize strengths and weaknesses of the paper. It is essential that you justify the reason for the overall evaluation score in detail. Keep in mind that belittling or sarcastic comments are not appropriate.
Summary: This paper introduces a tokenizer for music in MusicXML form, similar to the popular MidiTok library (which is used for music in MIDI form), and carries out a reasonably comprehensive evaluation suite. Evaluation considers a MusicXML corpus and considers various ways to tokenize the corpus, including first converting the corpus to MIDI or abc notation and using existing tokenization schemes in these regimes. These tokenizations are used to train transformer models which are evaluated on various MIR tasks. The paper finds that using the MusicXML tokenizer creates models that are on par with or which outperform models trained with other tokenization schemes. In my view, the primary contribution is the tokenizer itself, and the evaluation was carried out well, providing a strong secondary contribution that justifies the value of the first. Therefore, my recommendation is strong acceptance.
Specific comments are below:
lines 46--50: "MIDI...exhibit several limitations from a notational standpoint: time is represented as absolute ticks rather than musical units such as beats and measures" - While this is true, I think it is a little unfair to describe this as a limitation of MIDI, as MIDI always has an underlying grid and has the capability to express time signatures. The notes in many of the MIDI files one can find on the internet are quantized to the underlying grid (e.g., at a 16th or 32nd note resolution), providing a straightforward conversion to beats and measures. Said another way, MIDI has the capability to represent time in terms of musical events such as beats and measures, but is not required to do so. In fact, REMI MIDI encoding explicitly uses beats and measures.
lines 54--56: "expressive markings such as dynamics and articulations are either absent or reduced to coarse velocity approximations" - MIDI also supports CC curves for dynamics.
line 132: "at the cost of requiring multiple output heads during training" - in their use of it yes, but not necessarily in general.
line 229: "Unlike MIDI, MxlTok supports microtonal pitch alterations, enabling application to non-Western music traditions." - Technically, MIDI supports fairly high-precision pitch bends, which can be used for microtonal alterations (in combination with MPE for polyphonic microtonal parts). However, this is clunky, and MIDI pitch bend range is not defined in the MIDI spec, so microtonal encodings often rely on the convention of taking this range to be +/- 2 semitones. Perhaps you can just say that MxlTok directly supports microtonal pitch alterations.
line 242 "In Measure-First (MF) serialisation" - are the parts within the measure sequential or interleaved? For example, in measure 1, if we have parts p1 and p2, are all events for part p1 written before all events for p2, or are the events for parts p1 and p2 written in the order they appear temporally within the measure? There are use cases for both, so I would hope this library supports both options.
Section 3.2: Please mention the version of PDMX used, as the dataset has gone through several revisions since it was released.
Section 3.3: "Both Octuple variants are likewise excluded from generative evaluation, as it has been shown to be underperforming on autoregressive generation [12]" - I am okay with this, although it would have been nice to at least do the objective generative evaluation on these variants.
lines 357-360: This ablation study is one of the more interesting parts of the paper to me. As a reader, I would really like to know whether the conclusion of this ablation (that there is useful information in MusicXML that is lost upon conversion to MIDI) also holds for the other tasks (difficulty estimation and accompaniment suggestion). I could see it being the case that how the composer notates that certain parts be played being a bit of a tell for the composer's identity that the MxlTok models learn to exploit, and might not be as useful for other tasks.
lines 329-332: I would like some more details on the training. 4xA100 GPU's is extreme overkill for training these models, and I would like to know more about the optimizer used, batch size, etc. Also, is early stopping based on validation loss or some other metric? If so, what is the train/validation split size? I suppose this information would be in the released code, but it would be good to have in the paper too.
line 419: "sampled continuation per model" -> "sampled continuations per model"
lines 465--466: "Octuple underperforms relative to other tokenisers, contrary to [12]," - I think you might have meant to cite [22] instead of [12] here. In [12], Octuple only outperformed in terms of notes/sec (not relevant here) and in genre and artist classification. In [22], Octuple outperformed other encodings on other tasks; however this is (IMO) likely due to the very small maximum sequence length they studied in their ablation.
I appreciate that the paper ablates on the measure-first versus part-first token ordering strategies. I don't believe I've seen this studied elsewhere.
I think the ethics statement should be softened. While I appreciate the attempt to respect copyright in the training of these models, a glance at the metadata in PDMX reveals that a substantial portion of the dataset is in fact, unfortunately, copyrighted. (Just because someone uploads a score and tags it as CC0, doesn't necessarily mean that the music in the score is CC0.) There isn't much that the authors of this paper can do about this at this point, but it's worth mentioning.
Q18. Write ONE line (in your own words) with the main take-home message from the paper.
This work introduces a novel tokenization strategy for MusicXML and shows that it can outperform classical MIDI-based or ABC-based tokenization strategies on generative and analysis downstream tasks.
Q23. Main review and comments for the authors. Please summarize strengths and weaknesses of the paper. It is essential that you justify the reason for the overall evaluation score in detail. Keep in mind that belittling or sarcastic comments are not appropriate.
Strengths
- Novelty of the proposed tokenization strategy: despite MusicXML being one of the most widely used formats for representing sheet music, to the best of my knowledge, this paper is the first to propose a dedicated tokenization strategy for it. It is particularly notable that the authors construct a new vocabulary specifically designed for this tokenization approach, rather than relying on off-the-shelf LLMs and treating MusicXML as raw text. This design choice is extremely valuable as it provides a more structured and musically informed approach to representation.
- Comprehensive benchmark of tokenization strategies on downstream tasks: I congratulate the authors for the high quality of the evaluation section, from which three aspects stand out:
- Choice of the baseline tokenization strategies: the paper provides a relevant comparison of MxlTok with ABC, REMI+, and Octuple, which represent the main classes of MIDI-derived tokenization strategies for symbolic music generation (e.g., refered to as “elementary” and “composite” tokens [Le et al., 2025, https://doi.org/10.1145/3714457]), together with recent developments in the MIR community such as BPE-based approaches.
- Choice of the downstream tasks: the authors consider a wide range of tasks that cover most standard MIR applications, from analytical tasks (composer recognition, difficulty estimation) to generative tasks, as well as question-answering tasks (e.g., accompaniment suggestion). While more challenging, an additional task such as Roman numeral analysis formulated as token classification would have been a valuable complement, analogous to how NLP benchmarks typically include Sequence Classification, Token Classification, and Question Answering tasks.
- Comparison of different versions of the proposed MxlTok strategy: the comparison between partwise and timewise tokenization schemes, as well as the ablation study involving a MusicXML-treated-as-MIDI variant, is particularly relevant and further highlights the thoroughness of the proposed approach.
Weaknesses
- Limited discussion on the "practical" aspects of using such tokenization: while the tokenization strategy demonstrates improved performance over classical approaches on downstream tasks, the paper does not report practical metrics such as generation speed or sequence length. These factors may be significantly higher than those of baseline methods.
- No evaluation of the sheet music quality: since MusicXML is originally designed as a representation format for sheet music rather than music content itself, it is striking that the paper does not evaluate how the proposed tokenization affects the quality of generated sheet music. In particular, one might expect improvements in aspects such as rhythm quantization or enharmonic spelling compared to MIDI-based tokenizations. This could also have been contrasted with sheet music generated by SOTA ABC notation models (e.g., Notagen [Wang et al., 2025, https://doi.org/10.24963/ijcai.2025/1134]). Such an evaluation would have strengthened the paper’s contribution toward human-centered music generation and practical usability for musicians.
The following changes to the paper were made:
-
Related work (R1, MR). Added three references on comparing symbolic representations (Simonetta et al. 2023; Zhang et al. 2023; Simonetta 2025) and a passage in Sec. 2 positioning our study against them.
-
Corpus characterisation (MR, R1). Sec. 3.2 now reports how often notational features occur in the training corpus. Full per-corpus statistics are released on the GitHub repository for the project.
-
MIDI capabilities (R2). The introduction now distinguishes notational categories recoverable from MIDI (metrical position via quantisation; dynamics via velocity and controllers) from those lost entirely (enharmonic spelling, score hierarchy). We qualified the claim about Octuple's output heads as applying to its original formulation, and state that MxlTok supports microtonal alterations directly rather than contrasting with MIDI.
-
Scope of claims (R1). Moderated absolute statements in the abstract and conclusions, and corrected the discussion of BPE vocabulary size in Sec. 5.2.
-
Ethics (R2). Removed the claim that no copyrighted material is involved, noting that PDMX licences are self-declared and apply to the encoding rather than the underlying composition.
-
Minor. Specified the PDMX version (v5), corrected the Octuple citation in Sec. 5.1, and fixed typographical errors.