Gaël Varoquaux

Sat 05 December 2026

←Home

New results: many cross-validating splits are more useful than expected

Machine learning progresses through benchmarks, driving acceptance of new algorithms. But this measure is noisy, and –though many do not realize– the evaluation of algorithm is often a bottleneck. Studying a old tool of machine learning, cross-validation, our NeurIPS paper shows that it can really help [Eve et al, 2026]. Indeed, we find that using many repeated splits buys much more precision than received wisdom predicts, especially for learning algorithms that have some randomness in their fit, such as neural networks.


Machine learning runs on benchmarks, noisy benchmarks

Noise in benchmarks

Machine learning has become an empirical science. Whether a new idea is deemed good is decided by benchmark numbers: accuracy on ImageNet, error on a task suite, a leaderboard rank. The trouble is that these numbers characterize learning algorithms imperfectly, influenced by arbitrary choice: the train/test split, the ordering of the data, the initialization of the weights [Bouthillier et al, 2021]. Two evaluations of the very same algorithm do not give the very same score. And the evaluation noise is often on the same order as the improvements we make in the algorithms.

Sizes of the 20% most-used OpenML datasets (November 2026): 55% have fewer than 1,000 samples.

Often the biggest problem is that the test set is too small to characterize well enough the prediction. Much of machine learning research benchmarks on open datasets with limited sample sizes; for instance more than half of the 20% most-used OpenML datasets have fewer than 1,000 samples (figure above). The table below lists famous examples — heavily cited benchmarks on which models are compared with a few hundred samples. This is true even in large-language-model settings: MBPP for code generation has 974 samples and 5,736 citations.


Datasets exemplifying the validation crisis. Citations: Google Scholar, Nov 2026
Domain Dataset Reference Size Citations
Medical NLP ACI-Bench Yim et al, 2023 207 237
Medical NLP MTS-Dialog Ben Abacha et al, 2023 1,701 179
Medical NLP PubMedQA Jin et al, 2019 1,000 2,542
General NLU SuperGLUE Wang et al, 2019 306–2,767 3,773
Legal CUAD Hendrycks et al, 2021 510 573
Fact-checking SciFact Wadden et al, 2020 1,409 1,254
Scientific NLP SciDTB Yang & Li, 2018 798 77
Segmentation MSD (10 tasks) Antonelli et al, 2022 30–750 2,260
Classification MedMNIST v2 (18 sets) Yang et al, 2023 780–1,633 2,275
Code generation MBPP Austin et al, 2021 974 5,736
Math reasoning SVAMP Patel et al, 2021 1,000 1,514
Drug discovery TDC ADMET Huang et al, 2021 475–906 792
Tabular ML TabZilla (36 datasets) McElfresh et al, 2023 148–2,550 585
Tabular ML 111 openml datasets Shmuel et al, 2024 43–674 120

I kept hitting an evaluation bottleneck

Over the years, as I worked on different aspects of machine learning, model evaluation kept showing up as the weak link of empirical work.

A dormant reproducibility crisis

Cross-validation error bars are huge. In “cross-validation failure” [Varoquaux, 2018], I showed that clinical prediction studies often have error bars on cross-validated accuracy of the order of ±10%. In many published papers, the differences between algorithms is thus within noise.

Challenges do not escape it. In an international autism-imaging challenge [Traut et al, 2022], 146 challengers predicted autism diagnosis from MRI of more than 2,000 individuals, with rigorously blinded evaluation. Despite strong incentives to generalize, teams tended to overfit the data at hand: models that looked good in cross-validation during development did not always generalize to the held-out site: AUC of predictors of ≈ 0.8 on the data shared to competitors, and 0.72 on an external sample. The improvement of predictors was limited by evaluation noise — and overfitting the evaluation — rather then a lack of ingeniosity in modeling.

Deep-learning benchmarks vary as much. In [Bouthillier et al, 2021], we measured variance across five deep-learning tasks: and found that benchmarking variance comparable to the improvements reported between methods — and the largest source of variance is the train/test split itself. Conclusions flip if the randomness is not accounted for.

It is a systematic failure mode. In our review of machine learning for medical imaging [Varoquaux & Cheplygina, 2022], we found that Kaggle competition on medical imaging often displayed such overfitting. We also saw that inappropriate validation — often a single hold-out set — is one of the recurring methodological failures of the field, as confirmed by [Kolasa et al, 2024]: surveying of 220 systematic reviews of ML in healthcare covering 10,963 studies found that fewer than 14% use cross-validation

