arXiv:2602.02361 · 中英对照阅读
SWE-Universe:将真实世界的可验证环境扩展至百万级
SWE-Universe: Scale Real-World Verifiable Environments to Millions
中文速览
把海量 GitHub 修复任务变成可运行、可自动判分的训练环境,难点在于项目构建复杂、测试判分容易失真,而且逐个处理成本很高。作者设计了 SWE-Universe,让一个专门训练的智能体为每个任务搭建环境,并反复在修复前后运行测试、检查判分脚本是否真的执行代码,及时拦截只靠搜索代码文本“作弊”的脚本。最终,他们构建出覆盖多种语言、来自 5.2 万多个仓库的 807,693 个环境,测试中构建成功率提升到 94%,用这些环境训练后,模型在 SWE-Bench Verified 上达到 75.3%。这项工作既提供了大规模真实编程任务资源,也展示了一套更可靠、低成本的自动构建方法,有助于训练能处理不同语言和真实项目的编程智能体。
摘要
我们提出了 SWE-Universe,这是一种可扩展且高效的框架,可从 GitHub 拉取请求(PR)中自动构建真实世界的软件工程(SWE)可验证环境。为克服自动构建中普遍存在的挑战,例如产出率低、验证器能力弱以及成本高昂,我们的框架采用了由高效定制训练模型驱动的构建智能体。该智能体运用迭代自验证和循环内投机检测,确保可靠地生成高保真、可验证的任务。通过这种方法,我们将真实世界的多语言 SWE 环境扩展至百万量级(807,693)。我们通过大规模智能体中期训练和强化学习,展示了这些环境的巨大价值。最后,我们将这项技术应用于 Qwen3-Max-Thinking,并在 SWE-Bench Verified 上取得了 75.3% 的成绩。我们的工作既提供了关键资源,也提出了稳健的方法论,以推动新一代编程智能体的发展。
We propose SWE-Universe, a scalable and efficient framework for automatically constructing real-world software engineering (SWE) verifiable environments from GitHub pull requests (PRs). To overcome the prevalent challenges of automatic building, such as low production yield, weak verifiers, and prohibitive cost, our framework utilizes a building agent powered by an efficient custom-trained model. This agent employs iterative self-verification and in-loop hacking detection to ensure the reliable generation of high-fidelity, verifiable tasks. Using this method, we scale the number of real-world multilingual SWE environments to a million scale (807,693). We demonstrate the profound value of our environments through large-scale agentic mid-training and reinforcement learning. Finally, we applied this technique to Qwen3-Max-Thinking and achieved a score of 75.3% on SWE-Bench Verified. Our work provides both a critical resource and a robust methodology to advance the next generation of coding agents.
术语表
- SWE-Universe
- SWE-Universe
- software engineering (SWE)
- 软件工程
- large language model (LLM)
- 大语言模型
- coding agent
- 编程智能体
- verifiable environment
- 可验证环境
- pull request (PR)
- 拉取请求
- SWE-bench
- SWE-bench
- SWE-Bench Verified
- SWE-Bench Verified
- Multi-SWE-bench
- Multi-SWE-bench
- SWE-PolyBench
- SWE-PolyBench
- building agent
- 构建智能体
- self-verification
- 自验证
- iterative validation loop
- 迭代验证循环
- in-loop hacking detection
- 循环内投机检测
- verifier
- 验证器
- verifier vulnerability
- 验证器漏洞
- agentic mid-training
- 智能体中期训练
- reinforcement learning (RL)
- 强化学习
- reward signal
- 奖励信号
- Mixture-of-Experts (MoE)
- 混合专家
- hybrid attention
- 混合注意力
- Qwen-Next-80B-A3B
- Qwen-Next-80B-A3B
- Qwen3-Max-Thinking
- Qwen3-Max-Thinking
- mini-sweagent
- mini-sweagent
- test patch
- 测试补丁
- fix patch
- 修复补丁
- build success rate
- 构建成功率
- cross-lingual generalization
- 跨语言泛化