Evaluation in music information retrieval
Evaluation in music information retrieval is the set of practices by which researchers in music information retrieval (MIR) measure how well a system performs a musical task, such as transcribing notes, tracking the beat or recognizing a genre. A typical evaluation runs a system on recordings that people have labeled, compares its output with those labels using a standard measure, and reports a number such as accuracy or an F-measure.[1:1][2:1] Shared evaluations such as MIREX and shared software such as mir_eval let different research groups compare their systems on the same terms.[3:1][2:1]
Whether those numbers mean what they appear to mean is a long-running argument in the field. Critics have shown that systems can score well for reasons unrelated to the music, that test data can leak into training, that widely used datasets contain errors, that human listeners often disagree about the right answer, and that standard measures do not match what listeners notice.[1:1][4:1][5:1][1:2][6:1] In 2023, Bob Sturm and Arthur Flexer argued that the field should discuss the validity of its experiments much more than it had, and that earlier work on the subject was scattered across relatively few publications.[1:3]
Shared evaluations and datasets
The Music Information Retrieval Evaluation eXchange (MIREX) has run each year since 2005, organized by the International Music Information Retrieval Systems Evaluation Laboratory (IMIRSEL) at the University of Illinois at Urbana-Champaign. It was modeled on the TREC evaluations of text retrieval, but unlike TREC it does not hand its datasets to participants, because of copyright enforcement on recorded music. Instead, participants send their programs to be run on data held in one place. J. Stephen Downie wrote in 2008 that researchers' inability to test against its collections outside the annual cycle was slowing progress.[3:1] The same restriction shapes public datasets: the Harmonix Set, for example, distributes its annotations with information for finding the recordings rather than the audio itself, and researchers have chosen among such datasets in an ad hoc way.[7:1]
Because the MIREX software was hard to run elsewhere, researchers often wrote their own versions of the standard measures, which could differ in details or contain bugs that made results incomparable. The mir_eval library, published in 2014, provides open reference versions of common measures, and its authors documented where its scores differed from earlier implementations.[2:1]
Arguments about evaluation
Sturm and Flexer organize the problems using four kinds of validity from the experimental-design literature: whether a statistical conclusion holds, whether an observed effect has the cause claimed for it (internal validity), whether the measurement captures the thing it is meant to (construct validity), and whether the result generalizes beyond the experiment (external validity).[1:3] Most of the arguments below fall under one of these.
Does a high score mean the system understands the music?
Sturm and Flexer argue that accuracy on a labeled dataset is an unreliable sign that a system has learned anything about music. They compare the situation to a horse that seemed to do arithmetic by tapping out answers: in 1911 Oskar Pfungst showed that counting its correct answers proved nothing until he changed how the questions were posed. In the same way, a system's score is informative only when the conditions of the test are varied to rule out other explanations. They recommend stating what a system is for and what would count as success, and they point to low agreement between genre classifiers given identical inputs, and to adversarial examples, small changes to the input that change a system's output, as signs that high accuracy can rest on something other than musical perception.[1:1]
The way a dataset was gathered can supply such a shortcut. The BALLROOM dataset was assembled from CDs sold for ballroom dance competitions, whose rules set a strict tempo for each dance. A system that labels its excerpts correctly might therefore be recognizing rhythm, dance type or simply tempo.[1:4]
Leakage between training and test data
A system's score is meant to describe its performance on music it has not seen. That fails when closely related material sits in both the training and the test data. In 2007 Arthur Flexer showed that genre-classification experiments that let songs by the same artist appear in both sets, so that a system could in effect learn to recognize artists, not only overstated accuracy but changed which methods looked best: the advantages of two approaches disappeared once songs by the test artists were filtered out of the training set.[4:1] Cutting recordings into short frames before dividing them between training and test sets causes a similar leak, since neighboring frames are nearly identical.[1:4] Some later datasets build the precaution in: the suggested division of the MAESTRO piano dataset keeps all performances of a given composition in only one of its training, validation and test sets.[8:1]
Faulty reference data
A benchmark is only as good as its labels. GTZAN, a collection of 1,000 half-minute excerpts labeled with ten genres, was the most-used public dataset for evaluating genre recognition, appearing in 100 of more than 467 works that Sturm reviewed, although it was not created for that purpose. Sturm found repeated excerpts, wrong labels and distorted recordings in it, and showed that these faults do not affect all systems equally, so the common defense that every system faces the same faults does not make their scores comparable. He found few signs that researchers using it had known of or allowed for the problems.[5:1] Later researchers found errors in GTZAN's beat annotations too, along with excerpts where even experts would disagree on where the beat falls.[9:1]
Timing labels raise the same issue. The developers of the MT3 transcription system found evidence that the note timings in the MusicNet dataset, and possibly URMP, contain errors larger than the 50-millisecond tolerance used to score transcriptions.[10:1]
Human disagreement
For many tasks there is no single right answer. Listeners tapping along to the same music often choose different metrical levels, faster or slower by a factor of two or three, so no beat tracker can agree closely with all of them.[11:1] In one study cited by Sturm and Flexer, people sorting songs into 19 genres matched the reference labels between 26% and 71% of the time. Sturm and Flexer argue that such disagreement sets an upper limit on meaningful performance, since a model cannot usefully agree with a reference better than people agree with each other, and they cite reports that systems had reached that limit in the MIREX audio music similarity task by 2009.[1:2]
Measures that do not match listening
Standard measures count matches and mismatches without regard to how much each error matters to a listener. In automatic transcription, Emmanouil Benetos and colleagues note that an extra note may sound like a worse mistake than a missing one, and they count measures that reflect perception among the field's open problems.[6:1] The usual note-matching tolerance has itself been disputed: the developers of the Onsets and Frames transcription system argued that a 50-millisecond window allows too much timing error, while noting that scores fall as the window narrows, partly because reference timings are not precise enough.[12:1]
Statistical significance is also a weak guide. Sturm and Flexer note that most MIR experiments cannot sample music at random from a well-defined population, which limits what significance tests can show, and they cite a study in which differences between MIREX music-similarity systems were statistically significant but too small to matter to users.[1:5]
Generalization
Systems tested by dividing one collection into training and test parts often perform much worse on independent data. Genre recognizers, for example, have failed to carry their accuracy across collections whose labels look the same but were applied by different people.[1:2] Musical traditions absent from the training data pose a sharper version of the problem: when Olivier Lartillot and colleagues tested the madmom beat tracker on Norwegian Hardanger fiddle music, whose beats can be unequal in length, its beats matched the performers' own annotations only at isolated points.[13:1]
Comparability and stagnation
Different groups often report results with different measures and different divisions of the same dataset, which the MT3 developers identified as a barrier to comparing transcription systems.[10:1] Downie reported in 2008 that MIREX results supported a "glass ceiling" for the spectral methods that then dominated the field, with groups of systems performing equally well.[3:1] Sturm and Flexer suggest that such ceilings, along with adversarial examples, become less puzzling when viewed as questions of validity.[1:6]
- ^a ^b ^c ↗ horse-construct-validity ^a ^b ^c ↗ external-validity-agreement ^a ^b ↗ validity-neglected ^a ^b ↗ confounds-and-partitioning ^ ↗ statistical-significance ^ ↗ puzzles-through-validity Sturm, Bob L. T.; Flexer, Arthur (2023-01-04). Validity in Music Information Research Experiments. arXiv. https://arxiv.org/abs/2301.01578.
- ^a ^b ^c ↗ implementations-confound Raffel, Colin; McFee, Brian; Humphrey, Eric J.; Salamon, Justin; et al. (2014). mir_eval: A Transparent Implementation of Common MIR Metrics. Proceedings of the 15th International Society for Music Information Retrieval Conference (ISMIR 2014). https://doi.org/10.5281/zenodo.1416528 https://archives.ismir.net/ismir2014/paper/000320.pdf.
- ^a ^b ^c ↗ algorithm-to-data Downie, J. Stephen (2008). The music information retrieval evaluation exchange (2005–2007): A window into music information retrieval research. Acoustical Science and Technology. https://doi.org/10.1250/ast.29.247 https://www.jstage.jst.go.jp/article/ast/29/4/29_4_247/_article.
- ^a ^b ↗ artist-filter-effect Flexer, Arthur (2007). A Closer Look on Artist Filters for Musical Genre Classification. Proceedings of the 8th International Conference on Music Information Retrieval (ISMIR 2007). https://archives.ismir.net/ismir2007/paper/000341.pdf.
- ^a ^b ↗ most-used-and-faults Sturm, Bob L. (2013-06-06). The GTZAN dataset: Its contents, its faults, their effects on evaluation, and its future use. arXiv. https://arxiv.org/abs/1306.1461.
- ^a ^b ↗ amt-metrics-perception Benetos, Emmanouil; Dixon, Simon; Duan, Zhiyao; Ewert, Sebastian (2019-01). Automatic Music Transcription: An Overview. IEEE Signal Processing Magazine. https://doi.org/10.1109/MSP.2018.2869928 https://labsites.rochester.edu/air/publications/benetatos19automaticmusic.pdf.
- ^ ↗ dataset-landscape Nieto, Oriol; McCallum, Matthew; Davies, Matthew E. P.; Robertson, Andrew; et al. (2019). The Harmonix set: Beats, downbeats, and functional segment annotations of Western popular music. Proceedings of the 20th International Society for Music Information Retrieval Conference. https://archives.ismir.net/ismir2019/paper/000068.pdf.
- ^ ↗ dataset-contents Hawthorne, Curtis; Stasyuk, Andriy; Roberts, Adam; Simon, Ian; et al. (2019). Enabling Factorized Piano Music Modeling and Generation with the MAESTRO Dataset. International Conference on Learning Representations (ICLR 2019). https://arxiv.org/abs/1810.12247.
- ^ ↗ dataset-quality Foscarin, Francesco; Schlüter, Jan; Widmer, Gerhard (2024). Beat this! Accurate beat tracking without DBN postprocessing. Proceedings of the 25th International Society for Music Information Retrieval Conference. https://arxiv.org/abs/2407.21658.
- ^a ^b ↗ label-timing-errors Gardner, Josh; Simon, Ian; Manilow, Ethan; Hawthorne, Curtis; et al. (2022). MT3: Multi-Task Multitrack Music Transcription. International Conference on Learning Representations (ICLR 2022). https://arxiv.org/abs/2111.03017.
- ^ ↗ metrical-levels Ellis, Daniel P. W. (2007-03). Beat Tracking by Dynamic Programming. Journal of New Music Research. https://doi.org/10.1080/09298210701653344 https://www.ee.columbia.edu/~dpwe/pubs/Ellis07-beattrack.pdf.
- ^ ↗ note-metrics-tolerance Hawthorne, Curtis; Elsen, Erich; Song, Jialin; Roberts, Adam; et al. (2018). Onsets and Frames: Dual-Objective Piano Transcription. Proceedings of the 19th International Society for Music Information Retrieval Conference. https://arxiv.org/abs/1710.11153.
- ^ ↗ madmom-failure Lartillot, Olivier; Johansson, Mats Sigvard; Elowsson, Anders; Monstad, Lars Løberg; et al. (2023). A dataset of Norwegian Hardanger fiddle recordings with precise annotation of note and beat onsets. Transactions of the International Society for Music Information Retrieval. https://doi.org/10.5334/tismir.139 https://transactions.ismir.net/articles/139.