arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2611.21152cs.CL
收藏

从代码仓库到训练环境:通过环境演化循环扩展长 horizon 编码智能体

From Repositories to Training Environments: Scaling Long-Horizon Coding Agents with Environment Evolution Loop

Beihang University(北京航空航天大学);School of AI, Shanghai Jiao Tong University(上海交通大学人工智能学院);IQuest Research(IQuest研究院)

Yang Tian, Tianyu Zheng, Xiyuan Yang, Yaxin Du, Chengran Yang, Bo Zhao, Jian Yang, Bryan Dai

AI总结:

该研究提出 RepoFactory 自动化流程,通过环境演化循环生成 10159 个环境,训练出的 RepoHorizen-35B-A3B 在相关基准上较基线有显著性能提升。

摘要:

针对长 horizon 任务的编码智能体训练需要具备可验证反馈的环境。现有流程通常遵循线性过程,最终以验证结束,虽能确认可用性,但几乎无法为提升训练价值提供指导。递归自我改进(RSI)通常需要模型 rollout 或模型训练后进行下游评估,在长 horizon 任务中,成本和反馈延迟会被放大。如何利用及时、可靠的代理信号提升训练价值并规模化合成环境?我们提出 RepoFactory,这是一种自动化流程,可将真实代码仓库转换为可验证环境,在给定语言规范的情况下,智能体可从无到有构建完整项目。其环境演化循环通过代理反馈优化结合有效性、结构耦合和实现范围的乘法目标。RepoFactory 在 17 个软件领域生成了 10159 个环境。在这些环境上训练 Qwen3.5-35B-A3B 得到 RepoHorizen-35B-A3B,与未使用环境演化的情况相比,其在 NL2Repo-Bench 上提升了 22.6 个百分点,在涵盖长 horizon 编码和现实生产环境中智能体任务的五个基准上平均提升了 8.5 个百分点。这些结果凸显了 RepoFactory 环境的训练价值以及环境演化循环带来的额外增益。

英文摘要:

Training coding agents for long-horizon tasks requires environments with verifiable feedback. Existing pipelines often follow a linear process that ends with validation, establishing usability but providing little guidance on improving training value. Recursive self-improvement (RSI) often requires model rollouts or model training followed by downstream evaluation, with costs and feedback delays amplified on long-horizon tasks. How can we use timely, reliable proxy signals to improve training value and synthesize environments at scale? We present RepoFactory, an automated pipeline that converts real repositories into verifiable environments where agents build complete projects from scratch given a language specification. Its Environment Evolution Loop optimizes a multiplicative objective combining validity, structural coupling, and implementation scope through proxy feedback. RepoFactory produces 10,159 environments across 17 software domains. Training Qwen3.5-35B-A3B on these environments yields RepoHorizen-35B-A3B, which achieves gains of 22.6 percentage points on NL2Repo-Bench and 8.5 points on average across five benchmarks covering long-horizon coding and agentic tasks in real-world production settings, compared with 17.5 and 6.4 points without environment evolution. These results highlight the training value of RepoFactory environments and the additional gains from the Environment Evolution Loop.

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

↑