s3: You Don't Need That Much Data to Train a Search Agent via RL

Pengcheng Jiang, Xueqiang Xu, Jiacheng Lin, Jinfeng Xiao, Zifeng Wang, Jimeng Sun, Jiawei Han · DOI

Abstract

Retrieval-Augmented Generation (RAG) has become the standard for grounding Large Language Models (LLMs) in external knowledge. However, traditional approaches often suffer from a mismatch between retrieval metrics and generation quality, or require expensive end-to-end fine-tuning. This paper introduces s3 (Search-Select-Serve), a framework that decouples the searcher from the generator and trains it using Reinforcement Learning (RL). By employing a novel "Gain Beyond RAG" (GBR) reward, the s3 framework achieves state-of-the-art performance using only 2.4k training samples—a 70x reduction in data requirements compared to previous leading methods like Search-R1.

Introduction

While RAG systems are effective, current "agentic" implementations face two primary hurdles. First, there is a metric mismatch: many systems optimize for search-centric metrics like NDCG, which do not always correlate with the accuracy of the final generated answer. Second, entanglement in models like Search-R1 requires fine-tuning the entire model to handle both reasoning and searching simultaneously. This is not only computationally intensive but also makes the searcher incompatible with proprietary, "black-box" models such as GPT-4 or Claude.

The s3 framework addresses these issues by focusing on the utility of retrieved information for a downstream generator. The authors demonstrate that a lightweight, model-agnostic searcher can be trained to significantly improve system performance without modifying the weights of the generator LLM.

The s3 Framework: Search-Select-Serve

The core of s3 is a multi-turn loop designed to optimize the search process independently of the final generation task. The framework consists of three key components:

  1. Decoupled Architecture: A 7B searcher model is trained independently, while the generator model remains frozen. This modularity allows the searcher to be "plugged in" to any LLM, providing a flexible solution for various deployment scenarios.
  2. Multi-Turn Search-Select Loop: The agent iteratively generates search queries, retrieves documents, and selects the most relevant snippets. It continues this process until it determines it has sufficient information to answer the prompt.
  3. Gain Beyond RAG (GBR) Reward: Unlike standard RL rewards that prioritize document relevance, GBR rewards the searcher based on the marginal improvement in generation accuracy. If the searcher finds information that allows the generator to answer a question it previously failed (using a naive top-k baseline), the searcher receives a high reward.

To ensure a stable RL signal, the authors utilized Generation Accuracy (GenAcc). This hybrid metric moves beyond brittle "Exact Match" criteria by combining token-span matching with an LLM-based judge to verify semantic correctness.

Extreme Data Efficiency

One of the most striking findings of the s3 research is its data efficiency. While baseline models often require upwards of 170k training samples, s3 reached peak performance with just 2.4k samples. This was achieved by filtering for "hard" queries—those the generator could not solve with naive RAG—and applying the GBR reward to teach the model complex search behaviors, such as multi-hop reasoning, very rapidly.

This efficiency extends to computational resources as well; training s3 requires approximately 33x less wall-clock time than end-to-end approaches.

Experimental Results

General Benchmarks

s3 (7B) was evaluated across six major benchmarks, including Natural Questions (NQ), TriviaQA, PopQA, HotpotQA, 2wiki, and Musique. Despite being trained on 70x less data, s3 outperformed Search-R1-7B, proving that a specialized searcher is often more effective than an entangled reasoning-search model.

Zero-Shot Medical Transfer

To test the generalizability of the search skill, the authors evaluated s3 on the MIRAGE medical suite (including MedQA and PubMedQA). Despite being trained only on general-domain data (Wikipedia-based), s3 achieved the highest overall accuracy (76.6% average) among all tested retrieval-augmented methods. This suggests that the ability to search effectively is a transferable skill that transcends specific domain knowledge.

Inference Efficiency

Beyond accuracy, s3 offers significant operational benefits. The "Document Selection" step in the loop filters out irrelevant information, reducing input token usage by 2.6x to 4.2x compared to passing all retrieved documents to the generator. This makes the inference process both faster and more cost-effective.

Conclusion and Future Work

The s3 framework demonstrates that the majority of performance gains in agentic RAG come from optimizing the search process rather than the generator. By decoupling these components and using a utility-based RL reward, s3 achieves superior performance with minimal data and compute.

While the framework is highly effective, it is still bounded by the capabilities of the frozen generator; a weak generator may fail to utilize even perfectly retrieved context. Future research will explore how s3 scales with larger searcher models and its performance in non-English languages and highly technical specialized domains.

Summary updated

BibTeX
@misc{jiang2025s,
  author = {Pengcheng Jiang and Xueqiang Xu and Jiacheng Lin and Jinfeng Xiao and Zifeng Wang and Jimeng Sun and Jiawei Han},
  title = {{s3: You Don't Need That Much Data to Train a Search Agent via RL}},
  year = {2025},
  eprint = {2505.14146},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.14146},
}
Figure