Metraipolis › archive › dc_7821a6af8b63
TestGRAD: Evolving Test Suites via Failure Pattern Momentum for SWE-Agent Ensemble — arXiv:2610.10242
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.10242
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-08T11:11:56.291Z
- SHA-256 of the archived text
dcfd5050fed4c4772b48dc8b61594a8f626bd342f827ac2767ffd89136828b88- Stable URL of this page
https://metraipolis.com/documento/dc_7821a6af8b63
How to cite
TestGRAD: Evolving Test Suites via Failure Pattern Momentum for SWE-Agent Ensemble — arXiv:2610.10242 — arXiv (en), https://arxiv.org/abs/2610.10242 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_7821a6af8b63 (Metraipolis archive dc_7821a6af8b63, sha256 dcfd5050fed4c4772b48dc8b61594a8f626bd342f827ac2767ffd89136828b88)
BibTeX
@misc{dc7821a6af8b63,
title = {TestGRAD: Evolving Test Suites via Failure Pattern Momentum for SWE-Agent Ensemble — arXiv:2610.10242},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.10242},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_7821a6af8b63; sha256 dcfd5050fed4c4772b48dc8b61594a8f626bd342f827ac2767ffd89136828b88},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.10242. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
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\times$. Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno). Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2610.10242 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-08T10:14:06.165Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).