paperbot · PL 论文追踪

全部论文 待读 收藏

P2 CommentFinder: a simpler, faster, more accurate code review comments recommendation

CommentFinder:更简单、更快速、更准确的代码审查评论推荐
FSE Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering2022匹配度 2/10 · 该论文提出基于检索的代码审查评论推荐,属于软件工程/开发者工具领域,与用户关注的静态分析、形式化验证、浮点程序分析、贝叶斯程序分析及LLM/Agent交叉方向均无直接关联,仅涉及代码变更的检索匹配,未使用程序分析或LLM技术。引用 55 inbox
Yang Hong, Chakkrit Tantithamthavorn, Patanamon Thongtanunam, Aldeida Aleti
crossref: 2026-09-12

AI 速览

一句话:提出基于检索的 CommentFinder,自动推荐代码审查评论,准确率更高且速度提升 49 倍。

代码审查是有效的质量保证实践,但开发者需手动审查并撰写反馈,耗时费力。现有基于深度学习的评论推荐方法效果虽好,却依赖高昂计算资源和时间,难以实用。本文提出 CommentFinder:一种基于检索的方法,根据变更方法自动推荐代码审查评论。作者在 151,019 个变更方法上与最先进方法进行实证评估。结果表明,推荐最佳-1评论候选时,CommentFinder 比先前工作准确率提高 32%,且速度提升 49 倍。这说明它能在减少人工审查负担的同时显著降低计算时间。

问题
代码审查需开发者手动审查并撰写反馈,耗时费力;现有深度学习推荐方法计算昂贵、难以实用。
方法
提出基于检索的 CommentFinder,根据变更方法自动推荐代码审查评论。
评估
在 151,019 个变更方法上与最先进方法对比,评估推荐准确率与效率。
原文摘要(Abstract)

Code review is an effective quality assurance practice, but can be labor-intensive since developers have to manually review the code and provide written feedback. Recently, a Deep Learning (DL)-based approach was introduced to automatically recommend code review comments based on changed methods. While the approach showed promising results, it requires expensive computational resource and time which limits its use in practice. To address this limitation, we propose CommentFinder – a retrieval-based approach to recommend code review comments. Through an empirical evaluation of 151,019 changed methods, we evaluate the effectiveness and efficiency of CommentFinder against the state-of-the-art approach. We find that when recommending the best-1 review comment candidate, our CommentFinder is 32% better than prior work in recommending the correct code review comment. In addition, CommentFinder is 49 times faster than the prior work. These findings highlight that our CommentFinder could help reviewers to reduce the manual efforts by recommending code review comments, while requiring less computational time.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot6973,
  title = {CommentFinder: a simpler, faster, more accurate code review comments recommendation},
  author = {Yang Hong and Chakkrit Tantithamthavorn and Patanamon Thongtanunam and Aldeida Aleti},
  booktitle = {FSE},
  year = {2022},
  doi = {10.1145/3540250.3549119}
}