arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.13395cs.SEcs.AIcs.CL
收藏

ProgramGym:为长程程序复现智能体扩展训练环境

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

Xiamen University(厦门大学);Washington University in St. Louis(华盛顿大学圣路易斯分校);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Unisound(科大讯飞)

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

AI总结:

研究针对现有编码智能体训练环境的不足,推出ProgramGym框架,含Program-Env与Program-Agent,在ProgramBench上提升了Qwen等模型的程序复现性能,将发布该框架支持相关研究。

摘要:

编码智能体正越来越多地被用于像软件工程师那样从零构建程序,而非解决代码库内的问题或根据给定需求文档生成代码库。然而,能够迫使智能体发现所需内容并决定系统设计方式的可扩展可验证训练环境仍然稀缺。此外,现有的智能体工作流程也无法支持长程开发,即智能体在实现前先探索参考程序。为应对这些挑战,我们推出了ProgramGym,这是一个由Program-Env和Program-Agent组成的框架,用于长程程序复现智能体的可扩展训练环境。具体而言,Program-Env通过反馈驱动循环从代码库构建可验证的训练环境,该循环会修复沙箱运行时构建问题并优化黑盒测试的质量。利用这一新流程,我们获得了涵盖C、C++、Go和Rust的1648个训练环境。Program-Agent将分析、实现和审查的角色隔离工作流程与编译检查和故障恢复的修订管理相结合。在ProgramBench上的实验表明,Program-Env和Program-Agent均能提升程序复现的性能。在这些构建的环境中的轨迹上进行微调,可将Qwen3.8-27B的性能从34.87%提升至42.84%。Program-Agent进一步将基础模型和SFT模型的性能提升至55.71%和56.25%,均超过了一些旗舰模型。我们将发布ProgramGym,以支持更多关于从零构建程序的编码智能体的研究。

英文摘要:

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.

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

↑