Elamur Research

Accounting for Variance in Machine Learning Benchmarks

Paper · 2021 · Xavier Bouthillier, Pierre Delaunay, Mirko Bronzi et al.

Summary

A benchmark can report a higher score for one learning algorithm even when a different draw of the training or test examples would reverse the ranking. Repeating training with fresh starting weights addresses part of that uncertainty. It leaves other choices in place, including which examples the system learns from and which settings a preliminary search selected. Xavier Bouthillier and colleagues treat the score as the outcome of a complete experiment that could be repeated. Their question is how well a benchmark can estimate the performance of that repeatable procedure when computation is limited. It is a question about what counts as evidence in machine learning and how that evidence is measured in evaluation and benchmarks.

The authors examine image classification on CIFAR10, image segmentation on PascalVOC, textual entailment on GLUE RTE, sentiment classification on GLUE SST-2, and a biomedical binding-prediction task. Resampling the data was the largest source of score variation in their individual-source experiments. The choice of hyper-parameters, such as a learning rate selected by a search, also mattered. Across the tuning methods the authors studied, the resulting variation was on average comparable to that from changing the starting weights. In most of the tested tuning setups, the spread across searches had already stabilized before 50 trials. A larger search budget therefore offered little reason to expect the resulting scores to become more consistent in those search spaces.

The most comprehensive estimator repeats the search for hyper-parameters on each run. A cheaper estimator tunes once and reuses the selected settings, while changing the data split and the other sources of randomness available during training and evaluation. This cheaper approach came closer to the comprehensive estimator than the usual practice of changing starting weights alone. The paper reports a 51× reduction in computation for the cheaper approach relative to the comprehensive evaluation. Its gain over the starting-weights-only version came mainly from lower variance in the estimated average. Runs that share fewer arbitrary choices tend to move together less, so averaging their scores yields a more precise estimate.

There is a further question once the scores have been collected. How often would a fresh comparison favor the claimed winner? The authors use the probability that one pipeline outscores the other in a run, together with a confidence interval, to distinguish evidence of an advantage from evidence about its practical size. In simulations informed by their case studies, this comparison missed fewer meaningful improvements than applying a fixed margin to average scores, while keeping false positives around 5% in the region where there was no significant advantage. The authors recommend varying as many relevant choices as the budget allows, including tuning where feasible, and using several test splits. Out-of-bootstrap evaluation is their concrete example of how to obtain those splits from one finite dataset.

Deep dive: Accounting for Variance in Machine Learning Benchmarks

Why machine learning benchmark rankings can change across runs, and how resampling, repeated tuning, and win probabilities improve comparisons. · about 36 minutes to read

The problem and its context

What a benchmark score represents

Consider a reported improvement in image classification. The researchers trained a predictor and measured how frequently its predictions agreed with labels on a test set. The score describes that fit on those examples. A claim that the learning algorithm is better extends farther. It concerns what would happen if researchers repeated the procedure, potentially with a different training sample, a fresh optimization run, a new search for settings, and other test examples from the population of interest.

Each stage can influence the ranking. A training sample can contain examples that one procedure learns from more readily. A test set can contain a different mix of easy and difficult cases from another plausible test set. Even with the same examples, stochastic training can make different updates when the examples arrive in a different order. The learning rate selected in a search can depend on which trials were attempted and which validation examples determined the winner. Those are different mechanisms, and a protocol that varies just one of them reveals only the fluctuations attributable to that choice under the conditions that were held fixed.

A shared benchmark split has a clear advantage. Competing procedures receive the same examples, and the resulting scores have a common basis for comparison. There is still uncertainty about how representative that particular split is. Sharing test examples helps answer which procedure fared better on them. Repeating the comparison on several shared splits helps answer how frequently that advantage survives a change of examples. The authors’ proposal retains the benefit of matching the conditions for the contenders while allowing the matched conditions to change across repetitions.

The distinction matters especially when published improvements are small. The question then is whether variation across legitimate repetitions is small enough for the improvement to stand out. Reporting several runs may look like a direct response to that problem. The evidence depends on what those runs actually repeat. Experiments that all use the same training sample, validation outcome, and test examples provide repeated evidence about training under those conditions. They give much less information about how the full procedure fares when those conditions change.

What earlier comparisons accounted for

The paper traces work on comparisons of supervised classifiers to Dietterich’s study of statistical tests. Its principal concern was variation from sampling data. Subsequent studies of generalization error and the replicability of significance tests continued to focus on this component. The authors describe a similar pattern in natural language processing, where several studies addressed uncertainty from the evaluation examples while leaving randomness from other parts of the pipeline outside the analysis. One example in that discussion is On Some Pitfalls in Automatic Evaluation and Significance Testing for MT.

Paired comparisons were a common response to nuisance variation. If the contenders are evaluated on the same split, conditions that raise or lower both scores can partly cancel when the results are compared. This is useful even when data sampling is the only source of variation under study. The paper also points to work that examines score distributions across training runs, where a single reported value can give a misleading impression of how consistently one procedure performs. The contrast between a reported score and the distribution that produced it is the concern of Reporting Score Distributions Makes a Difference.

Hothorn and colleagues supplied the broad statistical framework that Bouthillier and colleagues build on. It treats the sources of randomness as quantities to average over. The present paper makes tuning explicit in that framework and asks what happens when a practical benchmark carries out only one search. It also distinguishes between the effect of a hyper-parameter value and the effect of the procedure that chooses it. A particular learning rate is a setting. The rule or search that selects a learning rate can produce different choices when the procedure is run again.

