Beyond Fail-to-Pass: Iterative Hardening of Co-Generated Bug Reproduction Tests and Fixes
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have made automated program repair (APR) increasingly practical for real-world bugs, but repairing directly from bug reports remains underconstrained. Bug reproduction tests (BRTs) help close this gap by turning a bug report into an executable, bug-specific signal that can guide repair and validate candidate patches. Existing work has therefore studied BRT generation as a core subproblem in APR and mainly evaluates a generated BRT using the fail-to-pass (F->P) criterion, which requires the test to fail on the buggy code but pass on the golden fix. We show that F->P alone is insufficient when the goal of a BRT is to improve downstream repair. In particular, some F->P BRTs are lax, reproducing the observed symptom yet still admitting plausible-but-incorrect patches. We formalize this missing quality dimension by separating F->P BRTs into rigorous and lax ones, and show empirically that only the former consistently improve repair success. We further find that co-generation introduces test--fix error coupling, where the in-trajectory fail-to-pass (F->P) check can pass even when both the generated patch and generated test are wrong. Based on these findings, we propose CoHarden, a co-generation framework that uses the Lax signal as an in-loop convergence criterion. CoHarden first generates a test before any fix, then iteratively hardens the test and fix against surviving mutation patches until the generated test no longer admits Lax regressions. Experiments show that CoHarden reaches 69.4% Resolved and 78.9% F->P on SWE-bench Verified, outperforming the strongest fix-only and cogeneration baselines by +9.6 and +7.9 percentage points in Resolved, respectively, with consistent gains across LLM backbones and benchmarks.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 24 of its 36 references that are in the map. First posted on arXiv 22 Jul 2026.
Builds on
24 of 36 references.
References · 24
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,002
- 2024AutoCodeRover: Autonomous Program Improvementcited by 278
- 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
- 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agentscited by 133
- 2022Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproductioncited by 111
- 2024SWE-Bench+: Enhanced Coding Benchmark for LLMscited by 99
- 2025Are "Solved Issues" in SWE-bench Really Solved Correctly? An Empirical Studycited by 49
- 2025Otter: Generating Tests from Issues to Validate SWE Patchescited by 25
- 2025Issue2Test: Generating Reproducing Test Cases from Issue Reportscited by 18
- 2025CoCoEvo: Co-Evolution of Programs and Test Cases to Enhance Code Generationcited by 14
12 more
- 2026SWE-ABS: Adversarial Benchmark Strengthening Exposes Inflated Success Rates on Test-based Benchmarkcited by 12
- 2025AssertFlip: Reproducing Bugs via Inversion of LLM-Generated Passing Testscited by 11
- 2025Heterogeneous Prompting and Execution Feedback for SWE Issue Test Generation and Selectioncited by 10
- 2026LLMLOOP: Improving LLM-Generated Code and Tests through Automated Iterative Feedback Loopscited by 8
- 2025InfCode: Adversarial Iterative Refinement of Tests and Patches for Reliable Software Issue Resolutioncited by 7
- 2026Dynamic Cogeneration of Bug Reproduction Test in Agentic Program Repaircited by 6
- 2026TestExplora: Benchmarking LLMs for Proactive Bug Discovery via Repository-Level Test Generationcited by 5
- 2026SWE-Tester: Training Open-Source LLMs for Issue Reproduction in Real-World Repositoriescited by 4
- 2026Echo: Graph-Enhanced Retrieval and Execution Feedback for Issue Reproduction Test Generationcited by 4
- 2026Probe to Generate: Program Variant-Guided Test Augmentation for Repository-Level Repair Benchmarkscited by 3
- 2026Understanding Bug-Reproducing Tests: A First Empirical Studycited by 2
- 2026Beyond Fixed Tests: Repository-Level Issue Resolution as Coevolution of Code and Behavioral Constraintscited by 2
Built on by
Citing papers per year: 2026: 3.
3 papers.