arXiv:2608.28230cs.SEAug 2026

Manuscript Offprint

arXiv:2608.28230

Adaptive Strategy Generation for Boundary Value Exploration Beyond Numeric Inputs

Sabinakhon Akbarova, Felix Dobslaw, Robert Feldt

Abstract

Software behavior often changes abruptly at boundaries between input regions, and these transitions are known to be fault-prone. Boundary Value Exploration (BVE) automates boundary discovery by searching for pairs of similar inputs that nevertheless trigger different program behaviors. Existing automated BVE techniques rely on mutation operators hand-engineered for each input type, or even for each function under test, which has confined their use to numeric inputs. We present ABEX, an agentic LLM-based framework that replaces operator engineering with adaptive strategy generation: specialized LLM agents propose, select, and execute boundary-exploration strategies, guided by execution feedback and a quality-diversity (QD) archive. Because strategies are expressed in natural language, they can encode both type-level and function-specific knowledge, and effective strategies can even be stored and reused. We evaluate ABEX in a black-box setting on 20 functions with numeric, string, array, and mixed inputs. On numeric functions, ABEX outperforms a state-of-the-art QD method on 10 of 11 functions, with average QD-scores 11.7x higher. On non-numeric functions, addressed here for the first time in automated black-box BVE, ABEX discovers domain-aligned boundary behaviors for all subjects. Mutation testing shows the discovered boundaries are fault-revealing: with equally sized test suites, ABEX reaches an average mutation score of 86.2% versus 61.9% for the QD baseline, and kills nine times as many hard-to-detect stubborn mutants. An ablation study identifies adaptive strategy generation as the primary driver of these gains.

Keywords: Boundary value exploration, automated software testing, large language models, quality-diversity optimization, AI4SE

1. Introduction

Software systems often change behavior at the borders between input regions. These transitions can be especially fault-prone, which makes boundary-focused testing an efficient way to find defects with relatively few test cases [1,2,3][1, 2, 3]. Boundary Value Exploration (BVE) makes this idea concrete by casting boundary discovery as a search for pairs of nearby inputs that nevertheless trigger different program behaviors, thereby exposing behavioral boundaries [4][4].

Recent work has started to automate BVE. AutoBVA [5] searches for boundary-inducing input pairs by optimizing the program derivative (PD) [6], a metric that rewards pairs of inputs that are close in the input space but produce different outputs. This works well for sharp transitions, but optimizing a single metric can pull the search into a narrow part of the space and miss boundary areas that score lower yet still matter for testing. SETBVE [7] addresses this limitation with a quality-diversity (QD) approach based on MAP-Elites [8], maintaining an archive of boundary candidates that balances boundary strength against behavioral diversity.

Despite this progress, automated BVE approaches still face a fundamental limitation: they depend on mutation operators tailored to the input data types of the function under test (FUT) and, for effective exploration, often to the FUT's specific semantics. Designing generic operators is straightforward for numeric inputs, where boundary candidates

∗^{*}Corresponding Author

Email addresses: sabina.akbarova@chalmers.se (Sabinakhon Akbarova), felix.dobslaw@miun.se (Felix Dobslaw), robert.feldt@chalmers.se (Robert Feldt) can be generated by incrementing, decrementing, or sampling around numeric thresholds. However, this becomes harder for other and more complex data types such as strings, arrays, or mixed inputs. For example, consider a function that validates email addresses. A generic string mutation operator may randomly insert, delete, or replace characters, but such mutations are unlikely to systematically explore the meaningful boundary cases of the email format. Inputs such as alice@example.com, aliceexample.com, alice@example.com, and alice@example.com differ by small syntactic changes, yet they exercise distinct boundary conditions related to the presence and position of @, dots, local-part structure, and domain structure. Generating such cases requires knowledge of the expected input grammar and of the validation rules implemented by the FUT. Similar challenges arise for file paths, URLs, identifiers, JSON objects, or other structured inputs whose boundary behavior depends on domain-specific constraints. Each new type, argument combination, or function therefore requires bespoke operator engineering, which is labor-intensive, error-prone, and difficult to scale. As a result, automated BVE has remained largely confined to numeric domains with generic operators, even though most real software operates on richer input structures whose boundary behavior depends on function-specific logic. This limitation motivates our work, which aims to reduce the need for manually engineered, type- and function-specific mutation operators.

