Data and code for: Data leakage inflates trait-based predictions of ecological mixtures
Predicting ecosystem functioning from functional traits is a core goal of ecology. However, standard validation protocols routinely yield inflated performance metrics because ecological datasets repeatedly sample recurring species or genotypes, leaking entity-level information between training and test sets. Here, using 764 pairwise soybean mixtures as an empirical model of overyielding alongside benchmark simulations, we demonstrate that standard random cross-validation suffers from severe data leakage. Rather than discovering transferable functional rules, models rely on genetic identities, causing predictive power for overyielding to collapse by ~75% under strict inductive validation on novel genotypes (squared Pearson correlation r2 dropping from 0.16 to 0.04). Flexible machine-learning algorithms are particularly prone to this bias, mistaking identity recognition for universal assembly principles. This structural flaw might explain why trait-function relationships frequently fail to replicate. Because recurring-entity structures are pervasive across ecology, strict inductive validation must become standard practice whenever predictions extend to novel entities.
- Link
- https://zenodo.org/records/23413855
- Found by
- Zenodo
- Authors
- Kopp, Emanuel, Koenig, Noelle, Vonmetz, Lukas, Wuest, Samuel, Niklaus, Pascal
- Categories
- benchmark, dataset
- Published
- 2026-10-16
- Last seen by the radar
- 2026-10-16
- Downloads
- 0
- Views
- 0
- Radar score
- 45.20 / 100 (how it is scored)
- Why it scored so
- Matched: benchmark, dataset, test set; Recency discount: updated event ×0.5; Primary record: Zenodo
- Related links
- https://doi.org/10.5281/zenodo.23413855