Impact of Evaluation Methodologies on Code Summarization
Pengyu Nie, Jiyang Zhang, Junyi Jessy Li, Raymond J. Mooney, Milos, Gligoric

TL;DR
This paper introduces a novel time-segmented evaluation methodology for code summarization, demonstrating that different evaluation approaches can produce conflicting results, thus impacting the assessment of ML models.
Contribution
The paper proposes the time-segmented evaluation methodology for code summarization and compares it with existing methods, highlighting its importance for realistic model assessment.
Findings
Different evaluation methodologies yield conflicting results.
Time-segmented evaluation aligns better with real-world use cases.
Existing methods may overestimate model performance.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Software Engineering Research