The authors cite earlier reports that loose control over training or tuning choices can make comparisons hard to reproduce or unfair to a contender. They point to reassessments in recommender systems, neural architecture pruning, and metric learning as examples where the comparison protocol affected the conclusions. These precedents motivate examining the process behind a ranking before assuming that its ordering is a property of the algorithms. Two of the reassessments they cite are Are We Really Making Much Progress? and A Metric Learning Reality Check.

Why tuning belongs in the experiment

Deep-learning pipelines make comprehensive repetition expensive. One training run may be costly, and a search can require many such runs. Settings may govern regularization, optimization, or the architecture itself. Some are selected through a formal algorithm, and others come from informal experimentation. A train, validation, and test split is a way to bound the cost. The training portion fits a predictor, the validation portion helps choose settings, and the test portion evaluates the fitted predictor. Repeating this entire arrangement multiplies the cost because the validation exercise happens afresh each time.

This creates two separate questions for benchmark design. One is how to spend a limited budget on scores that estimate typical pipeline performance. A researcher can spend it on extra searches, extra training runs after one search, or different resamples of the data. The other question is how to turn those scores into a claim of superiority. A rule based on a margin between two averages can give the same answer for two comparisons that have very different score distributions. The paper studies the experimental protocol and the decision rule separately because either can limit the reliability of the final conclusion.

The method, step by step

Follow one benchmark repetition

Start with a dataset of inputs and their correct targets. In the paper’s idealized setting, the examples are independently drawn from the same underlying distribution. For one benchmark repetition, the researcher takes a portion for training and validation, and reserves a portion for evaluation. The training and validation data support a search over settings. Each candidate can require fitting a predictor on a training subset and checking its performance on a validation subset. After the search chooses its settings, the pipeline can refit using all the data allocated to training and validation. It then scores that fit on the outer evaluation data.

With one repetition, the test score reflects one combination of data and experimental choices. To estimate an average, the researcher repeats the sequence and averages the scores. The reference procedure reruns the search for each repetition. The affordable procedure does the search once, then uses the selected settings for the subsequent fits. The authors study several versions of the second procedure, depending on which other choices are allowed to change. In a paired comparison, both contenders can use the same split within a repetition, with a fresh split for the next pair.

From a dataset to a pipeline comparison

The steps in order.

From a dataset to a pipeline comparisonStep 1: Draw training, validation, and evaluation data1. Draw training, validation, and evaluation dataStep 2: Search settings using validation performance2. Search settings using validation performanceStep 3: Refit using the selected settings3. Refit using the selected settingsStep 4: Score the fit on held-out examples4. Score the fit on held-out examplesStep 5: Repeat with fresh draws where the budget allows5. Repeat with fresh draws where the budget allowsStep 6: Average scores and estimate the paired win probability6. Average scores and estimate the paired win probability

Define the score and the training objective

The paper begins with a dataset written as S and a population distribution written as D. An example consists of an input x and its target y. In the notation S ∼ Dⁿ, the tilde means “is drawn from,” and Dⁿ represents n independent draws from D. A predictor h maps an input to a prediction, and H is the set of predictors that the training procedure can consider. The paper uses e for the evaluation metric and initially expresses it as a loss, so smaller values are preferable.

Rₑ(h, D) = E₍ₓ,ᵧ₎∼D[e(h(x), y)]

Here Rₑ is the expected risk for metric e. The symbol E averages over the input and target pair (x, y) drawn from D. The expression h(x) is the prediction from h for input x. The term inside the brackets is the loss for that prediction against target y. For instance, with classification error, the average concerns how frequently a prediction misses its target over draws from the population.

In an experiment the researcher can average the metric over a finite set. The hat on the risk marks this empirical quantity.

R̂ₑ(h, S) = (1/|S|) Σ₍ₓ,ᵧ₎∈S e(h(x), y)

The expression |S| is the number of examples in S, and Σ adds the terms for the pairs belonging to that set, indicated by ∈. The factor 1/|S| turns the sum into an average. The subscripts and arguments retain the same meanings for e, h, x, and y. The finite-sample average is directly measurable. The population expectation is the quantity the sample is intended to inform.

The authors distinguish the metric used to judge performance from the objective used by the optimizer. Training can minimize a surrogate loss that is easier to optimize and add a regularization penalty that makes some predictors preferable to others. Hyper-parameters are the settings that govern these choices and how the optimizer proceeds.

Opt(Sₜ, λ) ≈ arg minₕ∈H [R̂ₑ′(h, Sₜ) + Ω(h, λ)]

Opt is the fitting procedure, Sₜ is the training subset, and λ denotes its hyper-parameter settings. The loss e′ is the training surrogate, and R̂ₑ′ averages it over Sₜ. The term Ω represents regularization, with its dependence on the predictor h and the settings λ. The operator arg min selects a predictor in H that minimizes the bracketed objective. The approximate equality reflects the fact that the optimizer returns the result of a concrete fitting procedure.

Even when Sₜ and λ are fixed, the fit can vary. The paper collects the random choices made during fitting under ξₒ. They include the initialization of trainable parameters, the order in which training examples are visited, and any random operations used to alter examples or train the predictor. With stochastic augmentation, a training example can produce different inputs on different visits. The fitting procedure then effectively averages the training objective over a distribution of possible augmented data using samples from that distribution.

Define what the search chooses

The hyper-parameter search judges settings by validation performance. In the ideal tuning objective, it averages that performance over possible training and validation splits of the data available to the pipeline, as well as the relevant random choices. This favors settings that work across repetitions of fitting and validation. A real search can afford only a limited set of trials, and it may have only one internal split.

r(λ) = E₍Sₜ,Sᵥ₎∼sp(Sₜᵥ)[R̂ₑ(Opt(Sₜ, λ), Sᵥ)]

