mlsanityData to 7 Oct 2026

TestGRAD: Evolving Test Suites via Failure Pattern Momentum for SWE-Agent Ensemble

arXiv 2610.10242 ↗First posted 7 Oct 2026cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

SWE-agent ensembles improve issue resolution by combining candidate patches from different agents with complementary strengths. The central problem is therefore test-based selection: generate tests, execute candidate patches, and identify the best patch. We formulate this process as test-space optimization: evolving an executable repository test suite until it distinguishes competing patches. Existing test-generation methods are limited optimizers. They usually lack an explicit loss for ensemble selection, optimize through incomplete directions that mostly create new tests or delete old ones, and perform one-off generation without feedback from repeated failures. Inspired by gradient descent with momentum, we introduce TestGRAD, a framework for automatic test optimization. TestGRAD centers on three concepts. Differential loss gives the optimizer an explicit execution-defined target: useful tests should separate candidate patches by behavior. Full CRUD gradients expand the update direction from merely creating or deleting tests to reading existing test infrastructure, creating new tests, updating stale assertions, and deleting only obsolete tests. Failure Pattern Momentum mines frequent failure sequences from memory, allowing the optimizer to avoid repeated non-discriminative directions while compressing the failure-history context. On SWE-bench Verified, TestGRAD achieves 84.2% Pass@1 with a 4-agent ensemble, outperforming the strongest baseline (80.6%) by an absolute improvement of 3.6 percentage points, while compressing failure-history context by over 100×.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 9 of its 34 references that are in the map. First posted on arXiv 7 Oct 2026.

Builds on

9 of 34 references.

References · 9

  1. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  2. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  3. 2023Large Language Models are not Fair Evaluatorscited by 1,050
  4. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
  5. 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 755
  6. 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agentscited by 129
  7. 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scalingcited by 93
  8. 2023AgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisationcited by 31
  9. 2024DiffSpec: Differential Testing with LLMs using Natural Language Specifications and Code Artifactscited by 5

Built on by

Not cited yet.