EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Repairing Code Defects Through Multiple LLM Collaboration and Failure Information Capturing

Jiaxuan Han, Zeyuan Zhou, Gang Cao, Qiucheng Ban, Yongjin Cheng, Binyuan Yan

Software · 29.10.2026 · 5 (4) · 47

DOI: 10.3390/software5040047 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Software, online erschienen am 29.10.2026. Verfasst von Jiaxuan Han und 5 weiteren Autor:innen. Die Arbeit nennt 68 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Science and Technology Projects of China Southern Power Grid Co., Ltd..

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

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.

Förderung

  • Science and Technology Projects of China Southern Power Grid Co., Ltd.

Zitieren

APA

Han, J., Zhou, Z., Cao, G., Ban, Q., Cheng, Y., & Yan, B. (2026). Repairing Code Defects Through Multiple LLM Collaboration and Failure Information Capturing. Software, 5(4), 47. https://doi.org/10.3390/software5040047

Vancouver

Han J, Zhou Z, Cao G, Ban Q, Cheng Y, Yan B. Repairing Code Defects Through Multiple LLM Collaboration and Failure Information Capturing. Software. 2026;5(4):47. doi:10.3390/software5040047

BibTeX
@article{Han2026,
  author = {Han, Jiaxuan and Zhou, Zeyuan and Cao, Gang and Ban, Qiucheng and Cheng, Yongjin and Yan, Binyuan},
  title = {Repairing Code Defects Through Multiple LLM Collaboration and Failure Information Capturing},
  journal = {Software},
  year = {2026},
  volume = {5},
  number = {4},
  pages = {47},
  doi = {10.3390/software5040047}
}
Kostenlos starten →