r(λ) is the expected validation risk at settings λ. The notation sp(Sₜᵥ) is a distribution of splits of the combined training and validation data Sₜᵥ. A draw from it supplies Sₜ for fitting and Sᵥ for validation. Opt(Sₜ, λ) is the predictor fitted at those settings, and R̂ₑ scores it on Sᵥ. The expectation also averages over the random choices affecting the procedure, which the displayed split notation leaves implicit.

λ∗(Sₜᵥ) = arg minλ r(λ)

λ∗(Sₜᵥ) is the ideal choice for the available data, and arg minλ finds a setting λ that minimizes r. In practice HOpt, the search procedure, returns an approximation. Its own uncontrolled choices are denoted by ξₕ. A random search can explore different candidates, and a manually chosen or grid-based search can still depend on arbitrary decisions about the search range. The authors use ξ for the combined set of random choices associated with fitting and tuning. The outer resampling of the dataset supplies a further source of variation in the measured performance.

h∗(Sₜᵥ) = P(Sₜᵥ) = Opt(Sₜᵥ, HOpt(Sₜᵥ))

P denotes the complete learning pipeline. Its fitted predictor h∗ is obtained by giving Opt the combined data Sₜᵥ and the settings returned by HOpt(Sₜᵥ). The star here identifies the result of the pipeline, including the realized search and fit. Refitting on the combined data is customary in the formal procedure once the settings have been selected. The outer test data remain available to score the result after that selection.

Identify the performance the benchmark can estimate

The population target averages over fresh training and validation datasets of the prescribed size. Each resulting predictor would also have to be evaluated over the population distribution. This target describes how the entire pipeline would perform if independent draws from that population were available.

Rₚ(D, n) = Eₛₜᵥ∼Dⁿ[Rₑ(h∗(Sₜᵥ), D)]

Rₚ is the expected risk for pipeline P, and n gives the size of Sₜᵥ. The subscript of E draws that dataset from Dⁿ. The inner risk Rₑ evaluates the resulting predictor h∗ on D. Randomness in obtaining h∗ is also part of the expectation. The notation separates repeatedly acquiring data for fitting from evaluating the fitted predictor on examples from the population.

The authors’ empirical target is defined using data the researcher actually has. It is the expected score over repetitions of a specified split or resampling plan on the observed dataset. This gives the benchmark a target precise enough to compare the comprehensive and cheaper estimators.

μ = R̂ₚ(S, n, n′) = E₍Sₜᵥ,Sₒ₎∼spₙ,ₙ′(S)[R̂ₑ(h∗(Sₜᵥ), Sₒ)]

μ is the expected empirical risk R̂ₚ for observed data S. The operator spₙ,ₙ′ supplies combined fitting and validation data Sₜᵥ of size n and outer evaluation data Sₒ of size n′ in the formal definition. The inner empirical risk uses Sₒ to score h∗. The expectation covers the data choices and the fitting and tuning randomness in the procedure. The paper writes σ² for the variance of an individual score generated under this benchmark. Its square root σ is the standard deviation on the scale of the metric.

The distinction between the two targets is consequential. Many draws from a well-defined resampling plan can give a precise average conditional on the available dataset. The distribution from which that dataset came remains unknown. The outer plan also defines what changes from run to run. An average under out-of-bootstrap sampling and a score conditional on a fixed test set answer questions about different experimental conditions.

Draw new splits from one dataset

The authors use bootstrapping to investigate the consequences of data sampling. A bootstrap training draw samples with replacement, so an example can occur more than once and some examples can be left out altogether. The out-of-bootstrap procedure uses examples omitted from the fitting draw as the source of held-out examples. Where the experiment constructs separate validation and test sets this way, the authors keep an observation from appearing across the different roles within a repetition.

Sₜᵇ ∼ S

Sₜᵇ is training resample b, with t marking its training role and b indexing the bootstrap repetition. The notation ∼ S here means a draw with replacement from the observed dataset S. In the ideal population experiment, this training dataset would instead be assembled with independent draws from D. Bootstrapping makes it possible to run an empirical version of the experiment using the dataset on hand.

Sₒᵇ ∼ S \ Sₜᵇ

Sₒᵇ is the evaluation resample for the same repetition b. The backslash indicates set difference. The sampling pool comprises examples in S that did not appear in Sₜᵇ. The notation expresses the core out-of-bootstrap rule. The case studies adapt it to their data, including sampling by class for CIFAR10 and bootstrapping already separate datasets for the biomedical task.

The authors prefer this resampling approach for their study because changing the number of cross-validation folds also changes the amount of data in a training fold. With bootstrapping, they can set the training sample size and vary how many repetitions contribute to the estimate. The training and evaluation draws still come from a common finite collection. Independent resampling operations are possible conditional on that collection, even though the experiment cannot substitute independent new datasets from the population.

Estimate the average with and without repeated tuning

The comprehensive estimator, IdealEst, draws new sources of variation on every repetition. That includes the outer split, the search, and the final fit. It is “ideal” in its handling of experimental randomness. Each search can still have a finite trial budget. If there are k repetitions and the tuning budget is T trials per search, the number of fits has order O(k · T). Here O describes how the cost grows, and the dot indicates that the number of searches multiplies the number of trials per search.

μ̂(k) = (1/k) Σᵢ R̂ₑᵢ

μ̂(k) is the comprehensive estimate of μ. The index i runs over the k benchmark repetitions, and R̂ₑᵢ is the empirical score at repetition i. The sum of these scores is divided by k. Under the reference protocol, each score has the benchmark mean μ, so their average has that mean as well. The paper also records the spread of the scores. Their standard deviation and the uncertainty in their average describe two different quantities.

