研究与学习 4.0 · 优秀 2026-10-09 · 论文

ProgramGym: Scaling Training Environments for Long-Horizon Program Reproduction Agents

针对代理从零复现一个程序这类长程任务缺少可验证训练环境的问题,作者提出 ProgramGym:Program-Env 通过反馈驱动循环修复沙箱构建与黑盒测试质量,从仓库构建出 1648 个覆盖 C/C++/Go/Rust 的可验证训练环境;Program-Agent 采用分析/实现/评审角色隔离的工作流并管理修订以支持编译检查与失败恢复在 ProgramBench 上,用这些环境的轨迹微调使 Qwen3.8-27B 从 34.87% 提升到 42.84%;Program-Agent 进一步把基座/SFT 模型推到 55.71%/56.25%,超过部分旗舰模型框架计划开源

打开原文回到归档

ProgramGym: Scaling Training Environments for Long-Horizon Program Reproduction Agents

  • ID: 6bc89e93
  • 原文链接: https://arxiv.org/abs/2610.13395
  • PDF: https://arxiv.org/pdf/2610.13395
  • 作者: Chengyi Yang, Renxu Bao, Jue Hou, Zongpei Teng, Ziheng Wang, Yujie Lin, Chengsong Huang, Junnan Zhu, Delai Qiu, Yining Wang, Shengping Liu, Fei Long, Jinsong Su
  • 日期: 2026-10-09
  • 更新: N/A
  • 分类: learning
  • 来源类型: paper
  • 标签: coding-agents, training-environments, benchmark, long-horizon
  • 质量评分: 4/5
  • 抓取时间: 2026-10-16T20:26:34Z

中文导读

针对「代理从零复现一个程序」这类长程任务缺少可验证训练环境的问题,作者提出 ProgramGym:Program-Env 通过反馈驱动循环修复沙箱构建与黑盒测试质量,从仓库构建出 1648 个覆盖 C/C++/Go/Rust 的可验证训练环境;Program-Agent 采用分析/实现/评审角色隔离的工作流,并管理修订以支持编译检查与失败恢复。在 ProgramBench 上,用这些环境的轨迹微调使 Qwen3.8-27B 从 34.87% 提升到 42.84%;Program-Agent 进一步把基座/SFT 模型推到 55.71%/56.25%,超过部分旗舰模型。框架计划开源。

为什么值得关注

训练环境稀缺是 coding-agent 微调与强化的现实瓶颈。ProgramGym 的价值在于把「从仓库造可验证环境」做成了可扩展管线(1648 个环境、四门语言),并给出环境轨迹微调与 agent 工作流的分层收益数据,可对照复现;作者承诺开源。

关键信息

  • 论文标题:ProgramGym: Scaling Training Environments for Long-Horizon Program Reproduction Agents
  • 作者:Chengyi Yang, Renxu Bao, Jue Hou, Zongpei Teng, Ziheng Wang, Yujie Lin, Chengsong Huang, Junnan Zhu, Delai Qiu, Yining Wang, Shengping Liu, Fei Long, Jinsong Su
  • arXiv:https://arxiv.org/abs/2610.13395
  • 发布时间:2026-10-09(Submitted on 9 Oct 2026)
  • arXiv 分类:Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI); Computation and Language (cs.CL)
  • 关联标签:coding-agents, training-environments, benchmark, long-horizon

English Abstract

Coding agents are increasingly used to build programs from scratch as software engineers do rather than to resolve issues within a repository or to generate a repository from a given requirements document. However, scalable verifiable training environments that force agents to discover what is required and to decide how the system should be designed remain scarce. Moreover, existing agent workflows also cannot sustain long-horizon development in which the agent explores the reference program before implementation. To address these challenges, we introduce ProgramGym, a framework consisting of Program-Env and Program-Agent for scalable training environments of long-horizon program reproduction agents. Specifically, Program-Env constructs verifiable training environments from repositories through a feedback-driven loop that repairs runtime sandbox builds and the quality of black-box tests. Using this novel pipeline, we obtain 1,648 training environments spanning C, C++, Go, and Rust. Program-Agent combines a role-isolated workflow of analysis, implementation, and review with revision management for compilation checks and failure recovery. Experiments on ProgramBench show that both Program-Env and Program-Agent improve performance on program reproduction. Fine-tuning on trajectories with these constructed environments raises the performance of Qwen3.8-27B from 34.87% to 42.84%. Program-Agent further raises the base and SFT models to 55.71% and 56.25%, both exceeding some flagship models. We will release the ProgramGym to support further research on coding agents that build programs from scratch.

English Summary

Coding agents are increasingly used to build programs from scratch as software engineers do rather than to resolve issues within a repository or to generate a repository from a given requirements document. However, scalable verifiable training environments that force agents to discover what is required and to decide how the system should be designed remain scarce. Moreover, existing agent workflows also cannot sustain long-horizon development in which the agent explores the reference program before implementation. To address these challenges, we introduce ProgramGym, a framework consisting of Program-Env and Program-Agent for scalable training environments of long-horizon program reproduction agents. Specifically, Program-Env constructs verifiable training environments from repositories through a feedback-driven loop that repairs runtime sandbox builds and the quality of black-box tests. Using this novel pipeline, we obtain 1,648 training environments spanning C, C++, Go, and Rust. Program-Agent combines a role-isolated workflow of analysis, implementation, and review with revision management for compilation checks and failure recovery. Experiments on ProgramBench show that both Program-Env and Program-Agent improve performance on program reproduction. Fine-tuning on trajectories with these constructed environments raises the performance of Qwen3.8-27B from 34.87% to 42.84%. Program-Agent further raises the base and SFT models to 55.71% and 56.25%, both exceeding some flagship models. We will release the ProgramGym to support further research on coding agents that build programs from scratch.

Obsidian Notes

  • 内容获取路径:优先尝试 opencli arxiv paper 2610.13395 -f json;本次 arXiv API 返回 HTTP 429,改由 curl 直取 arXiv abs 页面,以页面可见元数据与摘要回填。
  • 中文导读与价值判断均锚定在条目已有摘要、论文摘要、作者、日期与分类信息上;未补充论文摘要之外的实验细节。
  • 现代站点生成器按 content/{entry.id}.md 查找内容页;本文件写入 canonical content 目录,而不是 openclaw/content/。