[论文解读] Deep Learning Based Code Generation Methods: Literature Review
本文系统性地综述基于深度学习的代码生成,将方法分为三类(代码特征、检索增强、后处理),并分析语料库、评测指标及未来方向。
This paper focuses on Code Generation task that aims at generating relevant code fragments according to given natural language descriptions. In the process of software development, developers often encounter two scenarios. One is requested to write a large amount of repetitive and low-technical code for implementing common functionalities. The other is writing code that depends on specific task requirements, which may necessitate the use of external resources such as documentation or other tools. Therefore, code generation has received a lot of attention among academia and industry for assisting developers in coding. In fact, it has also been one of the key concerns in the field of software engineering to make machines understand users' requirements and write programs on their own. The recent development of deep learning techniques especially pre-training models make the code generation task achieve promising performance. In this paper, we systematically review the current work on deep learning-based code generation and classify the current deep learning-based code generation methods into three categories: methods based on code features, methods incorporated with retrieval, and methods incorporated with post-processing. The first category refers to the methods that use deep learning algorithms for code generation based on code features, and the second and third categories of methods improve the performance of the methods in the first category. In this paper, the existing research results of each category of methods are systematically reviewed, summarized and commented. Besides, the paper summarizes and analyzes the corpus and the popular evaluation metrics used in the existing code generation work. Finally, the paper summarizes the overall literature review and provides a prospect on future research directions worthy of attention.
研究动机与目标
- 推动代码生成的研究,以帮助开发者完成重复性或任务特定的编码任务。
- 将现有的基于深度学习的代码生成方法分为三类:基于代码特征、结合检索、以及后处理。
- 总结代码生成研究中使用的语料库及常见评估指标。
- 分析现有结果并为该领域提供未来方向。
提出的方法
- 将现有文献分为三类:基于特征的代码生成、检索增强方法和后处理技术。
- 系统性地评估每一类的现有结果。
- 总结并分析代码生成研究中使用的语料库。
- 总结并分析文献中使用的评估指标。
- 就未来研究方向提供前瞻性讨论。
实验结果
研究问题
- RQ1文献中识别出的基于深度学习的代码生成方法的主要类别有哪些?
- RQ2在代码生成研究中常用的语料库和数据集有哪些?
- RQ3用于评估代码生成质量的评估指标和基准有哪些?
- RQ4在基于深度学习的代码生成领域提出的未来研究方向和待解决的挑战有哪些?
主要发现
- 文献被分为三类:基于代码特征的方法、检索增强的方法和后处理方法。
- 本文对现有结果进行了系统性回顾,并评述了各类别的优点和局限性。
- 本研究总结并分析了代码生成研究中使用的语料库和常用评估指标。
- 本文对该领域未来的研究方向提出前瞻性展望。
- 该综述提供了对基于深度学习的代码生成当前进展与不足的结构化综合。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。