This is not only a small-data problem. It also hits modern deep-learning studies: expensive training pushes practitioners to a single train/test split, and the stochasticity of deep nets (seeds, ordering, checkpoint selection) makes that single number unstable. Our NeurIPS paper [Eve et al, 2026] sheds light on this trade-off: how much evaluation precision do repeated splits buy, and when does the extra compute stop paying off?


More cross-validation for better evaluation

The textbook view: dimininishing returns beyond five folds

Cross-validation leaves a fraction of the data out, fits on the rest, and averages the scores over such splits. With K folds, each observation is left out exactly once, and the classic advice is to stop there: with a test fraction of 20%, do 5 splits (or 10 folds for 10%); each sample has been tested, why do more?

Statistical theory seemed to agree. The variance of the average over K splits writes

Var = σ²/K + (1 − 1/K) τ,

where σ² is the error variance of a single split, and τ is the covariance between splits — unavoidable, as splits share data. Nadeau and Bengio’s classic approximation [Nadeau & Bengio, 2003] estimates τ as the test fraction t times σ². Under this approximation, the variance comes within a factor two of its floor as soon as K = 1/t: 5 splits for a 20% test fraction. More splits seem of little use.


Why more splits are useful

The catch is that the above approximation pins down τ from the data sizes alone, as if all the noise came from which observations are tested. As we argue in [Eve et al, 2026], this approximation ignores the randomness of the learning algorithm itself: the fitted model changes with the random initialization, the order of the data, or random features. That randomness adds disagreement between splits that the theory above does not see.


Empirical findings: gains can run much further

Sample-equivalent gain To measure what splits buy, we introduce the sample gain: the variance-equivalent test sample gain answers “how much larger would a single test set need to be to match the stability of K repeated splits?”. A gain of 10 means that averaging 10 splits is as good as having ten times more test data. It is an interpretable unit, common to all algorithms, and we can measure it empirically on large datasets by holding out a huge reference set as ground truth.


Sample gain as a function of the number of splits K, on simulated data, histopathology scans (PatchCamelyon) classified with CNNs, and Yelp reviews with fine-tuned transformers — a common vertical axis for all datasets. Thick lines: mean estimate; thin lines: bootstrap resamples. Figure from [Eve et al, 2026].

On real data — histopathology scans (PatchCamelyon) with CNNs, Yelp reviews with fine-tuned transformers — the gains keep growing well past K = 5, reaching up to about 11 with 20 splits (WideResNet101_2 on PatchCamelyon, XLM-RoBERTa on Yelp): 20 splits behave as if the test set had been 11 times larger. The longest simulated runs tell the same story, and explain the contrast between algorithms: Ridge regression and ExtraTrees settle early, at a gain of about 5 after 200 splits — close to what the classic theory predicts. But RandomFeatures — ridge on random Fourier features, redrawn at each fit — reaches a gain of 15, and a small MLP a gain of 10, with diminishing returns only after about 100 splits. For stochastic learners, cross-validation is worth far more than the heuristic suggests: randomness in the algorithm decorrelates the errors of different splits, and the averaging keeps paying.

Note that even in the worst cases — Ridge, ExtraTrees, Qwen3-0.6B — the gain is still climbing at K = 5, at odds with the “stop at 1/fraction” heuristic. And it is not an artifact of the resampling scheme: repeated K-fold gives the same picture. What matters is how many independent-ish evaluations you average.


Practical advice: split repeatedly

The operational take-away from [Eve et al, 2026]:

  • Split repeatedly. Favor 10–20 cross-validation splits over a single hold-out. Each split costs a fit, but it behaves like adding evaluation data — for stochastic learners, several times more data.
  • More splits for stochastic learners. If your algorithm has randomness (deep nets, random features, restarts), expect gains well past five splits.
  • Know when to stop. Cost grows linearly with the number of splits. We introduce a redundancy statistic, computed from the first 3–5 splits, which predicts how much more splits will buy: high redundancy (fold errors that agree too much) means stop; low redundancy means it may be worth continuing.
  • Rankings benefit too: on the NLP experiments, averaging 20 splits retrieved the true ranking of two fine-tuned transformers in 56% of runs, against 24% for a single split — a single split often crowns the wrong winner.

The publication and the code

Go Top