SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.08722 · 2026

Can LLMs understand LilyPond? A benchmark for symbolic music generation and understanding

Matteo Spanio, Antonio Rodà, Mohammad Torabi, Andrea Poltronieri

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 3 functions out of this paper's own repositories and ran 1 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
CSCPadova/lilybench — 1 of 3
FunctionStatusWhere it lives
UnderstandingRecord Ran CSCPadova/lilybench/lilybench/understanding/base.py
code served (permissive licence) · get_code("cc9a339fbcd5aa73")
CorpusEntry Not yet run CSCPadova/lilybench/lilybench/understanding/base.py
code served (permissive licence) · get_code("0b6ce7875f6c9870")
UnderstandingTask Not yet run CSCPadova/lilybench/lilybench/understanding/base.py
code served (permissive licence) · get_code("a434b75e7cb3dfa4")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Symbolic music evaluation for large language models remains fragmented across representations, datasets, and metrics. We introduce LilyBench, a LilyPond-based benchmark that jointly evaluates symbolic music generation and music understanding on the same family of open-weight LLMs. The benchmark includes a 200-prompt generation suite and ten understanding tasks adapted from ABC-Eval, covering syntax, metadata prediction, structural sequencing, and music recognition. Generation quality is evaluated using compile rate, MusPy descriptor distributions via Jensen-Shannon similarity, and LilyBERT-based Fréchet Music Distance (FMD). Experiments on four open-weight models show that executable LilyPond generation is achievable in zero-shot settings, while structural understanding tasks remain challenging despite strong performance on composer and genre recognition. Our experiments also reveal systematic disagreements between descriptor-based and embedding-based metrics, suggesting that symbolic music evaluation benefits from metric triangulation rather than single-score ranking. We release the benchmark, prompt bank, and evaluation code to support future research in symbolic music generation and understanding at https://github.com/CSCPadova/lilybench.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2606.08722")
get_code_for_paper("2606.08722")
have("2606.08722")

Connect an agent — have() is free.