GraphMuse: A Library for Symbolic Music Graph Processing
Emmanouil Karystinaios, Gerhard Widmer
TL;DR
GraphMuse addresses the lack of a standardized framework for symbolic music processing by providing a Python library to construct musical score graphs, apply musically informed neighbor sampling, and support hierarchical modeling. It introduces heterogeneous attributed score graphs and a family of GNNs (NoteGNN, BeatGNN, MeasureGNN, MetricalGNN, HybridGNN) to extract rich node embeddings, improving performance on pitch spelling and cadence detection. Results show significant gains over prior methods, with A-Pitch reaching up to 95.6% and cadence macro-F1 up to 58.6%, demonstrating the value of hierarchical elements and hybrid modeling. By standardizing graph-based symbolic music analysis and offering open-source tooling, GraphMuse aims to accelerate reproducibility and progress in graph-driven music research.
Abstract
Graph Neural Networks (GNNs) have recently gained traction in symbolic music tasks, yet a lack of a unified framework impedes progress. Addressing this gap, we present GraphMuse, a graph processing framework and library that facilitates efficient music graph processing and GNN training for symbolic music tasks. Central to our contribution is a new neighbor sampling technique specifically targeted toward meaningful behavior in musical scores. Additionally, GraphMuse integrates hierarchical modeling elements that augment the expressivity and capabilities of graph networks for musical tasks. Experiments with two specific musical prediction tasks -- pitch spelling and cadence detection -- demonstrate significant performance improvement over previous methods. Our hope is that GraphMuse will lead to a boost in, and standardization of, symbolic music processing based on graph representations. The library is available at https://github.com/manoskary/graphmuse
