Manuscript Offprint
arXiv:2610.06055Where Does the Budget Go? Structural Concentration in Learning-Based Mutant Selection
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
TAHA ROSTAMI, University of Luxembourg, Luxembourg
JEONGJU SOHN, Kyungpook National University, Republic of Korea
MIKE PAPADAKIS, University of Luxembourg, Luxembourg
Learning-based mutant selection is used to reduce the cost of mutation testing by ranking and selecting the mutants that seem to be the most promising. Prior work has shown great potential for this approach in fault revelation and subsuming-mutant selection. However, the risks and benefits of these approaches—especially the distribution of selected mutants across code locations and how that distribution affects behavioral diversity and fault revelation—remain unclear. We investigate this distribution and its effects, and introduce LINEPOOL, a simple, model-agnostic stratification step that distributes selections across source lines while retaining the underlying ranking signal. Across two datasets and budgets (2% and 5% of the mutants), we find that learning-based selection concentrates the budget on a few code locations, and may thereby systematically introduce 'blind spots', untested code areas, allowing faults to escape detection. On larger programs, the selected mutants also exhibit substantial overlap in kill behavior. LINEPOOL substantially increases spatial coverage and reduces kill-set overlap. It also improves fault revelation at tight budgets and makes selection more robust to imperfect or shifted ranking signals. Comparisons with clustering and established diversification methods show that none consistently outperforms LINEPOOL across datasets, supporting its use as a simple diversification step. In general, our results suggest that behavioral diversity should be considered alongside effectiveness when designing and evaluating mutant-selection methods, and that exploiting structural elements of the program is one simple way to obtain such diversity while maintaining effectiveness.
1 Introduction
Mutation testing assesses and improves test suites by introducing simple syntactic changes (mutants) and checking whether tests detect the resulting behavioral differences. Although highly effective, its practical use is limited by cost: mutation tools generate many mutants, and executing them is computationally expensive [31].
A common response is to select a budgeted subset of mutants. By reducing the number of the considered mutants one can reduce the overall cost associated with mutation testing since fewer mutants need to be generated, executed and analyzed. Recent work increasingly relies on learning-based ranking, which predicts a utility score for each mutant and selects the top-k mutants under a fixed budget [12, 41]. Such approaches provide favorable cost-effectiveness tradeoffs.
However, these approaches are evaluated almost exclusively through their effectiveness, while the diversity of the selected mutant set is rarely examined. Under a tight budget, this matters: many mutants share code context and operator patterns, which may cause prediction models to assign high scores to mutants from the same source region, concentrating the selection budget on only a few lines.
Importantly, structural concentration is not inherently undesirable—a “hot” region may legitimately deserve additional attention. The concern is what a concentrated budget leaves out and what it spends twice. First, concentration may introduce blind spots: code regions, possibly containing the fault, for which no mutant is selected. Second, it may lead to behavioral redundancy: when many selected mutants exhibit overlapping kill behavior, a large fraction of the budget is spent on redundant testing signals. Distribution shift can further amplify both effects.
Authors' Contact Information: Taha Rostami, University of Luxembourg, Luxembourg, Luxembourg, taha.rostami@uni.lu; Jeongju Sohn, Kyungpook National University, Daegu, Republic of Korea, jeongju.sohn@knu.ac.kr; Mike Papadakis, University of Luxembourg, Luxembourg, Luxembourg, michail.papadakis@uni.lu.
Taha Rostami, Jeongju Sohn, and Mike Papadakis
We study two representative ranking signals: FaRM, a fault-revealing mutant predictor [41], and a subsuming-mutant predictor (SUBSUMING) inspired by prior work [12]. We evaluate them on mutation datasets derived from the CODEFLAWS [40] and COREBENCH [3] benchmarks.
We show that score-based top-k selection often produces structural concentration with both consequences. On CODEFLAWS, top-k selection omits the faulty line in about half of the subjects, and the fault-revelation gains from diversifying selection are concentrated in these cases. On the larger CoREBENCH programs, concentration is additionally coupled with behavioral redundancy, and unpooled selection can reveal fewer faults than random selection.
To address this problem, we introduce LINEPOOL, a simple model-agnostic post-processing strategy that groups mutants by source line and uses the original ranking signal to prioritize both lines and mutants within each line. It requires no additional mutant features or parameter tuning, making it straightforward to apply to an existing ranking method. By spreading the selection across source lines, LINEPOOL limits spatial blind spots and behavioral overlap while retaining the original ranking signal. To reflect the growing interest in Large Language Model (LLM)-based approaches, we further examine LLM-based ranking and find evidence of the same failure mode, with LINEPOOL mitigating it in the same way.
The contributions of this paper are:
• Diagnosis of structural concentration and its consequences. We empirically show that score-based top-k selection can collapse structurally, leaving blind spots that frequently omit the faulty line, and that, particularly on larger programs, this collapse is coupled with behavioral redundancy.
• A lightweight, model-agnostic selection operator. We propose LINEPOOL, a rank-preserving diversification operator that can be applied on top of any mutant-ranking signal. It reallocates a fixed mutation budget across source locations while preserving within-location ranking, thereby limiting blind spots and reducing behavioral overlap.
- Large-scale evaluation. On mutation datasets derived from CODEFLAWS (1,692 programs; 1.76M mutants) and CoREBENCH (45 regression faults) [41], LINEPOOL consistently increases spatial coverage, reduces overlap, and preserves ranking effectiveness—improving fault revelation at tight budgets. Comparisons with clustering and established diversification methods show that none consistently outperforms LINEPOOL, while LINEPOOL remains simpler to integrate in practice.
2.1 Mutation Testing
Mutation testing is commonly used for assessing the effectiveness of test suites [31, 36]. It introduces small syntactic changes, called mutations, into the original program to produce modified programs known as mutants. Each mutant represents a plausible fault, such as replacing an operator, modifying a constant, or altering a conditional expression. The test suite is executed against each mutant. If at least one test distinguishes its behavior from that of the original program, the mutant is said to be killed; otherwise, it remains live.
The mutation score—the proportion of killed mutants—is a strong indicator of test-suite quality and has been shown to correlate well with real fault detection [13]. Beyond evaluation, mutation testing has been used to guide automated test generation [16, 42], where surviving mutants highlight inadequately exercised program behaviors and guide the generation of tests to kill them.
2.2 Mutant Selection
Given the high computational cost of mutation testing, a substantial body of research has focused on reducing the number of mutants while preserving effectiveness.
One early direction is selective mutation, which restricts the applied mutation operators. Mathur [26] introduced constrained mutation using a small subset of operators, and subsequent studies by Wong and Mathur [45] and Offutt et al. [29] demonstrated that carefully chosen operator subsets can significantly reduce mutant counts with minimal loss in effectiveness. These reduced operator sets have since been widely adopted by mutation testing tools [31].
Other approaches exploit program structure or mutant similarity. Clustering-based techniques, for example, group mutants according to similarity and select representative mutants from the resulting clusters [19]. Later work explored structural properties of the program, including mutation location and control-flow relationships. Dominator-based techniques prioritize mutants whose execution or coverage can imply that of others [14, 39].
Despite these efforts, extensive empirical evidence suggests that many reduction techniques offer limited improvement over random selection [15]. Prior studies have shown that random sampling often achieves effectiveness comparable to more complex heuristics, and that many mutants are weakly related to real faults [11, 22, 32].
2.3 Learning-Based Mutant Selection
Recent work has shifted toward targeting useful mutants using supervised learning to predict those more likely to reveal real faults or subsume others, rather than relying solely on handcrafted heuristics [12, 37, 41].
Titcheu Chekam et al. [41] introduced FARM, a learning-based approach that extracts static features from mutants and trains classifiers to predict fault-revealing mutants. A mutant is fault-revealing if it is killable and the tests that kill it also reveal real faults in the program. Mutants are then prioritized according to predicted usefulness, and the top-ranked subset is selected for further analysis or test generation. Experimental results demonstrated improvements in fault revelation compared to traditional selection methods, including random sampling and operator-based selection.
More recently, Garg et al. [12] proposed Cerebro, a neural encoder–decoder model designed to identify subsuming mutants based on mutation operators and code context. Subsuming mutants are mutants whose kill sets subsume those of others, such that killing a subsuming mutant implies killing one or more dominated mutants.
While prior work focuses primarily on improving fault revelation effectiveness, the properties of the resulting mutant sets, such as spatial concentration and behavioral redundancy, remain largely unexplored. Our work complements existing learning-based selection approaches by examining these effects and showing how they influence the diversity and robustness of the selected mutants.
3 Mutant Selection Strategies
Given a program P and a mutant set M, a mutant selection approach chooses a subset of size k to optimize a target objective, such as fault revelation.
The simplest strategy is RANDOM, which selects mutants uniformly at random. Despite its simplicity, random selection has shown to be a strong baseline [15].
More recently, learning-based approaches have been proposed to predict mutant utility. Given a predicted usefulness score for each mutant , these approaches select the top-k ranked mutants according to . We study two learning-based strategies:
• Fault-revealing ranking (FARM), which prioritizes mutants predicted to be fault-revealing.
Taha Rostami, Jeongju Sohn, and Mike Papadakis
• Subsuming ranking (SUBSUMING), which prioritizes mutants predicted to be subsuming.
While top-k selection maximizes predicted usefulness, it may over-concentrate selections if many high-scoring mutants originate from the same source locations, potentially leaving other locations without any selected mutant (blind spots) and inducing behavioral redundancy.
3.1 Line-Level Pooling
To mitigate the structural concentration induced by top-k selection, we present LINEPOOL, a model-agnostic post-processing procedure that changes how a ranking is consumed rather than how the ranking is produced. Given any mutant-level ranking, LINEPOOL first groups mutants by a structural unit, such as source line, and then performs round-based selection across groups. This makes LINEPOOL a rank-preserving diversification operator: it prevents the global top-k from over-allocating the budget to a few dense locations, while still using the original ranking to prioritize both groups and mutants within each group, thereby promoting structural diversity and limiting potential blind spots.
We define the grouping and selection procedure as follows. Let be a grouping function that assigns each mutant to a partition identifier. For line-level pooling, returns the source code line number of mutant . We partition into groups , where for each distinct identifier .
Line-level pooling uses two score functions. is a mutant-level score used to determine the priority of the group containing , and determines the priority of within its group. Group priorities are computed by aggregating over mutants in each group; in our setting, we use the maximum score, i.e., , and examine alternative aggregation rules in Section 5.4.4.
Groups are sorted in descending order of their computed priority, and mutants within each group are sorted in descending order of . The final subset of size is constructed by iterating over these groups in this order. We first select the highest-ranked mutant (according to ) from each group. If , we then select the second-highest mutant from each group in the same way, and continue until or all groups are exhausted. This prioritizes selecting from different groups before allocating multiple mutants to the same group, while preserving the within-group ranking induced by .
LINEPOOL decouples structural budget allocation from mutant ranking. The group-level signal determines where the mutation-testing budget is spent, i.e., which source locations are prioritized, while the within-group signal determines which mutants are selected within each location. Consequently, LINEPOOL is applicable on top of existing learning-based or LLM-based ranking approaches without retraining or modifying the underlying model.
In the main evaluation, we set , using either FARM or SUBSUMING as the single scoring signal for both group prioritization and within-group ranking, resulting in two configurations: FARM +LINE and SUBSUMING +LINE. Under this setting, group priorities are determined by the highest-ranked mutant within each group.
4 Experimental Setup
4.1 Datasets
We use publicly available mutation datasets constructed by prior work [41], from two C benchmarks: CODEFLAWS [40] and CoREBENCH [3]; these datasets were obtained by generating mutants and filtering them to manage mutation testing cost. For simplicity, we refer to these derived mutation datasets as CODEFLAWS and CoREBENCH, respectively.
CODEFLAWS. CODEFLAWS contains 1,692 C programs collected from online programming competitions (1 to 322 LOC; average 36 LOC), with 1,756,031 generated mutants (over 1,000 mutants per program on average). Developer tests are augmented with automatically generated tests (KLEE [4]) using extended time limits.
COREBENCH. COREBENCH contains 45 real regression faults from four large C projects, enabling evaluation on realistic regression scenarios beyond small benchmark programs. Developer tests are augmented with automatically generated tests (KLEE [4]) using extended time limits.
Dataset selection and scope. Both datasets provide complete mutant-test kill information alongside real faults. Such information is required to evaluate mutant selection for fault revelation. Few publicly available datasets provide it, and generating complete mutant-test kill information is costly: constructing the CODEFLAWS mutation dataset alone required 8,009 CPU days of mutation analysis [41]. CODEFLAWS offers many subjects, but its programs are small and do not reproduce the context of large production systems. In practice, small mutation scopes nevertheless occur: mutation analysis often focuses on code changed during review [34] or on mutants relevant to an individual commit [25], leaving a limited mutation scope even within a large system. CODEFLAWS allows us study selection over a limited amount of code, but not the interactions between the changed code and the surrounding system. COREBENCH provides a complementary setting with substantially larger programs and regression faults. We discuss the implications of both datasets for generalizability in Section 6.
4.2 Learning-Based Models
Section 3 introduces two learning-based mutant selection strategies: 1) fault-revealing mutants (FARM) and 2) subsuming mutants (SUBSUMING). For each strategy, we use existing models from prior work to obtain ranking scores of mutants.
For the FARM strategy, we reuse the fault-revealing mutant prediction model proposed by Titcheu Chekam et al. [41] and adopted in the Mart mutation testing framework [43]. The model assigns a real-valued usefulness score to each mutant using static features extracted from the mutant and its surrounding code context. In our study, we treat these scores purely as a ranking signal: we do not retrain or recalibrate the model, and we directly apply score-based top-k selection (and pooled variants) using the scores output by the released implementation.
Regarding SUBSUMING strategy, Garg et al. [12] proposed Cerebro as well as a feature-based baseline trained on static mutant features. We adopt this feature-based baseline and train a gradient-boosted decision tree model [10] (1,000 trees, maximum depth 5; settings as in [12]). We use 10-fold cross-validation and aggregate out-of-fold predictions to obtain an unbiased subsuming score for every mutant. We denote this ranking signal as SUBSUMING and use it purely as a ranking signal for selection under fixed budgets, including the line-level pooling variants.
We do not evaluate Cerebro’s neural model, as it relies on mutation-aware code representations (e.g., exact location annotations) that are not directly compatible with the mutant format provided by CODEFLAWS/CoREBENCH. Adapting this pipeline would require reconstructing such representations and introducing additional assumptions about mutation-to-source alignment, which may affect comparability.
4.3 Evaluation Metrics
We assess structural concentration, blind spots, behavioral redundancy, effectiveness, cost, and robustness under fixed selection budgets of 2% and 5%, consistent with prior work [41]. We focus on these relatively small budgets because they are the most informative for distinguishing selection strategies: as the budget increases, outcomes naturally tend to converge, whereas substantially smaller budgets can become particularly restrictive for CODEFLAWS, where the absolute number of selected mutants may be very small. We additionally evaluated budgets of 0.5%, 1%, 10%, and
Taha Rostami, Jeongju Sohn, and Mike Papadakis
20%: the advantage of LINEPOOL over unpooled top-k selection is largest at the tightest budgets and diminishes as the budget grows, but the conclusions of the paper remain unchanged, so we omit these results for brevity.
4.3.1 Structural concentration. We report: (i) LineCov: the proportion of distinct source lines covered by the selected mutants relative to all mutant-bearing lines (higher is better), (ii) MaxShare: the maximum fraction of selected mutants from a single line (lower is better), and (iii) Top5Share: the fraction of selected mutants originating from the five most frequent lines (lower is better). To assess whether concentration leaves consequential regions untested (blind spots), we also report the faulty-line omission rate: the proportion of subjects for which no selected mutant lies on the faulty line (lower is better).
4.3.2 Behavioral redundancy. We quantify behavioral overlap using average pairwise Jaccard similarity [20] between kill sets as suggested by previous studies [30]. For mutants , with kill sets , : . We report the average pairwise similarity across all selected mutant pairs for each strategy. Lower values reflect less behavioral overlap and are preferable.
Redundancy among mutants has also been studied through minimal mutant set analyses [1], which aim to identify a reduced set that preserves mutation score. In contrast, Jaccard similarity directly measures behavioral overlap among selected mutants and can therefore distinguish mutant sets with identical mutation adequacy but different levels of behavioral diversity. As complementary sanity checks closely related to minimal mutant sets, we also report the duplication rate, i.e., the proportion of mutants with identical killing behavior, and the subsuming mutation score.
4.3.3 Fault detection effectiveness. We measure effectiveness using the Fault Revelation Rate (FRR), following established procedures from prior work. In each trial, a mutant is randomly selected, and a test case that kills this mutant is randomly chosen. If the test case reveals a fault, the trial ends. Otherwise, all mutants killed by this test are then removed, and the process repeats until no additional mutants can be killed. Mutants that are not killed by any test are treated as equivalent. We repeat this process 100 times and compute the average probability of revealing real faults. Also, consistent with prior work [12, 41], we compare fault detection effectiveness between approaches using the Wilcoxon signed-rank test [44] with Holm correction for multiple comparisons [18].
4.3.4 Robustness. In practice, predicted usefulness scores may be imperfect due to model uncertainty, feature approximation, or distribution shift. We therefore evaluate robustness under two complementary settings. Unless stated otherwise, these experiments use the 2% budget.
(i) Robustness to ranking noise. To assess sensitivity to imperfect ranking scores, for each mutant with original score (from FARM or SUBSUMING), we perturb the score by adding zero-mean Gaussian noise [17]: , , where controls the noise magnitude. We vary from 0 (no noise) to 1.0 (strong corruption of the ranking signal). For each , we generate multiple independent noisy score realizations, re-run selection using , and compute FRR. We report the mean FRR across realizations.
(ii) Out-of-distribution evaluation. To assess out-of-distribution robustness, we depart from the within-benchmark model setup described in Section 4.2: we train both ranking models (FARM and SUBSUMING) on one benchmark and evaluate them on the other without using data from the target benchmark for training. This setup mimics deployment scenarios where training and target distributions differ. We evaluate both directions: training on CODEFLAWS and testing on CoREBENCH, and vice versa.
4.3.5 Cost. We treat computational cost as a secondary outcome due to the difficulty of realistic estimation [41]. We report a simple cost metric primarily as a sanity check, since disproportionate increases may indicate methodological issues. We measure cost as the total number of additional program executions during fault revelation: in each round, we execute the selected test case against all n remaining mutants until a real fault is revealed. Since this metric may not fully reflect practical testing effort in isolation, we interpret it together with the number of tests selected until fault revelation. When two approaches require a comparable number of tests, we prefer the one achieving higher FRR, even if its execution-based cost is slightly higher.
4.3.6 Aggregation. Unless stated otherwise, we compute each metric per subject (program for CODEFLAWS, fault for COREBENCH) and then aggregate across subjects. For effectiveness (FRR), each trial is a Bernoulli outcome (fault revealed or not), so a subject's FRR is the empirical success probability over 100 trials; we report the mean FRR across subjects, which estimates the expected fault-revelation probability under a uniformly random subject. For structural metrics (LineCov, MaxShare, Top5Share), distributions are often skewed with occasional extreme values, so we report the median across subjects to reduce sensitivity to outliers. For behavioral overlap (Jaccard), tables report the mean across subjects, and figures show the full distributions. For the two sanity-check cost proxies (additional mutant executions and number of selected tests until fault revelation), we likewise report the median over all subject-trial runs.
4.4 Research Questions
We address the following research questions:
(1) RQ1: To what extent do mutant selection strategies exhibit structural concentration (e.g., selecting many mutants from few lines), and does this concentration leave blind spots?
(2) RQ2: To what extent do the selected mutants exhibit behavioral redundancy, and how does it relate to structural concentration?
(3) RQ3: How does diversification affect fault revelation effectiveness under fixed selection budgets?
(4) RQ4: What drives the gains of LINEPOOL: enforcing coverage, preserving within-line ranking, or both?
(5) RQ5: Does line-level pooling improve robustness under distribution shift and noisy or imperfect ranking signals?
5 Results
5.1 RQ1: Structural Concentration and Blind Spots
We first examine whether score-based top-k mutant selection concentrates the selection budget on a small number of source lines, i.e., exhibits structural collapse. Figures 1 and 2 show that both learning-based rankers (FARM and SUBSUMING) introduce strong structural concentration. Compared to RANDOM, top-k learning-based selection covers substantially fewer mutant-bearing lines (lower LineCov) and allocates a large share of the budget to a handful of locations (higher MaxShare and Top5Share). This happens if a model assigns many relatively high scores to mutants that are syntactically similar or occur near the same code fragment: top-k then repeatedly “spends” the budget on the same region.
Line pooling (FARM +LINE, SUBSUMING +LINE) reverses this effect by construction: it forces the selection to represent distinct lines early, lowering MaxShare/Top5Share and increasing LineCov. Notably, pooling does not merely match RANDOM—it often exceeds it on dispersion, because RANDOM sample more cases from dense mutant lines, whereas pooling actively counteracts density.
Blind spots: faulty-line coverage. To check whether concentration leaves the lines that matter untested, we examine whether the selected mutants include the faulty line on CODEFLAWS, using the
Taha Rostami, Jeongju Sohn, and Mike Papadakis

