paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Reassessing automatic evaluation metrics for code summarization tasks

重新审视代码摘要任务的自动评估指标
FSE Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering2021匹配度 2/10 · 论文研究代码摘要任务的自动评测指标与人工评价一致性,属于代码生成/摘要的评测方法,与用户核心关注的静态分析、Agentic 程序、浮点程序分析和贝叶斯程序分析均无直接交叉;仅在“评测可靠性/benchmark 设计”层面有间接方法论关联。引用 102 inbox
Devjeet Roy, Sarah Fakhoury, Venera Arnaoudova
crossref: 2026-09-12

AI 速览

一句话:通过226名标注者实证发现,代码摘要自动指标的小幅提升不可靠,METEOR和chrF在特定区间更可信。

代码摘要研究常采用机器翻译中的 BLEU、METEOR、ROUGE 等自动指标,并常以微弱分数提升判断模型优劣,但这些指标与人类评价的一致性尚未在代码摘要任务中验证。本文批判性探讨自动指标在该任务中的适用性与解释,并开展涉及 226 名人类标注者的实证研究。结果表明:指标提升不足 2 分不保证摘要质量系统性改善,不能可靠代理人类评价;当方法间指标差距增大但仍不超过 5 分时,METEOR、chrF 等变得高度可靠,而语料级 BLEU 仍不可靠。作者据此给出使用自动指标区分模型性能的建议。

问题
代码摘要任务广泛使用机器翻译自动指标作为人类评价代理,但缺乏其与人类判断一致性的系统评估,且微小指标提升常被用于模型比较。
方法
开展涉及 226 名人类标注者的实证研究,分析 BLEU、METEOR、ROUGE、chrF 等自动指标分数变化与人类评价的一致性。
评估
通过人类标注评估自动指标反映摘要质量的程度,比较不同指标及分数差距区间的可靠性,并据此提出使用建议。
原文摘要(Abstract)

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, METEOR, 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.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot6456,
  title = {Reassessing automatic evaluation metrics for code summarization tasks},
  author = {Devjeet Roy and Sarah Fakhoury and Venera Arnaoudova},
  booktitle = {FSE},
  year = {2021},
  doi = {10.1145/3468264.3468588}
}