arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.13504cs.CLcs.LG
收藏

用于代码生成的神经机器翻译

Neural Machine Translation for Code Generation

University of Arizona(亚利桑那大学)

Dharma KC, Clayton T. Morrison

AI总结:

本文综述了用于代码生成的神经机器翻译(NMT)文献,根据输入输出表示、模型架构、优化技术、数据集和评估方法对各种方法进行分类,并讨论了现有局限与未来方向。

摘要:

为自然语言处理开发的神经机器翻译(NMT)方法已被证明在自动化一种自然语言到另一种自然语言的翻译中非常成功。最近,这些NMT方法已被改编用于程序代码的生成。在用于代码生成的NMT中,任务是生成满足输入中所表达约束的输出源代码。在文献中,已经探索了各种不同的输入场景,包括基于自然语言描述生成代码、基于低级表示(如二进制或汇编)生成代码(神经反编译)、源代码的部分表示(代码补全和修复)以及另一种语言的源代码(代码翻译)。在本文中,我们综述了用于代码生成的NMT文献,根据输入和输出表示、模型架构、所使用的优化技术、数据集和评估方法对已探索的各种方法进行了分类。我们讨论了现有方法的局限性和未来的研究方向

英文摘要:

Neural machine translation (NMT) methods developed for natural language processing have been shown to be highly successful in automating translation from one natural language to another. Recently, these NMT methods have been adapted to the generation of program code. In NMT for code generation, the task is to generate output source code that satisfies constraints expressed in the input. In the literature, a variety of different input scenarios have been explored, including generating code based on natural language description, lower-level representations such as binary or assembly (neural decompilation), partial representations of source code (code completion and repair), and source code in another language (code translation). In this paper we survey the NMT for code generation literature, cataloging the variety of methods that have been explored according to input and output representations, model architectures, optimization techniques used, data sets, and evaluation methods. We discuss the limitations of existing methods and future research directions

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

↑