mlsanityData to 7 Oct 2026

On the Evaluation of Neural Code Summarization

arXiv 2107.07112 ↗First posted 15 Jul 2021cs.SE cs.AIcited by 47

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 47 papers in the map (data through 7 Oct 2026). Builds on 33 of its 72 references that are in the map. First posted on arXiv 15 Jul 2021.

Builds on

33 of 72 references.

References · 33

  1. 2016Pointer Sentinel Mixture Modelscited by 2,992
  2. 2014CIDEr: Consensus-based Image Description Evaluationcited by 2,027
  3. 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
  4. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  5. 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,281
  6. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  7. 2018code2seq: Generating Sequences from Structured Representations of Codecited by 177
  8. 2020A Transformer-based Approach for Source Code Summarizationcited by 129
  9. 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 123
  10. 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 99
  11. 2016A Convolutional Attention Network for Extreme Summarization of Source Codecited by 90
  12. 2016Improving Neural Language Models with a Continuous Cachecited by 81
21 more
  1. 2020Improved Code Summarization via a Graph Neural Networkcited by 79
  2. 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 76
  3. 2019Code Generation as a Dual Task of Code Summarizationcited by 62
  4. 2018Structured Neural Summarizationcited by 53
  5. 2019Recommendations for Datasets for Source Code Summarizationcited by 46
  6. 2019Retrieve and Refine: Exemplar-based Neural Comment Generationcited by 36
  7. 2020Improved Automatic Summarization of Subroutines via Attention to File Contextcited by 34
  8. 2020Learning to Update Natural Language Comments Based on Code Changescited by 30
  9. 2020Code Summarization with Structure-induced Transformercited by 29
  10. 2020Code to Comment "Translation": Data, Metrics, Baselining & Evaluationcited by 28
  11. 2019ATOM: Commit Message Generation Based on Abstract Syntax Tree and Hybrid Rankingcited by 25
  12. 2021Project-Level Encoding for Neural Source Code Summarization of Subroutinescited by 24
  13. 2021CoCoSum: Contextual Code Summarization with Multi-Relational Graph Neural Networkcited by 22
  14. 2020Deep Just-In-Time Inconsistency Detection Between Comments and Source Codecited by 20
  15. 2021On the Evaluation of Commit Message Generation Models: An Experimental Studycited by 20
  16. 2021Improving Code Summarization with Block-wise Abstract Syntax Tree Splittingcited by 19
  17. 2019Automatic Code Summarization: A Systematic Literature Reviewcited by 18
  18. 2020Leveraging Code Generation to Improve Code Retrieval and Summarization via Dual Learningcited by 16
  19. 2019A Survey of Automatic Generation of Source Code Comments: Algorithms and Techniquescited by 15
  20. 2020TAG : Type Auxiliary Guiding for Code Comment Generationcited by 8
  21. 2021Exploiting Method Names to Improve Code Summarization: A Deliberation Multi-Task Learning Approachcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 7; 2023: 18; 2024: 8; 2025: 7; 2026: 7.

47 papers.

Sort:

By area:

  1. 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
  2. 2022Few-shot training LLMs for project-specific code-summarizationcited by 128
  3. 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
  4. 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 72
  5. 2023CodeScope: An Execution-based Multilingual Multitask Multidimensional Benchmark for Evaluating LLMs on Code Understanding and Generationcited by 39
  6. 2023Recommending Root-Cause and Mitigation Steps for Cloud Incidents using Large Language Modelscited by 38
  7. 2023Automatic Code Summarization via ChatGPT: How Far Are We?cited by 34
  8. 2024Source Code Summarization in the Era of Large Language Modelscited by 30
  9. 2022RACE: Retrieval-Augmented Commit Message Generationcited by 27
  10. 2023Extending Source Code Pre-Trained Language Models to Summarise Decompiled Binariescited by 25
  11. 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 21
  12. 2023Towards Efficient Fine-tuning of Pre-trained Code Models: An Experimental Study and Beyondcited by 20
35 more
  1. 2024Analyzing the Performance of Large Language Models on Code Summarizationcited by 19
  2. 2022An Extractive-and-Abstractive Framework for Source Code Summarizationcited by 15
  3. 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworkscited by 14
  4. 2023Binary Code Summarization: Benchmarking ChatGPT/GPT-4 and Other Large Language Modelscited by 13
  5. 2024Calibration of Large Language Models on Code Summarizationcited by 12
  6. 2024Studying LLM Performance on Closed- and Open-source Datacited by 11
  7. 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
  8. 2023Pitfalls in Language Models for Code Intelligence: A Taxonomy and Surveycited by 9
  9. 2023A Prompt Learning Framework for Source Code Summarizationcited by 9
  10. 2024EyeTrans: Merging Human and Machine Attention for Neural Code Summarizationcited by 9
  11. 2023SoTaNa: The Open-Source Software Development Assistantcited by 8
  12. 2023MedChatZH: a Better Medical Adviser Learns from Better Instructionscited by 8
  13. 2023An Extensive Study on Adversarial Attack against Pre-trained Models of Codecited by 8
  14. 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completioncited by 7
  15. 2022Pre-Training Representations of Binary Code Using Contrastive Learningcited by 6
  16. 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarizationcited by 6
  17. 2022Learning code summarization from a small and local datasetcited by 5
  18. 2023Abstract Syntax Tree for Programming Language Understanding and Representation: How Far Are We?cited by 5
  19. 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Modelscited by 4
  20. 2022NeuDep: Neural Binary Memory Dependence Analysiscited by 3
  21. 2025Commenting Higher-level Code Unit: Full Code, Reduced Code, or Hierarchical Code Summarizationcited by 3
  22. 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoningcited by 3
  23. 2023APIContext2Com: Code Comment Generation by Incorporating Pre-Defined API Documentationcited by 2
  24. 2024MESIA: Understanding and Leveraging Supplementary Nature of Method-level Comments for Automatic Comment Generationcited by 2
  25. 2025Assessing Large Language Models in Generating RTL Design Specificationscited by 2
  26. 2026PhoenixRepair: Rethinking Repair Strategy Exploration in Software Agentscited by 2
  27. 2026Agent4cs: A Multi-agent System for Code Summarization in Large Hierarchical Codebasescited by 1
  28. 2023Understanding Code Semantics: An Evaluation of Transformer Models in Summarizationcited by 0
  29. 2024Transducer Tuning: Efficient Model Adaptation for Software Tasks Using Code Property Graphscited by 0
  30. 2025Enhancing Code LLM Training with Programmer Attentioncited by 0
  31. 2025Knowledge Distillation of Domain-adapted LLMs for Question-Answering in Telecomcited by 0
  32. 2025Issue Retrieval and Verification Enhanced Supplementary Code Comment Generationcited by 0
  33. 2026EyeLayer: Integrating Human Attention Patterns into LLM-Based Code Summarizationcited by 0
  34. 2026Prompt-Driven Code Summarization: A Systematic Literature Reviewcited by 0
  35. 2026Learning Generalizable Multimodal Representations for Software Vulnerability Detectioncited by 0