MASAI:面向软件工程 AI 智能体的模块化架构
MASAI: Modular Architecture for Software-engineering AI Agents
AI总结:
本文提出模块化软件工程 AI 智能体架构 MASAI,通过分工明确、策略可调的 LLM 子智能体收集多源信息并控制轨迹长度,在 SWE-bench Lite 上达到 28.33% 的最高解决率。
摘要:
解决软件工程中复杂问题的一种常用方法,是将问题划分为多个子问题。受此启发,我们提出了一种面向软件工程 AI 智能体的模块化架构 MASAI,其中不同的由 LLM 驱动的子智能体在实例化时都具有明确定义的目标,以及为实现这些目标而调整的策略。我们的模块化架构具有若干优势:(1)在各子智能体之间采用并调整不同的问题解决策略;(2)使子智能体能够从分散在代码仓库中的不同来源收集信息;(3)避免不必要的冗长轨迹,因为这类轨迹会增加成本并引入无关上下文。MASAI 使我们在广受欢迎且极具挑战性的 SWE-bench Lite 数据集上取得了最高性能(28.33% 的解决率),该数据集包含来自 11 个 Python 代码仓库的 300 个 GitHub issue。我们对 MASAI 相对于其他智能体方法进行了全面评估,并分析了各项设计决策的影响及其对 MASAI 成功的贡献。
英文摘要:
A common method to solve complex problems in software engineering, is to divide the problem into multiple sub-problems. Inspired by this, we propose a Modular Architecture for Software-engineering AI (MASAI) agents, where different LLM-powered sub-agents are instantiated with well-defined objectives and strategies tuned to achieve those objectives. Our modular architecture offers several advantages: (1) employing and tuning different problem-solving strategies across sub-agents, (2) enabling sub-agents to gather information from different sources scattered throughout a repository, and (3) avoiding unnecessarily long trajectories which inflate costs and add extraneous context. MASAI enabled us to achieve the highest performance (28.33% resolution rate) on the popular and highly challenging SWE-bench Lite dataset consisting of 300 GitHub issues from 11 Python repositories. We conduct a comprehensive evaluation of MASAI relative to other agentic methods and analyze the effects of our design decisions and their contribution to the success of MASAI.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。