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

在统一设置下通过重新预训练比较源代码预训练模型

Comparing the Pre-trained Models of Source Code by Re-pre-training under a Unified Setup

State Key Laboratory for Novel Software Technology at Nanjing University, Software Institute, Nanjing University(南京大学软件学院新型软件技术国家重点实验室);Human Language Technology Research Institute, University of Texas at Dallas(德克萨斯大学达拉斯分校人类语言技术研究研究所)

Changan Niu, Chuanyi Li, Vincent Ng, Bin Luo

AI总结:

本文提出标准化设置,重新预训练CodePTMs并在各SE任务微调评估,以公平比较不同预训练任务对CodePTMs的影响,为后续研究提供启发。

摘要:

近年来,大型源代码预训练模型(CodePTMs)在代码表示学习中成功应用,推动软件工程(SE)领域从特定任务解决方案转向与任务无关的通用模型,取得了显著成果,被视为学术界和工业界的有前景方向。尽管已提出多个CodePTMs,但因预训练数据集、模型规模、评估任务及数据集等实验设置不同,难以直接比较。本文首先回顾过往研究的实验设置,提出标准化设置以促进CodePTMs间的公平比较,探究预训练任务的影响;随后在该标准化设置下,采用各模型声明的相同架构、输入模态、预训练任务等重新预训练CodePTMs,并在每个评估SE任务上微调各模型以进行评估;最后呈现实验结果,针对各SE任务全面讨论不同预训练任务的相对优劣,希望该研究视角能启发并推进更强大CodePTMs的未来研究。

英文摘要:

Recent years have seen the successful application of large pre-trained models of source code (CodePTMs) to code representation learning, which have taken the field of software engineering (SE) from task-specific solutions to task-agnostic generic models. By the remarkable results, CodePTMs are seen as a promising direction in both academia and industry. While a number of CodePTMs have been proposed, they are often not directly comparable because they differ in experimental setups such as pre-training dataset, model size, evaluation tasks and datasets, etc. In this paper, we first review the experimental setup used in previous work and propose a standardized setup to facilitate fair comparisons among CodePTMs to explore the impacts of their pre-training tasks. Then, under the standardized setup, we re-pre-train CodePTMs using the same model architecture, input modalities, and pretraining tasks, etc., as they declared and fine-tune each model on each evaluation SE task for evaluating. Finally, we present the experimental results and make a comprehensive discussion on the relative strength and weakness of different pre-training tasks w.r.t. each SE task. We hope our view can inspire and advance the future study of more powerful CodePTMs.

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

↑