Unlocking LLM Repair Capabilities Through Cross-Language Translation and Multi-Agent Refinement

Read full text
Authors: Wenqiang Luo, Jacky Keung, Boyang Yang, Jacques Klein, Tegawendé François Bissyandé, Haoye Tian, B. T. Le
Cited by: 0

Abstract

Recent advances in leveraging LLMs for APR have demonstrated impressive capabilities in fixing software defects. However, current LLM-based approaches predominantly focus on mainstream programming languages like Java and Python, neglecting less prevalent but emerging languages such as Rust due to expensive training resources, limited datasets, and insufficient community support. This narrow focus creates a significant gap in repair capabilities across the programming language spectrum, where the full potential of LLMs for comprehensive multilingual program repair remains largely unexplored. To address this limitation, we introduce a novel cross-language program repair approach LANTERN that leverages LLMs’ differential proficiency across languages through a multi-agent iterative repair paradigm. Our technique strategically translates defective code from languages where LLMs exhibit weaker repair capabilities to languages where they demonstrate stronger performance, without requiring additional training. A key innovation of our approach is an LLM-based decision-making system that dynamically selects optimal target languages based on bug characteristics and continuously incorporates feedback from previous repair attempts.

Fields of Study & Subjects

Software Testing and Debugging Techniques Software Engineering Research Software System Performance and Reliability

Publication details

Pages
830–842
Publication date
12 April 2026
Language
EN