Evaluating More with Less: Black-Box Test Selection for AI Agents: what it means for business leaders

A Delft study shows that running a well-chosen fifth of an agent benchmark can estimate the full success rate to within a couple of points, or surface nearly twice the failures, without access to the agent's internals.

1. What the method is

This is an empirical study, not a single new algorithm. The authors treat each task in an agent benchmark as a test case and ask which subset to run when we cannot afford the whole suite. They compare fourteen ways of choosing that subset using only what is visible before the agent runs: task text, metadata, code fragments and embeddings. Seven are adapted from classic black-box regression testing, such as category partitioning, boundary values, text diversity and adaptive random selection. Six are new and rank tasks by estimated difficulty, two from hand-built text features and four by asking an independent language model to grade difficulty. Random sampling is the fourteenth. None of them executes the agent under test or uses its past results, so the same selected set works for any agent, including closed vendor products. Two goals are measured separately: estimating the full-benchmark success rate, and finding failures early.

2. Why the method was developed

Agents need retesting whenever the model, prompt, scaffold, tools or execution environment changes, and each task can involve many model calls, tool interactions and code execution. The paper puts a full run of SWE-bench Verified, 500 tasks, at a median of $225 across thirteen agents, and that bill recurs with every change. Test selection is an old answer to this problem in software engineering, and it has been extended to neural networks and to code models doing classification. Those newer techniques mostly depend on signals from inside the model, such as confidence scores, uncertainty estimates or activations, which a proprietary agent does not expose and which have no consistent meaning across systems that combine a model with tools and memory. The one agent-specific predecessor picks mid-difficulty tasks from other agents' recorded pass rates, which requires history and was designed to preserve leaderboard rankings, not to estimate one agent's score.

3. Who should care

Engineering leaders who run agent evaluations in continuous integration should care first, because this bears directly on how often we can afford to test and how quickly a regression shows up. Whoever owns the evaluation budget gets a concrete lever: the paper's examples cut the cost of a run by roughly four fifths at a known loss of accuracy. Teams comparing vendor agents before a purchase can use the same approach, since nothing here needs access to the vendor's model. Quality and reliability engineers doing failure analysis have a different use for it, which is to run the tasks most likely to break the agent first. Product managers who quote benchmark numbers need to understand the central caveat: a subset chosen to find failures gives a badly biased success rate, so a single selected set cannot serve both reporting and debugging.

4. How the method works

For estimating success rate, the strongest method is Category Partition. It groups tasks by combinations of available attributes, such as repository, domain, task type or language, plus simple text markers: whether the task contains a traceback, mentions an exception or warning, and which length quartile it falls in. It then cycles through the groups taking one task from each, longest first, so a small sample covers the variety of the suite. Adaptive Random reaches a similar spread differently: it embeds task descriptions with CodeT5+, reduces them to ten dimensions, and repeatedly picks the task farthest from those already chosen. For finding failures, an independent model reads only the task and a description of how success is judged, never answers or outcomes, and scores difficulty from 1 to 4, either overall or on five factors such as localization, change size, reasoning, validation and reproducibility. Factor scores are standardized and summed, and the hardest tasks run first, optionally spread across embedding clusters.

5. How it was evaluated

The study covers ten public benchmarks of 45 to 607 tasks: three SWE-bench variants plus a 50-task subset, USACO, TerminalBench 2.0, TAU-bench Airline, CORE-Bench Hard, GAIA and Online-Mind2Web. Each has published pass or fail outcomes for 12 to 101 agent configurations, taken from the benchmark releases and the Holistic Agent Leaderboard. Nothing was rerun; the authors replay each selection against those recorded outcomes, giving 298 benchmark and agent pairs. Budgets are 10, 20 and 50 percent of tasks, with detailed tables at 20 percent. Randomized strategies are repeated 100 times. The metrics are the absolute gap between subset and full success rate, and the count of failing tasks in the subset, compared with Friedman and Nemenyi tests. The baselines are random sampling and the historical mid-range method. Difficulty judgments come from Claude Sonnet 5, repeated with GPT-4o mini as a contamination check; judging all ten benchmarks cost about $45 and under $1 respectively.

6. How it performed

At a 20 percent budget, Category Partition had the lowest median estimation error on five of ten benchmarks and was significantly better than random overall, cutting error on SWE-bench Verified from 3.3 to 1.8 percentage points at $47 against $225 for the full suite. It is not safe everywhere: on USACO its error was 13.8 points against 4.2 for random. Difficulty-based selection was significantly worse than random for estimation, with errors up to 25.8 points, but best for failures: the factor-based judge found a median of 53 failures in 100 SWE-bench Verified tasks against 27.4 for random, at a higher run cost of $80 against $45. No strategy wins both goals. The results are replays on public benchmarks, not private suites, and the text we reviewed was cut off before the authors' threats-to-validity section. Our call: pilot it on our own agent test suites, with one stratified subset for tracking and a separate judge-ranked subset for debugging. (Source: arXiv 2611.34617, 2026)

← Back to dossier index