[Paper Review] Deep Learning Based Code Generation Methods: Literature Review
This paper systematically reviews deep learning-based code generation, categorizing methods into three groups (code features, retrieval-enhanced, and post-processing) and analyzing corpora, metrics, and future directions.
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.
Motivation & Objective
- Motivate the study of code generation to assist developers with repetitive or task-specific coding tasks.
- Classify existing deep learning-based code generation methods into three categories: code-feature based, retrieval-incorporated, and post-processing.
- Summarize the corpora and popular evaluation metrics used in code generation research.
- Analyze existing results and provide future directions for the domain.
Proposed method
- Classify existing literature into three categories: features-based code generation, retrieval-augmented methods, and post-processing techniques.
- Systematically review existing results for each category.
- Summarize and analyze the corpora used in code generation research.
- Summarize and analyze evaluation metrics used in the literature.
- Provide a forward-looking discussion on future research directions.
Experimental results
Research questions
- RQ1What are the main categories of deep learning-based code generation methods identified in the literature?
- RQ2What corpora and datasets are commonly used for code generation research?
- RQ3What evaluation metrics and benchmarks are employed to assess code generation quality?
- RQ4What are the proposed future research directions and open challenges in deep learning-based code generation?
Key findings
- The literature is organized into three categories: code-feature based methods, retrieval-enhanced methods, and post-processing methods.
- The paper systematically reviews existing results and comments on the strengths and limitations of each category.
- The work summarizes and analyzes the corpora and popular evaluation metrics used in code generation research.
- The paper offers a prospective outlook on future research directions in the field.
- The review contributes a structured synthesis of current progress and gaps in deep learning-based code generation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.