SMUG-Explain: A Framework for Symbolic Music Graph Explanations
Emmanouil Karystinaios, Francesco Foscarin, Gerhard Widmer
TL;DR
SMUG-Explain tackles the interpretability challenge of graph neural networks operating on musical scores by producing post-hoc explanations anchored in the score itself. The framework constructs a heterogeneous score graph and uses gradient-based explainers (notably Integrated Gradients) to produce subgraph and feature-importance explanations, visualized in an interactive Verovio-based interface. It applies the approach to a cadence-detection model trained on a large multi-corpus dataset and demonstrates qualitative analyses on Mozart, Bach, and Chopin excerpts, while quantifying explanations with a characterization score. The work highlights that musically meaningful explanations can relate to voice-leading and tonal context and points toward future musicologically trustworthy, user-friendly tools.
Abstract
In this work, we present Score MUsic Graph (SMUG)-Explain, a framework for generating and visualizing explanations of graph neural networks applied to arbitrary prediction tasks on musical scores. Our system allows the user to visualize the contribution of input notes (and note features) to the network output, directly in the context of the musical score. We provide an interactive interface based on the music notation engraving library Verovio. We showcase the usage of SMUG-Explain on the task of cadence detection in classical music. All code is available on https://github.com/manoskary/SMUG-Explain.
