arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.00921cs.LGcs.CLcs.SE
收藏

使用 LLM 自动生成 Pull Request 描述:一种 T5 模型方法

Automatic Pull Request Description Generation Using LLMs: A T5 Model Approach

Pabna University of Science and Technology(帕布纳科学技术大学);Boise State University(博伊西州立大学)

Md Nazmus Sakib, Md Athikul Islam, Md Mashrur Arifin

AI总结:

本文将 PR 描述生成视为文本摘要任务,利用提交信息与代码注释微调 T5,并在 33,466 个 PR 上以 ROUGE 验证其显著优于 LexRank。

摘要:

开发者创建 pull request(PR)描述,用以概述其更改并解释更改背后的动机。这些描述可帮助审查者和其他开发者快速理解更新内容。尽管其十分重要,仍有部分开发者会省略这些描述。为解决该问题,我们提出一种基于提交信息和源代码注释自动生成 PR 描述的方法。该方法将此任务构建为文本摘要问题,并为此采用了 T5 text-to-text transfer model。我们使用包含 33,466 个 PR 的数据集对预训练 T5 模型进行了微调。模型有效性通过 ROUGE 指标评估,该指标因与人工评估高度一致而受到认可。研究结果表明,T5 模型显著优于作为比较基线的 LexRank。

英文摘要:

Developers create pull request (PR) descriptions to provide an overview of their changes and explain the motivations behind them. These descriptions help reviewers and fellow developers quickly understand the updates. Despite their importance, some developers omit these descriptions. To tackle this problem, we propose an automated method for generating PR descriptions based on commit messages and source code comments. This method frames the task as a text summarization problem, for which we utilized the T5 text-to-text transfer model. We fine-tuned a pre-trained T5 model using a dataset containing 33,466 PRs. The model's effectiveness was assessed using ROUGE metrics, which are recognized for their strong alignment with human evaluations. Our findings reveal that the T5 model significantly outperforms LexRank, which served as our baseline for comparison.

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

↑