Abstract
We investigate the potential of large language models (LLMs) to serve as efficient simulators for agentic search tasks in reinforcement learning (RL), thereby reducing dependence on costly interactions with external search engines. To this end, we first quantify the intrinsic search capability of LLMs via structured prompting and repeated sampling, which we term Self-Search. Our results reveal that LLMs exhibit strong scaling behavior with respect to the inference budget, achieving high pass@k on question-answering benchmarks, including the challenging BrowseComp task. Building on these observations, we introduce Self-Search RL (SSRL), which enhances LLMs' Self-Search capability through format-based and rule-based rewards. SSRL enables models to iteratively refine their knowledge utilization internally, without requiring access to external tools. Empirical evaluations demonstrate that SSRL-trained policy models provide a cost-effective and stable environment for search-driven RL training, reducing reliance on external search engines and facilitating robust sim-to-real transfer. Our findings highlight the potential of LLMs to support more scalable RL agent training.
1. Introduction
Training "agentic" Large Language Models (LLMs)—models capable of utilizing tools like search engines to solve complex queries—typically requires Reinforcement Learning (RL). However, standard RL training involves thousands of rollouts. When each rollout requires an external search engine API call (e.g., Google or Bing), the process becomes prohibitively expensive, slow, and unstable due to rate limits and the dynamic nature of web content.
To address these challenges, we propose Self-Search Reinforcement Learning (SSRL). This framework allows an LLM to act as its own search simulator, eliciting latent world knowledge to "hallucinate" search results during training. This approach eliminates the need for external APIs during the training loop while producing models that generalize effectively to real-world search engines at inference time.
2. The Self-Search Framework
The core of our approach is the Self-Search mechanism. In this paradigm, the model generates a single trajectory containing its internal reasoning, a search query, the "retrieved" information (generated by the model itself), and a final answer. This process is structured using specific tags: <think>, <search>, <information>, and <answer>.
By simulating the search process internally, the model can practice the iterative cycle of querying and reasoning without external dependencies. Our analysis shows that LLMs possess significant latent knowledge that can be effectively elicited through this structured prompting.
3. Methodology: SSRL Training
To refine the Self-Search capability, we developed the SSRL training pipeline, which utilizes several key components:
- Format-Based Rewards: The model is incentivized to strictly adhere to the multi-step search-and-reasoning structure.
- Outcome-Based Rewards: Rewards are provided for reaching the correct final answer, ensuring the simulated search leads to factual accuracy.
- Information Token Masking: A critical innovation where tokens within the
<information>tags (the simulated results) are masked during RL updates. This prevents the model from simply memorizing its own generated text and instead forces it to learn the logic of how to query and reason. - Group Relative Policy Optimization (GRPO): We utilize GRPO to stabilize training and improve efficiency by removing the need for a separate critic model.
4. Experimental Results
We evaluated SSRL across seven benchmarks, including factual QA (TriviaQA, SimpleQA) and multi-hop reasoning (HotpotQA, MuSiQue). A key focus was BrowseComp, a new benchmark requiring the synthesis of information from restrictive web sources.
Key Findings
- Test-Time Scaling: As shown in the scaling plots, performance (ACC%) improves significantly as the inference budget increases (pass@k), demonstrating that LLMs can effectively serve as world simulators when given sufficient sampling opportunities.
- Sim-to-Real Transfer: This is our most significant result. Models trained entirely on internal "simulated" search results actually perform better when connected to real search engines at inference time. For example, SSRL-trained Llama-3.1-8B-Instruct achieved an average Exact Match (EM) of 43.1%, outperforming baselines like Search-R1 (37.1%).
- Efficiency: SSRL achieved a 5.53x reduction in training time compared to methods requiring external model calls, as it avoids the latency of external APIs.
- Model Priors: While Qwen models are often superior in technical tasks, Llama-3.1 models exhibited stronger world knowledge priors, making them particularly effective in the Self-Search setting.
5. Conclusion and Future Work
SSRL demonstrates that LLMs can serve as their own simulators for complex agentic tasks. By training on internal knowledge, models learn the fundamental skills of searching and reasoning that transfer robustly to real-world environments.
However, limitations remain. The simulator is bounded by the model's training cutoff, making it less effective for post-training events. Future work will explore integrating dynamic updates to the model's internal world model to keep the simulator current. Our findings suggest that SSRL is a scalable path forward for training more capable and efficient RL agents.
Summary updated