SPADE:自适应合成可执行环境中的自我对弈

·

研究论文 · 2026/08/20

SPADE(自适应合成可执行环境中的自我对弈)是一个自我对弈强化学习框架,其中单个大型语言模型扮演两个角色:环境设计者(编写具有OpenAI Gym风格reset()/step()接口的可执行代码的完整长时程训练环境)和推理代理(学习在这些环境中行动)。推理代理的遗憾通过其有/无特权提示的奖励差距来估计;优化这一遗憾信号使环境设计者学会针对代理能力边缘的环境,同时保持可行性。实验发现,将环境设计者基于大型预训练语料库中的文档,并赋予其累积环境记忆是关键。在30B参数模型上,SPADE在八个保留的数学、科学、代码和推理基准上平均比最强固定环境基线提高+5.3,在BFCL-v4多轮和ACEBench-Agent上分别提高+5.7和+13.9;在游戏设置中,优势随模型规模增长。通过使环境设计本身成为可学习组件,SPADE向开放式自我改进迈出了具体一步。

本文提出了一种新颖的自我对弈强化学习框架,通过让环境设计成为可学习组件,实现了开放式自我改进。实验证明其有效性,并提供了关键设计洞察,对语言代理的持续学习研究具有重要价值。

Continuous self-improvement requires an ever-expanding pool of self-generated, diverse, adaptive goals. For language agents, existing training environment pools (hand-curated, statically synthesized, or frozen-verifier) keep the goal distribution fixed as the learner scales. We introduce SPADE (Self-Play in Adaptive Synthetic Executable Environments), a self-play RL framework in which a single LLM plays two roles: an Environment Designer that writes complete, long-horizon training environments as executable code with an OpenAI Gym-style reset()/step() interface, and a Reasoning Agent that learns to act in them. Each is a stateful, multi-turn environment (state transitions, reward functions, and verification code), so one interface spans reasoning problems and multi-step agentic tool use. The Reasoning Agent's regret is estimated using the gap between its reward with and without privileged hints; in optimizing this regret signal the Environment Designer learns to target environments at the edge of the agent's capabilities while keeping them feasible. Through extensive experimentation, we find several components critical to success: grounding the Environment Designer on documents sampled from a large pretraining corpus, and giving it an accumulated environment memory. Scaling to 30B-parameter models, SPADE improves over the strongest fixed-environment baseline by +5.3 on average across eight held-out math, science, code, and reasoning benchmarks, and lifts the tool-use setting by +5.7 on BFCL-v4 multi-turn and +13.9 on ACEBench-Agent; on the games setting, the margin over the strongest baseline grows with model scale. By making environment design itself a learnable component, SPADE takes a concrete step toward open-ended self-improvement.

阅读原文

参与讨论