(a) 2% LineCov
(b) 2% MaxShare
(c) 2% Top5Share
(a) 5% LineCov
(b) 5% MaxShare
(c) 5% Top5Share
Fig. 1. Structural concentration (CODEFLAWS). LineCov higher-is-better; others lower-is-better. Orange lines are medians.

(a) 2% LineCov
(b) 2% MaxShare
(c) 2% Top5Share
(a) 5% LineCov
(b) 5% MaxShare
(c) 5% Top5Share
Fig. 2. Structural concentration on CoREBENCH. LineCov higher-is-better; others lower-is-better. Orange lines are medians.
1,464 subjects with a mapped faulty line (see Section 6.3 for CoREBENCH). At the 2% budget, FARM and SUBSUMING top-k selection omit the faulty line in 53.6% and 50.8% of subjects, respectively, whereas LINEPOOL reduces this to 19.2% and 15.4%. In about half of the subjects, top-k selection thus spends the entire budget away from the fault. At 5%, top-k selection still omits the faulty line in 36.5% (FARM) and 35.2% (SUBSUMING) of subjects, more often than RANDOM (28.9%), whereas LINEPOOL almost never does (about 1%).
Answer to RQ1. Learning-based top-k selection strongly concentrates mutants on a small number of lines, leaving blind spots that omit the faulty line in about half of the CODEFLAWS subjects at 2% and about a third at 5%. Line-level pooling restores broad spatial coverage and substantially reduces such omissions.

