arXiv:2603.13023 · 中英对照阅读
daVinci-Env: Open SWE Environment Synthesis at Scale
中文速览
训练能真正改代码、跑测试并根据结果反复修正的软件工程智能体,难点在于缺少规模够大、质量可靠且公开可复现的练习环境。作者搭建了 OpenSWE:用多智能体流程自动把真实 Python 项目和 GitHub 问题变成可运行的 Docker 环境,再按任务难度筛掉太容易或难以解决的样本,并整理出训练轨迹。最终,项目公开了 45,320 个环境和完整构建工具,训练数据让模型在软件修复测试中取得更好成绩,且数据越多效果仍持续提升;训练还带来数学和科学任务上的进步。它的重要性在于把过去成本高、过程不透明的智能体训练基础设施开放出来,也证明了环境质量和难度筛选与单纯扩大数据规模同样关键。
摘要
Training capable software engineering (SWE) agents demands large-scale, executable, and verifiable environments that provide dynamic feedback loops for iterative code editing, test execution, and solution refinement. However, existing open-source datasets remain limited in scale and repository diversity, while industrial solutions are opaque with unreleased infrastructure, creating a prohibitive barrier for most academic research groups. We present OpenSWE, the largest fully transparent framework for SWE agent training in Python, comprising 45,320 executable Docker environments spanning over 12.8k repositories, with all Dockerfiles, evaluation scripts, and infrastructure fully open-sourced for reproducibility. OpenSWE is built through a multi-agent synthesis pipeline deployed across a 64-node distributed cluster, automating repository exploration, Dockerfile construction, evaluation script generation, and iterative test analysis. Beyond scale, we propose a quality-centric filtering pipeline that characterizes the inherent difficulty of each environment, filtering out instances that are either unsolvable or insufficiently challenging and retaining only those that maximize learning efficiency. With $891K spent on environment construction and an additional $576K on trajectory sampling and difficulty-aware curation, the entire project represents a total investment of approximately $1.47 million, yielding about 13,000 curated trajectories from roughly 9,000 quality guaranteed environments. Extensive experiments validate OpenSWE’s effectiveness: OpenSWE-32B and OpenSWE-72B achieve 62.4% and 66.0% on SWE-bench Verified, establishing SOTA among Qwen2.5 series. Models trained on OpenSWE consistently outperform those trained on SWE-rebench across all settings, with a log-linear data scaling trend showing no saturation. Moreover, SWE-focused training yields substantial out-of-domain improvements, including up to 12 points on mathematical reasoning and 5 points on science benchmarks, without degrading factual recall. All environments and evaluation scripts are publicly available at https://github.com/GAIR-NLP/OpenSWE.
术语表
- software engineering (SWE) agent
- 软件工程(SWE)智能体
- Large Language Model (LLM)
- 大语言模型(LLM)
- OpenSWE
- OpenSWE
- executable environment
- 可执行环境
- Docker
- Docker
- Docker environment
- Docker 环境
- Dockerfile
- Dockerfile
- dynamic feedback loop
- 动态反馈循环
- multi-agent synthesis pipeline
- 多智能体合成流水线
- distributed cluster
- 分布式集群
- evaluation script
- 评测脚本
- quality-centric filtering pipeline
- 质量导向筛选流水线
- difficulty-aware curation
- 难度感知筛选
- trajectory sampling
- 轨迹采样
- curated trajectory
- 筛选后的轨迹
- PR-Issue misalignment
- PR 与 Issue 不匹配
- learning signal
- 学习信号
- learning efficiency
- 学习效率
- SWE-bench
- SWE-bench
- SWE-bench Verified
- SWE-bench Verified
- SWE-rebench
- SWE-rebench
- SWE-Universe
- SWE-Universe
- SWE-Factory
- SWE-Factory
- Scale-SWE
- Scale-SWE
- Qwen2.5
- Qwen2.5
- supervised fine-tuning (SFT)
- 监督微调(SFT)
- log-linear data scaling
- 对数线性数据扩展
- out-of-domain improvement
- 域外性能提升
- factual recall
- 事实回忆