E[(μ̂(k) − μ)²] = Var(μ̂(k)) + (E[μ̂(k)] − μ)² = σ²/k

E averages over repetitions of the estimator, and Var measures its variance. The left side is mean squared error, the average squared distance from the target μ. The middle expression separates the variance from the square of the bias, which is the difference between the estimator’s expectation and μ. For independent scores of common variance σ², the reference estimator has zero bias for this target and variance σ²/k. The tuning budget T affects the distribution of scores and hence σ², even though it does not appear explicitly in the formula.

The cheaper estimator, FixHOptEst, performs one search and carries its settings forward. It spends the remaining budget on new fits and evaluations, with total fitting cost of order O(k + T). The authors use Init for the version that varies starting weights, Data for the version that varies the split, and All for the version that varies the available fitting and sampling choices while retaining the result of the single search. The score average from this design is denoted by μ̃(k). A particular search may have chosen settings that suit its own random circumstances better than they suit the wider benchmark. The resulting average can therefore be centered differently from μ for that fixed setup.

Var(μ̃(k) | ξ) = Var(R̂ₑ | ξ)/k + ((k − 1)/k) ρ Var(R̂ₑ | ξ)

μ̃(k) is the fixed-search average from k scores. The vertical bar means “conditional on,” and ξ in this expression represents the choices fixed by the experimental setup. Var(R̂ₑ | ξ) is the common variance of an individual score in the paper’s conditional variance description. The symbol ρ is the average correlation among score pairs. The first term captures the contribution of the individual score variances. The second captures the contribution from scores that move together. With positive correlation, that second contribution can remain appreciable as the number of fits grows.

E[(μ̃(k) − μ)² | ξ] = Var(μ̃(k) | ξ) + (E[R̂ₑ | ξ] − μ)²

The left side is the conditional mean squared error relative to μ, and E[R̂ₑ | ξ] is the expected score under the fixed choices. The first term on the right is the estimator variance from the preceding formula. The squared term measures the displacement of the conditional mean from the benchmark target. Raising k can make the average more stable around that conditional center while leaving its displacement in place. Allowing more choices to vary can reduce shared movements among scores, even when it creates more ways for an individual score to fluctuate.

Decide what the scores say about the contenders

The simple baseline compares the difference between average scores with a fixed margin. For the comparison formulas below, a higher score is favorable, as it is for accuracy. If the underlying measure is a loss, the favorable outcome is the smaller loss.

R̄ₑᴬ − R̄ₑᴮ > δ

R̄ₑᴬ and R̄ₑᴮ are the averages of the empirical scores for pipelines A and B. The symbol δ is the required advantage on the metric’s scale. The rule can be applied to individual scores or to averages, and in this form it uses the same margin regardless of how much the scores vary between runs. The authors’ probability-based comparison instead uses the sign of each paired difference.

p̂ = (1/k) Σᵢ I{R̂ₑᵢᴬ > R̂ₑᵢᴮ}

p̂ estimates the probability P(A > B) that pipeline A wins a comparison. For each index i among k pairs, R̂ₑᵢᴬ and R̂ₑᵢᴮ are the empirical scores for the two contenders. I is an indicator. It contributes 1 when the condition in braces holds and 0 otherwise. The strict inequality means ties do not count as wins for A. The sum divided by k is the fraction of paired repetitions that favor A.

Pairing can give both contenders the same data split, and it can extend to other random choices when those choices have comparable effects. Repetition then changes the conditions across pairs. This design can keep a particularly easy or difficult test split from dominating the difference within a pair. It is less apparent what matching the same initialization seed buys when the contenders have different architectures. The paper also describes forming pairs at random if the original runs were conducted separately. The win probability then pertains to the pairing scheme used in that comparison.

The paper distinguishes the equal-chance reference, 0.5, from a practical threshold, γ. It uses 0.75 for the latter in its main simulation. To obtain an interval, the authors describe a percentile bootstrap over pairs. A bootstrap group contains N pairs drawn with replacement from the N available pairs. Taking K such groups produces K estimates of the win probability. The lower and upper percentiles of those estimates supply interval endpoints at tail probabilities set by the desired false-positive rate α.

N ≥ [(Φ⁻¹(1 − α) − Φ⁻¹(β))/(√6 × (1/2 − γ))]²

N is the number of runs used for the comparison under the paper’s sample-size calculation. Φ⁻¹ is the inverse cumulative distribution function of the standard normal distribution. The symbol α is the target false-positive rate, β the target false-negative rate, and γ the comparison threshold. The square root and square are part of the Mann–Whitney sample-size approximation the authors use. Under the paper’s choices of γ = 0.75, α = 0.05, and β = 0.05, the calculation gives a minimum of 29 trainings for the planned sample. The authors use this as a planning result under the approximation.

CIₘᵢₙ > 0.5 ∧ CIₘₐₓ > γ

CIₘᵢₙ and CIₘₐₓ are the lower and upper confidence bounds, and ∧ means both conditions must hold. The lower bound must clear the equal-chance reference, while the upper bound must reach beyond the practical threshold γ. The latter condition asks whether a practically meaningful advantage remains compatible with the observed scores. An interval that extends on both sides of γ can pass that condition. Evidence that the probability itself exceeds γ would require the lower bound to clear that threshold.

Experiments and results

The case studies and their metrics

The case studies deliberately differ in data, training, and score. The paper uses classification accuracy for CIFAR10 and both GLUE tasks, mean intersection over union for PascalVOC, and area under the curve for the biomedical estimator plots. These are units in which the authors measure score variation as well as performance. A standard deviation expressed in accuracy and one expressed in intersection over union have their own task interpretations. The broad comparison across tasks concerns the effects of changing the protocol.