(a) CODEFLAWS – 2%
(b) CODEFLAWS – 5%
(c) CoREBENCH – 2%
(d) CoREBENCH – 5%
Fig. 3. Behavioral redundancy measured via average pairwise Jaccard similarity (lower is better). Orange lines are medians.
5.2 RQ2: Behavioral Redundancy
We analyze whether selected mutants exhibit overlapping execution behavior. Figure 3 reports pairwise Jaccard similarity between kill sets. The key takeaway is that ranking does not reliably imply behavioral diversity, though the effect varies with project domain and scale. On CODEFLAWS, learning-based ranking tends to reduce overlap relative to RANDOM, but pooling reduces overlap even further and is consistently the most behaviorally diverse variant. There, top-k selection is more concentrated than RANDOM yet less redundant, so concentration does not necessarily imply redundancy; its main consequence is the blind spots identified in RQ1. On CoREBENCH, the effect is more pronounced: at the 2% budget, unpooled learning-based selection, especially SUBSUMING, yields higher redundancy than RANDOM, in line with RQ1: when selection repeatedly draws from a few lines, many mutants are killed by largely the same tests. Pooling reduces redundancy across both datasets and budgets.
To complement the Jaccard analysis, we performed two additional redundancy analyses at the 2% budget. First, we measured the reduction in duplicate behavioral profiles among the selected mutants. Across both datasets, LINEPOOL consistently lowered duplication rates. On CODEFLAWS, duplication decreased by 11.5 and 13.1 percentage points for FARM and SUBSUMING, respectively. The reductions were even larger on CoREBENCH, reaching 22.9 percentage points for FARM and 26.5 percentage points for SUBSUMING. The diversity gains of LINEPOOL thus translate into substantially fewer redundant mutants.
Second, we evaluated the selected mutant sets against subsuming mutation score. On CODEFLAWS, LINEPOOL increased the subsuming mutation score from 86.9% to 95.9% for FARM and from 85.9% to 96.2% for SUBSUMING. On CoREBENCH, the improvements were even larger, increasing the score from 83.3% to 100% for FARM and from 62.6% to 100% for SUBSUMING. These gains thus also improve the preservation of mutation adequacy under subsumption.
Answer to RQ2. Learning-based top-k selection does not consistently avoid behavioral redundancy: on the larger CoREBENCH programs, it is more redundant than RANDOM at the 2% budget, whereas on CODEFLAWS its concentration manifests mainly as blind spots. Line pooling reliably reduces redundancy across datasets and budgets.
5.3 RQ3: Fault Revelation Effectiveness
We now examine whether diversification changes fault revelation effectiveness and whether such gains come with additional execution cost. Figure 4 reports FRR. We compare methods using paired Wilcoxon signed-rank tests across subjects (programs for CODEFLAWS, faults for CoREBENCH) with Holm correction, and report Vargha-Delaney to indicate effect direction. Values < 0.5 indicate that method B tends to outperform method A. We further report two simulation-side cost proxies: the median number of additional mutant executions (denoted as median_cost) and the median number of sampled tests until revelation (denoted as median_tests).
Taha Rostami, Jeongju Sohn, and Mike Papadakis

(a) CODEFLAWS – 2%

