arXiv:2602.03419cs.SEcs.CL2026-02被引 17

用虚拟环境替代Docker,让代码生成模型更高效训练

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

  • 用大模型预测代码执行结果,取代真实容器运行
  • 使Qwen2.5代码模型准确率从6.2%提至68.2%
  • 适合想低成本训练代码生成模型的研究者

大语言模型推动了软件工程智能体的发展,但现有方法依赖容器化环境获取执行反馈,需完整依赖项配置和物理执行程序与测试,资源消耗大且难维护,限制了模型训练效率与扩展性。本文提出SWE-World,一种无需Docker的框架,通过基于真实交互数据训练的模型,学习预测代码中间执行结果和最终测试反馈,使智能体可在无物理环境情况下完成训练与评估。该设计保留标准交互流程,避免昂贵环境搭建与维护成本。此外,因可模拟候选方案的最终评估结果而无需真实提交,支持在测试阶段进行多轮尝试选择最优解,实现有效的测试时扩展(TTS)。在SWE-bench Verified上实验表明,SWE-World使Qwen2.5-Coder-32B的准确率从6.2%提升至52.0%(无Docker微调),55.0%(无Docker强化学习),68.2%(进一步结合TTS)。代码已开源。

原文摘要 · Abstract (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

代码生成LLM应用无容器测试时扩展

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。