Lune

ICLR2024顶会

An interpretable error correction method for enhancing code-to-code translation

Min Xue, Artur Andrzejak, Marla Leuther

出版方
2024年份
10被引次数
2顶会引用

摘要

Transformer-based machine translation models currently dominate the field of model-based program translation. However, these models fail to provide interpretative support for the generated program translations. Moreover, researchers frequently invest substantial time and computational resources in retraining models, yet the improvement in translation accuracy is quite limited. To address these issues, we introduce a novel approach, kNN-ECD, which combines k-nearestneighbor search with a key-value error correction datastore to overwrite the wrong translations of TransCoder-ST (Roziere et al., 2022). This provides a decisionmaking basis for interpreting the corrected translations. Building upon this, we further propose kNN-ECS m , a methodology that employs a distributed structure with m sub-datastores connected in series, utilizing m diverse experts for multiround error correction. Additionally, we put forward a unified name rule, encouraging the datastore to focus more on code logic and structure rather than diverse rare identifiers. Our experimental results show that our approach improves the translation accuracy from 68.9% to 89.9% of TransCoder-ST (for translation from Java to Python). This error correction method augments program translation, overcoming the inherent limitations of Transformer-based code translation models, such as resource-intensive retraining requirements and uninterpretable outcomes. * Corresponding author. * ⟨•, •⟩ → '* ' : ⟨•, •⟩ represents the decision-making basis for each generated token '* ' in the corrected Python function. * NEW LINE, INDENT, DEDENT represent newline, indentation, dedent in code formatting, respectively.

问问这篇 Paper

智能体会读完全文。

Lune 把这篇 Paper 索引到了最后一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。

可以从这些问题问起

智能体调用

Luneget_paper_fulltext

在 Lune 里问

免费开始,无需绑卡

lune papers fulltext eaa4bf39-0bd7-4e7e-ae10-ec6569a5214c

引用它的顶会 Paper2

问问它们各自怎么用它

它引用的顶会 Paper17

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