Abstract
Reinforcement learning with verifiable rewards (RLVR) has become the mainstream technique for training LLM agents. However, RLVR highly depends on well-crafted task queries and corresponding ground-truth answers to provide accurate rewards, which requires significant human effort and hinders the scaling of RL processes, especially in agentic scenarios. Although a few recent works explore task synthesis methods, the difficulty of generated agentic tasks can hardly be controlled to provide effective RL training advantages. To achieve agentic RLVR with higher scalability, we explore self-play training for deep search agents, in which the learning LLM utilizes multi-turn search engine calling and acts simultaneously as both a task proposer and a problem solver. The task proposer aims to generate deep search queries with well-defined ground-truth answers and increasing task difficulty. The problem solver tries to handle the generated search queries and output the correct answer predictions. To ensure that each generated search query has accurate ground truth, we collect all the searching results from the proposer's trajectory as external knowledge, then conduct retrieval-augmentation generation (RAG) to test whether the proposed query can be correctly answered with all necessary search documents provided. In this search self-play (SSP) game, the proposer and the solver co-evolve their agent capabilities through both competition and cooperation. With substantial experimental results, we find that SSP can significantly improve search agents' performance uniformly on various benchmarks without any supervision under both from-scratch and continuous RL training setups.
Introduction
Reinforcement Learning with Verifiable Rewards (RLVR) is a powerful paradigm for enhancing the reasoning capabilities of Large Language Models (LLMs). However, applying RLVR to agentic tasks—where models must interact with tools like search engines—presents a significant scalability challenge. Creating complex, multi-step search queries with verifiable ground-truth answers typically requires intensive human labor or results in synthetic data that lacks factual grounding or appropriate difficulty.
To address this, the Alibaba Qwen team introduces Search Self-play (SSP), a framework that enables agents to autonomously improve by playing a dual role: a proposer that "reverse-engineers" difficult search queries from known answers, and a solver that learns to navigate the web to find them.
The Search Self-play Framework
The SSP framework utilizes a single LLM to perform two distinct roles in a closed-loop game. This process is anchored by a set of ground-truth answers which serve as the seeds for task generation.
- The Proposer: Given a seed answer, the proposer uses search tools to find related facts and constructs a complex, multi-hop question. Its goal is adversarial: to create a question that is as difficult as possible for the solver to answer.
- The Solver: This agent persona receives the generated question and must use multi-turn reasoning and search calls to retrieve the correct answer from the web.
- RAG-based Verification: To prevent the proposer from generating hallucinations or unsolvable tasks, the system includes a "Cooperative Outcome" check. The solver is given access to all documents retrieved by the proposer during the generation phase. If the solver cannot answer the question using these documents via Retrieval-Augmented Generation (RAG), the task is discarded as invalid.
Optimization Strategy
The Solver is optimized using Group Relative Policy Optimization (GRPO) to maximize its success rate. Simultaneously, the Proposer is updated via REINFORCE, receiving rewards when the solver fails on a valid (RAG-verified) question. This creates a natural curriculum where the proposer is forced to find increasingly obscure and complex logical chains as the solver improves.
Experimental Evaluation
SSP was evaluated across seven major benchmarks, categorized into General QA (Natural Questions, TriviaQA, PopQA) and Multi-Hop QA (HotpotQA, 2WikiMultiHopQA, MuSiQue, Bamboogle). The results demonstrate that SSP consistently improves performance across various model sizes and families.
Key Results
- Zero-Supervision Transformation: Applying SSP to
Qwen2.5-7B-Base(a model without instruction tuning) resulted in a massive 26.4-point jump in average performance (from 22.3 to 48.7). - Surpassing Specialized Agents: SSP-trained models consistently outperformed specialized open-source agents such as
Search-R1andZeroSearchacross nearly all benchmarks. - Scalability: The method showed consistent gains when applied to larger models (14B and 32B) and different architectures like LLaMA-3.1.
Key Insights
- Co-evolution is Mandatory: Ablation studies revealed that training only the solver leads to overfitting, while training only the proposer fails to enhance complex reasoning. Peak performance is only achieved when both roles evolve together.
- RAG as a Truth Anchor: In the absence of a fixed game engine (like in Chess or Go), external search results and RAG verification provide the necessary "ground truth" to prevent reward hacking and ensure the agent remains grounded in reality.
- Adaptive Curriculum: The adversarial nature of the game naturally scales task difficulty. As the solver becomes more proficient, the proposer is incentivized to find more challenging facts, creating an automated learning path.
Conclusion and Future Work
Search Self-play (SSP) represents a significant step toward autonomous agent training. By leveraging search engines as a source of truth and using a proposer-solver game to generate data, the framework pushes the boundaries of agentic reasoning without human supervision. Future work will explore lifting search step constraints and applying the SSP paradigm to other agentic domains such as software engineering and GUI navigation.
Summary updated