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

MEnvAgent:可扩展的多语言环境构建用于可验证软件工程

MEnvAgent: Scalable Polyglot Environment Construction for Verifiable Software Engineering

Tsinghua University(清华大学)

Chuanzhe Guo, Jingjing Wu, Sijun He, Yang Chen, Zhaoqi Kuang, Shilong Fan, Bingjin Chen, Siqi Bao, Jing Liu, Hua Wu, Qingfu Zhu, Wanxiang Che, Haifeng Wang

AI总结:

提出MEnvAgent框架,通过多智能体规划-执行-验证架构和环境复用机制,自动构建多语言可执行环境,生成可验证任务实例,在10种语言1000个任务上提升F2P率8.6%并降低时间成本43%。

摘要:

大型语言模型(LLM)智能体在软件工程(SWE)领域的发展受到可验证数据集稀缺的制约,这一瓶颈源于跨不同语言构建可执行环境的复杂性。为解决此问题,我们提出MEnvAgent,一个用于自动环境构建的多语言框架,支持可验证任务实例的可扩展生成。MEnvAgent采用多智能体规划-执行-验证架构自主解决构建失败问题,并集成了一种新颖的环境复用机制,通过增量修补历史环境来减少计算开销。在MEnvBench(一个包含10种语言1000个任务的新基准)上的评估表明,MEnvAgent优于基线方法,将失败到通过(F2P)率提高了8.6%,同时将时间成本降低了43%。此外,我们通过构建MEnvData-SWE(迄今为止最大的开源多语言真实可验证Docker环境数据集)以及解决方案轨迹,展示了MEnvAgent的实用性,这些轨迹使得各种模型在SWE任务上能够获得一致的性能提升。我们的代码、基准和数据集可在以下网址获取:https://this URL。

英文摘要:

The evolution of Large Language Model (LLM) agents for software engineering (SWE) is constrained by the scarcity of verifiable datasets, a bottleneck stemming from the complexity of constructing executable environments across diverse languages. To address this, we introduce MEnvAgent, a Multi-language framework for automated Environment construction that facilitates scalable generation of verifiable task instances. MEnvAgent employs a multi-agent Planning-Execution-Verification architecture to autonomously resolve construction failures and integrates a novel Environment Reuse Mechanism that reduces computational overhead by incrementally patching historical environments. Evaluations on MEnvBench, a new benchmark comprising 1,000 tasks across 10 languages, demonstrate that MEnvAgent outperforms baselines, improving Fail-to-Pass (F2P) rates by 8.6% while reducing time costs by 43%. Additionally, we demonstrate the utility of MEnvAgent by constructing MEnvData-SWE, the largest open-source polyglot dataset of realistic verifiable Docker environments to date, alongside solution trajectories that enable consistent performance gains on SWE tasks across a wide range of models. Our code, benchmark, and dataset are available at https://github.com/ernie-research/MEnvAgent.

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

↑