Metraipolis › archive › dc_321be645cb23
FC-SWE: Failure-Conditioned RL for Long-Horizon Software Engineering Agents — arXiv:2610.07898
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.07898
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-07T11:41:29.025Z
- SHA-256 of the archived text
2683f54c55ae61336d89741cb9c9d4a9ecbc70c20fe9dfea5a7ed926d44f3876- Stable URL of this page
https://metraipolis.com/documento/dc_321be645cb23
How to cite
FC-SWE: Failure-Conditioned RL for Long-Horizon Software Engineering Agents — arXiv:2610.07898 — arXiv (en), https://arxiv.org/abs/2610.07898 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_321be645cb23 (Metraipolis archive dc_321be645cb23, sha256 2683f54c55ae61336d89741cb9c9d4a9ecbc70c20fe9dfea5a7ed926d44f3876)
BibTeX
@misc{dc321be645cb23,
title = {FC-SWE: Failure-Conditioned RL for Long-Horizon Software Engineering Agents — arXiv:2610.07898},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.07898},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_321be645cb23; sha256 2683f54c55ae61336d89741cb9c9d4a9ecbc70c20fe9dfea5a7ed926d44f3876},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.07898. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Repository-level software engineering (SWE) is a challenging long-horizon setting: agents must reason over extended interactions, use tools, and adapt to stateful environments. Recent work trains SWE agents with reinforcement learning methods such as Group Relative Policy Optimization (GRPO), which independently sample multiple trajectories per issue, test the resulting patches, and compare terminal rewards within a fixed group. However, this training setup does not reuse verifier feedback from failed patches as context for subsequent attempts, even though this feedback contains valuable diagnostic information about what went wrong. Training on recovery trajectories is challenging because the preceding outcome determines whether the next trajectory is generated, while the failed execution determines its conditioning context. We introduce FC-SWE, a failure-conditioned RL framework that incorporates recovery attempts into policy training. After a patch fails verification, FC-SWE restores the repository to its original task state and uses the failed patch and verifier feedback as context for a recovery trajectory. FC-SWE adapts GRPO to these chains of complete, multi-turn tool-use trajectories through two mechanisms. Trajectory-local rewards preserve each attempt's verifier outcome, preventing recovery success from rewarding an earlier failed patch. Active-set advantage estimation forms a comparison group from all initial and recovery trajectories actually executed for the same issue, so failed attempts remain in the group while unexecuted attempts are excluded. On all 500 SWE-bench Verified tasks under a verifier-assisted protocol, FC-SWE with Qwen3.5-4B and SWE-agent achieves 41.7% Resolved@1 and 52.8% Resolved@2, compared with 38.9% and 48.5% for GRPO. Although trained with at most two attempts per chain, FC-SWE reaches 70.7% Resolved@11 under an eleven-attempt test-time budget. Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.LG, nuovi lavori del giorno). Categorie arXiv: Machine Learning (cs.LG) ; Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2610.07898 — 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-07T11:19:24.797Z dalla pagina https://arxiv.org/list/cs.LG/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).