arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.33851cs.SEcs.LG
收藏

软件工程大语言模型(SE LLMs):我们为何需要它们以及软件工程如何助力构建它们

Software Engineering LLMs: Why We Need Them and How Software Engineering Helps Build Them

Queen's University(女王大学);University of Manitoba(曼尼托巴大学);Center for Software Excellence, Huawei Technologies(华为技术有限公司软件卓越中心)

Amir M. Ebrahimi, Mohammed Mehedi Hasan, Seyed Shayan Daneshvar, Jiahuei Lin, Gopi Krishnan Rajbahadur, Ahmed E. Hassan

AI总结:

该研究通过工业案例展示SE知识助力构建920亿参数代码LLM,开发RefactorForge生成训练数据,经微调后在多个基准任务上提升性能,提出将代码LLM转化为SE LLMs的研究议程。

摘要:

软件工程(SE)专业知识可影响代码大语言模型(coding LLMs)的训练方式及其获得的工程能力。我们通过一项工业案例研究考察这一作用,该研究针对服务超过10万名开发者的920亿参数代码大语言模型开展以能力为核心的训练。我们展示了成熟的SE知识如何指导工程能力的选择、可验证训练数据的构建以及模型改进的评估。为针对仓库级重构,我们开发了RefactorForge,这一管道结合了重构知识、成熟的SE工具和验证技术来构建训练数据。在306个Python仓库中,RefactorForge生成了5704个可执行任务,并保留了4572条经过验证的教师轨迹,总计7251万token。基于这些轨迹的增量监督微调(占此前代码混合数据token的0.46%)使RefactorBench性能提升18.00个百分点,SWE-Bench ProMax性能提升7.06个百分点。在OpenCode框架下,这些改进延伸至SWE问题解决,SWE-Bench Verified提升4.97个百分点,SWE-Bench Pro提升1.23个百分点。改进也在其他代码智能体工具链中持续存在,而全新仓库生成的结果则喜忧参半。我们报告了构建以能力为核心的训练数据及其在各类工程工作负载中评估效果的经验教训。基于这一工业经验,我们提出了一项研究议程,以扩大SE在将代码大语言模型转变为软件工程大语言模型(SE LLMs)中的作用:将SE知识融入模型训练,将工程方法应用于模型开发与维护,以及系统定义这些模型应具备的工程能力。

英文摘要:

Software engineering (SE) expertise can shape how coding large language models (LLMs) are trained and which engineering capabilities they acquire. We examine this role through an industrial case study of capability-focused training for a 92B-parameter coding LLM serving more than 100,000 developers. We demonstrate how established SE knowledge can guide the selection of engineering capabilities, the construction of verifiable training data, and the evaluation of model improvements. To target repository-level refactoring, we developed RefactorForge, a pipeline that combines refactoring knowledge, established SE tools, and verification techniques to construct training data. Across 306 Python repositories, RefactorForge generated 5,704 executable tasks and retained 4,572 verified teacher trajectories totaling 72.51 million tokens. Incremental supervised fine-tuning on these trajectories, accounting for 0.46% of the preceding coding mixture's tokens, improved RefactorBench performance by 18.00 percentage points and SWE-Bench ProMax performance by 7.06 points. Under OpenCode, these improvements extended to SWE issue resolution, with gains of 4.97 points on SWE-Bench Verified and 1.23 points on SWE-Bench Pro. Improvements also persisted across other coding-agent harnesses, while greenfield repository generation showed mixed results. We report lessons from constructing capability-focused training data and evaluating its effects across engineering workloads. Building on this industrial experience, we propose a research agenda for expanding SE's role in transforming coding LLMs into SE LLMs: incorporating SE knowledge into model training, applying engineering methods to model development and maintenance, and systematically defining the engineering capabilities these models should acquire.

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

↑