CIFAR10 contains 60,000 color images of size 32x32 across 10 balanced classes. Its original split contains 50,000 training images and 10,000 test images. The study pools those images for resampling and uses a stratified bootstrap so that each class contributes equally to each role. For each class, the resampling targets are 4,000 training examples, 1,000 validation examples, and 1,000 test examples, with observations kept separate across roles. Random cropping and horizontal flipping supply the stochastic augmentation whose effect the authors can vary independently of initialization or example order.

The CIFAR10 predictor is VGG11 with batch normalization and without dropout. The search covers learning rate, weight decay, momentum, and the decay rate of a learning-rate schedule. The authors hold batch size at 128, so memory use remains predictable while fitting different configurations on the GPUs. They choose exponential decay for the schedule to keep its tuning space small. VGG11 comes from Very Deep Convolutional Networks for Large-Scale Image Recognition.

GLUE SST-2 asks whether a sentence from a movie review expresses positive or negative sentiment. The publicly available data contain around 68k entries. The authors keep the reported train and validation size ratio of 0.013 in their bootstrap design and let the class proportions vary between draws, as they do across the original partitions. They use the same pretrained checkpoint throughout. The initialization experiment for this task changes the final classifier, and the search considers the standard deviation of that initialization alongside learning rate and weight decay. The task comes from the Stanford Sentiment Treebank and is included in GLUE.

GLUE RTE uses pairs of text fragments and asks whether the first entails the second. The dataset contains around 2.5k entries, and the study maintains its reported train and validation size ratio of 0.1 in the bootstrap. For both GLUE tasks, the authors use the same architecture and tuning space. Training uses mixed precision, a batch size of 32, and 3 epochs for each task. The pretrained encoder stays fixed as the starting point across the repetitions, so the text experiments characterize variation introduced by fine-tuning the checkpoint. The encoder comes from BERT.

PascalVOC supplies 2913 images with pixel-level segmentation labels. The original division gives 2184 training images and 729 validation images. The bootstrap design uses 2184 draws for training and 729 each for validation and testing, and the paper reports a train and validation ratio of 0.25 for that design. Images are normalized and padded to 512x512. A pixel can belong to one of 20 classes or to background. Intersection over union measures overlap between a predicted region and its labeled region relative to the union of both regions. The study averages that measure over the classes and background and minimizes its complement during tuning.

The segmentation architecture is an FCN-16s with an ImageNet-pretrained ResNet18 backbone. The authors chose this backbone after considering alternatives because it could train relatively quickly. They use weighted cross-entropy for training, with the loss restricted to predictions inside the original image boundaries. They search over learning rate, momentum, and weight decay and keep the batch size at 16. The architecture draws on the papers on fully convolutional networks for semantic segmentation and deep residual learning.

The biomedical case predicts a normalized binding-affinity score from a peptide and an MHC class I allele. The authors use a shallow multilayer perceptron, with a search over hidden layer size and the strength of weight regularization. They have distinct training, validation, and test collections and bootstrap them separately. This case therefore implements data resampling within existing partitions. It also gives the estimator study a performance measure beyond accuracy and region overlap. The appendix reports both area under the curve, abbreviated AUC, and the Pearson correlation coefficient, abbreviated PCC, for its comparison with existing predictors.

How large the fluctuations were

To isolate variation from fitting and scoring, the authors first selected reasonable hyper-parameter settings for each case. They then varied one source at a time while holding the settings and the other sources at their starting values. Each source was probed with 200 randomized seed choices. A separate control used 200 runs with every seed fixed to measure numerical noise that remained under those conditions. The exercise covered resampling, initialization, visit order, augmentation where used, and stochastic operations such as dropout where applicable.

Data resampling produced the largest individual contribution in the paper’s comparison. The variance from changing the starting weights was generally less than 50% of that from bootstrapping and broadly comparable to the contribution of changing the training example order. The plotted source contributions are conditional on the other choices being fixed. A sum of those individual measurements would have no simple interpretation as the variance of the fully randomized pipeline, since the effects need not be independent.

For the classification tasks, the authors compared the observed standard deviation under data bootstrapping with a binomial description of test-set noise. In that description, τ is the chance of an error on an example, and n is the number of test examples. With independent errors, the count of incorrect predictions has a binomial distribution governed by those quantities. The fraction incorrect is the count scaled by the test set size. Correlation between errors lowers the effective amount of information in the set and can widen the spread. The observed and predicted standard deviations were close enough in the case studies to support the authors’ interpretation that the finite test set explains much of the sampling uncertainty.

To isolate tuning variation, the researchers held the fitting randomness fixed and repeated random search, noisy grid search, and Bayesian optimization. Each comparison used 20 independent searches with a budget of up to 200 trials. The paper presents optimization curves for 320 tuning runs. Across the tuning methods, the induced variation was on average comparable to the variation from starting weights. The authors also put their score variability alongside increments in the published state of the art. Across the examples they examined, ordinary benchmark fluctuations were of the same order of magnitude as those increments.

What the fixed-search estimators recovered

The authors compared estimators over budgets from 1 to 100 performance measurements. They repeated the fixed-search estimation under 20 different initial sets of choices so they could measure how much its standard error depended on the setup that was held fixed. They used the comprehensive estimator as the reference and reported results in the score units appropriate to each task.

Changing starting weights alone gave little improvement as repetitions accumulated. On the task where this variant performed best, GLUE RTE, its standard error approached that of the comprehensive estimator with 2 repetitions. Varying data splits alone improved standard error on every task. The resulting precision corresponded to comprehensive estimates based on between 2 and 10 repetitions, depending on the case. Varying all available sources other than tuning did better among the fixed-search estimators. Its precision corresponded to comprehensive estimates based on between 2 and 100 repetitions, with the high end reached in the biomedical case. These equivalences refer to standard error. They express how many comprehensive repetitions would yield comparable precision on a task.

