Impact of Evaluation Methodologies on Code Summarization
Not on the map. Why?
Abstract (arXiv)
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 evaluation methodologies, i.e., the way people split datasets into training, validation, and test sets, were not well studied. Specifically, no prior work on code summarization considered the timestamps of code and comments during evaluation. This may lead to evaluations that are inconsistent with the intended use cases. In this paper, we introduce the time-segmented evaluation methodology, which is novel to the code summarization research community, and compare it with the mixed-project and cross-project methodologies that have been commonly used. Each methodology can be mapped to some use cases, and the time-segmented methodology should be adopted in the evaluation of ML models for code summarization. To assess the impact of methodologies, we collect a dataset of (code, comment) pairs with timestamps to train and evaluate several recent ML models for code summarization. Our experiments show that different methodologies lead to conflicting evaluation results. We invite the community to expand the set of methodologies used in evaluations.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 22 of its 58 references that are in the map. First posted on arXiv 22 Aug 2021.
Builds on
22 of 58 references.
References · 22
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2021Unified Pre-training for Program Understanding and Generationcited by 366
- 2018code2vec: Learning Distributed Representations of Codecited by 250
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
- 2020A Transformer-based Approach for Source Code Summarizationcited by 133
- 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 126
- 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 100
- 2016A Convolutional Attention Network for Extreme Summarization of Source Codecited by 91
- 2020Improved Code Summarization via a Graph Neural Networkcited by 79
- 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 77
10 more
- 2018Structured Neural Summarizationcited by 54
- 2019Recommendations for Datasets for Source Code Summarizationcited by 46
- 2015SourcererCC: Scaling Code Clone Detection to Big Codecited by 40
- 2018SQL-to-Text Generation with Graph-to-Sequence Modelcited by 31
- 2020Learning to Update Natural Language Comments Based on Code Changescited by 31
- 2020Code to Comment "Translation": Data, Metrics, Baselining & Evaluationcited by 29
- 2020Deep Just-In-Time Inconsistency Detection Between Comments and Source Codecited by 20
- 2018Automatic Generation of Text Descriptive Comments for Code Blockscited by 18
- 2020TAG : Type Auxiliary Guiding for Code Comment Generationcited by 8
- 2019Mercem: Method Name Recommendation Based on Call Graph Embeddingcited by 2
Built on by
Citing papers per year: 2021: 1; 2022: 2; 2023: 5; 2024: 2; 2025: 0; 2026: 1.
11 papers.
- 2023Learning Deep Semantics for Test Completioncited by 31
- 2023Exploring Distributional Shifts in Large Language Models for Code Analysiscited by 14
- 2023Multilingual Code Co-Evolution Using Large Language Modelscited by 9
- 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarizationcited by 8
- 2022CodeS: Towards Code Model Generalization Under Distribution Shiftcited by 6
- 2021Learning to Describe Solutions for Bug Reports Based on Developer Discussionscited by 5
- 2022A Survey on Natural Language Processing for Programmingcited by 3
- 2024Uncertainty Awareness of Large Language Models Under Code Distribution Shifts: A Benchmark Studycited by 3
- 2023APIContext2Com: Code Comment Generation by Incorporating Pre-Defined API Documentationcited by 2
- 2026Code2LoRA: Hypernetwork-Generated Adapters for Code Language Models under Software Evolutioncited by 2
- 2023Epicure: Distilling Sequence Model Predictions into Patternscited by 0
- 2026Code2LoRA: Hypernetwork-Generated Adapters for Code Language Models under Software Evolution4 Jun 2026
- 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarization1 Jul 2024
- 2024Uncertainty Awareness of Large Language Models Under Code Distribution Shifts: A Benchmark Study12 Jan 2024
- 2023Epicure: Distilling Sequence Model Predictions into Patterns16 Aug 2023
- 2023Multilingual Code Co-Evolution Using Large Language Models27 Jul 2023
- 2023Exploring Distributional Shifts in Large Language Models for Code Analysis16 Mar 2023
- 2023APIContext2Com: Code Comment Generation by Incorporating Pre-Defined API Documentation3 Mar 2023
- 2023Learning Deep Semantics for Test Completion20 Feb 2023
- 2022A Survey on Natural Language Processing for Programming12 Dec 2022
- 2022CodeS: Towards Code Model Generalization Under Distribution Shift11 Jun 2022
- 2021Learning to Describe Solutions for Bug Reports Based on Developer Discussions8 Oct 2021