arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.08100cs.SEcs.AI
收藏

CommitBART:一个用于GitHub提交的大型预训练模型

CommitBART: A Large Pre-trained Model for GitHub Commits

Nanyang Technological University(南洋理工大学);Singapore Management University(新加坡管理大学)

Shangqing Liu, Yanzhou Li, Xiaofei Xie, Yang Liu

摘要:

GitHub提交是一种以自然语言消息描述的方式记录代码变更的提交,对于软件开发人员理解软件演化具有重要作用。为了促进开源软件社区的发展,我们收集了一个提交基准,其中包括7种程序设计语言的超过799万次提交。基于这个基准,我们提出了CommitBART,一个用于GitHub提交的大型预训练编码器-解码器Transformer模型。该模型通过三个类别进行预训练(即,去噪目标、交叉模态生成和对比学习)来学习提交片段表示。此外,我们统一了一个“提交智能”框架,一个理解任务和三个生成任务的提交。这些任务的综合实验表明,CommitBART显着优于以前的代码预训练的作品。进一步的分析还表明,每个预训练任务都提高了模型的性能。

英文摘要:

GitHub commits, which record the code changes with natural language messages for description, play a critical role for software developers to comprehend the software evolution. To promote the development of the open-source software community, we collect a commit benchmark including over 7.99 million commits across 7 programming languages. Based on this benchmark, we present CommitBART, a large pre-trained encoder-decoder Transformer model for GitHub commits. The model is pre-trained by three categories (i.e., denoising objectives, cross-modal generation and contrastive learning) for six pre-training tasks to learn commit fragment representations. Furthermore, we unify a ``commit intelligence'' framework with one understanding task and three generation tasks for commits. The comprehensive experiments on these tasks demonstrate that CommitBARTsignificantly outperforms previous pre-trained works for code. Further analysis also reveals each pre-training task enhances the model performance.

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

↑