At 100 repetitions, the paper reports 1,070 hours for the comprehensive estimator and 21 hours for an instance of the fixed-search estimator. The stated reduction is 51×. The study incurred the larger cost to measure how much precision the shortcut could recover. The authors report 6.4 GPU years for the comparative estimator investigation and roughly 8 GPU years for the case-study experiments overall. The inexpensive comparison in the paper is therefore a protocol evaluated against a much more expensive reference.

What the decision rules detected in simulation

The authors simulated score comparisons using means and variances informed by the empirical runs. They used a budget of 50 data splits for the repeated comparisons and varied the true simulated chance of a win for A from 0.4 to 1. For the comprehensive estimator they used normal fluctuations around the chosen mean, with the averaging variance from the reference protocol. For the fixed-search estimator, they first drew a shared shift from a zero-centered normal distribution informed by the observed estimator variance. They then simulated individual scores around the shifted center, with a spread informed by the observed score variance across 20 fixed-search realizations.

The fixed margin for comparing averages was 1.9952σ, where σ is the case-study standard deviation measured with the comprehensive estimator. The authors fitted the multiplier 1.9952 so that the margin represented increases reported in published benchmark results. The probability-based rule used a practical threshold of 0.75. The comparison also included a single-run margin rule and an oracle that had perfect information about the variances. The simulated regions distinguish cases with no significant advantage, cases with a significant but small advantage, and cases treated as both significant and meaningful by the study’s criterion.

The single-run rule produced about 10% false positives in the region without a significant improvement. Applying the margin to the average across 50 runs brought that rate below 5%, but it missed about 90% of the improvements in the region designated meaningful. The win-probability rule had about 5% false positives in the first region and about 30% false negatives in the meaningful region. Its curve came closer to the oracle with comprehensive estimates, and it retained the more balanced error profile with fixed-search estimates. These rates describe the simulated comparisons and their particular boundaries.

Approximate false-negative rates in the meaningful region of the case-study simulations

The win-probability rule misses fewer meaningful improvements under the simulated conditions.

Approximate false-negative rates in the meaningful region of the case-study simulationsSingle-run margin: 75Single-run margin75Margin on the repeated-run average: 90Margin on the repeated-run average90Win-probability rule (this paper): 30Win-probability rule (this paper)30
The numbers
System or settingfalse negatives %
Single-run margin75
Margin on the repeated-run average90
Win-probability rule (this paper)30

The biomedical baselines

The biomedical case includes a performance check against the published NetMHCpan4 and MHCflurry tools. The authors used the existing fitted tools for this check. They evaluated on an external dataset called HPV and on the test portions of the NetMHC-CVsplits. The checks help place the shallow MLP in the performance range of the established predictors. They address a different comparison from the main experiment, which concerns the behavior of estimators under resampling.

Binding-prediction AUC on the HPV external test dataset

The study’s shallow MLP has the highest AUC on this external dataset.

Binding-prediction AUC on the HPV external test datasetNetMHCpan4: 0.53NetMHCpan40.53MHCflurry: 0.58MHCflurry0.58MLP-MHC (this paper): 0.63MLP-MHC (this paper)0.63
The numbers
System or settingAUC
NetMHCpan40.53
MHCflurry0.58
MLP-MHC (this paper)0.63

The HPV correlation results give a different ordering. The PCC was 0.39 for NetMHCpan4, 0.41 for MHCflurry, and 0.31 for MLP-MHC. On the NetMHC-CVsplits, the AUC was 0.854 for NetMHCpan4 and 0.861 for MLP-MHC. MHCflurry reached 0.964 on those splits, a result the authors flag because the existing fitted tool may have encountered examples from that collection during training. The corresponding PCC values on the NetMHC-CVsplits were 0.620, 0.660, and 0.671 for NetMHCpan4, MLP-MHC, and MHCflurry, respectively, with the same caveat applying to MHCflurry. The results establish the scale of performance of the case study while leaving a controlled ranking of the predictors open.

What the ablations show

Isolating sources and changing them together

The closest analogue to an ablation in this paper is an experiment that switches some sources of randomness on and leaves others fixed. The individual-source study measures how much a particular choice can move the score under an otherwise stable setup. The estimator study takes the complementary view. It measures the precision of an average after allowing different combinations of choices to vary. A source can be consequential for individual scores and still improve the precision of the average when fresh draws of that source make repeated scores less dependent on the same arbitrary conditions.

The comparison between Init and Data gives that distinction a concrete form. With initialization alone, all the fits face the same example selection and evaluation set. Their starting points can change, but an unusually favorable test set continues to favor them all. When the data are resampled, the evaluation examples change and training can also change with them. Across the case studies, the latter protocol improved the estimate more than repeatedly changing the starting weights. The result explains why a collection of weight seeds offers limited information about what happens under fresh benchmark conditions.

The comparison with All examines whether permitting the remaining fitting choices to vary is worthwhile once the benchmark already changes the split. This version still spends its tuning budget once. It can therefore be compared with the restricted versions at the same basic number of searches and fits. Across the cases, broadening the randomization reduced the standard error or kept it at a similar level. The biomedical case was the only one where the all-sources fixed-search variant matched the comprehensive reference. The authors suggest that the relatively small tuning variation observed for this case may explain that result. The other cases retain a visible advantage from rerunning the search.

Why the average improves

