CommitBench:一个面向提交消息生成的基准测试集
CommitBench: A Benchmark for Commit Message Generation
AI总结:
针对现有提交消息生成数据集存在的质量差、有偏差等问题,研究构建了遵循最佳实践的大规模基准数据集CommitBench,实验验证源代码预训练的Transformer模型表现最优,并开源代码以推动领域研究。
摘要:
对许多软件开发者而言,编写提交消息是一项枯燥的日常工作,且常常被忽视。实现这项任务的自动化有望节省时间,同时确保消息具备信息性。高质量数据集与客观基准是开展扎实研究、推进该目标评估的关键前提。我们发现现有数据集存在诸多问题,例如提交选择质量不佳、样本量小、存在重复项、隐私问题,以及缺少再分发许可。这可能导致模型无法使用、评估结果有偏差——劣质模型会因数据中的偏差获得更高的评估分数。我们遵循数据集构建的最佳实践,编制了一个新的大规模数据集CommitBench。我们从拥有再分发许可的各类项目中采样提交内容,并应用过滤与数据集增强手段提升生成提交消息的质量。我们使用CommitBench对比现有模型,结果表明,在源代码上预训练的Transformer模型性能优于其他方法。我们希望通过发布源代码(https://github.com/Maxscha/commitbench)推动未来相关研究。
英文摘要:
Writing commit messages is a tedious daily task for many software developers, and often remains neglected. Automating this task has the potential to save time while ensuring that messages are informative. A high-quality dataset and an objective benchmark are vital preconditions for solid research and evaluation towards this goal. We show that existing datasets exhibit various problems, such as the quality of the commit selection, small sample sizes, duplicates, privacy issues, and missing licenses for redistribution. This can lead to unusable models and skewed evaluations, where inferior models achieve higher evaluation scores due to biases in the data. We compile a new large-scale dataset, CommitBench, adopting best practices for dataset creation. We sample commits from diverse projects with licenses that permit redistribution and apply our filtering and dataset enhancements to improve the quality of generated commit messages. We use CommitBench to compare existing models and show that other approaches are outperformed by a Transformer model pretrained on source code. We hope to accelerate future research by publishing the source code( https://github.com/Maxscha/commitbench ).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。