PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
October 18, 2025ACM Transactions on Software Engineering and Methodology0 citations

Assessing the Latent Automated Program Repair Capabilities of Large Language Models using Round-Trip Translation

View Full Paper
FRFernando Vallecillos RuizAGAnastasiia GrishinaMHMax Hort

Key Points

  • Round-trip translation generates plausible patches for 100 out of 164 bugs using GPT-4 on the benchmark, and 97 are verified correct.
  • Notably, RTT uniquely addresses 46 bugs missed by LLMs designed specifically for automated program repair tasks.
  • Employing nine LLMs across four APR benchmarks, the study combines both quantitative and qualitative analysis for thorough evaluation.
  • Despite demonstrating validity, RTT shows limitations including a reduced bug fix rate and a dilution of the original coding style.

Abstract

Research shows that errors in natural language can be corrected by translating texts to another language and back using language models. We explore to what extent this latent correction capability extends to Automated Program Repair (APR) by investigating Round-Trip Translation (RTT): translating code from one programming language into another programming or natural language and back, using Large Language Models (LLMs). We hypothesize that RTT restores patterns most commonly seen in the LLM’s training corpora through regression toward the mean , replacing infrequent bugs with more frequent, natural , bug-free code. To test this hypothesis, we employ nine LLMs and four common APR benchmarks in Java, and perform a detailed quantitative and qualitative analysis of RTT-generated patches. We find that RTT through English generates plausible patches for 100 of 164 bugs with GPT-4 on the HumanEval-Java benchmark, and 97 are found to be correct in our manual assessment. Moreover, RTT uniquely generates plausible patches for 46 bugs that were missed by LLMs specifically fine-tuned for APR. While this demonstrates the viability of RTT for APR, we also observe limitations, such as a lower overall bug fix rate than the state-of-the-art and diluting the original coding style. We analyze the impact of these limitations and discuss the potential of using RTT as a complementary component in APR frameworks.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Ruiz et al. (2025) studied this question.

synapsesocial.com/papers/68f396388da44caaba02c96fhttps://doi.org/10.1145/3771922
Ask AI
Helpful
Bookmark
Share
View Full Paper