FROM AGPEDIA — AGENCY THROUGH KNOWLEDGE

Data leakage

Data leakage in machine learning is a spurious relationship between a model's inputs and its target that arises as an artifact of how the data were collected, sampled or pre-processed. Because the relationship is absent from the data the model will actually meet, leakage usually inflates estimates of the model's performance.[1:1] Its commonest forms involve information shared between the data used to train a model and the data used to test it.[1:2]

Training, validation and test sets
Two ways of dividing a dataset: into training and test sets, or into training, validation and test sets. Km121220 · CC BY-SA 4.0

Extent

Sayash Kapoor and Arvind Narayanan surveyed research fields that adopted machine learning and found errors in 17 fields, affecting 329 papers and in some cases leading to wildly overoptimistic conclusions. In a study of civil war prediction, every paper they examined that claimed complex models outperformed logistic regression failed to reproduce because of leakage, and none of the errors could have been caught by reading the papers. They proposed "model info sheets", in which authors argue in detail that their models do not suffer from leakage.[1:3]

Types

Kapoor and Narayanan set out eight types of leakage. They include:[1:2]

In music research

Music information retrieval has its own versions of these problems, mostly of non-independence between training and test data.

Artists and albums

In 2001 Whitman, Flake and Lawrence named the "album effect": artist-identification systems were picking up the production qualities of albums, which tend to be consistent across a CD, and their performance fell substantially when each album was used only for training or only for testing. Pampalk, Flexer and Widmer found a similar effect in genre classification, with 79% accuracy without "artist filtering" between the training and test sets and 27% with it.[2:1] Arthur Flexer showed in 2007 that letting songs by the same artist into both sets not only overstated accuracy but changed which methods looked best: the advantages of two approaches disappeared once an artist filter was applied, since without it a system could in effect be classifying artists rather than genres.[3:1]

Frames and recordings

Cutting recordings into short frames before dividing them between training and test sets spreads highly correlated material across both, a leak that Bob Sturm and Arthur Flexer call "bleeding ground truth".[4:1]

Compositions

The same piece played by different musicians is another link between recordings. The suggested split of the MAESTRO piano dataset keeps each composition, even if performed by several pianists, in only one of its training, validation and test sets, and places extremely popular compositions performed by many pianists in the training set; its authors recommend the split for comparison with their results but do not expect it to suit every purpose.[5:1]

Confounds in collection

The way a dataset was gathered can also supply a proxy for its labels. The BALLROOM dataset was assembled from CDs sold for ballroom dance competitions, whose rules set a strict tempo for each dance, so its labels can stand for rhythm, dance type or simply tempo.[4:1] See evaluation in music information retrieval.

See also

  1. ^ ↗ kn-def ^a ^b ↗ kn-taxonomy ^ ↗ kn-survey Kapoor, Sayash; Narayanan, Arvind (2022-07-14). Leakage and the Reproducibility Crisis in ML-based Science. arXiv. https://arxiv.org/abs/2207.07048.
  2. ^ ↗ do-album-artist 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.
  3. ^ ↗ 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.
  4. ^a ^b ↗ confounds-and-partitioning Sturm, Bob L. T.; Flexer, Arthur (2023-01-04). Validity in Music Information Research Experiments. arXiv. https://arxiv.org/abs/2301.01578.
  5. ^ ↗ hm-split 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.

Wikidata: Q85776087

Available in