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

Lingma SWE-GPT:一种面向自动化软件改进的、以开发过程为中心的开源语言模型

Lingma SWE-GPT: An Open Development-Process-Centric Language Model for Automated Software Improvement

Tongyi Lab, Alibaba Group(阿里集团通义实验室)

Yingwei Ma, Rongyu Cao, Yongchang Cao, Yue Zhang, Jue Chen, Yibo Liu, Yuchen Liu, Binhua Li, Fei Huang, Yongbin Li

AI总结:

针对当前自动化软件工程领域依赖闭源模型、缺乏对开发动态过程理解的问题,研究团队推出以开发过程为中心的开源Lingma SWE-GPT系列模型,在SWE-bench Verified基准上取得接近闭源模型的性能,验证了小模型的应用潜力。

摘要:

基于大语言模型(LLM)的智能体近期的发展推动了自动化软件工程领域的显著进展,尤其是在软件维护与演化方向。尽管这些进展令人鼓舞,当前研究仍面临两大主要挑战。首先,当前的最优(SOTA)性能主要依赖闭源模型,这极大限制了该技术的可及性,以及其在各类软件工程任务中的定制化潜力。其次,这些模型主要基于静态代码数据训练,缺乏对软件开发中固有的动态交互、迭代问题解决过程以及演化特性的深度理解。\n为应对这些挑战,本研究从软件工程视角出发。我们认识到,真实世界的软件维护与演化过程不仅包含静态代码数据,还涉及开发者的思考过程、外部工具的使用,以及不同职能人员之间的交互。因此,我们推出了Lingma SWE-GPT系列模型,包含Lingma SWE-GPT 7B和72B两个版本。通过学习并模拟真实世界的代码提交活动,Lingma SWE-GPT系统性地整合了软件开发过程中固有的动态交互与迭代问题解决机制,从而实现对软件改进过程更全面的理解。\n我们使用SWE-bench Verified基准开展了实验评估。结果显示,Lingma SWE-GPT 72B成功解决了30.20%的GitHub议题,在自动化议题解决方面实现了显著提升(相较于Llama 3.1 405B有22.76%的相对提升),性能接近闭源模型(GPT-4o可解决31.80%的议题)。值得注意的是,Lingma SWE-GPT 7B可解决18.20%的议题,彰显了将更小尺寸模型应用于自动化软件工程(ASE)任务的潜力。

英文摘要:

Recent advancements in LLM-based agents have led to significant progress in automatic software engineering, particularly in software maintenance and evolution. Despite these encouraging advances, current research faces two major challenges. First, SOTA performance primarily depends on closed-source models, which significantly limits the technology's accessibility, and potential for customization in diverse SE tasks. Second, these models are predominantly trained on static code data, lacking a deep understanding of the dynamic interactions, iterative problem-solving processes, and evolutionary characteristics inherent in software development. To address these challenges, our study adopts a software engineering perspective. We recognize that real-world software maintenance and evolution processes encompass not only static code data but also developers' thought processes, utilization of external tools, and the interaction between different functional personnel. Consequently, we introduce the Lingma SWE-GPT series, comprising Lingma SWE-GPT 7B and 72B. By learning from and simulating real-world code submission activities, Lingma SWE-GPT systematically incorporates the dynamic interactions and iterative problem-solving inherent in software development process, thereby achieving a more comprehensive understanding of software improvement processes. We conducted experimental evaluations using SWE-bench Verified benchmark. The results demonstrate that Lingma SWE-GPT 72B successfully resolves 30.20% of the GitHub issues, marking a significant improvement in automatic issue resolution (22.76% relative improvement compared to Llama 3.1 405B), approaching the performance of closed-source models (31.80\% issues of GPT-4o resolved). Notably, Lingma SWE-GPT 7B resolves 18.20% of the issues, highlighting the potential for applying smaller models to ASE tasks.

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

↑