Repairing Code Defects Through Multiple LLM Collaboration and Failure Information Capturing
Jiaxuan Han, Zeyuan Zhou, Gang Cao, Qiucheng Ban, Yongjin Cheng, Binyuan Yan
Key points
From the paper's conclusion- Evaluations on Defects4J (V1.2 & V2.0), QuixBugs-Java, and HumanEval-Java datasets demonstrate that the proposed DeepSeek-backed model outperforms baseline models, yielding 192, 182, 40, and 158 correct patches, respectively.
Abstract
In recent years, the advent of large language models (LLMs) has significantly advanced automatic program repair (APR). However, due to a lack of domain-specific software engineering knowledge, base LLMs are prone to hallucinations during the repair process, which compromises the correctness of the generated patches. Although training or fine-tuning domain-specific LLMs can mitigate this issue, it is prohibitively expensive. In this paper, we propose a novel APR model based on multiple LLM collaboration and failure information capturing. Without requiring fine-tuning or retrieval-augmented generation (RAG), our model enhances the APR capabilities of base LLMs. It is notable that we utilize sandboxed executions to extract failure contexts for bug root-cause analysis and design a hierarchical coarse-to-fine (i.e., method-to-block) bug localization to constrain edit scopes. By isolating patch generation from irrelevant code, our approach substantially mitigates incorrect patch generation. Evaluations on Defects4J (V1.2 & V2.0), QuixBugs-Java, and HumanEval-Java datasets demonstrate that the proposed DeepSeek-backed model outperforms baseline models, yielding 192, 182, 40, and 158 correct patches, respectively.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Better Understanding, Better Fixes? A Study of Hallucination in LLM-based Automated Program RepairarXiv · 2026
- Practical LLM-Based Function-Level Automated Program Repair: How Far Are We?ACM Transactions on Software Engineering and Methodology · 2026
- A Survey of LLM-based Software Repair: Taxonomies, Design Paradigms, and ApplicationsACM Transactions on Software Engineering and Methodology · 2026
- CausalRepair: Bridging the Causality Gap in Large Language Model-Based Automated Program Repair via Dual-SlicingProceedings of the ACM on Software Engineering · 2026
- Beyond Accuracy: Behavioral Dynamics of Agentic Multi-Hunk RepairACM Transactions on Software Engineering and Methodology · 2026
- Understanding Automated Program Repair Agents through the Lens of Traceability: An Empirical StudyProceedings of the ACM on Software Engineering · 2026