Lune

FSE2021顶会

Reassessing automatic evaluation metrics for code summarization tasks

Devjeet Roy, Sarah Fakhoury, Venera Arnaoudova

摘要

In recent years, research in the domain of source code summarization has adopted data-driven techniques pioneered in machine translation (MT). Automatic evaluation metrics such as BLEU, ME-TEOR, and ROUGE, are fundamental to the evaluation of MT systems and have been adopted as proxies of human evaluation in the code summarization domain. However, the extent to which automatic metrics agree with the gold standard of human evaluation has not been evaluated on code summarization tasks. Despite this, marginal improvements in metric scores are often used to discriminate between the performance of competing summarization models.

In this paper, we present a critical exploration of the applicability and interpretation of automatic metrics as evaluation techniques for code summarization tasks. We conduct an empirical study with 226 human annotators to assess the degree to which automatic metrics reflect human evaluation. Results indicate that metric improvements of less than 2 points do not guarantee systematic improvements in summarization quality, and are unreliable as proxies of human evaluation. When the difference between metric scores for two summarization approaches increases but remains within 5 points, some metrics such as METEOR and chrF become highly reliable proxies, whereas others, such as corpus BLEU, remain unreliable. Based on these findings, we make several recommendations for the use of automatic metrics to discriminate model performance in code summarization.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 18 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Are we building on the rock? on the importance of data preprocessing for code summarization 引用了 Leveraging Code Generation to Improve Code Retrieval and Summarization via Dual Learning
  • Are we building on the rock? on the importance of data preprocessing for code summarization 引用了 Code to Comment "Translation": Data, Metrics, Baselining & Evaluation
  • Are we building on the rock? on the importance of data preprocessing for code summarization 引用了 On the Evaluation of Neural Code Summarization
  • Are we building on the rock? on the importance of data preprocessing for code summarization 引用了 Retrieval-based neural source code summarization
  • Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization) 引用了 BERTScore: Evaluating Text Generation with BERT
  • Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization) 引用了 Code to Comment "Translation": Data, Metrics, Baselining & Evaluation
  • Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization) 引用了 On the Evaluation of Neural Code Summarization
  • Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization) 引用了 Retrieval-based neural source code summarization
  • Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization) 引用了 Recommending Root-Cause and Mitigation Steps for Cloud Incidents using Large Language Models
  • Code to Comment "Translation": Data, Metrics, Baselining & Evaluation 引用了 Retrieval-based neural source code summarization
  • On the Evaluation of Neural Code Summarization 引用了 Leveraging Code Generation to Improve Code Retrieval and Summarization via Dual Learning
  • On the Evaluation of Neural Code Summarization 引用了 Code to Comment "Translation": Data, Metrics, Baselining & Evaluation
  • On the Evaluation of Neural Code Summarization 引用了 Retrieval-based neural source code summarization
  • Recommending Root-Cause and Mitigation Steps for Cloud Incidents using Large Language Models 引用了 BERTScore: Evaluating Text Generation with BERT
  • Recommending Root-Cause and Mitigation Steps for Cloud Incidents using Large Language Models 引用了 Code to Comment "Translation": Data, Metrics, Baselining & Evaluation
  • Recommending Root-Cause and Mitigation Steps for Cloud Incidents using Large Language Models 引用了 On the Evaluation of Neural Code Summarization
  • Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learning 引用了 Leveraging Code Generation to Improve Code Retrieval and Summarization via Dual Learning
  • Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learning 引用了 Retrieval-based neural source code summarization
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper18

  1. Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context LearningMingyang Geng, Shangwen Wang, Dezun Dong, Haotian Wang 等ICSE 2024 · 124 次引用
  2. Recommending Root-Cause and Mitigation Steps for Cloud Incidents using Large Language ModelsToufique Ahmed, Supriyo Ghosh, Chetan Bansal, Thomas Zimmermann 等ICSE 2023 · 93 次引用
  3. On the Evaluation of Neural Code SummarizationEnsheng Shi, Yanlin Wang, Lun Du, Junjie Chen 等ICSE 2022 · 76 次引用
  4. Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)Toufique Ahmed, Kunal Suresh Pai, Premkumar T. Devanbu, Earl T. BarrICSE 2024 · 71 次引用
  5. Are we building on the rock? on the importance of data preprocessing for code summarizationLin Shi, Fangwen Mu, Xiao Chen, Song Wang 等FSE 2022 · 65 次引用

它引用的 Paper7

  1. BERTScore: Evaluating Text Generation with BERTTianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger 等ICLR 2020 · 8,443 次引用
  2. Retrieval-based neural source code summarizationJian Zhang, Xu Wang, Hongyu Zhang, Hailong Sun 等ICSE 2020 · 242 次引用
  3. Leveraging Code Generation to Improve Code Retrieval and Summarization via Dual LearningWei Ye, Rui Xie, Jinglei Zhang, Tianxiang Hu 等WWW 2020 · 83 次引用
  4. Code to Comment "Translation": Data, Metrics, Baselining & EvaluationDavid Gros, Hariharan Sezhiyan, Prem Devanbu, Zhou YuASE 2020 · 43 次引用
  5. DeepTC-Enhancer: Improving the Readability of Automatically Generated TestsDevjeet Roy, Ziyi Zhang, Maggie Ma, Venera Arnaoudova 等ASE 2020 · 32 次引用

相关 Paper

  1. Evaluating Code Summarization Techniques: A New Metric and an Empirical CharacterizationAntonio Mastropaolo, Matteo Ciniselli, Massimiliano Di Penta, Gabriele BavotaICSE 2024 · 28 次引用
  2. SimLLM: Calculating Semantic Similarity in Code Summaries using a Large Language Model-Based ApproachXin Jin, Zhiqiang LinFSE 2024 · 8 次引用
  3. Scientific Credibility of Machine Translation Research: A Meta-Evaluation of 769 PapersBenjamin Marie, Atsushi Fujita, Raphael RubinoACL 2021
  4. Re-evaluating Evaluation in Text SummarizationManik Bhandari, Pranav Narayan Gour, Atabak Ashfaq, Pengfei Liu 等EMNLP 2020 · 3 次引用
  5. CrystalBLEU: Precisely and Efficiently Measuring the Similarity of CodeAryaz Eghbali, Michael PradelASE 2022 · 33 次引用
黄昏的海面,两侧是细线勾勒的悬崖