ChatPaper.aiChatPaper

SWE-World:在無需Docker的環境中構建軟體工程代理

SWE-World: Building Software Engineering Agents in Docker-Free Environments

February 3, 2026
作者: Shuang Sun, Huatong Song, Lisheng Huang, Jinhao Jiang, Ran Le, Zhihao Lv, Zongchao Chen, Yiwen Hu, Wenyang Luo, Wayne Xin Zhao, Yang Song, Hongteng Xu, Tao Zhang, Ji-Rong Wen
cs.AI

摘要

近期大语言模型(LLM)的突破性进展使得软件工程智能体能够处理复杂的代码修改任务。现有方法大多依赖容器化环境的执行反馈,这需要依赖项完备的环境配置及程序与测试的物理执行。尽管有效,该范式存在资源消耗大、维护困难的问题,显著增加了智能体训练复杂度并限制了可扩展性。我们提出SWE-World——一种无需Docker的框架,通过习得的替代模型取代物理执行环境来训练和评估软件工程智能体。该框架基于真实智能体-环境交互数据训练LLM模型,用以预测中间执行结果与最终测试反馈,使智能体无需与物理容器环境交互即可学习。此设计在保留标准智能体-环境交互循环的同时,消除了智能体优化与评估过程中昂贵的环境构建和维护成本。此外,由于SWE-World能模拟候选轨迹的最终评估结果而无需真实提交,它支持在多次测试尝试中筛选最优解,从而助力软件工程任务中有效的测试时扩展(TTS)。在SWE-bench Verified上的实验表明:通过无Docker监督微调,Qwen2.5-Coder-32B的性能从6.2%提升至52.0%;结合无Docker强化学习可达55.0%;进一步应用TTS后达到68.2%。代码已开源于https://github.com/RUCAIBox/SWE-World。
English
Recent advances in large language models (LLMs) have enabled software engineering agents to tackle complex code modification tasks. Most existing approaches rely on execution feedback from containerized environments, which require dependency-complete setup and physical execution of programs and tests. While effective, this paradigm is resource-intensive and difficult to maintain, substantially complicating agent training and limiting scalability. We propose SWE-World, a Docker-free framework that replaces physical execution environments with a learned surrogate for training and evaluating software engineering agents. SWE-World leverages LLM-based models trained on real agent-environment interaction data to predict intermediate execution outcomes and final test feedback, enabling agents to learn without interacting with physical containerized environments. This design preserves the standard agent-environment interaction loop while eliminating the need for costly environment construction and maintenance during agent optimization and evaluation. Furthermore, because SWE-World can simulate the final evaluation outcomes of candidate trajectories without real submission, it enables selecting the best solution among multiple test-time attempts, thereby facilitating effective test-time scaling (TTS) in software engineering tasks. Experiments on SWE-bench Verified demonstrate that SWE-World raises Qwen2.5-Coder-32B from 6.2\% to 52.0\% via Docker-free SFT, 55.0\% with Docker-free RL, and 68.2\% with further TTS. The code is available at https://github.com/RUCAIBox/SWE-World
PDF291February 5, 2026