mlsanityData to 14 Oct 2026

Impact of Evaluation Methodologies on Code Summarization

arXiv 2108.09619 ↗First posted 22 Aug 2021cs.SE cs.LGcited by 11

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

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  3. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  4. 2021Unified Pre-training for Program Understanding and Generationcited by 366
  5. 2018code2vec: Learning Distributed Representations of Codecited by 250
  6. 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
  7. 2020A Transformer-based Approach for Source Code Summarizationcited by 133
  8. 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 126
  9. 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 100
  10. 2016A Convolutional Attention Network for Extreme Summarization of Source Codecited by 91
  11. 2020Improved Code Summarization via a Graph Neural Networkcited by 79
  12. 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 77
10 more
  1. 2018Structured Neural Summarizationcited by 54
  2. 2019Recommendations for Datasets for Source Code Summarizationcited by 46
  3. 2015SourcererCC: Scaling Code Clone Detection to Big Codecited by 40
  4. 2018SQL-to-Text Generation with Graph-to-Sequence Modelcited by 31
  5. 2020Learning to Update Natural Language Comments Based on Code Changescited by 31
  6. 2020Code to Comment "Translation": Data, Metrics, Baselining & Evaluationcited by 29
  7. 2020Deep Just-In-Time Inconsistency Detection Between Comments and Source Codecited by 20
  8. 2018Automatic Generation of Text Descriptive Comments for Code Blockscited by 18
  9. 2020TAG : Type Auxiliary Guiding for Code Comment Generationcited by 8
  10. 2019Mercem: Method Name Recommendation Based on Call Graph Embeddingcited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 1; 2022: 2; 2023: 5; 2024: 2; 2025: 0; 2026: 1.

11 papers.