arXiv:2607.27146 · 中英对照阅读
MindForge: Teaching Small Language Models Whole-Life-Cycle Software Engineering via Source-Free Program Synthesis
中文速览
从零写出一个完整程序仍很难,因为智能体得自己摸清需求、设计结构、实现代码并反复调试,而现有训练环境大多只让它修改已有代码。研究者搭建了 MindForge,把开源命令行程序处理成只提供编译后程序和说明文档的“无源码”环境,再用强模型收集、修整完整开发过程,并据此训练一个 27B 参数模型。训练后,该模型在 ProgramBench 上的通过率从 37.98%升到49.51%,接近大得多的前沿模型,也在七个未见过的软件工程基准上全面提升。重要的是,这说明经过精心设计的训练环境和开发过程数据,能让较小模型学会从需求探索到调试交付的完整流程,并把能力迁移到多种软件任务。
摘要
Coding agents have made substantial progress on software engineering tasks that modify existing codebases, including bug fixing and feature implementation. However, constructing a complete program from scratch remains a major challenge: even the frontier models evaluated on ProgramBench fully resolve fewer than 1% of tasks. One obstacle is the lack of scalable training environments for this from-scratch setting, spanning the whole software engineering life cycle, as existing environment-construction frameworks focus only on a single phase in software development. To address this gap, we introduce MindForge, an automated pipeline that converts open-source command-line programs into source-free environments that expose only a compiled reference executable and its documentation. Using MindForge, we construct training environments from repositories disjoint from those in ProgramBench, and curate a high-quality data recipe consisting of program synthesis trajectories using GLM-5.2 as the teacher agent. Fine-tuning Qwen3.6-27B on these trajectories increases its ProgramBench average test pass rate from 37.98% to 49.51%, achieving performance comparable to substantially larger frontier models. Moreover, the fine-tuned model consistently improves over the base model across all seven unseen software engineering benchmarks, spanning long-horizon repository generation and translation, bug fixing, feature implementation, and cross-language issue resolution, with absolute gains of 31.00 points on RepoZero-C2Rust, 14.16 on DeepSWE, 10.70/4.56 on NL2Repo-Bench (with/without tests), 5.04 on SWE-bench Verified, 5.93 on SWE-bench Pro, 5.22 on SWE-bench Multilingual, and 4.94 on FeatBench.
术语表
- Coding agent
- 编码智能体
- Software engineering
- 软件工程
- Program construction from scratch
- 从零构建程序
- Program synthesis
- 程序合成
- MindForge
- MindForge
- Source-free environment
- 无源码环境
- Compiled reference executable
- 编译后的参考可执行文件
- Environment-construction pipeline
- 环境构建流水线
- Whole-life-cycle program-development trajectory
- 全生命周期程序开发轨迹
- Trajectory collection
- 轨迹采集
- Teacher agent
- 教师智能体
- Trajectory refinement
- 轨迹精炼
- Specification inference
- 规格推断
- Architecture design
- 架构设计
- Bug localization
- 缺陷定位
- Fine-tuning
- 微调
- Supervised fine-tuning (SFT)
- 监督微调(SFT)
- Distillation
- 蒸馏
- Test pass rate
- 测试通过率
- ProgramBench
- ProgramBench
- MirrorCode
- MirrorCode
- SWE-Smith
- SWE-Smith
- SWE-Gym
- SWE-Gym
- RepoZero-C2Rust
- RepoZero-C2Rust
- DeepSWE
- DeepSWE
- NL2Repo-Bench
- NL2Repo-Bench
- SWE-bench Verified
- SWE-bench Verified
- SWE-bench Pro
- SWE-bench Pro
- SWE-bench Multilingual
- SWE-bench Multilingual