arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.15319cs.CLcs.LGcs.SE
收藏

NMT能理解我吗?代码生成的NMT模型的扰动评估

Can NMT Understand Me? Towards Perturbation-based Evaluation of NMT Models for Code Generation

University of Naples Federico II(那不勒斯费德里科二世大学);University of North Carolina at Charlotte(北卡罗来纳大学夏洛特分校)

Pietro Liguori, Cristina Improta, Simona De Vivo, Roberto Natella, Bojan Cukic, Domenico Cotroneo

摘要:

神经机器翻译(Neural Machine Translation,NMT)已经发展到一个成熟的水平,被公认为是不同语言之间翻译的首要方法,并引起了包括软件工程在内的不同研究领域的兴趣。验证NMT模型鲁棒性的一个关键步骤是评估模型在对抗性输入上的性能,即,通过添加少量扰动从原始输入获得的输入。然而,当处理代码生成的特定任务时(即,从自然语言的描述开始生成代码),但是还没有定义验证NMT模型的鲁棒性的方法。在这项工作中,我们通过识别一组为这些模型的鲁棒性评估而量身定制的扰动和度量来解决这个问题。我们提出了一个初步的实验评估,显示什么类型的扰动影响模型的最,并得出有用的见解,为未来的发展方向。

英文摘要:

Neural Machine Translation (NMT) has reached a level of maturity to be recognized as the premier method for the translation between different languages and aroused interest in different research areas, including software engineering. A key step to validate the robustness of the NMT models consists in evaluating the performance of the models on adversarial inputs, i.e., inputs obtained from the original ones by adding small amounts of perturbation. However, when dealing with the specific task of the code generation (i.e., the generation of code starting from a description in natural language), it has not yet been defined an approach to validate the robustness of the NMT models. In this work, we address the problem by identifying a set of perturbations and metrics tailored for the robustness assessment of such models. We present a preliminary experimental evaluation, showing what type of perturbations affect the model the most and deriving useful insights for future directions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