The paper decomposes the estimation error into a bias component and a variance component. Over the fixed-search variants, the bias component was comparatively stable across tasks. The variance component differed considerably. A separate calculation of correlations among individual performance measurements showed a sharp decline as more sources were randomized. The figures therefore attribute the observed reduction in mean squared error primarily to the lower variance of the average, with the change in correlations providing an explanation.

The mechanism is easiest to see by considering what the average can cancel. Repetition cancels fluctuations that differ from one run to the next. A condition that moves many scores together survives that averaging more readily. If a group of fits shares one test sample and one tuning result, every reported score reflects those choices. Replacing the shared test sample with fresh resamples removes a common condition across the repetitions. The paper relates this reduction through weaker dependence to the variance argument used for bagging. Its experiment concerns averaging evidence about performance, while the connection is the mathematics of averaging correlated quantities.

There are two kinds of dependence to keep distinct. Pairing makes the scores of the two contenders within a repetition share relevant conditions. If those conditions tend to move their scores in the same direction, the difference between the scores is easier to interpret. The fixed-search problem concerns dependence across repetitions used to estimate the performance of a pipeline. The experiment can use a different shared split for each pair and thereby gain the benefits of pairing within pairs and fresh conditions across them.

Whether a longer search buys stability

The tuning comparison also isolates a design decision that would be easy to overlook if grid search were described simply as deterministic. A grid gives the same candidates once its limits and spacing are set, but the experimenter’s choice of those limits can favor one particular part of the search space. The authors perturb grid endpoints to examine how variation in this choice affects the selected result. In expectation the perturbed grid visits the corresponding positions on the original grid.

pᵢⱼ = aᵢ + Δᵢ(j − 1)

pᵢⱼ is the jth candidate coordinate in dimension i. The lower endpoint for that dimension is aᵢ, and Δᵢ is the interval between grid positions. The factor j − 1 counts the intervals from the first point. The ordinary grid evaluates combinations of these coordinates. The noisy grid chooses perturbed lower and upper endpoints around the original ones and uses their resulting spacing. The authors expand the random-search range by a corresponding half interval and sample learning rate and weight decay on a logarithmic scale where specified.

The tuning curves track the best candidate so far as judged by validation data and also track its test score. The methods generally found good candidates in the search spaces the authors selected. In most cases the standard deviation across runs stabilized before 50 trials. The BERT tasks showed some signs that a search could continue to improve its validation result with less evidence of improvement on the test data. Together, these observations explain why a longer search had limited promise as a way to reduce score variation in the settings studied. Repeating a search to expose the variation it introduces serves a different experimental purpose from increasing the trial budget of one search.

How the comparison changes with the rule

The authors vary both the number of observations and the practical threshold in supplementary simulations. They compare the fixed-margin rule, the win-probability approach, and a t-test. The t-test illustrates why the margin on average scores was conservative once many runs had been combined. Its threshold can change with the observed variability and the number of measurements. A margin chosen from published increments stays fixed when an estimate becomes more precise.

The paper also checks the shape of the performance distributions used to inform the simulations. It shows distributions when one source varies at a time and when the sources vary together. Most case studies yielded distributions close to normal in those diagnostics. GLUE SST-2 was the notable exception because the possible scores on a small test split were discrete. Its observed distribution was still roughly symmetric. This check supports the simulation as an account of the study’s cases and identifies a concrete setting where the smooth normal approximation is less exact.

Limitations

Limits identified by the authors

The framework assumes the researcher can rerun and control a learning pipeline. In a setting where a fitted predictor is purchased through an interface or supplied by a competition, the evaluator may be able to change only the test data. The paper’s main comparison between repeating and fixing the training and search process is unavailable in that setting. Sampling uncertainty in the evaluation remains relevant, and its role is narrower than the procedure-level question studied here.

The authors focus on comparisons between two contenders. A competition may rank many procedures, so the chance that some attractive result occurs through fluctuation increases with the number of comparisons. The paper suggests that a correction such as Bonferroni could lead to a more demanding decision threshold. It also points out that such corrections become stringent as the field grows. The empirical results for two contenders leave open how to select a winner with well-controlled errors from a large competition.

The paper also distinguishes comparisons across runs on one task from comparisons across datasets. Different datasets can have different score scales and different levels of uncertainty. Tests that rank procedures across datasets use the datasets themselves as the units of evidence. The authors note that studies often use as few as 3 to 5 datasets, giving such tests limited power. They discuss an alternative that asks for improvement on every dataset and handles multiplicity explicitly, which can be more suitable when the dataset collection is small. Its correction becomes more demanding as the collection grows. That alternative comes from Replicability Analysis for Natural Language Processing.

The empirical results concern predictive performance. The authors mention time to reach a performance level and memory footprint as other measures a benchmark might care about. A metric averaged over test observations can frequently be approximated by a normal distribution, while other measurements may have a different distribution. The paper leaves the simulation results for those other metrics open. Its example of evaluation that considers other resource measures is MLPerf Inference Benchmark.

The appendix records several restrictions on what was randomized. For both GLUE tasks, the starting checkpoint was shared throughout and the authors excluded pretraining variability on cost grounds. They controlled the hardware and software versions for the experiments, having observed that changing them could change results. They did not estimate a variance component for running on different GPU architectures. For PascalVOC, they could still observe score variation even with the seeds fixed and report that as numerical noise. The isolated variance measurements in that case therefore include an uncontrolled background of fluctuation.

The authors also qualify the error behavior of the cheap estimator and the threshold recommended for the win probability. The simulation supports its comparative performance on the cases studied, and the authors explicitly leave nominal error control with the biased estimator unguaranteed. They treat the practical threshold as a choice for a research community and recommend 0.75 on the basis of these experiments. For the percentile bootstrap they recommend use below a win probability of 0.95 and note that reliability depends on the distribution and the resampling plan.

