跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:2401.07994 (cs)
[提交于 2024年1月15日 (v1),最后修订于 2025年10月15日 (此版本, v2)]

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

作者:Fernando Vallecillos Ruiz, Anastasiia Grishina, Max Hort, Leon Moonen
查看论文《Assessing the Latent Automated Program Repair Capabilities of Large Language Models using Round-Trip Translation》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要: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. A replication package is available for download from https://doi.org/10.5281/zenodo.10500593. Keywords: automated program repair, large language model, machine translation
评论: Accepted for publication in ACM Transactions on Software Engineering and Methodology (TOSEM)
主题: 软件工程 (cs.SE); 计算与语言 (cs.CL); 机器学习 (cs.LG)
引用方式: arXiv:2401.07994 [cs.SE]
  (或者 arXiv:2401.07994v2 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2401.07994
相关 DOI: https://doi.org/10.1145/3771922

提交历史

来自:Leon Moonen
[v1] 2024年1月15日 星期一 22:36:31 UTC
[v2] 2025年10月15日 星期三 11:26:34 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-10
切换浏览方式为:
cs.SE
cs.CL
cs.LG

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站