We present ABEX, an agentic LLM-based framework designed to remove this bottleneck. The central concept in ABEX is a boundary-exploration strategy: a reusable, natural-language procedure that instructs the system how to generate candidate input pairs for a given FUT. A strategy is not a single test case or a fixed low-level mutation operator; rather, it specifies an exploration policy, such as which input structures to vary, whether to generate new pairs from scratch or mutate existing boundary candidates. For example, for an email-validation function, a strategy may instruct the system to vary the position and number of @ symbols, alter dots in the local part or domain, and pair syntactically similar valid and invalid addresses to expose format-validity boundaries.

Building on work on autonomous testing agents [9, 10] and Automated Design of Agentic Systems (ADAS) [11], ABEX combines a QD archive and the program derivative metric with specialized agents that propose, refine, select, and execute such strategies. Because these strategies are expressed in natural language, they can capture both type-level and FUT-specific knowledge derived from docstrings, specifications, or other semantic information without requiring changes to the framework. The resulting strategies are human-readable and, in principle, reusable: effective strategies discovered for one function or input type can be stored and applied to others, allowing the framework to accumulate testing knowledge over time. Although the use of LLMs leads to higher per-iteration cost than optimized numeric search, ABEX compensates by finding high-quality boundaries early and by working on input types that existing methods cannot handle.

We evaluate ABEX on 20 FUTs with integer, string, array, and mixed inputs. On numeric inputs, ABEX outperforms both the QD-based baseline SETBVE [7] and a single-prompt LLM baseline on 10 of the 11 evaluated functions. Under the same budget as SETBVE, 100 iterations with 10 candidates generated per iteration, with a total of 1000 generated candidate input pairs, ABEX achieves an average QD-score 11.7×11.7\times higher. The single-prompt baseline serves as a check on whether simply asking an LLM for boundary candidates, without iteration, feedback, or agents, is already sufficient; following prior work [12], it generates 50 candidate pairs in a single call, and ABEX achieves an average QD-score 2.8×2.8\times higher (Section 4.2 details both budgets). For non-numeric inputs, which to the best of our knowledge are explored here for the first time in automated black-box BVE, ABEX discovers meaningful, domain-aligned boundary behaviors across all tested functions. Mutation testing further shows that the boundary candidates discovered by ABEX are effective as fault-detecting test cases: under equally sized test suites, ABEX achieves an average mutation score of 86.2% on numeric functions, compared to 61.9% for SETBVE, and kills roughly nine times as many stubborn mutants. For non-numeric functions, ABEX-generated suites reach an average mutation score of 76.3%. An ablation study identifies adaptive strategy generation as the primary driver of these gains: on a six-FUT subset, the full framework achieves an average per-FUT QD-score improvement of 6.8×6.8\times over a variant that iterates a single fixed strategy.

The contributions of this paper are:

  • ABEX, an adaptive boundary exploration framework that autonomously generates and accumulates reusable exploration strategies, achieving 2.8×2.8\times and 11.7×11.7\times higher QD-scores than single-prompt LLM and QD-based baselines, respectively, on numeric inputs.

  • The first automated BVE results in a black-box setting for non-numeric inputs: ABEX discovers domain-aligned boundary behaviors across all 10 string, array, and mixed-input functions.

• Mutation-testing evidence that the discovered boundary candidates are effective at detecting seeded faults: ABEX reaches an average mutation score of 86.2% versus 61.9% for the QD-based baseline on numeric FUTs, and kills roughly nine times as many hard-to-detect stubborn mutants.

• An open replication package 1^{1} containing the ABEX framework and evaluation dataset.

Section 2 presents background and related work. Section 3 describes the ABEX architecture with a running example. Section 4 outlines the experimental setup. Section 5 reports results, followed by discussion and threats to validity in Section 6. Section 7 concludes.

References (36)