arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.10520cs.CLcs.AIcs.PL
收藏

ReFEree:一种用于评估现实世界代码总结事实一致性的方法

ReFEree: Reference-Free and Fine-Grained Method for Evaluating Factual Consistency in Real-World Code Summarization

Suyoung Bae, CheolWon Na, Jaehoon Lee, Yumin Lee, YunSeok Choi, Jee-Hyong Lee

AI总结:

本文提出ReFEree,一种无需参考的细粒度方法,用于评估现实世界代码总结中的事实一致性。通过定义特定于代码总结的事实不一致标准,并在段落层面进行评估,最终获得细粒度评分。

摘要:

随着大型语言模型(LLMs)能够生成长且描述性的代码总结,准确且可靠的事实一致性评估成为关键挑战。然而,先前的评估方法主要针对孤立代码片段的短摘要,因此难以提供多句功能的细粒度评估,并且无法准确评估现实世界代码总结中常见的依赖上下文。为此,我们提出了ReFEree,一种用于评估现实世界代码总结事实一致性的无参考、细粒度方法。我们定义了适用于代码总结的事实不一致标准,并使用这些标准和依赖信息在段落层面进行评估。这些段落层面的结果随后被汇总成细粒度评分。我们构建了一个带有人工标注事实一致性标签的代码总结基准。评估结果表明,ReFEree在13个基线中与人类判断的相关性最高,比先前的最先进方法提高了15-18%。我们的代码和数据可在https://github.com/bsy99615/ReFEree.git获取。

英文摘要:

As Large Language Models (LLMs) have become capable of generating long and descriptive code summaries, accurate and reliable evaluation of factual consistency has become a critical challenge. However, previous evaluation methods are primarily designed for short summaries of isolated code snippets. Consequently, they struggle to provide fine-grained evaluation of multi-sentence functionalities and fail to accurately assess dependency context commonly found in real-world code summaries. To address this, we propose ReFEree, a reference-free and fine-grained method for evaluating factual consistency in real-world code summaries. We define factual inconsistency criteria specific to code summaries and evaluate them at the segment level using these criteria along with dependency information. These segment-level results are then aggregated into a fine-grained score. We construct a code summarization benchmark with human-annotated factual consistency labels. The evaluation results demonstrate that ReFEree achieves the highest correlation with human judgment among 13 baselines, improving 15-18% over the previous state-of-the-art. Our code and data are available at https://github.com/bsy99615/ReFEree.git.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