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

SEAlign: 面向软件工程智能体的对齐训练

SEAlign: Alignment Training for Software Engineering Agent

Kechi Zhang, Huangzhao Zhang, Ge Li, Jinliang You, Jia Li, Yunfei Zhao, Zhi Jin

AI总结:

针对现有代码生成模型与真实软件工程任务错位的问题,本研究提出SEAlign对齐框架,结合软件工程流程特性、蒙特卡洛树搜索与偏好优化,在多个基准上实现了低训练开销的最优性能,推动了大代码模型的实际落地。

摘要:

代码生成模型的最新进展在自动化软件开发任务上展现出了出色能力,但这类模型在真实软件工程场景中仍存在不足。当前的训练方法,尤其是后训练,虽擅长解决竞赛编程问题,却未能让模型充分应对实际软件开发的复杂性。这种错位引出了一个关键问题:现有的对齐训练方法是否适配真实世界的软件工程任务?本研究明确了这一问题,并提出SEAlign——一种新型对齐框架,旨在弥合代码生成模型与真实软件开发任务之间的差距。SEAlign利用软件工程流程的独有特性(包括高质量的工作流步骤)来增强模型能力。该框架进一步采用蒙特卡洛树搜索在多步决策过程中实现细粒度对齐,随后对关键动作进行偏好优化,确保模型符合真实世界的要求。我们在三个面向真实软件工程的标准智能体基准上评估了SEAlign,包括HumanEvalFix、SWE-Bench-Lite和SWE-Bench-Verified。实验结果表明,该方法以极低的训练开销取得了当前最优性能。此外,我们基于SEAlign开发了一个智能体驱动的软件开发平台,成功自动化创建了多个小型应用。对这些应用的人工评估显示,其在任务表现和用户体验上均有显著提升。研究结果凸显了SEAlign推动大型代码模型在真实软件开发中落地的潜力,我们认为这项研究为实现全自动化软件工程迈出了有意义的一步。

英文摘要:

Recent advances in code generation models have demonstrated impressive capabilities in automating software development tasks, yet these models still struggle in real-world software engineering scenarios. Although current training methods, particularly post-training, excel at solving competitive programming problems, they fail to adequately prepare models for the complexities of practical software development. This misalignment raises the critical question: Are existing alignment training methods well suited for real-world software engineering tasks? In this study, we identify this issue and propose SEAlign, a novel alignment framework designed to bridge the gap between code generation models and real-world software development tasks. SEAlign leverages the unique characteristics of software engineering processes, including high-quality workflow steps, to enhance model capabilities. Our framework further employs Monte Carlo Tree Search for fine-grained alignment in multi-step decision processes, followed by preference optimization on critical actions to ensure models meet real-world requirements. We evaluate SEAlign on three standard agentic benchmarks for real-world software engineering, including HumanEvalFix, SWE-Bench-Lite, and SWE-Bench-Verified. Experimental results demonstrate state-of-the-art performance with minimal training overhead. In addition, we develop an agent-based software development platform using SEAlign, which successfully automates the creation of several small applications. Human evaluations of these applications highlight significant improvements in both task performance and user experience. Our findings underscore the potential of SEAlign to accelerate the adoption of large code models in real-world software development. We believe that this research makes a meaningful step towards fully automated software engineering.

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

↑