Trajectory-Aware Benchmark Subset Selection for Cost-Efficient Software Engineering Agent Regression Testing
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Autonomous software engineering agents (SWE-agents) automate coding tasks. Each agent update may require re-running the full benchmark to detect regressions and improvements, at a cost of hundreds of millions of LLM tokens per run, which makes evaluation a bottleneck. One solution is to evaluate only a subset of benchmark instances. Yet, simple approaches, such as random sampling or stratified random sampling based on past pass/fail outcomes, risk producing high variance and unrepresentative subsets. We turn to agent trajectories, the step-by-step record of the actions an agent took. We propose a trajectory-aware subset selection approach that replaces random sampling with deterministic selection based on trajectory embeddings. We first group test set instances by their test outcome in a recent full test run to preserve the historical pass/fail rate, then select the subset using the trajectory's embedding space. We evaluate 76 subset selection configurations, including random sampling, embedding-based selection, clustering-based selection, and hybrid shortlist-then-subsample strategies, across three regression scenarios: same-configuration reruns, model and configuration changes, and agent framework changes. Our best trajectory-aware method is the one selecting benchmark instances closest to the centroid of each outcome group in the embedding space. It achieves the lowest estimation error among all methods we evaluate. For instance, when evaluating a given agent version on a selected subset of 5% or 10% of the test instances, our approach reduces the average estimation error by 3--11% and the worst-case error by 4--11% relative to the typical draw and 38--46% relative to the 95th-percentile draw of the strongest baseline. Our results show that a 10% trajectory-aware subset keeps the median estimation error below 5% while cutting token cost by roughly 90%.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 24 of its 63 references that are in the map. First posted on arXiv 21 Sep 2026.
Builds on
24 of 63 references.
Closest ancestors · 6
Same direction, newest first
- 2025Understanding Code Agent Behaviour: An Empirical Study of Success and Failure Trajectories31 Oct
- 2025Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories23 Jun
- 2025Understanding Automated Program Repair Agents Through the Lens of Traceability: An Empirical Study10 Jun
- 2025SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agents26 May
- 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinement26 Oct
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
Other references · 18
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024tinyBenchmarks: evaluating LLMs with fewer examplescited by 295
- 2024Nomic Embed: Training a Reproducible Long Context Text Embeddercited by 255
- 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 254
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
- 2018Attentive Statistics Pooling for Deep Speaker Embeddingcited by 108
- 2017Accelerated Hierarchical Density Clusteringcited by 100
- 2016Time for a change: a tutorial for comparing multiple classifiers through Bayesian analysiscited by 92
- 2025The Complexity Trap: Simple Observation Masking Is as Efficient as LLM Summarization for Agent Context Managementcited by 40
- 2018Reinforcement Learning for Automatic Test Case Prioritization and Selection in Continuous Integrationcited by 17
- 2026AgentLens: Revealing The Lucky Pass Problem in SWE-Agent Evaluationcited by 13
6 more
- 2020Reinforcement Learning for Test Case Prioritizationcited by 12
- 2025Scales++: Compute Efficient Evaluation Subset Selection with Cognitive Scales Embeddingscited by 9
- 2021Evaluating prediction systems in software project estimationcited by 6
- 2021Scalable and Accurate Test Case Prioritization in Continuous Integration Contextscited by 6
- 2024BenTo: Benchmark Task Reduction with In-Context Transferabilitycited by 4
- 2022Test2Vec: An Execution Trace Embedding for Test Case Prioritizationcited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Efficient SWE Agent Benchmarking via Trajectory-Aware Evaluation
- 2026SWE-TRACE: Optimizing Long-Horizon SWE Agents Through Rubric Process Reward Models and Heuristic Test-Time Scaling
- 2026SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agents
- 2025SWE-RM: Execution-free Feedback For Software Engineering Agents
- 2025Thinking Longer, Not Larger: Enhancing Software Engineering Agents via Scaling Test-Time Compute
- 2026PERFOPT-Bench: Evaluating Coding Agents on Software Performance Optimization
- 2026SWE-Cycle: Benchmarking Code Agents across the Complete Issue Resolution Cycle
- 2025Training Versatile Coding Agents in Synthetic Environments