arXiv:2610.06055cs.SEOct 2026

Manuscript Offprint

arXiv:2610.06055

Where Does the Budget Go? Structural Concentration in Learning-Based Mutant Selection

Taha Rostami, Jeongju Sohn, Mike Papadakis

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.