BMdataset: A Musicologically Curated LilyPond Dataset
Not on the map. Why?
Abstract (arXiv)
Symbolic music research has relied almost exclusively on MIDI-based datasets; text-based engraving formats such as LilyPond remain unexplored for music understanding. We present BMdataset, a musicologically curated dataset of 393 LilyPond scores (2,646 movements) transcribed by experts directly from original Baroque manuscripts, with metadata covering composer, musical form, instrumentation, and sectional attributes. Building on this resource, we introduce LilyBERT (weights can be found at https://huggingface.co/csc-unipd/lilybert), a CodeBERT-based encoder adapted to symbolic music through vocabulary extension with 115 LilyPond-specific tokens and masked language model pre-training. Linear probing on the out-of-domain Mutopia corpus shows that, despite its modest size (~90M tokens), fine-tuning on BMdataset alone outperforms continuous pre-training on the full PDMX corpus (~15B tokens) for both composer and style classification, demonstrating that small, expertly curated datasets can be more effective than large, noisy corpora for music understanding. Combining broad pre-training with domain-specific fine-tuning yields the best results overall (84.3% composer accuracy), confirming that the two data regimes are complementary. We release the dataset, tokenizer, and model to establish a baseline for representation learning on LilyPond.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 13 of its 21 references that are in the map. First posted on arXiv 12 Apr 2026.
Builds on
13 of 21 references.
References · 13
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2018Enabling Factorized Piano Music Modeling and Generation with the MAESTRO Datasetcited by 217
- 2021MusicBERT: Symbolic Music Understanding with Large-Scale Pre-Trainingcited by 89
- 2020POP909: A Pop-song Dataset for Music Arrangement Generationcited by 83
- 2024Getting the most out of your tokenizer for pre-training and domain adaptationcited by 66
- 2025NotaGen: Advancing Musicality in Symbolic Music Generation with Large Language Model Training Paradigmscited by 30
- 2022Multitrack Music Transformercited by 28
- 2023TunesFormer: Forming Irish Tunes with Control Codes by Bar Patchingcited by 20
- 2023Byte Pair Encoding for Symbolic Musiccited by 19
- 2024PDMX: A Large-Scale Public Domain MusicXML Dataset for Symbolic Music Processingcited by 15
Built on by
Citing papers per year: 2026: 1.
1 paper.