Hugging Face Daily Papers论文
SPADE:自适应合成可执行环境中的自我对弈
SPADE 是一种自我对弈强化学习框架,其中单个 LLM 扮演两个角色:环境设计器编写可执行的训练环境(OpenAI Gym 风格),推理代理学习解决这些环境。通过基于遗憾信号优化环境设计,SPADE 能生成处于代理能力边界的环境,从而提升推理和工具使用性能。在 30B 参数模型上,SPADE 在八个基准上平均超过最强固定环境基线 5.3 分,工具使用场景提升 5.7 分(BFCL-v4)和 13.9 分(ACEBench-Agent)。
这篇是正式发表的长论文,站内提供中文解读,全文请到原文阅读 PDF。
- +33
Abstract
SPADE is a self-play reinforcement learning framework where a language model designs adaptive executable training environments and learns to solve them, improving reasoning and tool-use performance through regret-based environment targeting.
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.
We let the model do environment scaling on its own: one LLM writes its own executable, agentic training environments and learns to solve them, with hint-based regret keeping each one at the agent's frontier. +5.3 over the strongest fixed-environment baseline at 30B, and the margin grows with scale.
Play 4,976 of them live: https://spade-rl.github.io
- +29