Preprint
Reinforcement Learning

Reinforcement Learning via Self-Play

Guanghao Ye, Khiem Pham, Xinzhi Zhang, Sivakanth Gopi, Baolin Peng, Beibin Li, Janardhan Kulkarni, Huseyin A. Inan
February 10, 2025arXiv.org18 citations

18

Citations

1

Influential Citations

arXiv.org

Venue

2025

Year

Abstract

Recent AI advancements, such as OpenAI's new models, are transforming LLMs into LRMs (Large Reasoning Models) that perform reasoning during inference, taking extra time and compute for higher-quality outputs. We aim to uncover the algorithmic framework for training LRMs. Methods like self-consistency, PRM, and AlphaZero suggest reasoning as guided search. We ask: what is the simplest, most scalable way to enable search in LLMs? We propose a post-training framework called Reinforcement Learning via Self-Play (RLSP). RLSP involves three steps: (1) supervised fine-tuning with human or synthetic demonstrations of the reasoning process, (2) using an exploration reward signal to encourage diverse and efficient reasoning behaviors, and (3) RL training with an outcome verifier to ensure correctness while preventing reward hacking. Our key innovation is to decouple exploration and correctness signals during PPO training, carefully balancing them to improve performance and efficiency. Empirical studies in the math domain show that RLSP improves reasoning. On the Llama-3.1-8B-Instruct model, RLSP can boost performance by 23% in MATH-500 test set; On AIME 2024 math problems, Qwen2.5-32B-Instruct improved by 10% due to RLSP. However, a more important finding of this work is that the models trained using RLSP, even with the simplest exploration reward that encourages the model to take more intermediate steps, showed several emergent behaviors such as backtracking, exploration of ideas, and verification. These findings demonstrate that RLSP framework might be enough to enable emergence of complex reasoning abilities in LLMs when scaled. Lastly, we propose a theory as to why RLSP search strategy is more suitable for LLMs inspired by a remarkable result that says CoT provably increases computational power of LLMs, which grows as the number of steps in CoT \cite{li2024chain,merrill2023expresssive}.

Analysis

Why This Paper Matters

This paper addresses a critical question in the evolution of large language models: how to train them to reason effectively during inference, transforming them into Large Reasoning Models (LRMs). As models like OpenAI's o1 have shown, spending extra compute at inference time can yield higher-quality outputs, but the underlying training algorithms remain largely opaque. RLSP proposes a clean, post-training framework that combines supervised fine-tuning, exploration rewards, and outcome verification, all within a PPO loop. The key insight is to decouple exploration from correctness, which is a novel twist on standard RLHF approaches.

The significance is amplified by the empirical observation that even a trivial exploration reward—encouraging the model to take more intermediate steps—leads to emergent behaviors such as backtracking, idea exploration, and verification. This suggests that complex reasoning strategies might not need to be explicitly engineered but can emerge from simple reward signals when scaled. This aligns with the paper's theoretical motivation: chain-of-thought (CoT) provably increases the computational power of LLMs, so encouraging longer CoT sequences could unlock greater reasoning capability.

Technical Contributions

  • RLSP Framework: Three-step pipeline: (1) SFT on reasoning demonstrations, (2) exploration reward to encourage diverse and efficient reasoning, (3) RL with outcome verifier to prevent reward hacking.
  • Decoupled Rewards: The innovation is to treat exploration and correctness as separate signals during PPO, balancing them to avoid the model gaming the system.
  • Simple Exploration Reward: The paper shows that even a minimal reward—like rewarding more intermediate steps—can be effective, which is a departure from more complex reward shaping.
  • Theoretical Justification: The paper cites results that CoT increases LLM computational power, providing a rationale for why search-based reasoning is suitable.

Results

On the MATH-500 benchmark, RLSP boosts Llama-3.1-8B-Instruct's accuracy by 23%, a substantial improvement. On AIME 2024 math problems, Qwen2.5-32B-Instruct improves by 10%. These gains are notable given the simplicity of the exploration reward. More importantly, the models trained with RLSP exhibit emergent behaviors such as backtracking, exploring alternative ideas, and verifying their own steps—behaviors that are typically associated with human-like reasoning and are not explicitly programmed. This suggests that RLSP might be a sufficient condition for the emergence of complex reasoning abilities when scaled.

Significance

The broader impact of RLSP lies in its potential to demystify the training of LRMs. By providing a simple, scalable framework that yields emergent reasoning, it could accelerate research and development in this area. The theoretical link to CoT's computational power adds a principled foundation. However, the paper's focus on math leaves open questions about generalization to other domains, and the long-term stability of such training at scale remains to be seen. Nonetheless, RLSP is a promising step toward understanding how to elicit reasoning in LLMs, with implications for AI systems that need to think step-by-step in complex problem-solving scenarios.