Search papers, labs, and topics across Lattice.
This paper introduces LilyBench, a comprehensive benchmark designed to evaluate both symbolic music generation and understanding using large language models (LLMs) with a focus on the LilyPond format. The benchmark encompasses a 200-prompt generation suite and ten understanding tasks, assessing performance through various metrics including compile rate and Fr茅chet Music Distance. Results indicate that while zero-shot LilyPond generation is feasible, structural understanding tasks pose significant challenges, highlighting the need for metric triangulation in symbolic music evaluation.
Executable LilyPond generation is achievable in zero-shot settings, but structural understanding remains a significant hurdle for LLMs.
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