Limits that follow from the design

The case studies cover several kinds of prediction, but each task is paired with a particular architecture and training setup. A large effect of resampling in those pairs does not identify a universal ordering of variance sources. A case with different data volume, an especially sensitive training stage, or a much larger tuning space can have a different balance of uncertainty. For example, the two GLUE cases tell us how a particular fine-tuning setup behaves given its shared starting checkpoint. The experimental design leaves the corresponding distribution across pretrained checkpoints unknown.

The analysis of tuning budget is likewise conditional on the search spaces the authors selected. They designed those spaces to cover settings known to be good as well as worse settings and kept several costly or inconvenient dimensions fixed. Early stabilization describes the repeated searches within those choices. It offers little direct evidence about a broader search that explores qualitatively different architectures, or about how much variance to expect from a manually adapted series of experiments where the search space itself keeps changing. The paper itself anticipates that complex architecture searches could behave differently.

The bootstrap is a way to ask a wider question of a finite dataset than one fixed test split can answer. Its reach still depends on the examples collected. Repartitioning the same observations cannot establish what happens on examples from a different population. It also cannot add information about cases absent from the collection. For example, stratifying the CIFAR10 resamples holds class proportions constant within that experiment, while allowing them to vary for the GLUE tasks makes class-mix changes part of the latter benchmarks. The measured variance is meaningful given the resampling design, and the designs describe different hypothetical repetitions.

The label “ideal” is relative to the paper’s benchmark target. It means all the specified sources are renewed and averaged over. It leaves the population target conditional on the quality of the available data as a representation of that population. It also leaves the search finite, and defines performance for the chosen tuning procedure and budget. Similarly, a fixed-search variant’s match in standard error to a certain number of comprehensive repetitions is a precision comparison. A favorable standard error does not identify how close the conditional center lies to the full-procedure average.

The win probability answers a specific practical question about the frequency of favorable outcomes. It gives equal credit to a slight win and a large win, and the strict comparison assigns ties no credit as wins for A. On a test split with discrete scores, the treatment of ties can affect the interpretation. Pairing also defines the conditions of the probability. Facing the same data split is a different comparison from drawing the two runs independently. For the paper’s confidence-interval rule, clearing the equal-chance reference at the lower end supplies evidence of an advantage. Clearing γ at the upper end supplies compatibility with a meaningful advantage. That distinction matters when the interval is wide and still contains probabilities below γ.

Finally, the error rates concern simulations anchored to the observed case studies. The construction for the fixed-search estimates uses a random shared shift and normal fluctuations with empirical variance inputs. The full distribution of outcomes from real comparisons between unrelated pipelines could involve different spreads, more complicated dependencies, or other kinds of displacement. The simulated advantage over a fixed-margin rule is evidence for the protocol used in the paper. It leaves the calibration of the same procedure in a new benchmark to be established under that benchmark’s conditions.

What came after

The paper has been cited in work on reinforcement-learning evaluation, reporting standards for machine-learning studies, and tabular classification. Together those citations place the benchmark question in three settings. Each has its own unit of comparison, so the citation establishes a connection to the problem of benchmark reliability while leaving the specific adoption of resampling, repeated tuning, or the win-probability rule undetermined.

Deep Reinforcement Learning at the Edge of the Statistical Precipice takes up statistical evaluation in deep reinforcement learning. The connection is the effort to interpret relative performance in the presence of limited and variable experimental observations. Bouthillier and colleagues approach this through explicit descriptions of what a trial repeats and how trial scores turn into a decision. The reinforcement-learning work cites that benchmark-variance study in a different evaluation setting.

REFORMS: Reporting Standards for Machine Learning Based Science brings the study into a discussion of how machine-learning research is reported. The connection concerns the information a reader needs to interpret an empirical claim. For example, an average over trials has different evidential value depending on whether the trials share a tuning result or instead repeat the full procedure. The citation connects these choices about benchmarking to the broader subject of reporting standards.

Generalization or Memorization? cites the paper in a tabular classification comparison involving multi-agent systems, baseline language systems, and automated machine-learning approaches. Its title identifies generalization and memorization as the distinction under investigation. The benchmark-variance paper bears on a related measurement question in that setting. A performance ordering observed under a particular data selection gives evidence under those conditions, and the scope of any broader ordering depends on which conditions the comparison varies.

Cite

Cite as Xavier Bouthillier, Pierre Delaunay, Mirko Bronzi, Assya Trofimov, Brennan Nichyporuk, Justin Szeto, Naz Sepah, Edward Raff, Kanika Madan, Vikram Voleti, Samira Ebrahimi Kahou, Vincent Michalski, Dmitriy Serdyuk, Tal Arbel, Chris Pal, Gaël Varoquaux and Pascal Vincent. 2021. Accounting for Variance in Machine Learning Benchmarks. arXiv:2103.03098.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2103.03098 · arXiv 2103.03098

@misc{bouthillier2021accounting,
  title = {{Accounting for Variance in Machine Learning Benchmarks}},
  author = {Xavier Bouthillier, Pierre Delaunay, Mirko Bronzi, Assya Trofimov, Brennan Nichyporuk, Justin Szeto, Naz Sepah, Edward Raff, Kanika Madan, Vikram Voleti, Samira Ebrahimi Kahou, Vincent Michalski, Dmitriy Serdyuk, Tal Arbel, Chris Pal, Gaël Varoquaux and Pascal Vincent},
  year = {2021},
  doi = {10.48550/arxiv.2103.03098},
  eprint = {2103.03098},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2103.03098}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bouthillier-2021-accounting-variance-machine-learning-benchmarks/