让大模型自己对弈,自动提升推理能力,无需人工标注。
SPIRAL: Self-Play on Zero-Sum Games Incentivizes Reasoning via Multi-Agent Multi-Turn Reinforcement Learning
- 模型通过自对弈零和游戏,不断挑战更强的自我版本。
- 在8个推理基准上平均提升10%,超越2.5万条专家对局监督微调。
- 不同游戏培养互补推理能力,适用于各类大模型和训练阶段。
近期强化学习进展表明,语言模型可通过可验证奖励任务发展出复杂推理能力,但这类方法依赖人工标注的问题-答案对和领域特定奖励设计。我们提出SPIRAL,一种自对弈框架,模型通过与持续进化的自我版本进行多轮零和博弈,自动生成更强对手的自动课程,从而消除人工监督需求。为实现大规模自对弈训练,我们构建了面向大模型的全在线、多轮、多智能体强化学习系统,并提出角色条件优势估计(RAE)以稳定多智能体训练。SPIRAL生成的推理能力具有广泛迁移性,在涵盖Qwen与Llama系列的4种模型上,8个推理基准平均性能提升达10%,优于基于25,000条专家博弈轨迹的监督微调。多游戏训练(井字棋、克努斯扑克、简单谈判)效果最佳,基线模型与指令微调模型均受益。链式思维分析显示,不同游戏演化出独特认知模式,相互补充。即使已通过RLVR训练过的模型(如DeepSeek-R1-Distill-Qwen-7B)仍能从中获益。结果表明,零和游戏天然催生跨架构与训练阶段的可迁移推理能力,为自主推理发展指明新方向。代码见:https://github.com/spiral-rl/spiral。
原文摘要 · Abstract (English)
Recent advances in reinforcement learning have shown that language models can develop sophisticated reasoning through training on tasks with verifiable rewards, but these approaches depend on human-curated problem-answer pairs and domain-specific reward engineering. We introduce SPIRAL, a self-play framework where models learn by playing multi-turn, zero-sum games against continuously improving versions of themselves, generating an automatic curriculum of stronger opponents, and eliminating the need for human supervision. To enable this self-play training at scale, we implement a fully online, multi-turn, multi-agent reinforcement learning system for LLMs and propose role-conditioned advantage estimation (RAE) to stabilize multi-agent training. SPIRAL produces reasoning capabilities that transfer broadly, improving performance by up to 10% across a suite of 8 reasoning benchmarks on 4 different models spanning Qwen and Llama model families, outperforming supervised fine-tuning on 25,000 expert game trajectories. Multi-game training (TicTacToe, Kuhn Poker, Simple Negotiation) yields the strongest results, with improvements observed across both base and instruction-tuned models. Analysis of chain-of-thought traces reveals that games develop distinct cognitive patterns that transfer to improve reasoning performance, with different games developing complementary strengths. Even models which have already been trained on reasoning tasks using RLVR, like DeepSeek-R1-Distill-Qwen-7B, still benefit from our approach. These results demonstrate that zero-sum games naturally develop transferable reasoning capabilities across diverse model architectures and training stages, highlighting a promising direction for autonomous reasoning development. Our code can be found in https://github.com/spiral-rl/spiral.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。