paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Measuring What Matters: An Aggregate Metric for Assessing Enterprise Code Summaries

衡量重要之事:评估企业代码摘要的聚合指标
FSE Proceedings of the 33rd ACM International Conference on the Foundations of Software Engineering2025匹配度 2/10 · 该论文聚焦企业代码摘要的聚合评估指标(独特性、完整性、冗余惩罚),属于代码摘要/NLG 评测方向,与用户的静态分析、Agentic 程序分析、浮点与贝叶斯程序分析等核心课题几乎无交集;虽涉及企业级工业场景与人工评分基准,但既非程序分析工具,也非 LLM/Agent 与分析的交叉研究,仅在其'工业落地与评测'兴趣上有微弱呼应。引用 0 inbox
Ashita Saxena, Palanivel Kodeswaran, Sayandeep Sen, Srikanth Tamilselvam
crossref: 2026-09-12

AI 速览

一句话:提出面向企业代码摘要的聚合评估框架,强调独特性和完整性,惩罚冗长与冗余,并提升与人工评分的一致性。

企业代码库复杂且规模大,现有公开代码数据集与评估方法多针对小型简单代码片段,难以处理企业代码摘要中的重复、冗长和不完整问题;正确性之外,独特性和完整性等关键维度也研究不足。本文提出一种面向企业需求的新评估框架,采用聚合指标,优先衡量独特性和完整性,惩罚冗长与冗余,奖励信息量及与底层代码的一致性。作者在人工标注的企业 Java 数据集上进行初步实验,相较基线将 RMSE 改善 7.4%;其独特性和完整性指标与人工评分的相关性分别提升 32% 和 5.3%。结果表明该框架更适合企业代码摘要质量评估。

问题
现有代码摘要评估方法主要面向小型简单代码片段,无法充分应对企业级代码摘要中的重复、冗长、不完整问题,且对独特性和完整性关注不足。
方法
提出一种面向企业需求的聚合评估框架与指标,惩罚冗长和冗余,奖励信息量以及与底层代码的一致性,并强调独特性和完整性。
评估
在人工标注的企业 Java 数据集上进行初步实验,RMSE 相比基线改善 7.4%,独特性和完整性指标与人工评分的相关性分别提升 32% 和 5.3%。
原文摘要(Abstract)

Evaluating the quality of code summaries is essential for enterprise software, where the complexity and scale of codebases introduce unique challenges that are inadequately addressed by existing public code datasets and evaluation methods. These methods, typically designed for small and straightforward code snippets, often overlook critical issues such as repetitiveness, verbosity, and incompleteness—issues that are particularly prominent in enterprise-level code summaries. While correctness has been extensively studied, other dimensions critical to enterprise contexts, such as distinctiveness and completeness, remain underexplored. To address these gaps, we propose a novel evaluation framework that emphasizes aggregated metrics tailored to enterprise needs, prioritizing both distinctiveness and completeness. This framework introduces metrics designed to penalize verbosity and redundancy while rewarding informativeness and alignment with the underlying code. Initial experiments conducted on human-annotated enterprise Java datasets demonstrate the effectiveness of our approach by improving the RMSE values by 7.4% over the baselines. Correlation studies of our distinctiveness and completeness metrics with human ratings also shows improvement of 32% and 5.3% respectively over the baselines.

链接与引用

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

BibTeX
@inproceedings{paperbot9086,
  title = {Measuring What Matters: An Aggregate Metric for Assessing Enterprise Code Summaries},
  author = {Ashita Saxena and Palanivel Kodeswaran and Sayandeep Sen and Srikanth Tamilselvam},
  booktitle = {FSE},
  year = {2025},
  doi = {10.1145/3696630.3728520}
}