Manuscript Offprint
arXiv:2611.01843MEX: The Musical Expectation Benchmark Suite
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 -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.
Only a few studies, however, have conducted a systematic comparison across models with respect to perceptual validity. For instance, in [2, 37], variants of the same n-gram model underlying IDyOM are compared with respect to how well the estimated IC predicts behavioral data across a variety of tasks. Bjare et al. [31] compare aspects of in- and out-of-context learning for different model classes in terms of the dynamics and adaptation of the estimated IC. In [38], Temperley's rule-based model [9] is compared with IDyOM using a melodic cloze test, a behavioral task for quantitatively measuring note cloze probabilities [39]. In [22], the authors compare their proposed polyphonic symbolic model to that of [40] in terms of predicting brain responses to polyphonic piano, and to IDyOM for responses to monophonic music. In [24, 25], different waveform models are compared in terms of how well the estimated surprisal aligns with that estimated by a symbolic model (i.e., SY task), and how well it can predict neural responses (i.e., NE task).
However, the reproducibility and generalization of model comparisons in these studies are constrained by the use of tasks or datasets that are often highly specific or non-public. In this work, we address this limitation by collecting and standardizing diverse musical expectation data and tasks within a unified, publicly accessible benchmark suite.
3. BENCHMARKS
3.1 Benchmark Class
Each benchmark consists of a task and a dataset and can be executed given a one-dimensional, real-valued time series of constant frame rate derived from a music dataset. The task specifies how the time series, paired with task-specific metadata (e.g., segmentations, neural responses), are processed and aggregated to a task-specific score. In Section 4, all tasks are run in a zero-shot setting, meaning that the time series is predicted from audio alone and that no task-specific fine-tuning is performed a priori.
3.2 MID Measures and Baselines
Although any MID measure can be benchmarked, we report baseline results only for IC and entropy estimated by the openly available audio-based models from Bjare et al., namely GIVT [23] and DIF [25]. Both are autoregressive Transformer-based models [41] that estimate next-frame densities in sequences of autoencoder representations based on Music2Latent [42] at a frame rate of 11Hz. As such, each model calculates IC of a frame corresponding to an instantaneous surprise at time by . More generally, IC can be calculated for frame spans via the chain rule, corresponding to the surprise of the musical surface within that time span, by . Likewise, the timespan (differential) entropy corresponding to the uncertainty of the prediction can be calculated as an expectation of the IC: .
| Task | Metadata Type | Audio Dataset |
|---|---|---|
| RE | Segment annotations | SAL |
| SB | Segment annotations | SAL |
| SY | IDyOM IC and Entropy | SYN |
| NE | EEG | VOC |
Table 1. Tasks, metadata types, and audio datasets.
As a hybrid of uncertainty and surprisal, the pathwise conditional entropy is given by [43] , and describes the uncertainty in expectation while being exposed to a fixed context. In practice, an unbiased estimate of the differential entropy can be calculated using Monte Carlo samples, i.e., by sampling from the underlying generative model and averaging the samples' IC. In our experiments, we use pathwise conditional entropy, since it avoids error accumulation otherwise occurring in Monte Carlo sampling of frame span entropies [44].
3.3 Data
This section summarizes the datasets selected to standardize the benchmarks. Each contains audio alongside task-specific metadata (e.g., human annotations or neural responses) summarized in Table 1. Any other audio dataset in which audio is paired with metadata following the same structure could be added in the future.
For the IDyOM consistency task (SY), we extended the synthetic dataset (SYN) from [24] to include 200 Irish folk tunes from The Session dataset [45]. Each tune is synthesized at constant velocity with five SoundFont-based instruments—Pad 1 (new age), Synth Voice, Acoustic Guitar (nylon), Acoustic Grand Piano, and Trumpet—yielding 2000 examples in total. For each melody, we also compute IDyOM IC and entropy (see [31] for details). For the neural encoding task (NE), we use the dataset from [46] (VOC), which contains electroencephalography responses (EEG) to 18 vocal melodies selected from NHSS recordings [47]. For the segment-related tasks, such as repetition (RE) and segment-boundary (SB) detection, we use the SALAMI dataset (SAL) [48], which contains 1,310 multi-source audio recordings of different genres annotated by one or two human annotators. These annotations are hierarchical and include the levels “Lowercase”, “Uppercase”, and “Function”, representing local structure, global structure, and semantically labeled global structure, respectively. We publish audio and metadata of SYN and NE and metadata of SAL on https://huggingface.co/datasets/musicperceptmodeling/mex.
3.4 Tasks
3.4.1 Reduction in MID Measures with Repetition (RE)
Among human-produced signals, music strongly emphasizes repetitions at all time-scales: from rhythmic patterns spanning seconds, to larger sections within a musical piece, and even to repeated listening of the same piece [49]. Behavioral data show that repetitions not only play a role in our aesthetic appreciation of music [50], but, most interestingly, can also make a random tone sequence sound like music [51]. From a statistical learning perspective, repetitions have been shown to reduce uncertainty and refine predictions [14, 23, 52]. Hence, a computational model of music expectation is expected to properly internalize repetitions that naturally unfold within a given musical piece.
To quantify the effect of repetitions on MID measures, the RE task follows the approach of [23], and tests to what extent repetitions in music reduce MID measures as a result of in-context adaptation (learning) using SAL. Here, a repetition is defined as a pair of segment indices in which the second segment repeats the label of the most recent earlier segment with that same label. For example, a piece with the musical form A,A,B,A contains two repetitions, namely (1,2) and (2,4), both associated with the A segments. We then quantify the decrease in MID measures for a repetition as the difference between the average frame-wise values of the two corresponding segments. For IC and entropy as defined in Section 3.2, this corresponds to time-normalized surprisal and entropy of the segments. We collect these differences across all segment types and pieces, compute their mean , and test whether it is negative (one-tailed t-test). Because MID measures may lie on different scales across models and measures—e.g., due to differences in autoencoder representations, tokenization schemes, or the unbounded nature of IC—we standardize them beforehand.
Using this repetition definition, model in-context learning should reduce the MID measure on contiguous repetitions like (1,2), and noncontiguous repetitions like (2,4). This generally requires sensitivity to musical form. For example, the form A,A,B,A is common in pop and jazz music, and familiarity with such styles should help a model anticipate the return of segment A at index 4 after observing the music up to segment B at index 3. In addition to considering all repetitions (ALL), we consider (FI), which only considers the first occurrence of a repetition. For example, (1,2) is included in (FI), whereas (2,4) is not. We include this scenario to investigate cases where the MID decreases on the first repetition but does not necessarily decrease monotonically with subsequent repetitions.
3.4.2 Segment Boundary Alignment (SB)
Perception of segment boundaries has been linked to acoustic changes, like sudden timbre, register, or dynamic changes, that listeners use as cues to infer structural divisions or segmentation [53, 54]. Moreover, phrase closure has been shown to elicit robust boundary-related neural responses [55–57]. Accordingly, both salient surface changes at segment boundaries and violations of expected continuation or closure are plausible sites of increased expectation-related responses. Hence, the SB task tests whether large changes in the proposed MID measures extracted from audio coincide with segment boundaries, following the approach previously proposed in [24]. We conduct an experiment in which we perform novelty-based segmentation [58] by predicting SAL Lowercase, Upper-case, and Function segment boundaries using the most significant peaks extracted from MID measures considered as novelty functions. We report performance in terms of precision and recall for predictions that are accurate within ±1.0 seconds of the annotations. As music segmentations can be hierarchical, with potentially larger changes occurring at higher rather than lower levels, and since MID measures might exhibit differences in smoothness, scale, etc., we find -optimal parameters for the peak-picking algorithm at each hierarchy level and MID measure using 5-fold cross-validation. For this work, we use novelty functions constructed by smoothing MID measure novelty functions with Gaussian kernels with standard deviation frames, and differencing the smoothed series and use an off-the-shelf Röder peak picking algorithm [59] with standard parameters.
3.4.3 Pitch Surprisal and Uncertainty: IDyOM Consistency (SY)
Although symbolic representations are largely limited to musical dimensions that can be discretized within specific (Western) notational traditions, they remain central to the study of musical expectation. This is because they capture core musical abstractions—such as discrete pitch and timing—that are important to these traditions, have been thoroughly studied in music theory, and underpin a large body of perceptually validated findings. We therefore test whether audio-based models yield MID estimates consistent with those from symbolic models, i.e., the SY task. Strong agreement would suggest that many findings on musical expectation established in the symbolic domain may also generalize to audio-based models. Following [24], we examine whether the MID measures IC and entropy estimated from audio correlate with those estimated from the perceptually validated symbolic pitch-expectancy model IDyOM [30]. This task is conducted on the SYN dataset. For each context in the symbolic data, we extract the IDyOM MID measure and pair it with the same measure calculated with an audio-based model. To do so, we align the audio-based estimates to note events by locating the two audio frames pre/succeeding the note onset and averaging their MID values. We then evaluate their association using Spearman's rank correlation, since we expect the paired values to be related monotonically rather than linearly.
3.4.4 Neural Encodings of MID measures (NE)
Testing whether estimated MID measures predict behavioral and neural responses to natural music is crucial for linking computational models of music expectation to human perception, providing evidence that these models capture predictive principles underlying neural processing of musical structure [16]. To do so, NE relies on the multivariate Temporal Response Function (mTRF) framework [60] in which auditory processing hypotheses are framed as a model of how brain responses can be explained by continuous stimulus features, e.g., surprisal and uncertainty estimates, across multiple time lags, thereby also accounting for non-instantaneous interactions. Such an approach
is important, as we are probing neural processes that operate on the unfolding of musical structures over time in an ecologically valid scenario.
Similarly to [23,25], NE uses Ridge regression for modeling EEG responses to VOC audio as a linear combination of two predictors: (i) surprisal and entropy (IC and ), (ii) the acoustic envelope of the waveform (E, Hilbert transform's magnitude). Independent filters are estimated for each channel, participant, and model by solving a regularized linear regression with multiple time-lags [60]. We chose a large ms window to safely account for all non-instantaneous interactions.
For each participant, model performance is evaluated using leave-one-out cross-validation across trials, and, to ensure normality, quantified as the z-transformed Pearson correlation between the predicted and observed EEG signals at each electrode. Feature significance is assessed as the difference in predictive power, , between a full model and a reduced model excluding the tested feature. Performance metrics are computed for each subject and channel, enabling model benchmarking at both the average and channel-wise levels while always assessing significance across subjects. Additionally, we provide a function to select regions of interest (ROIs) based on the 10-20 system, enabling more targeted analyses. For instance, after inspecting spatial distributions via channel-wise performance topographic maps (e.g., Figure 2), one can examine global performance averaged over bilateral centrofrontal channels, known for reliable auditory responses [61,62].
Statistical analyses use one-tailed -tests or nonparametric Wilcoxon signed-rank tests, depending on the normality of the data, as assessed by the Shapiro-Wilk test. False discovery rate (FDR) is used to correct for multiple comparisons. Optionally, a reference random distribution can be computed to test whether the observed statistic (e.g., mean across subjects) deviates significantly from the null hypothesis of no association. The association is removed by randomly permuting stimulus-response pairs for the feature of interest times. This tests whether the performance improvement reflects a significant relationship between a feature and the responses, without introducing bias (e.g., by altering model complexity) [16].
In summary, NE produces a set of statistical and visual outputs for model benchmarking. Predictive enhancement () is returned at three spatial resolutions: channel-wise, globally averaged, and, eventually, ROI-averaged, together with the statistical significance. As a sanity check, the task reports channel-wise baseline -scores to assess basic envelope tracking. To support neurophysiological interpretation, NE generates a variety of visualizations, including bar plots of global performance, individual- and group-level scalp topographies masked by the significance of individual channels (significance threshold set at ), but also returns TRF weights for visual inspection. Finally, MID measures can be used to predict other stimulus-aligned time series beyond EEG —such as behavioral data—, thereby testing whether incorporating them significantly improves prediction accuracy.
| l | Function | Uppercase | Lowercase | ||||
|---|---|---|---|---|---|---|---|
| ALL | FI | ALL | FI | ALL | FI | ||
| GIVT | - | -.048 | -.082 | -.054 | -.053 | -.030 | -.076 |
| IC | .0 | -.019 | -.066 | -.031 | -.048 | -.019 | -.079 |
| .3 | -.021 | -.085 | -.033 | -.068 | -.021 | -.106 | |
| .5 | -.004 | -.074 | -.013 | -.048 | -.015 | -.111 | |
| GIVT | - | -.051 | -.077 | -.061 | -.052 | -.032 | -.068 |
| ℋ | .0 | -.011 | -.074 | -.028 | -.058 | -.018 | -.091 |
| .3 | -.011 | -.100 | -.024 | -.078 | -.018 | -.120 | |
| .5 | -.014 | -.116 | -.025 | -.093 | -.019 | -.134 | |
Table 2. Baseline performances on RE showing the average decrease in MID measures with repetition.
4. EXPERIMENTS
In this section, we establish baseline performance on the benchmark suite to demonstrate how it can be used to evaluate and compare musical expectation models.
We extracted IC and entropy for the GIVT and DIF models on the datasets described in Section 3.3 and performed all benchmarks as explained in Section 3.4. DIF can estimate MID measures at different “noise levels” l, which emphasize different acoustic or musical features. For all our experiments involving DIF, we therefore report results for l = 0.0, 0.3, 0.5, where l = 0.0 retains full acoustic detail and higher levels emphasize more abstract features. For DIF IC/entropy calculations, we use a hundred-step Euler ODE solver with four/one Skilling-Hutchinson trace estimator runs respectively (see [24, 25] for details on the hyperparameters). For calculating entropy in both models, we use 32 Monte Carlo samples.
4.1 Reduction in MID measure with Repetition
In Table 2, we report the results of the RE task. All average differences are negative and significant on a 5% level, and, as such, repetition reduces IC and entropy for all models at all annotation hierarchy levels, considering either all or first repetition occurrences (ALL and FI). Comparing the repetition inclusion setups, DIF shows larger decreases for FI than for ALL, especially as the noise level l increases. This suggests that, for DIF, the reduction of these MID measures is concentrated more strongly on the first repetitions than on the later repetitions. The same is generally true for GIVT, though to a lesser extent. Across hierarchy levels, we find that the DIF model generally shows the highest reductions for the lowest level in the musical form hierarchy (Lowercase) for both repetition-inclusion setups (ALL or FI) and MID measures. In fact, we find the highest overall reduction values among the models for IC and entropy at DIF lowercase FI. When comparing IC and entropy with a fixed hierarchy level, model, and repetition-inclusion setup (ALL or FI), the largest decreases generally occur in entropy.
4.2 Segment Boundary Alignment
In Figure 1, we report the results of SB. A high recall indicates the extent to which the segment boundaries align with

Figure 1. SB precision recall for the different hierarchy levels and models.
| l | Piano | Guitar | Pad | Voice | Trumpet | Combined | |
|---|---|---|---|---|---|---|---|
| GIVT | - | .439 | .428 | .432 | .373 | .457 | .390 |
| IC | .0 | .487 | .550 | .550 | .584 | .561 | .489 |
| .3 | .520 | .563 | .578 | .617 | .596 | .523 | |
| .5 | .521 | .534 | .556 | .512 | .571 | .490 | |
| GIVT | - | .439 | .497 | .442 | .530 | .539 | .463 |
| ℋ | .0 | .529 | .577 | .538 | .604 | .569 | .522 |
| .3 | .532 | .562 | .537 | .607 | .581 | .520 | |
| .5 | .506 | .515 | .507 | .564 | .554 | .493 |
Table 3. Correlations between MID measures of audio models and those of IDyOM on SY.
one peak in the MID measure. Precision determines the degree to which peaks occur only around segment boundaries; low values indicate additional peaks, e.g., stemming from other musical events that are not associated with segment boundaries. We interpret values as alignment scores, with corresponding to perfect alignment that exactly identifies all segment boundaries (and nothing else) by peaks in the MID measure.
The relatively higher alignment on Lowercase than on Functions and Uppercase, despite using optimal peak-picking parameters across all hierarchy levels, suggests that the peaks in the MID measures are more closely associated with lower-level segmentations than with higher-level ones. Comparing the MID measures, IC generally shows higher alignment than entropy on Lowercase. The fact that Uppercase and Functions are almost identical is expected, considering that segments in Functions are typically semantically relabeled versions of the segments in Uppercase and thus share segment boundaries. Comparing the models, we find that GIVT has the highest alignment, and for the DIF model, higher noise levels decrease the alignment. Given the relatively low precision, many additional peaks are observed beyond those associated with segment boundaries.
4.3 Pitch Surprisal and Uncertainty: IDyOM Consistency
In Table 3, we report the results for SY. To assess the models' sensitivities to timbre, we report correlations separately for each timbre and in the combined setting. All correlations are significant on a 5% level, and lie in the range 0.4-0.6. Most variations in consistency are small.

Figure 2. Bar plots report the z-score gain for IC and (average across channels) over the baseline for each tested model averaged across all participants (mean SE). Dots represent individual participants. Topoplots report z-score gains across the scalp for the average participant. Only significant channels (FDR-corrected t-test with significance threshold set at ) are marked with white dots.
Entropy is slightly more consistent than IC. Comparing the different timbres, we find that Piano generally produces the least consistent results. The DIF model is more consistent than the GIVT model. Similarly to the findings of [25], the most consistent IC values of DIF are found for noise levels . This, however, is not the case for entropy.
4.4 Neural Encodings of MID measures
Results of the NE task on the VOC dataset [46] are illustrated in Figure 2. Different models are compared in terms of how much adding IC and improves the prediction accuracy relative to a reduced model that includes only an acoustic control, in this case, the energy envelope of the waveform. The improvement in predictive performance shows that brain responses track both IC and entropy for some of the models (t-test or Wilcoxon based on normality of the data, GIVT IC: , : ; DIF IC: , : ; DIF IC: , : ; DIF : IC: , : ), with IC generally being a more robust neural predictor than . Note that only a few survived the Bonferroni correction (adjusted ), specifically diffusion models DIF with higher level of noise (DIF and ). Note that the reduced model was significant per se (t-test, ), confirming the validity of the standard acoustic tracking baseline as a sanity check. Most interestingly, when comparing different models, we found that higher diffusion noise levels for IC lead
to significantly stronger encoding, similarly to the finding of [25]. For IC, the model with the highest noise level (DIF ) outperformed all others, yielding greater neural tracking than GIVT (), DIF (), and DIF (), while entropy tracking peaked at a moderate noise level, with DIF outperforming DIF (). However, only a few comparisons survived the Bonferroni correction (adjusted ).
5. DISCUSSION
This paper presents MEX as an initial step toward reproducible, cross-disciplinary work on musical expectation. In this initial version, the benchmarks test whether MID measures are sensitive to repetition learning, align with structural boundaries, agree across audio and symbolic domains, and predict neural responses. Beyond the benchmarks themselves, MEX's main contribution is to bring together perspectives from MIR, music cognition, and neuroscience. With this, we hope to further standardize perceptual validation of computational models of musical expectation and accelerate their development.
In addition to the proposed benchmarks, future work can focus on defining relevant behavioral tasks for which large-scale human data collection can be conducted. For example, tasks such as the cloze probability paradigm, or continuous ratings of tension or surprisal during music listening, could be incorporated as online tasks providing a continuous data collection to further enrich the benchmark suite. Furthermore, the current audio-based design of the benchmark suite, as opposed to a symbolic music design, facilitates the generalization of models to real-world music.
A practical limitation of the current version is that the audio data of SAL, while commonly used in the community, is not strictly open access and has to be obtained through a separate, unstandardized procedure. This remains an accessibility obstacle that we intend to address in subsequent versions, in part by adding new, diverse, open-access datasets (e.g., MTG-Jamendo) for the tasks.
In the current benchmark suite, tasks are evaluated in an unconditional zero-shot setting on music pieces without task-specific fine-tuning. Future work could investigate other task specifications that enable perceptually supported ways to fine-tune, adapt, or condition models on task-specific context, thereby supporting the contextualization of multiple modalities where appropriate for particular musical expectation tasks.
Finally, as the number of tasks grows, it might become necessary to develop an ontology that groups the tasks according to core aspects of musical expectation, for example, in-context or corpus-based learning. This would clarify which aspects a given model captures well. We therefore see MEX as a starting point. We hope it provides a useful basis for more reproducible, collaborative work on musical expectation and its computational modeling.
6. ACKNOWLEDGMENTS
This work was supported by the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation programme, grant agreement 101019375 ("Whither Music?").
7. REFERENCES
[1] D. B. Huron, Sweet anticipation: Music and the psychology of expectation. MIT press, 2006.
[2] M. Pearce, "The construction and evaluation of statistical models of melodic structure in music perception and composition," Ph.D. dissertation, Department of Computing, City University, London, UK, 2005.
[3] S. Koelsch, "Brain correlates of music-evoked emotions," Nature reviews neuroscience, vol. 15, no. 3, pp. 170–180, 2014.
[4] B. P. Gold, M. T. Pearce, E. Mas-Herrero, A. Dagher, and R. J. Zatorre, "Predictability and uncertainty in the pleasure of music: a reward for learning?" Journal of Neuroscience, vol. 39, no. 47, pp. 9397–9409, 2019.
[5] V. K. Cheung, P. M. Harrison, L. Meyer, M. T. Pearce, J.-D. Haynes, and S. Koelsch, "Uncertainty and surprise jointly predict musical pleasure and amygdala, hippocampus, and auditory cortex activity," Current Biology, vol. 29, no. 23, pp. 4084–4092, 2019.
[6] S. Feld, "A generative theory of tonal music," 1984.
[7] E. Narmour, The analysis and cognition of basic melodic structures: The implication-realization model. University of Chicago Press, 1990.
[8] E. G. Schellenberg, "Simplifying the implication-realization model of melodic expectancy," Music Perception, vol. 14, no. 3, pp. 295–318, 1997.
[9] D. Temperley, "A probabilistic model of melody perception," Cognitive Science, vol. 32, no. 2, pp. 418–444, 2008.
[10] B. Tillmann, J. J. Bharucha, and E. Bigand, "Implicit learning of tonality: a self-organizing approach." Psychological review, vol. 107, no. 4, p. 885, 2000.
[11] L. B. Meyer, "Meaning in music and information theory," The Journal of Aesthetics and Art Criticism, vol. 15, no. 4, pp. 412–424, 1957.
[12] N. Steinbeis, S. Koelsch, and J. A. Sloboda, "The role of harmonic expectancy violations in musical emotions: Evidence from subjective, physiological, and neural responses," Journal of cognitive neuroscience, vol. 18, no. 8, pp. 1380–1393, 2006.
[13] S.-G. Kim, J. S. Kim, and C. K. Chung, "The effect of conditional probability of chord progression on brain response: an meg study," PloS one, vol. 6, no. 2, p. e17337, 2011.
[14] N. C. Hansen and M. T. Pearce, "Predictive uncertainty in auditory sequence processing," Frontiers in psychology, vol. 5, p. 1052, 2014.
[15] T. Moldwin, O. Schwartz, and E. S. Sussman, "Statistical learning of melodic patterns influences the brain's response to wrong notes," Journal of cognitive neuroscience, vol. 29, no. 12, pp. 2114–2122, 2017.
[16] G. M. Di Liberto, C. Pelofi, R. Bianco, P. Patel, A. D. Mehta, J. L. Herrero, A. De Cheveigné, S. Shamma, and N. Mesgarani, "Cortical encoding of melodic expectations in human temporal cortex," Elife, vol. 9, p. e51784, 2020.
[17] R. Bianco, P. M. Harrison, M. Hu, C. Bolger, S. Picken, M. T. Pearce, and M. Chait, "Long-term implicit memory for sequential auditory patterns in humans," eLife, vol. 9, p. e56073, may 2020.
[18] G. Cantisani, S. Shamma, and G. M. Di Liberto, "Neural signatures of musical and linguistic interactions during natural song listening," Hal preprint, 2024.
[19] M. T. Pearce and G. A. Wiggins, "Auditory expectation: the information dynamics of music perception and cognition," Topics in cognitive science, vol. 4, no. 4, pp. 625–652, 2012.
[20] N. Sankaran, M. K. Leonard, F. Theunissen, and E. F. Chang, "Encoding of melody in the human auditory cortex," Science Advances, vol. 10, no. 7, p. eadk0010, 2024.
[21] P. Kern, M. Heilbron, F. P. de Lange, and E. Spaak, "Cortical activity during naturalistic music listening reflects short-range predictions based on long-term experience," elife, vol. 11, p. e80935, 2022.
[22] P. Robert, M. P. Van Cang, M. Mercier, A. Trébuchon, F. Bartolomei, L. H. Arnal, B. Morillon, and K. Doelling, "Polyrrn: A time-resolved model of polyphonic musical expectations aligned with human brain responses," bioRxiv, pp. 2024–11, 2024.
[23] M. R. Bjare, G. Cantisani, S. Lattner, and G. Widmer, "Estimating musical surprisal in audio," in ICASSP, 2025.
[24] M. R. Bjare, S. Lattner, and G. Widmer, "Estimating musical surprisal from audio in autoregressive diffusion model noise spaces," in ISMIR, 2025, pp. 679–687.
[25] M. R. Bjare, G. Cantisani, M. Pasini, S. Lattner, and G. Widmer, "Perceptually aligning representations of music via noise-augmented autoencoders," in NeurIPS - AI for Music Workshop, 2025.
[26] R. Rocca and T. Yarkoni, "Putting psychology to the test: Rethinking model evaluation through benchmarking and prediction," Advances in Methods and Practices in Psychological Science, vol. 4, no. 3, p. 25152459211026864, 2021.
[27] L. Huang, “Addressing the precision-breadth-simplicity impossible trinity in psychological research: a comprehensive exploration approach.” Review of General Psychology, vol. 30, no. 1, pp. 104–129, 2026.
[28] N. Habib, C. Fourrier, H. Kydlíček, T. Wolf, and L. Tunstall, “Lighteval: A lightweight framework for llm evaluation,” 2023. [Online]. Available: https://github.com/huggingface/lighteval
[29] Music Information Retrieval Evaluation eXchange, “Mirex home,” https://www.music-ir.org/mirex, accessed: 2026-04-22.
[30] D. Conklin and I. H. Witten, “Multiple viewpoint systems for music prediction,” Journal of New Music Research, vol. 24, no. 1, pp. 51–73, 1995.
[31] M. R. Bjare, S. Lattner, and G. Widmer, “Differentiable short-term models for efficient online learning and prediction in monophonic music,” Trans. Int. Soc. Music. Inf. Retr., vol. 5, no. 1, p. 190, 2022.
[32] ——, “Controlling surprisal in music generation via information content curve matching,” in ISMIR, 2024.
[33] S. Dubnov, G. Assayag, and A. Cont, “Audio oracle: A new algorithm for fast learning of audio structures,” in ICMC, 2007, pp. 224–227.
[34] B. Skerritt-Davis and M. Elhilali, “Detecting change in stochastic sound sequences,” PLoS Comput. Biol., vol. 14, no. 5, 2018.
[35] B. Skerritt-Davis and M. Elhilali, “A model for statistical regularity extraction from dynamic sounds,” Acta Acustica united with Acustica, vol. 105, no. 1, pp. 1–4, 2019.
[36] S. Abdallah and M. Plumbley, “Information dynamics: patterns of expectation and surprise in the perception of music,” Connection Science, vol. 21, no. 2-3, pp. 89–117, 2009.
[37] P. M. Harrison, R. Bianco, M. Chait, and M. T. Pearce, “Ppm-decay: A computational model of auditory prediction with memory decay,” PLoS computational biology, vol. 16, no. 11, p. e1008304, 2020.
[38] E. Morgan, A. Fogel, A. Nair, and A. D. Patel, “Statistical learning and gestalt-like principles predict melodic expectations,” Cognition, vol. 189, pp. 23–34, 2019.
[39] A. R. Fogel, J. C. Rosenberg, F. M. Lehman, G. R. Kuperberg, and A. D. Patel, “Studying musical and linguistic prediction in comparable ways: The melodic cloze probability method,” Frontiers in psychology, vol. 6, p. 1718, 2015.
[40] I. Simon and S. Oore, “Performance rnn: Generating music with expressive timing and dynamics,” https://magenta.withgoogle.com/performance-rnn, 2017.
[41] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, E. Kaiser, and I. Polosukhin, “Attention is all you need,” Advances in neural information processing systems, vol. 30, 2017.
[42] M. Pasini, S. Lattner, and G. Fazekas, “Music2latent: Consistency autoencoders for latent audio compression,” in ISMIR, 2024.
[43] D. Stančević and L. Ambrogioni, “The information dynamics of generative diffusion,” Entropy, vol. 28, no. 2, p. 195, 2026. [Online]. Available: https://www.mdpi.com/1099-4300/28/2/195
[44] M. Ranzato, S. Chopra, M. Auli, and W. Zaremba, “Sequence level training with recurrent neural networks,” in 4th International Conference on Learning Representations, ICLR 2016, San Juan, Puerto Rico, May 2-4, 2016, Conference Track Proceedings, Y. Bengio and Y. LeCun, Eds., 2016. [Online]. Available: http://arxiv.org/abs/1511.06732
[45] B. L. Sturm, J. F. Santos, O. Ben-Tal, and I. Korshunova, “Music transcription modelling and composition using deep learning,” in Proceedings of the Conference on Computer Simulation of Musical Creativity, Huddersfield, UK, 2016.
[46] G. Cantisani, A. Chalechaleh, G. Di Liberto, and S. Shamma, “Investigating the cortical tracking of speech and music with sung speech,” in INTERSPEECH. ISCA, 2023, pp. 5157–5161.
[47] B. Sharma, X. Gao, K. Vijayan, X. Tian, and H. Li, “Nhss: A speech and singing parallel database,” Speech Communication, vol. 133, pp. 9–22, 2021.
[48] J. B. L. Smith, J. A. Burgoyne, I. Fujinaga, D. D. Roure, and J. S. Downie, “Design and creation of a large-scale database of structural annotations,” in ISMIR. University of Miami, 2011, pp. 555–560.
[49] E. H. Margulis, On repeat: How music plays the mind. Oxford University Press, 2013.
[50] ——, “Aesthetic responses to repetition in unfamiliar music,” Empirical Studies of the Arts, vol. 31, no. 1, pp. 45–57, 2013.
[51] R. Simchy-Gross and E. H. Margulis, “The sound-to-music illusion: Repetition can musicalize nonspeech sounds,” Music & Science, vol. 1, 2018.
[52] M. T. Pearce, M. H. Ruiz, S. Kapasi, G. A. Wiggins, and J. Bhattacharya, “Unsupervised statistical learning underpins computational, behavioural, and neural manifestations of musical expectation,” NeuroImage, vol. 50, no. 1, pp. 302–313, 2010.
[53] I. Deliege, “Grouping conditions in listening to music: An approach to lerdahl & jackendoff’s grouping preference rules,” Music perception, vol. 4, no. 4, pp. 325–359, 1987.
[54] M. J. Bruderer, M. F. Mckinney, and A. Kohlrausch, "Perception of structural boundaries in popular music," in Proc. of the 9th International Conference on Music Perception and Cognition, vol. 1983, 2006, pp. 157–162.
[55] T. R. Knösche, C. Neuhaus, J. Haueisen, K. Alter, B. Maess, O. W. Witte, and A. D. Friederici, "Perception of phrase structure in music," Human Brain Mapping, vol. 24, no. 4, pp. 259–273, 2005.
[56] Y. Nan, T. R. Knösche, and A. D. Friederici, “The perception of musical phrase structure: a cross-cultural erp study,” Brain research, vol. 1094, no. 1, pp. 179–191, 2006.
[57] ——, “Non-musicians’ perception of phrase boundaries in music: A cross-cultural erp study,” Biological Psychology, vol. 82, no. 1, pp. 70–81, 2009.
[58] M. Müller, “Novelty-based segmentation,” in Fundamentals of Music Processing: Audio, Analysis, Algorithms, Applications. Cham: Springer, 2015, ch. 4.4, pp. 207–215.
[59] M. Müller and F. Zalkow, “libfmp: A python package for fundamentals of music processing,” J. Open Source Softw., vol. 6, no. 63, p. 3326, 2021. [Online]. Available: https://doi.org/10.21105/joss.03326
[60] M. Crosse, G. Di Liberto, A. Bednar, and E. Lalor, “The multivariate temporal response function (mtrf) toolbox: A matlab toolbox for relating neural signals to continuous stimuli.” Front Hum Neurosci., 2016.
[61] S. Koelsch, Brain and Music. John Wiley & Sons, 2012.
[62] G. M. Di Liberto, J. A. O'Sullivan, and E. C. Lalor, "Low-frequency cortical entrainment to speech reflects phoneme-level processing," Current Biology, vol. 25, no. 19, pp. 2457–2465, 2015.