[Paper Review] Automatic Code Summarization: A Systematic Literature Review
This systematic literature review analyzes 41 studies on automatic code summarization, evaluating data extraction, code description generation methods, evaluation techniques, and artifacts. It provides a comprehensive overview of state-of-the-art approaches, identifies research gaps, and outlines future directions for program comprehension and comment generation in software engineering.
Background: During software maintenance and development, the comprehension of program code is key to success. High-quality comments can help us better understand programs, but they're often missing or outmoded in today's programs. Automatic code summarization is proposed to solve these problems. During the last decade, huge progress has been made in this field, but there is a lack of an up-to-date survey. Aims: We studied publications concerning code summarization in the field of program comprehension to investigate state-of-the-art approaches. By reading and analyzing relevant articles, we aim at obtaining a comprehensive understanding of the current status of automatic code summarization. Method: In this paper, we performed a systematic literature review over the automatic source code summarization field. Furthermore, we synthesized the obtained data and investigated different approaches. Results: We successfully collected and analyzed 41 selected studies from the different research communities. We exhaustively investigated and described the data extraction techniques, description generation methods, evaluation methods and relevant artifacts of those works. Conclusions: Our systematic review provides an overview of the state of the art, and we also discuss further research directions. By fully elaborating current approaches in the field, our work sheds light on future research directions of program comprehension and comment generation.
Motivation & Objective
- To investigate the current state of the art in automatic code summarization for program comprehension.
- To identify challenges in code comprehension due to missing or outdated comments in software systems.
- To synthesize findings from 41 studies across diverse research communities in software engineering.
- To evaluate data extraction techniques, description generation methods, and evaluation strategies used in code summarization research.
- To propose future research directions based on identified gaps and trends in the field.
Proposed method
- Conducted a systematic literature review using predefined search criteria across academic databases and repositories.
- Selected 41 relevant studies based on inclusion and exclusion criteria related to code summarization and program comprehension.
- Categorized studies by research community, data sources, model architectures, and evaluation metrics.
- Analyzed data extraction techniques, including AST-based, embedding-based, and natural language processing methods.
- Synthesized findings on code description generation methods, such as sequence-to-sequence models, attention mechanisms, and pre-trained models.
- Evaluated the quality and consistency of evaluation protocols, including BLEU, ROUGE, and human evaluation.
Experimental results
Research questions
- RQ1What are the dominant data sources and preprocessing techniques used in automatic code summarization research?
- RQ2How do different model architectures contribute to code summarization performance across various programming languages?
- RQ3What evaluation metrics are most commonly used, and how do they correlate with human judgment of summary quality?
- RQ4What are the key challenges and limitations in current code summarization approaches?
- RQ5What future research directions are suggested by the synthesis of existing literature?
Key findings
- The review identified 41 studies that represent significant progress in automatic code summarization over the past decade.
- Sequence-to-sequence models with attention mechanisms are the most widely adopted architecture for code summarization.
- Pre-trained models such as CodeBERT and GraphCodeBERT have shown improved performance on code summarization benchmarks.
- BLEU and ROUGE remain the most frequently used automatic evaluation metrics, though they show limited correlation with human judgments.
- Human evaluation is underutilized despite its importance in assessing semantic quality of generated summaries.
- A lack of standardized datasets and evaluation protocols hinders reproducibility and cross-study comparison.
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.