AutoEnvScaling:用终端代理自动化数据飞轮
研究论文 · 2026/10/14
终端智能体通过在终端中执行命令来解决软件工程和科学研究任务。通过强化学习训练它们需要多样且可验证的环境,但这些环境仍主要由人类研究人员设计,因此其供应速度仅取决于研究人员的工作速度。我们提出了 AutoEnvScaling,它将环境设计视为一项终端任务,并使用智能体来自动化数据飞轮。一个提议智能体根据正在训练的求解器的 rollout 构建新的强化学习环境,而求解器的新 rollout 则指导下一轮。通过将环境生成转变为终端任务,AutoEnvScaling 与仅提示生成相比,将有效环境率提高了最多 25 倍,每个有效环境的成本降低了最多 75%。我们表明,在来自 GPT-5.6-sol 的 AutoEnvScaling 环境上训练 Qwen3.5-35B-A3B,其 Terminal-Bench 2.1 分数比匹配的 Tmax 基线提高了 4.3 分。AutoEnvScaling 的更广泛目标是实现递归自我改进:通过让环境生成和解决终端任务都成为可能,它让一个模型在两种角色中共同进化。我们表明,Qwen3.6-35B-A3B 在两种角色中行动时,在 Terminal-Bench 2.1 上获得了 12.2 分,并将其 Terminal-Bench 4.0 分数从 1.6 提高到 3.2。该流程还泛化到智能体领域,为软件工程、计算机使用、专业工作和 GPU 内核编程生成环境。总体而言,这些结果展示了一条通往智能体构建自身训练环境的道路,减少了对人类的依赖,并朝着递归自我改进迈出了核心一步。
该工作提出了一种自动化生成强化学习环境的方法,显著提升了环境生成效率并降低了成本,同时展示了在多个智能体领域的泛化能力,为减少人工依赖和实现递归自我改进提供了可行路径。
Terminal agents solve tasks in software engineering and scientific research by executing commands in a terminal. Training them via reinforcement learning (RL) requires diverse and verifiable environments, but these environments are still mostly designed by human researchers, so their supply grows only as fast as researchers can work. We introduce AutoEnvScaling, which treats environment design as a terminal task and uses agents to automate the data flywheel. A proposer agent builds new RL environments from the rollouts of the solver being trained, and the solver's new rollouts guide the next round. By turning environment generation into a terminal task, AutoEnvScaling increases the valid-environment rate by up to 25 times compared to prompt-only generation, at up to 75% lower cost per valid environment. We show that training Qwen3.5-35B-A3B on AutoEnvScaling environments from GPT-5.6-sol improves its Terminal-Bench 2.1 score by 4.3 points over the matched Tmax baseline. The broader goal of AutoEnvScaling is to enable recursive self-improvement (RSI): by making both environment generation and solving terminal tasks, it lets one model co-evolve in both roles. We show that Qwen3.6-35B-A3B, acting in both roles, gains 12.2 points on Terminal-Bench 2.1 and raises its Terminal-Bench 4.0 score from 1.6 to 3.2. The pipeline also generalizes across agentic domains, generating environments for software engineering, computer use, professional work, and GPU kernel programming. Overall, these results show a path toward agents building their own training environments, reducing human reliance and taking a core step toward RSI.