Live-SWE-agent: 软件工程代理能否在飞行中自我进化?
Live-SWE-agent: Can Software Engineering Agents Self-Evolve on the Fly?
AI总结:
Live-SWE-agent是一种能够在运行时自主进化其自身框架的软件代理,通过解决现实软件问题实现了77.4%的解决率,优于现有所有软件代理。
摘要:
大型语言模型(LLMs)正在重塑几乎所有行业,包括软件工程。近年来,提出了一系列LLM代理来解决现实中的软件问题。此类软件代理通常配备了一套编码工具,可以自主决定下一步行动,形成完整的轨迹以解决端到端的软件任务。尽管具有前景,但它们通常需要专门的设计,仍然可能不够优化,因为要穷尽整个代理框架设计空间可能非常具有挑战性和成本高昂。认识到软件代理本质上是自身可以进一步细化/修改的软件,研究人员最近提出了一系列自我改进的软件代理,包括达尔文-哥德尔机器(DGM)。同时,此类自我改进的代理需要在特定基准上进行昂贵的离线训练,可能在不同LLM或基准之间泛化能力不佳。在本文中,我们提出Live-SWE-agent,这是第一个能够自主且连续地在解决现实软件问题时在运行时自我进化的新软件代理。更具体地说,Live-SWE-agent从最基础的代理框架开始,仅能使用bash工具(例如mini-SWE-agent),并在解决现实软件问题的同时自主进化其自身的框架实现。我们在广泛研究的SWE-bench Verified基准上的评估表明,LIVE-SWE-AGENT在没有测试时间扩展的情况下实现了令人印象深刻的解决率77.4%,优于所有现有软件代理,包括最好的专有解决方案。此外,Live-SWE-agent在最近的SWE-Bench Pro基准上优于最先进的手工编写的软件代理,实现了最佳已知的解决率45.8%。
英文摘要:
Large Language Models (LLMs) are reshaping almost all industries, including software engineering. In recent years, a number of LLM agents have been proposed to solve real-world software problems. Such software agents are typically equipped with a suite of coding tools and can autonomously decide the next actions to form complete trajectories to solve end-to-end software tasks. While promising, they typically require dedicated design and may still be suboptimal, since it can be extremely challenging and costly to exhaust the entire agent scaffold design space. Recognizing that software agents are inherently software themselves that can be further refined/modified, researchers have proposed a number of self-improving software agents recently, including the Darwin-Gödel Machine (DGM). Meanwhile, such self-improving agents require costly offline training on specific benchmarks and may not generalize well across different LLMs or benchmarks. In this paper, we propose Live-SWE-agent, the first live software agent that can autonomously and continuously evolve itself on-the-fly during runtime when solving real-world software problems. More specifically, Live-SWE-agent starts with the most basic agent scaffold with only access to bash tools (e.g., mini-SWE-agent), and autonomously evolves its own scaffold implementation while solving real-world software problems. Our evaluation on the widely studied SWE-bench Verified benchmark shows that LIVE-SWE-AGENT can achieve an impressive solve rate of 77.4% without test-time scaling, outperforming all existing software agents, including the best proprietary solution. Moreover, Live-SWE-agent outperforms state-of-the-art manually crafted software agents on the recent SWE-Bench Pro benchmark, achieving the best-known solve rate of 45.8%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。