arXiv:2610.23700cs.LGOct 2026

Manuscript Offprint

arXiv:2610.23700

Equivalence testing and run-count design for stochastic machine-learning experiments

Dmytro Knopov, Nadiya Shvai

Abstract

Claims that two training methods perform equally well often rest on a non-significant difference between two or three runs per method. We develop a protocol, with its power theory, for certifying practical equivalence in per-run metrics such as the AUROC (area under the receiver operating characteristic curve). It rests on a two-level (seed × item) variance model separating between-run dispersion from item-level noise. Equivalence within a pre-specified margin is tested by two one-sided tests (TOST), equivalently by a confidence interval inside the margin; a two-level bootstrap covers composite statistics. A closed-form formula converts a margin and a target power into runs per method; its shifted-t refinement is calibrated against the realised two-level process. Simulations on a 270-cell grid and under non-Gaussian seed laws confirm the formula within its design-relevant range, from five runs per method. For four published runs of a joint energy-based model, the failure to certify equivalence was largely decided by design: with the variance calibrated to those runs, two per method certify with probability near three per cent, whereas certifying 0.01 AUROC at 80 per cent power needs twelve even under exact equality. A second case study on a thousand-seed CIFAR-10 zoo and the MultiBERTs checks the formula against real seed laws (within 0.05 in that range) and resolves comparisons that two or three runs leave undecided. In a two-stage design (pilot, then formula), our experiments suggest that an upper confidence bound on the pilot variance substantially reduces the undersizing seen with its point estimate.

Keywords: machine learning, statistical hypothesis testing, equivalence testing, experimental design, statistical power, hierarchical bootstrap

1 Introduction

A recurring conclusion of empirical machine-learning research is that a new training method performs “on par” with an established baseline. Classical significance testing cannot support this conclusion: failure to reject the hypothesis of no difference is not evidence of no difference, least of all when the comparison rests on two or three training runs (Colas, Sigaud, & Oudeyer, 2018). At the same time, the variance of benchmark results, from data sampling and from arbitrary training choices such as initialisation and data order, is a first-order effect in modern benchmarks, often of the same order as the improvements being reported (Bouthillier et al., 2021), and the part induced by the training seed alone has been measured across domains (Dodge et al., 2020; Picard, 2021). Small-n comparisons that end in a null outcome are therefore routine, and routinely over-interpreted.

Equivalence testing inverts the burden of proof. One fixes, before the experiment, a margin δ\delta below which a difference is declared practically irrelevant; the null hypothesis states that the methods differ by at least δ\delta, and rejecting it certifies equivalence at a controlled error level (Lakens, 2017; Schuirmann, 1987). The question that then decides the fate of the experiment is one of design: how many training runs does the certification require?

The concrete motivation for this work is our experimental study (Knopov, 2026) of joint energy-based models (Grathwohl et al., 2020), which compared two training methods and found their macro-averaged areas under the receiver operating characteristic (ROC) curve (AUROC) within 0.006 of each other, yet two one-sided tests (TOST) at margin δ=0.01\delta = 0.01 returned p=0.33p = 0.33 from n=2n = 2 runs per method. As Section 6 shows, a variance calibrated retrospectively to its own runs leaves that negative outcome very little room to be otherwise: at n=2n = 2 the rejection region of the deterministic power approximation is empty, and the realised probability of certification, in a simulation calibrated to the observed variance, is roughly three per cent. Turning this experience into theory yields a protocol that answers, before the certification experiment is run and given a pilot or an external estimate of the run-level dispersion, whether an equivalence claim is within reach.

The contributions of this work are methodological rather than the introduction of a new equivalence test. We develop a framework for applying equivalence testing to stochastic machine-learning experiments, treating independently trained runs as the experimental units and distinguishing explicitly between the setting with an independent test draw for every run and the shared-benchmark setting used in practice. First, we formalise these two settings with a two-level (seed × item) variance model for per-run AUROC: an exact variance decomposition under independent test draws (Proposition 1) and its conditional counterpart for a shared test set (Proposition 2). The model separates the seed-level dispersion, which only additional runs can reduce, from the item-level noise, which a larger test set shrinks. Second, we define a seed-level Welch-TOST protocol with confidence-interval duality (Proposition 3) and size control inherited from the intersection-union principle up to the Welch approximation. Third, we specify a two-level bootstrap for composite per-run statistics and map its finite-sample validity by simulation, over run counts and variance regimes, rather than asserting it (Remark 2). Fourth, we derive an approximate power function (Proposition 4) with the design formula (10) for the required number of runs, validate it on a 270-cell simulation grid and benchmark it against the exact pooled-model power of Shieh (2016). Fifth, we revisit the data of Knopov (2026) in a case study that reproduces the published numbers exactly. It answers the design question: certifying ±0.01\pm0.01 at 80% power requires about 12 runs per method even for truly identical methods, not 2. Sixth, in a second case study on two public collections of independently trained models with up to a thousand runs (Section 7), we check the design formula against real, non-Gaussian seed laws, exhibit the shared-test-set regime in which the binomial item-level variance exceeds the observed per-run variance, and show the protocol resolving comparisons that two or three runs leave undecided. The same case study takes the two-stage pilot design end to end and compares two ways of entering the pilot variance into the formula. Sections 3–4 develop the theory, Section 5 reports the simulations, and Sections 6 and 7 the case studies.

References (46)