(b) CODEFLAWS – 5%
(c) CoREBENCH – 2%
(d) CoREBENCH – 5%
Fig. 4. Fault Revelation Rate across datasets and selection budgets (higher is better). Orange lines are medians.
5.3.1 Effectiveness. On CODEFLAWS, at the 2% budget, learning-based ranking clearly improves (mean) FRR over RANDOM (0.524): FARM reaches 0.633 and SUBSUMING reaches 0.603, and both improvements are significant (RANDOM vs FARM: , ; RANDOM vs SUBSUMING: , ). The key observation, however, is what happens once we prevent concentration: pooling pushes FRR higher still (FARM +LINE = 0.663, SUBSUMING +LINE = 0.669), and these gains over the corresponding unpooled models are also significant (FARM vs FARM +LINE: , ; SUBSUMING vs SUBSUMING +LINE: , ). In other words, at tight budgets, the ranking signal is valuable, but top-k leaves performance on the table by over-spending the budget on a few locations. Pooling recovers that value.
At 5%, the expected budget compression appears: all learning-based variants remain substantially above RANDOM (0.639), but differences among them shrink. Both FARM (0.727) and SUBSUMING (0.737) significantly outperform RANDOM ( and , respectively), and pooling yields only small additional separation (e.g., FARM +LINE = 0.740 is significantly above FARM with , ). As expected, when k grows, multiple strategies “find” enough useful mutants, and the room for improvement contracts.
On CoREBENCH, the main result is not “learning helps” but “top-k fragility”. At 2%, unpooled SUBSUMING collapses in FRR (0.492) relative to RANDOM (0.836), and the drop is significant (RANDOM vs SUBSUMING: , , i.e., RANDOM tends to outperform SUBSUMING). Pooling largely fixes this brittleness: SUBSUMING +LINE rises to 0.851 and significantly improves over SUBSUMING (SUBSUMING vs SUBSUMING +LINE: , ). FARM shows a milder version: FARM is not significantly different from RANDOM at 2% ( ), but FARM +LINE increases to 0.861 (not significant vs RANDOM under Holm at n = 45, but directionally higher). At 5%, the pattern remains: SUBSUMING is again significantly worse than RANDOM ( ), while pooled variants achieve the highest mean FRR (FARM +LINE = 0.911, SUBSUMING +LINE = 0.920) and are statistically indistinguishable from RANDOM after Holm correction, consistent with limited power for small effects.
5.3.2 Blind spots and missed faults. To connect these gains to the blind spots identified in RQ1, we partition the CODEFLAWS subjects based on whether the original top-k selection includes any mutant on the faulty line (at the 2% budget). The FRR improvement of LINEPOOL over unpooled top-k ( FRR) is concentrated where top-k misses the faulty line (+0.066 for FARM +LINE vs. +0.004 when the line is already included). Moreover, in about 77% of the trials where LINEPOOL reveals a fault that top-k misses, the revealing mutant originates from a line absent from the top-k selection. At the 5% budget, this trend persists for FARM (+0.054 FRR when top-k misses the faulty line vs. -0.005 when included), but is not significant for SUBSUMING due to budget compression. Conversely, we found no subject in which top-k selection includes the faulty line but LINEPOOL omits it, at either budget. On CoREBENCH, this analysis is not possible, since mutant line numbers cannot be reliably mapped to the fault locations (see Section 6.3).
5.3.3 Cost. On CODEFLAWS, the effectiveness gains come with higher median execution cost than RANDOM, consistent with learning-based methods steering selection toward mutants whose revealing tests are found after more rounds. At 2%, RANDOM has median_cost 10 versus 20–23 for learning-based methods (pooling: 22), with median_tests of 2–3 for all methods; at 5%, median_cost is 32 for RANDOM versus 58–68 for learning-based methods (pooling: 64–66), with median_tests of 3. Learning-based selection thus trades executions for FRR, while pooling mostly reallocates which mutants are bought with the same budget.
On CoREBENCH, costs are much larger and vary with the mutant set induced by each method. At 2%, RANDOM has median_cost 1854 and median_tests 7; SUBSUMING has lower median_cost (1380) yet far worse FRR, illustrating that “cheaper” here can simply mean that the process fails to reach revealing tests. Pooling changes cost in a method-dependent way (FARM +LINE 1635.5, SUBSUMING +LINE 2078; median_tests 7–9). At 5%, pooled variants are comparable to RANDOM in cost (5107.5–5635 vs 5619) while achieving the best mean FRR, whereas SUBSUMING shows high cost (6764.5) with reduced FRR. Overall, the dominant effect of pooling on CoREBENCH is robustness of effectiveness, not cost reduction.
5.3.4 Worst-case performance analysis. To assess performance on difficult cases, we examine the bottom 25% of subjects ranked by each baseline's subject-level FRR under the 2% budget. On CODEFLAWS, FARM +LINE outperforms FARM in 294 out of 423 cases ( 69%), with a mean improvement of +0.190 FRR (median +0.060). For SUBSUMING, the gains are even more pronounced: SUBSUMING +LINE improves over the baseline in 330 out of 423 cases ( 78%), with a mean improvement of +0.270 FRR (median +0.140). On CoREBENCH, the improvements are substantially larger. FARM +LINE outperforms FARM in 8 out of 11 cases (mean +0.402, median +0.350), while SUBSUMING +LINE improves over SUBSUMING in 9 out of 11 cases with no losses (mean +0.512, median +0.660). Pooling thus mitigates failure cases rather than only improving average performance; since the CoREBENCH bottom quartile contains only 11 faults, we treat these results as corroborating evidence rather than as a general conclusion.
Answer to RQ3. On CODEFLAWS, learning-based ranking improves FRR over RANDOM, and line-level pooling adds gains, especially at the tight 2% budget, with higher execution cost than RANDOM but similar sampled-test counts; these gains are concentrated where top-k omits the faulty line. On CoREBENCH, unpooled SUBSUMING performs worse than RANDOM, consistent with its severe structural collapse and redundancy; pooling mitigates this brittleness and restores competitive FRR. Cost differences mainly reflect the selected mutants, not pooling itself.
5.4 RQ4: Design Factors
5.4.1 Disentangling Line Pooling and Ranking Signals. We try to disentangle the respective contributions of structural diversification and ranking quality. Table 1 separates the effect of (i) prioritizing which lines to draw from (sL) from (ii) prioritizing which mutants within a line to draw (sW).
We denote a pooled strategy as LINEPOOL( , ), where is the signal used to rank source lines and is the signal used to rank mutants within each line. For example, LINEPOOL(FARM, SUBSUMING) prioritizes lines according to FaRM scores and selects mutants within each line using Subsuming scores, while LINEPOOL(RAND, RAND) corresponds to uniform stratified sampling. Our main configurations, FARM +LINE and SUBSUMING +LINE (Table 1), correspond to LINEPOOL(FARM, FARM) and LINEPOOL(SUBSUMING, SUBSUMING), respectively.
The ablation supports two conclusions:
Taha Rostami, Jeongju Sohn, and Mike Papadakis
Table 1. Ablation results across datasets. FRR and Jaccard are means; others are medians.
| Dataset | Method | Budget 2% | Budget 5% | ||||||
|---|---|---|---|---|---|---|---|---|---|
| FRR | LineCov | Top5Share | Jaccard | FRR | LineCov | Top5Share | Jaccard | ||
| CODEFLAWS | RANDOM | 0.524 | 0.396 | 0.797 | 0.366 | 0.639 | 0.547 | 0.723 | 0.366 |
| FARM | 0.633 | 0.286 | 0.944 | 0.302 | 0.727 | 0.466 | 0.857 | 0.285 | |
| SUBSUMING | 0.603 | 0.300 | 0.929 | 0.273 | 0.736 | 0.455 | 0.842 | 0.258 | |
| FARM +LINE | 0.663 | 0.690 | 0.357 | 0.236 | 0.740 | 1.000 | 0.303 | 0.254 | |
| SUBSUMING +LINE | 0.669 | 0.714 | 0.357 | 0.219 | 0.737 | 1.000 | 0.303 | 0.241 | |
| LINEPOOL(FARM, RAND) | 0.608 | 0.690 | 0.357 | 0.290 | 0.676 | 1.000 | 0.303 | 0.315 | |
| LINEPOOL(FARM, SUBSUMING) | 0.664 | 0.690 | 0.357 | 0.219 | 0.739 | 1.000 | 0.303 | 0.242 | |
| LINEPOOL(SUBSUMING, FARM) | 0.668 | 0.714 | 0.357 | 0.235 | 0.741 | 1.000 | 0.303 | 0.253 | |
| LINEPOOL(SUBSUMING, RAND) | 0.603 | 0.714 | 0.357 | 0.289 | 0.674 | 1.000 | 0.303 | 0.315 | |
| LINEPOOL(RAND, FARM) | 0.620 | 0.643 | 0.382 | 0.254 | 0.732 | 1.000 | 0.303 | 0.259 | |
| LINEPOOL(RAND, SUBSUMING) | 0.620 | 0.643 | 0.382 | 0.243 | 0.731 | 1.000 | 0.303 | 0.247 | |
| LINEPOOL(RAND, RAND) | 0.560 | 0.650 | 0.381 | 0.311 | 0.668 | 1.000 | 0.305 | 0.318 | |
| COREBENCH | RANDOM | 0.836 | 0.299 | 0.143 | 0.264 | 0.904 | 0.471 | 0.126 | 0.262 |
| FARM | 0.746 | 0.073 | 0.601 | 0.335 | 0.822 | 0.172 | 0.415 | 0.278 | |
| SUBSUMING | 0.492 | 0.052 | 0.687 | 0.344 | 0.657 | 0.119 | 0.488 | 0.255 | |
| FARM +LINE | 0.861 | 0.415 | 0.024 | 0.219 | 0.911 | 0.974 | 0.014 | 0.227 | |
| SUBSUMING +LINE | 0.851 | 0.383 | 0.031 | 0.205 | 0.920 | 0.970 | 0.014 | 0.213 | |
| LINEPOOL(FARM, RAND) | 0.841 | 0.415 | 0.024 | 0.224 | 0.900 | 0.974 | 0.014 | 0.237 | |
| LINEPOOL(FARM, SUBSUMING) | 0.870 | 0.415 | 0.024 | 0.211 | 0.925 | 0.974 | 0.014 | 0.219 | |
| LINEPOOL(SUBSUMING, FARM) | 0.833 | 0.383 | 0.031 | 0.211 | 0.914 | 0.970 | 0.014 | 0.220 | |
| LINEPOOL(SUBSUMING, RAND) | 0.784 | 0.383 | 0.031 | 0.219 | 0.906 | 0.970 | 0.014 | 0.229 | |
| LINEPOOL(RAND, FARM) | 0.818 | 0.392 | 0.031 | 0.226 | 0.899 | 0.976 | 0.014 | 0.227 | |
| LINEPOOL(RAND, SUBSUMING) | 0.837 | 0.392 | 0.031 | 0.220 | 0.912 | 0.976 | 0.014 | 0.221 | |
| LINEPOOL(RAND, RAND) | 0.795 | 0.391 | 0.031 | 0.235 | 0.893 | 0.976 | 0.014 | 0.238 | |
Pooling contributes the dominant robustness gain. Replacing unpooled top-k with any pooled variant collapses Top5Share and increases LineCov, while generally reducing Jaccard across datasets. This indicates that the primary correction is structural: pooling expands the effective search space by preventing budget over-allocation to a few dense lines.
Within-line ranking determines who wins once pooling removes collapse. Pure stratification LINEPOOL(RAND, RAND) substantially improves structural diversity but does not achieve the best FRR. In contrast, pooled variants that preserve informative ranking signals (e.g., LINEPOOL(FARM, SUBSUMING) or LINEPOOL(SUBSUMING, FARM)) consistently achieve higher FRR while exhibiting comparable structural coverage. On COREBENCH, LINEPOOL(FARM, SUBSUMING) achieves the highest FRR at both budgets. These results suggest that the gains of LINEPOOL cannot be explained solely by increased spatial coverage. Rather, pooling and ranking play complementary roles: pooling prevents the budget from collapsing onto a few locations, while informative within-line ranking identifies the most useful mutants within the diversified set.
5.4.2 Alternative ranking signal sanity check. Line pooling only requires an ordering of mutants and therefore does not depend on how the ranking signal is produced. To verify that the observed trends are not specific to FARM or SUBSUMING, we repeat the selection procedure on CODEFLAWS using an additional external ranking signal generated by a Large Language Model (LLM)-based heuristic. Specifically, we use the DeepSeek-V3.2 reasoning model to independently score each mutant based solely on static information, including the program source, the mutant's location, and the same static mutant features used by our learning-based models. The model is instructed to estimate the likelihood that a mutant is reachable, propagates observable effects, and is non-redundant with
Table 2. LLM ablation on CODEFLAWS; FRR and Jaccard are means; others are medians.
| Budget | Method | FRR | LineCov | MaxShare | Top5Share | Jaccard |
|---|---|---|---|---|---|---|
| 2% | LLM | 0.505 | 0.250 | 0.462 | 1.000 | 0.403 |
| LLM + Line | 0.555 | 0.764 | 0.067 | 0.333 | 0.352 | |
| 5% | LLM | 0.619 | 0.357 | 0.396 | 0.929 | 0.395 |
| LLM + Line | 0.669 | 1.000 | 0.062 | 0.303 | 0.338 |
nearby mutants, without access to dynamic information such as tests, executions, or kill sets. The resulting score is used directly to rank mutants for selection.
Table 2 shows the same qualitative patterns as our main results: unpooled top-k selection exhibits strong structural concentration, higher behavioral redundancy, and lower effectiveness, while line pooling notably increases spatial coverage, reduces kill-set overlap, and improves FRR at both budgets.
This experiment serves only as a generality check; we do not interpret the absolute effectiveness of the LLM signal itself.
5.4.3 Clustering-based diversification. Line-level pooling is a deliberately simple and model-agnostic intervention that enforces spatial dispersion by construction. However, it is not the only possible way to reduce redundancy among selected mutants. As an alternative diversification baseline, we evaluate a clustering-based strategy that selects representative mutants from similarity clusters while using the same learning-based ranking signals. Specifically, we apply -means clustering [24] with Euclidean distance over the static mutant features used by the learning-based models, excluding identifiers and the coupling weight, using scikit-learn [33] with default parameters and K-means++ initialization [2], and setting the number of clusters equal to the selection budget . We then select the highest-ranked mutant of each cluster according to the ranking signal.
Since -means depends on its initialization, we repeated the clustering with 10 random seeds on CODEFLAWS and 3 on COREBENCH. The mean FRR varied across seeds by less than 0.01 on CODEFLAWS and 0.02 on COREBENCH; we therefore report the mean over seeds.
Table 3 shows that, on CODEFLAWS, clustering achieves fault revelation effectiveness and kill-set overlap comparable to pooled selection. Notably, this occurs although clustering remains considerably more concentrated than pooled selection, though less so than unpooled top-k (e.g., LineCov of 0.431 vs. 0.286 for FARM at ). This suggests that full line coverage is not necessary, as long as the budget does not collapse onto a few locations. On COREBENCH, clustering matches pooled selection at but falls behind at , and yields higher kill-set overlap at both budgets, suggesting that in larger programs, feature similarity is a less reliable proxy for behavioral diversity than spreading selections across source lines.
Overall, line-level pooling offers a simpler intervention that requires no similarity modeling, clustering procedure, or feature engineering beyond the ranking signal.
5.4.4 Alternative diversification mechanisms sanity check. Finally, given the simplicity of LINEPOOL, we examined whether this simplicity hides a substantially more effective alternative. We therefore compared LINEPOOL with four established diversification methods, as shown in Table 4. The first is proportional allocation, which distributes the budget across lines using Sainte-Laguë apportionment [38], as in election-based diversification [8]. The second is maximal marginal relevance (MMR) [5], which we apply in two variants that measure the similarity between mutants either by the distance between their source lines or by the cosine similarity of their static features. The third is a determinantal point process (DPP) [21] with greedy MAP inference [7], and the fourth is submodular facility location [23, 28]. We further evaluated -means clustering on different mutant
Taha Rostami, Jeongju Sohn, and Mike Papadakis
Table 3. Comparison with clustering-based diversification. FRR and Jaccard are means; others are medians.
| Dataset | Method | Budget 2% | Budget 5% | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| FRR | Jaccard | LineCov | MaxShare | Top5Share | FRR | Jaccard | LineCov | MaxShare | Top5Share | ||
| CODEFLAWS | Clustering + FARM | 0.674 | 0.240 | 0.431 | 0.228 | 0.733 | 0.752 | 0.254 | 0.625 | 0.194 | 0.653 |
| Clustering + SUBSUMING | 0.665 | 0.218 | 0.445 | 0.220 | 0.717 | 0.750 | 0.246 | 0.630 | 0.193 | 0.651 | |
| FARM +LINE | 0.663 | 0.236 | 0.690 | 0.071 | 0.357 | 0.740 | 0.254 | 1.000 | 0.062 | 0.303 | |
| SUBSUMING +LINE | 0.669 | 0.219 | 0.714 | 0.071 | 0.357 | 0.737 | 0.241 | 1.000 | 0.062 | 0.303 | |
| CoREBENCH | Clustering + FARM | 0.865 | 0.266 | 0.290 | 0.041 | 0.159 | 0.883 | 0.269 | 0.442 | 0.035 | 0.133 |
| Clustering + SUBSUMING | 0.851 | 0.247 | 0.279 | 0.040 | 0.162 | 0.875 | 0.257 | 0.435 | 0.034 | 0.131 | |
| FARM +LINE | 0.861 | 0.219 | 0.415 | 0.005 | 0.024 | 0.911 | 0.227 | 0.974 | 0.003 | 0.014 | |
| SUBSUMING +LINE | 0.851 | 0.205 | 0.383 | 0.006 | 0.031 | 0.920 | 0.213 | 0.970 | 0.003 | 0.014 | |
representations (all static features, random feature subsets (50% and 25%), and AST features only), mutation operators as alternative strata [46], and alternative line-priority rules for LINEPOOL (mean and median instead of the maximum).
All strategies consume the same ranking signal (FARM or SUBSUMING); where a strategy requires a numeric quality, we use the within-subject percentile of the score. MMR uses , and facility location is optimized with the lazy greedy algorithm [27]. Clustering follows the setup of Section 5.4.3. To keep the computation tractable on large faults, DPP considers only the 30,000 top-ranked mutants as candidates, and facility location measures coverage on a random sample of 5,000 mutants.
Table 4 shows that no method consistently dominates across datasets. Alternatives that perform best on one dataset fall behind on the other: proportional allocation obtains the highest FRR on CoREBENCH but is below LINEPOOL on CODEFLAWS at 2% and covers fewer lines (Section 5.5 further shows that it is less robust), whereas feature-based MMR is slightly better on CODEFLAWS (e.g., 0.764 vs. 0.737 for SUBSUMING at 5%) but below LINEPOOL on CoREBENCH. Mutation-operator strata perform comparably on CODEFLAWS but lower on CoREBENCH, and mean and median line priorities are at most on par with the maximum. Clustering on all static features or on random feature subsets reaches FRR comparable to LINEPOOL, whereas restricting it to AST features lowers FRR on CODEFLAWS.
The common factor behind the gains is thus preventing a tight budget from concentrating on a few locations, while the precise diversification mechanism matters considerably less. In this sense, the program structure is a means to obtain diversity rather than a goal in itself: among the evaluated strategies, LINEPOOL is the simplest, requires no features or parameters, and is the only one that guarantees spatial coverage.
Answer to RQ4. LINEPOOL's main gains come from enforcing structural coverage: pooling prevents budget collapse onto a few lines, improving diversity and robustness, while within-line ranking determines which pooled variant performs best. These gains hold across alternative ranking signals, and more elaborate diversification mechanisms (e.g., clustering, MMR, or DPP) do not consistently outperform LINEPOOL, which remains the simplest way to control structural concentration without degrading effectiveness.
5.5 RQ5: Robustness
5.5.1 Robustness to Ranking Noise. We further evaluate the stability of fault revelation under progressively noisier ranking signals. Figure 5 reports FRR as a function of noise magnitude for CODEFLAWS and CoREBENCH at the 2% budget.
On CODEFLAWS, increasing noise steadily erodes the advantage of learning-based ranking, with performance gradually approaching that of uninformed selection. Across the full noise range,
Table 4. Comparison with alternative diversification mechanisms. FRR values are means.
| Group | Method | CODEFLAWS | CoREBENCH | ||||||
|---|---|---|---|---|---|---|---|---|---|
| FARM | SUBSUMING | FARM | SUBSUMING | ||||||
| Reference | RANDOM | 0.524 | 0.639 | 0.524 | 0.639 | 0.836 | 0.904 | 0.836 | 0.904 |
| Top-k | 0.633 | 0.727 | 0.603 | 0.736 | 0.746 | 0.822 | 0.492 | 0.657 | |
| LINEPOOL (max) | 0.663 | 0.740 | 0.669 | 0.737 | 0.861 | 0.911 | 0.851 | 0.920 | |
| Diversification | Proportional (Sainte-Laguè) | 0.639 | 0.736 | 0.637 | 0.750 | 0.904 | 0.917 | 0.923 | 0.928 |
| MMR (line distance) | 0.655 | 0.742 | 0.664 | 0.753 | 0.858 | 0.906 | 0.842 | 0.896 | |
| MMR (feature similarity) | 0.663 | 0.756 | 0.674 | 0.764 | 0.855 | 0.862 | 0.822 | 0.833 | |
| DPP | 0.657 | 0.746 | 0.673 | 0.755 | 0.844 | 0.882 | 0.831 | 0.848 | |
| Facility location | 0.660 | 0.733 | 0.641 | 0.744 | 0.779 | 0.820 | 0.578 | 0.668 | |
| Clustering | All static features | 0.674 | 0.752 | 0.665 | 0.750 | 0.865 | 0.883 | 0.851 | 0.875 |
| Random 50% of features | 0.678 | 0.754 | 0.664 | 0.751 | 0.872 | 0.896 | 0.852 | 0.895 | |
| Random 25% of features | 0.675 | 0.749 | 0.666 | 0.747 | 0.858 | 0.885 | 0.848 | 0.892 | |
| AST features only | 0.649 | 0.732 | 0.650 | 0.736 | 0.834 | 0.867 | 0.872 | 0.904 | |
| Other strata | Mutation operator | 0.665 | 0.742 | 0.658 | 0.737 | 0.830 | 0.877 | 0.770 | 0.813 |
| Line priority | LINEPOOL (mean) | 0.653 | 0.738 | 0.663 | 0.737 | 0.843 | 0.913 | 0.836 | 0.919 |
| LINEPOOL (median) | 0.642 | 0.737 | 0.659 | 0.734 | 0.829 | 0.910 | 0.850 | 0.896 | |

