arXiv:2611.01843cs.SDNov 2026

Manuscript Offprint

arXiv:2611.01843

MEX: The Musical Expectation Benchmark Suite

Mathias Rose Bjare, Augustin Bouquillard, Giorgia Cantisani, Seung-Goo Kim, Stefan Lattner, Gerhard Widmer

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

We propose the Musical Expectation (MEX) benchmark suite for perceptually validating computational models of musical expectation, i.e., models that estimate music information dynamics (MID) measures of perceived musical expectations, such as surprisal or uncertainty from symbolic music or musical audio. MEX collects and extends tasks for evaluating such models previously proposed in music information retrieval and cognitive sciences using standard datasets, and evaluates whether: (1) proposed MID measures decrease with repetition due to in-context learning of the computational model, (2) peaks in such measures align with boundaries of music segments, (3) pitch surprisal and uncertainty estimated from audio are consistent with those modeled in event-based symbolic music, (4) proposed MID measures can predict electrophysiological responses to music. We stress that this benchmark suite does not provide an exhaustive computational characterization of music expectation. Rather, we envision this as an active, interdisciplinary initiative, with benchmarks evolving as our understanding of the underlying perceptual processes deepens. We provide open-access code¹ to estimate surprisal and uncertainty from audio using baseline models, run the tasks on standard datasets, and include utilities for running the tasks with users' own data.

1. INTRODUCTION

Computational models of music expectation aim to formalize how listeners form predictions about music continuations based on prior knowledge internalized over the course of their lives, as well as on immediate contextual information [1,2]. This capacity for anticipation is thought to be central to the musical experience, underlying the sense of tension and release, memory and emotional responses,

as well as reward-related pleasure [1,3–5]. Early accounts of musical expectations relied on music-theoretic rules explicitly encoding Western tonality principles (e.g., [6–9]). Yet, Tillmann et al. [10] showed that knowledge of tonal structure could be implicitly learned by a connectionist model through neural self-organization from mere exposure to tone sequences. This shift towards implicit learning naturally motivated information-theoretic approaches, originally proposed by Meyer [11], in which expectations are formalized as music information dynamics (MID) derived from a statistical model's distribution over possible continuations. Examples include surprisal, the negative log-likelihood of the continuation, and entropy, which quantifies prediction uncertainty given a musical context.

Markovian models such as IDyOM [2] operationalize this framework by providing a principled way to learn statistical regularities from large corpora of symbolic music, helping establish these quantities as effective proxies for human expectation that can predict neural and behavioral responses to music [4, 5, 12–18]. IDyOM, however, can only process univariate sequences, such as melodies or chord progressions [19].

More recent deep learning approaches have shown promise in estimating note-pitch surprisal that can predict neural responses to melodies (e.g., MelodyRNN [20] and the Music Transformer [21]), yet their advantage over more interpretable nn-grams models like IDyOM remains unclear. Their main potential rather lies in the capacity to capture the high-dimensional dependencies inherent to polyphonic music (e.g., PolyRNN [22]), but their ability to predict human expectations remains largely untested. While the modeling described above relies on symbolic music, recent work has shown that it is possible to estimate musical expectations directly from sound, hence capturing all complex dimensions of polyphonic music at once, including acoustic aspects, offering a more ecologically valid account of the underlying perceptual mechanism [23–25].

Despite this progress, existing studies are fragmented across datasets, tasks, and evaluation criteria, hindering direct comparisons. In research on statistical modeling of musical sequences, proposed models are often evaluated solely on predictive performance on hold-out music data. Although useful for understanding information-theoretic limits on perceived musical expectation, such

¹ https://github.com/musicperceptmodeling/mex

© M. R. Bjare, A. Bouquillard, G. Cantisani, S.-G. Kim, S. Lattner, and G. Widmer. Licensed under a Creative Commons Attribution 4.0 International License (CC BY 4.0). Attribution: M. R. Bjare, A. Bouquillard, G. Cantisani, S.-G. Kim, S. Lattner, and G. Widmer, "MEX: The Musical Expectation Benchmark Suite", in Proc. of the 27th Int. Society for Music Information Retrieval Conf., Abu Dhabi, UAE, 2026.

evaluations alone do not tell how well model-derived expectations align with human expectations. On the other hand, cognitive studies on the neural and behavioral correlates of musical expectations often rely on a single model trained on a specific dataset, without considering alternatives that might better model the music data, potentially leading to erroneous inferences when MID measures are derived from less-calibrated or simplified models.

To facilitate standardized model evaluations, benchmarking suites have accelerated progress and reproducible research in other applications by standardizing tasks, data, and preprocessing [26, 27]. In natural language processing, [28] provides standardized benchmarks with shared tasks, evaluation protocols, and datasets that enable rigorous comparisons across models, with an interface accessible to both linguists and AI generalists. In music information retrieval (MIR), MIREX has established standardized evaluation protocols for tasks including melody extraction, beat tracking, and source separation, enabling systematic comparisons of algorithms over time [29]. Yet, validating musical expectation models requires expertise in cognitive theory and empirics, which may explain why such benchmarks have not been developed in the MIR field.

We propose a benchmark suite for computational models of musical expectation in audio — the Musical Expectation (MEX) Benchmark Suite — providing a common ground for facilitating interdisciplinary work. MEX is designed to be (i) perceptually-grounded, including validation on human data, (ii) reproducible, through publicly available code and data, (iii) modular, in that it can expand as our knowledge of the underlying cognitive mechanism alongside its computational modeling progresses.

The initial release includes extended versions of previously published tasks and evaluate the degree to which: (RE) repetition reduces MID measures [23], (SB) music segment boundaries align with peaks in MID measures [24], (SY) pitch surprisal and entropy modelled in audio are consistent with those modelled in event based symbolic music [24, 25], (NE) MID measures are neurally encoded in electrophysiological responses to music [23, 25]. We release MEX as a Python + Git package, with the hope of facilitating discussion and continuous development.

References (62)