paper-with-me

홈 › Papers

On the Evaluation of Neural Code Summarization

2021-07-15 · Ensheng Shi, Yanlin Wang, Lun Du, Junjie Chen, Shi Han, Hongyu Zhang, Dongmei Zhang, Hongbin Sun

Source code summaries are important for program comprehension and maintenance. However, there are plenty of programs with missing, outdated, or mismatched summaries. Recently, deep learning techniques have been exploited to automatically generate summaries for given code snippets. To achieve a profound understanding of how far we are from solving this problem and provide suggestions to future research, in this paper, we conduct a systematic and in-depth analysis of 5 state-of-the-art neural code summarization models on 6 widely used BLEU variants, 4 pre-processing operations and their combinations, and 3 widely used datasets. The evaluation results show that some important factors have a great influence on the model evaluation, especially on the performance of models and the ranking among the models. However, these factors might be easily overlooked. Specifically, (1) the BLEU metric widely used in existing work of evaluating code summarization models has many variants. Ignoring the differences among these variants could greatly affect the validity of the claimed results. Furthermore, we conduct human evaluations and find that the metric BLEU-DC is most correlated to human perception; (2) code pre-processing choices can have a large (from -18\% to +25\%) impact on the summarization performance and should not be neglected. We also explore the aggregation of pre-processing combinations and boost the performance of models; (3) some important characteristics of datasets (corpus sizes, data splitting methods, and duplication ratios) have a significant impact on model evaluation. Based on the experimental results, we give actionable suggestions for evaluating code summarization and choosing the best method in different scenarios. We also build a shared code summarization toolbox to facilitate future research.

📄 PDF Abstract BibTeX arXiv:2107.07112

Code (1)

DeepSoftwareAnalytics/CodeSumEvaluation 공식 구현

Tasks

Code SummarizationSource Code Summarization

Similar Papers 제목 키워드 기반

Impact of Evaluation Methodologies on Code Summarization

2021-08-22 · ACL 2022 5 · Pengyu Nie, Jiyang Zhang, Junyi Jessy Li, Raymond J. Mooney 외

There has been a growing interest in developing machine learning (ML) models for code summarization tasks, e.g., comment generation and method naming. Despite substantial increase in the effectiveness of ML models, the e…

Code SummarizationComment Generation

Code Summarization Beyond Function Level

2025-02-23 · Vladimir Makharev, Vladimir Ivanov

Code summarization is a critical task in natural language processing and software engineering, which aims to generate concise descriptions of source code. Recent advancements have improved the quality of these summaries,…

Code SummarizationFew-Shot LearningIn-Context LearningPrompt Engineering+1

Source Code Summarization in the Era of Large Language Models

2024-07-09 · Weisong Sun, Yun Miao, Yuekang Li, Hongyu Zhang 외

To support software developers in understanding and maintaining programs, various automatic (source) code summarization techniques have been proposed to generate a concise natural language summary (i.e., comment) for a g…

Code SummarizationSource Code Summarization

Commenting Higher-level Code Unit: Full Code, Reduced Code, or Hierarchical Code Summarization

2025-03-13 · Weisong Sun, Yiran Zhang, Jie Zhu, Zhihui Wang 외

Commenting code is a crucial activity in software development, as it aids in facilitating future maintenance and updates. To enhance the efficiency of writing comments and reduce developers' workload, researchers has pro…

Code Summarization

Assessment of Transformer-Based Encoder-Decoder Model for Human-Like Summarization

2024-10-22 · Sindhu Nair, Y. S. Rao, Radha Shankarmani

In recent times, extracting valuable information from large text is making significant progress. Especially in the current era of social media, people expect quick bites of information. Automatic text summarization seeks…

Abstractive Text SummarizationArticlesDecoderDomain Adaptation+1