(a) CODEFLAWS

(b) CoREBENCH
Fig. 5. Robustness to Gaussian noise in ranking scores. Curves show mean FRR (y-axis) vs noise magnitude.
pooled variants (FARM +LINE and SUBSUMING +LINE) remain competitive, indicating that enforcing line coverage stabilizes effectiveness even when within-line ordering is partially corrupted.
On CoREBENCH, unpooled subsuming ranking shows pronounced brittleness at low noise levels due to severe structural concentration. Moderate noise partially disrupts this collapse, improving performance toward RANDOM. Pooled variants maintain stable and high effectiveness across noise levels, consistent with pooling preventing over-allocation to a few locations.
We applied the same perturbation to proportional allocation, the strongest alternative in Section 5.4.4. On CODEFLAWS, it remains below LINEPOOL at every noise level, whereas on CoREBENCH its advantage without noise (+0.05 to +0.07 FRR) shrinks to at most +0.03 once noise is added ().
Overall, pooling yields more reliable fault revelation under imperfect ranking signals, whereas under extreme noise all methods converge to random selection.
5.5.2 Out-of-distribution evaluation. Table 5 reports results when models are trained on one dataset and evaluated on the other without retraining (Section 4.3.4). Across both targets, pooled
Taha Rostami, Jeongju Sohn, and Mike Papadakis
Table 5. Out-of-distribution evaluation. FRR and Jaccard are means; others are medians.
| Dataset | Method | FRR | LineCov | Top5Share | Jaccard |
|---|---|---|---|---|---|
| CODEFLAWS (2%) | RANDOM | 0.524 | 0.396 | 0.797 | 0.366 |
| FARM | 0.545 | 0.342 | 0.875 | 0.387 | |
| SUBSUMING | 0.514 | 0.240 | 1.000 | 0.401 | |
| FARM +LINE | 0.592 | 0.615 | 0.385 | 0.311 | |
| SUBSUMING +LINE | 0.593 | 0.632 | 0.385 | 0.295 | |
| Proportional (FARM) | 0.522 | 0.457 | 0.700 | 0.376 | |
| Proportional (SUBSUMING) | 0.549 | 0.444 | 0.733 | 0.362 | |
| CoREBENCH (2%) | RANDOM | 0.836 | 0.299 | 0.143 | 0.264 |
| FARM | 0.602 | 0.120 | 0.343 | 0.302 | |
| SUBSUMING | 0.740 | 0.133 | 0.388 | 0.352 | |
| FARM +LINE | 0.741 | 0.393 | 0.033 | 0.252 | |
| SUBSUMING +LINE | 0.868 | 0.467 | 0.028 | 0.289 | |
| Proportional (FARM) | 0.747 | 0.361 | 0.111 | 0.292 | |
| Proportional (SUBSUMING) | 0.827 | 0.358 | 0.106 | 0.325 |
variants consistently improve both effectiveness and diversity over their unpooled counterparts. On CODEFLAWS, FARM +LINE and SUBSUMING +LINE achieve the highest FRR (0.592 and 0.593), while also substantially increasing LineCov and reducing Top5Share and Jaccard. On CoREBENCH, the effect is even stronger: unpooled FARM degrades markedly below RANDOM (0.602 vs. 0.836), whereas SUBSUMING +LINE achieves the best FRR overall (0.868) together with much stronger spatial dispersion. Proportional allocation does not share this robustness: on CODEFLAWS, its FRR falls below that of LINEPOOL (0.522 and 0.549 vs. 0.592 and 0.593), with FARM even below unpooled top-k, and on CoREBENCH it is on par with LINEPOOL for FARM and below it for SUBSUMING (0.827 vs. 0.868), while exhibiting higher kill-set overlap on both datasets. These results suggest that line-level pooling improves robustness under distribution shift by reducing over-concentration and limiting the dependence of selection quality on precise score calibration.
Answer to RQ5. Line-level pooling improves robustness under both noisy rankings and distribution shift. Under Gaussian noise, pooled variants remain more stable and degrade more gracefully as ranking quality deteriorates. Under out-of-distribution evaluation, they consistently outperform their unpooled counterparts on both datasets while preserving stronger structural and behavioral diversity. They are also more robust than proportional allocation, the strongest alternative from RQ4. Overall, pooling reduces sensitivity to score calibration and mitigates brittle concentration under shift.
6 Threats to Validity
6.1 Internal Validity
Our results depend on the ranking signals used for mutant selection. For FARM, we use the released implementation and treat its output strictly as a ranking score. For SUBSUMING, we follow Cerebro's feature-based baseline with 10-fold cross-validation, as its neural model is incompatible with our LLVM bitcode-level mutant representation. We also include an LLM-generated ranking signal as a sanity check to assess whether the observed trends are specific to the studied models. Different models or prompts may produce different rankings. Our goal is only to show that the structural and behavioral effects of top-k ranking also appear under an alternative signal. For the alternative diversification mechanisms, we used standard settings without tuning (e.g., for MMR) and approximations for DPP and facility location on large CoREBENCH faults. Tuned variants might perform differently. However, our goal was to test whether a substantially more effective alternative exists, not to optimize each mechanism.
6.2 External Validity
CODEFLAWS contains small competition programs, so the observed effects may differ in larger systems. CoREBENCH partially mitigates this limitation by including real regression faults from large C projects. Notably, the effects we observe are generally stronger on CoREBENCH. For example, the gap in line coverage between top-k selection and RANDOM is larger, and unpooled top-k selection falls below RANDOM in fault revelation only on this dataset (Table 1). This suggests that the small size of CODEFLAWS programs is more likely to lead us to underestimate, rather than inflate, the phenomenon studied here. Nevertheless, our study is limited to C programs and the mutation operators and tooling used in these benchmarks. Replication on other languages and mutation systems would strengthen generality.
6.3 Construct Validity
We measure structural diversity using line-level metrics (LineCov, MaxShare, and Top5Share). These capture spatial concentration at LINEPOOL's target granularity, but not higher-level structures such as functions or modules. We therefore complement them with faulty-line coverage, behavioral redundancy, and fault-revelation analyses. The faulty-line analysis is limited to CODEFLAWS. In CoREBENCH, mutant line numbers refer to an intermediate build representation of the multi-file programs rather than to the original source files, so they cannot be reliably mapped to the known fault locations. This does not affect our other CoREBENCH results, since LINEPOOL and the structural metrics only require consistent line identifiers within a subject. Moreover, the analysis is a mechanism check rather than primary evidence: on CoREBENCH, top-k selection is even more concentrated (LineCov of 0.073 and 0.052 vs. 0.299 for RANDOM at 2%), and pooling improves FRR in the same direction.
Behavioral redundancy is measured using Jaccard similarity over kill sets, which depends on the available test suites and the treatment of mutants with empty kill sets. To mitigate test-suite dependence, both benchmarks supplement developer-written tests with automatically generated tests under generous time budgets. To mitigate empty-kill-set sensitivity, we repeat the analysis using three treatments: similarity 1, similarity 0, and exclusion. The qualitative conclusions remain unchanged, suggesting that the observed redundancy reduction is not an artifact of a particular Jaccard formulation.
FRR is a simulation-based proxy for fault revelation and may not capture all practical cost trade-offs. Therefore, we also report execution-based cost and the number of selected tests until fault revelation.
6.4 Conclusion Validity
FRR evaluation is simulation-based and stochastic. We mitigate variance by repeating simulations 100 times per subject and using paired statistical comparisons. CoREBENCH contains only 45 faults, which limits statistical power: several differences, such as FARM +LINE versus RANDOM at the 2% budget, are directionally consistent with our findings but not significant after Holm correction. We therefore treat CoREBENCH results as corroborating evidence for the direction of the effects rather than as precise estimates of their magnitude. To support this interpretation, we report effect sizes ( ) alongside p-values.
7 Conclusion
Learning-based mutant selection has emerged as a promising approach for reducing the cost of mutation testing. Existing work has primarily evaluated these techniques through effectiveness
Taha Rostami, Jeongju Sohn, and Mike Papadakis
metrics, such as fault revelation. Our results suggest that this perspective is incomplete. Learning-based ranking can concentrate the selection budget on a few locations, leaving blind spots and, particularly in larger programs, producing behaviorally redundant mutant sets, despite achieving competitive effectiveness. On CODEFLAWS, for example, top-k selection outperforms RANDOM while omitting the faulty line in about half of the subjects.
We presented LINEPOOL, a simple, model-agnostic diversification strategy that reuses existing ranking signals to prioritize both source locations and mutants within each location. Without modifying or retraining the underlying models, LINEPOOL consistently improves the structural and behavioral diversity of the selected mutant sets while preserving, and often improving, fault revelation effectiveness and robustness under noisy rankings and distribution shift. Comparisons with clustering and established diversification methods further indicate that the gains stem from preventing budget concentration rather than from a specific diversification mechanism. When mechanisms reach similar effectiveness, simplicity matters: LINEPOOL requires no features, similarity measure, or parameters, and it is the only evaluated strategy that guarantees spatial coverage.
LINEPOOL is also easy to adopt in practice, as it requires only a score for each mutant and its source line. MART, which already computes FARM scores [43], can apply it directly as a post-processing step, and we expect it to integrate equally easily with language-model-based approaches such as BERT [9] and, potentially, with other predictive mutation-testing techniques. Limiting the number of mutants per line is also not new in practice: Google’s production mutation-testing system [35] and recent LLM-based test generation [6] both constrain mutants at the line level, but without analyzing how such limits affect redundancy or effectiveness. Our results provide this rationale, showing that beyond reducing cost, spreading mutants across lines reduces redundancy and, under tight budgets, improves fault revelation.
More broadly, our findings suggest that better prediction of a specific mutant property does not necessarily translate into better downstream outcomes. A ranker that identifies likely subsuming or fault-revealing mutants can still yield a concentrated selection that reveals fewer faults than RANDOM, as SUBSUMING does on COREBENCH, while LINEPOOL improves fault revelation without changing the underlying predictor. How predictions are consumed under a budget therefore matters as much as their accuracy, which is likely to hold for other downstream uses of selected mutants, such as test generation. Future learning-based mutant selection techniques should thus be designed and evaluated not only by the effectiveness of the selected mutants, but also by their behavioral diversity and by whether they leave parts of the program without any selected mutant. Future work will focus on diversity-aware learning objectives, the explicit incorporation of diversity into model training, and the evaluation of such approaches across additional programming languages and mutation systems.
Data Availability
Code and data are available at: https://zenodo.org/records/22998124.
References
[1] Paul Ammann, Marcio E. Delamaro, and Jeff Offutt. 2014. Establishing Theoretical Minimal Sets of Mutants. In Proceedings of the 2014 IEEE Seventh International Conference on Software Testing, Verification and Validation. IEEE Press, 21–30. doi:10.1109/ICST.2014.14
[2] David Arthur and Sergei Vassilvitskii. 2007. k-means++: The Advantages of Careful Seeding. In Proceedings of the 18th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA). 1027–1035.
[3] Marcel Böhme and Abhik Roychoudhury. 2014. CoREBench: studying complexity of regression errors. In Proceedings of the 2014 International Symposium on Software Testing and Analysis (San Jose, CA, USA) (ISSTA 2014). Association for Computing Machinery, New York, NY, USA, 105–115. doi:10.1145/2610384.2628058
[4] Cristian Cadar, Daniel Dunbar, and Dawson R. Engler. 2008. KLEE: Unassisted and Automatic Generation of High-Coverage Tests for Complex Systems Programs. In Proceedings of the 8th USENIX Symposium on Operating Systems Design and Implementation (OSDI '08). USENIX Association, San Diego, CA, USA, 209–224.
[5] Jaime Carbonell and Jade Goldstein. 1998. The Use of MMR, Diversity-Based Reranking for Reordering Documents and Producing Summaries. In Proceedings of the 21st Annual International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR). 335–336.
[6] Pengyu Chang et al. 2026. Test vs Mutant: Adversarial LLM Agents for Robust Unit Test Generation. arXiv preprint arXiv:2602.08146 (2026).
[7] Laming Chen, Guoxin Zhang, and Hanning Zhou. 2018. Fast Greedy MAP Inference for Determinantal Point Process to Improve Recommendation Diversity. In Advances in Neural Information Processing Systems 31 (NeurIPS).
[8] Van Dang and W. Bruce Croft. 2012. Diversity by Proportionality: An Election-Based Approach to Search Result Diversification. In Proceedings of the 35th International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR). 65–74.
[9] Renzo Degiovanni and Mike Papadakis. 2022. μBERT: Mutation Testing using Pre-Trained Language Models. In IEEE International Conference on Software Testing, Verification and Validation Workshops (ICSTW).
[10] Jerome H. Friedman. 2002. Stochastic Gradient Boosting. Computational Statistics & Data Analysis 38, 4 (2002), 367–378.
[11] Akshaya Garg, Renzo Degiovanni, Mike Papadakis, and Yves Le Traon. 2024. On the Coupling between Vulnerabilities and LLM-Generated Mutants: A Study on Vul4J Dataset. In IEEE International Conference on Software Testing, Verification and Validation (ICST). 305–316.
[12] Akshaya Garg, Milan Ojdanic, Renzo Degiovanni, Thierry Titcheu Chekam, Mike Papadakis, and Yves Le Traon. 2023. Cerebro: Static Subsuming Mutant Selection. IEEE Transactions on Software Engineering 49, 1 (2023), 24–43.
[13] Gregory Gay and Amir Salahirad. 2023. How Closely Are Common Mutation Operators Coupled to Real Faults?. In IEEE International Conference on Software Testing, Verification and Validation (ICST).
[14] D. Gong, G. Zhang, X. Yao, and F. Meng. 2017. Mutant Reduction Based on Dominance Relation for Weak Mutation Testing. Information and Software Technology 81 (2017), 82–96.
[15] Rahul Gopinath, Mohammad Amin Alipour, Iftekhar Ahmed, Carlos Jensen, and Alex Groce. 2016. On the Limits of Mutation Reduction Strategies. In Proceedings of the 38th International Conference on Software Engineering (ICSE).
[16] Mark Harman, John Ritchey, Ian Harper, Shubho Sengupta, Ke Mao, Aashish Gulati, Cameron Foster, and Henry Robert. 2025. Mutation-Guided LLM-Based Test Generation at Meta. 180–191 pages.
[17] Dan Hendrycks and Thomas Dietterich. 2019. Benchmarking Neural Network Robustness to Common Corruptions and Perturbations. In International Conference on Learning Representations (ICLR).
[18] Sture Holm. 1979. A Simple Sequentially Rejective Multiple Test Procedure. Scandinavian Journal of Statistics 6, 2 (1979), 65–70.
[19] Shamaila Hussain. 2008. Mutation Clustering. Master's thesis. Kings College London.
[20] Paul Jaccard. 1901. Étude Comparative de la Distribution Florale dans une Portion des Alpes et des Jura. Bulletin de la Société Vaudoise des Sciences Naturelles 37 (1901), 547–579.
[21] Alex Kulesza and Ben Taskar. 2012. Determinantal Point Processes for Machine Learning. Foundations and Trends in Machine Learning 5, 2–3 (2012), 123–286.
[22] Thomas Laurent, Stephen Gaffney, and Anthony Ventresque. 2022. Re-visiting the Coupling between Mutants and Real Faults with Defects4J 2.0. (2022), 189.
[23] Hui Lin and Jeff Bilmes. 2011. A Class of Submodular Functions for Document Summarization. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies (ACL-HLT). 510–520.
[24] Stuart Lloyd. 1982. Least Squares Quantization in PCM. IEEE Transactions on Information Theory 28, 2 (1982), 129–137.
[25] Wei Ma, Thierry Titcheu Chekam, Mike Papadakis, and Mark Harman. 2021. MuDelta: Delta-Oriented Mutation Testing at Commit Time. In Proceedings of the 43rd IEEE/ACM International Conference on Software Engineering (ICSE).
Taha Rostami, Jeongju Sohn, and Mike Papadakis
[26] Aditya P. Mathur. 1991. Performance, Effectiveness, and Reliability Issues in Software Testing. In Proceedings of the Fifteenth Annual International Computer Software and Applications Conference (COMPSAC '91). Tokyo, Japan, 604–605.
[27] Michel Minoux. 1978. Accelerated Greedy Algorithms for Maximizing Submodular Set Functions. In Optimization Techniques (Lecture Notes in Control and Information Sciences, Vol. 7). Springer, 234–243.
[28] George L. Nemhauser, Laurence A. Wolsey, and Marshall L. Fisher. 1978. An Analysis of Approximations for Maximizing Submodular Set Functions—I. Mathematical Programming 14, 1 (1978), 265–294.
[29] A. Jefferson Offutt, Gregg Rothermel, and Christian Zapf. 1993. An Experimental Evaluation of Selective Mutation. In Proceedings of the 15th International Conference on Software Engineering (ICSE).
[30] Milos Ojdanic, Aayush Garg, Ahmed Khanfir, Renzo Degiovanni, Mike Papadakis, and Yves Le Traon. 2023. Syntactic Versus Semantic Similarity of Artificial and Real Faults in Mutation Testing Studies. IEEE Trans. Software Eng. 49, 7 (2023), 3922–3938. doi:10.1109/TSE.2023.3277564
[31] Mike Papadakis, Marinos Kintis, Jie Zhang, Yue Jia, Yves Le Traon, and Mark Harman. 2019. Mutation Testing Advances: An Analysis and Survey. In Advances in Computers. Elsevier, 275–378.
[32] Mike Papadakis, Donghwan Shin, Shin Yoo, and Doo-Hwan Bae. 2018. Are Mutation Scores Correlated with Real Fault Detection? A Large Scale Empirical Study on the Relationship between Mutants and Real Faults. In Proceedings of the 40th International Conference on Software Engineering (ICSE). 537–548.
[33] Fabian Pedregosa, Gaël Varoquaux, Alexandre Gramfort, Vincent Michel, Bertrand Thirion, Olivier Grisel, Mathieu Blondel, Peter Prettenhofer, Ron Weiss, Vincent Dubourg, Jake Vanderplas, Alexandre Passos, David Cournapeau, Matthieu Brucher, Matthieu Perrot, and Édouard Duchesnay. 2011. Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research 12 (2011), 2825–2830.
[34] Goran Petrović and Marko Ivanković. 2018. State of Mutation Testing at Google. In Proceedings of the 40th International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP).
[35] Goran Petrović, Marko Ivanković, Gordon Fraser, and René Just. 2022. Practical Mutation Testing at Scale: A View from Google. IEEE Transactions on Software Engineering (2022).
[36] Alessandro V. Pizzoleto, Fabiano C. Ferrari, Jeff Offutt, Lúcia Fernandes, and Márcio Ribeiro. 2019. A Systematic Literature Review of Techniques and Metrics to Reduce the Cost of Mutation Testing. Journal of Systems and Software 157 (2019), 110388.
[37] Taha Rostami and Saeed Jalili. 2023. FrMi: Fault-Revealing Mutant Identification using Killability Severity. Information and Software Technology 164 (2023), 107307.
[38] André Sainte-Laguë. 1910. La représentation proportionnelle et la méthode des moindres carrés. Annales scientifiques de l'École Normale Supérieure 27 (1910), 529–542.
[39] Chih-An Sun, Fei Xue, Hao Liu, and Xiangyu Zhang. 2017. A Path-Aware Approach to Mutant Reduction in Mutation Testing. Information and Software Technology 81 (2017), 65–81.
[40] Shin Hwei Tan, Jooyong Yi, Yulis, Sergey Mechtaev, and Abhik Roychoudhury. 2017. Codeflaws: a programming competition benchmark for evaluating automated program repair tools. In Proceedings of the 39th International Conference on Software Engineering Companion (Buenos Aires, Argentina) (ICSE-C '17). IEEE Press, 180–182. doi:10.1109/ICSE-C.2017.76
[41] Thierry Titcheu Chekam, Mike Papadakis, Tegawendé F. Bissyandé, Yves Le Traon, and Koushik Sen. 2020. Selecting Fault Revealing Mutants. Empirical Software Engineering 25, 1 (2020), 434–487.
[42] Thierry Titcheu Chekam, Mike Papadakis, Maxime Cordy, and Yves Le Traon. 2021. Killing Stubborn Mutants with Symbolic Execution. ACM Transactions on Software Engineering and Methodology 30, 2 (2021), 1–23.
[43] Thierry Titcheu Chekam, Mike Papadakis, and Yves Le Traon. 2019. MART: A Mutant Generation Tool for LLVM. In Proceedings of the 27th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE). 1080–1084.
[44] Frank Wilcoxon. 1945. Individual Comparisons by Ranking Methods. Biometrics Bulletin 1, 6 (1945), 80–83.
[45] W. Eric Wong and Aditya P. Mathur. 1995. Reducing the Cost of Mutation Testing: An Empirical Study. Journal of Systems and Software 31, 3 (1995), 185–196.
[46] Lu Zhang, Shan-Shan Hou, Jun-Jue Hu, Tao Xie, and Hong Mei. 2010. Is Operator-Based Mutant Selection Superior to Random Mutant Selection?. In Proceedings of the 32nd ACM/IEEE International Conference on Software Engineering (ICSE). 435–444.