arXiv:2608.27100cs.SEAug 2026

Manuscript Offprint

arXiv:2608.27100

Mutation Testing for Reproducibility Safeguards in Machine Learning Research Software: An Empirical Study

Ilya Shulepov

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Reproducibility in machine-learning research depends on experimental choices such as random seeds, dependency versions, data partitioning, and evaluation configuration. Existing repository validation workflows may execute successfully without detecting changes to such choices. We study this problem using MLReproMutate, research software that applies controlled, reproducibility-relevant mutations to ML research repositories and evaluates them against validation workflows already present in those repositories.

We conducted an outcome-blind empirical study of 39 frozen repository-operator cases using four mutation classes: random seed, dependency pin, data split, and cross-validation fold count. Repository revisions, mutation candidates, and validation workflows were fixed before mutation outcomes were observed. Primary execution yielded outcomes for 13 of 39 cases; a bounded restoration procedure increased the combined evaluable set to 24. After excluding one confirmed-equivalent mutation, 23 confirmed non-equivalent mutations remained. The selected validation workflows detected 2 of these 23 mutations, corresponding to an observed detection proportion of 8.7%.

These results do not imply that the corresponding repositories are irreproducible. Rather, they show that, in this sample, existing validation workflows often did not detect the particular controlled reproducibility-relevant changes introduced by the study. The findings motivate reproducibility-oriented mutation testing as a complementary way to assess whether research-software safeguards constrain experimentally important choices.

1 Introduction

Reproducibility in machine-learning research depends not only on the availability of source code, but also on experimental choices encoded in that code and its execution environment. Random seeds, data partitioning, cross-validation protocols, dependency versions, and related configuration choices can affect measured results even when the software continues to execute successfully [17, 6, 1]. Accordingly, reproducibility initiatives increasingly emphasize the publication of code, environments, experimental details, and executable workflows [3, 15, 4].

An open question is whether the validation mechanisms already present in research repositories are sensitive to changes in these reproducibility-relevant choices. A repository may contain tests, continuous integration, validation scripts, documented experiments, or runnable examples. Such workflows provide evidence that software can execute or that particular properties hold, but they are not necessarily designed to detect changes in experimental configuration.

This distinction is difficult to study from ordinary repository outcomes alone. When a validation workflow succeeds, it is generally unknown whether it would also succeed after a scientifically relevant experimental choice had changed. Mutation testing provides a way to make this counterfactual explicit: introduce a controlled change and observe whether the existing validation workflow distinguishes the mutant from the original program [10, 11].

Mutation testing has already been applied extensively to conventional software, scientific software, and machine-learning systems [7, 13, 9]. Dependency-update testing has likewise used artificial faults to assess whether test suites can detect problems introduced through changed dependencies [5]. The present work therefore does not claim that mutation testing itself is new to ML or research software. Instead, we use mutation testing for a specific measurement target: the sensitivity of existing validation workflows in real ML research repositories to controlled changes in reproducibility-relevant experimental choices.

We introduce MLReproMutate, research software that detects and applies domain-specific mutations to reproducibility-relevant choices in Python ML projects. In the present study, we consider four mutation classes: random-seed, which changes a literal random seed; dependency-pin, which relaxes an exact dependency constraint; data-split, which disables explicit stratification in a train/test split; and cv-fold-count, which changes an explicit cross-validation fold count. Each mutation is evaluated against a validation workflow selected from the repository rather than against a newly introduced study-specific test oracle.

We use MLReproMutate in an empirical study of 39 frozen repository-operator cases drawn from real ML research repositories. Corpus construction was static and outcome-blind: repository eligibility, source revision, mutation candidate, and validation workflow were fixed before mutation outcomes were observed. For the primary B02 corpus, validation-oracle categories were also recorded prospectively. Cases that could not execute at baseline were kept separate from mutation outcomes rather than being replaced after observing execution results.

Primary execution produced mutation outcomes for 13 of the 39 cases. A bounded post-primary restoration procedure increased the combined evaluable set to 24 cases while preserving the frozen revision, mutation candidate, and validation workflow. One evaluated mutation was confirmed semantically equivalent. Among the remaining 23 confirmed non-equivalent mutations, the selected validation workflows detected 2 and did not detect 21. Thus, in this sample, the observed confirmed mutation-detection proportion was 2/23 (8.7%).

We additionally examine detection descriptively by validation-workflow type and, for the prospectively classified B02 subset, by oracle type. The two detected B02 mutations both occurred in the dependency-pin × completion-only cell. Sparse cells, unequal operator composition, and differential evaluability prevent attributing this pattern to oracle strength. We therefore treat these comparisons as descriptive rather than as evidence of causal or statistical differences among workflow categories.

The study makes four contributions:

  • We present a reproducibility-oriented mutation model and its implementation in MLReproMutate, targeting experimental choices surrounding ML research workflows rather than learned-model structure alone.

  • We define an outcome-blind empirical protocol that freezes repository revisions, mutation candidates, validation workflows, and prospective oracle metadata before mutation outcomes are observed.

  • We provide empirical evidence from 39 frozen repository-operator cases, including explicit accounting for baseline executability, bounded restoration, and semantic equivalence.

  • We distinguish mutation survival from repository-level reproducibility: a surviving confirmed non-equivalent mutation establishes only that the selected validation workflow did not detect that particular controlled change.

The remainder of the paper reviews related work (Section 2), describes MLReproMutate and its mutation model (Section 3), states the research questions and empirical protocol, reports the results, and discusses their implications and threats to validity.