Skip to content

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

optionalextendedfrontierpaperrubric 8/122025 · EMNLP 2025 · ~25 min

Pengcheng Jiang, Xueqiang Xu, Jiacheng Lin, …, Jiawei Han

Read first: Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learning · Proximal Policy Optimization (PPO)

Status

TL;DR. s3 separates the search agent from the answer writer. A 7B searcher is trained with PPO to issue queries, keep the useful documents and decide when to stop. A frozen generator then answers from the kept documents. The reward is the generator’s accuracy gain over naive top-k RAG, and training converges in about 20 PPO steps (2.4k questions). The name stands for the search, select and serve loop.

Search-R1 trains one model to both search and answer, so its reward mixes retrieval quality with answer phrasing. s3 freezes the generator G\mathcal{G} and trains only the searcher πs3\pi_{\text{s3}}. The loop (§3.1) is:

  1. Start with q0=Qq_0 = Q and retrieve the top-kk documents with E5 over 2018 Wikipedia (“begin with search”).
  2. In each turn, the searcher selects useful documents in <important_info>, says whether to stop in <search_complete>, and otherwise writes a new <query>.
  3. The union of selected documents, Ds3\mathcal{D}_{\text{s3}}, is served to G\mathcal{G}, which answers.

The reward is Gain Beyond RAG,

GBR(Q)=Acc(G(Q,Ds3),A)−Acc(G(Q,DRAG),A),\mathrm{GBR}(Q)=\mathrm{Acc}\big(\mathcal{G}(Q,\mathcal{D}_{\text{s3}}),A\big)-\mathrm{Acc}\big(\mathcal{G}(Q,\mathcal{D}_{\text{RAG}}),A\big),

where Acc is generation accuracy (GenAcc): an answer is correct if a normalised gold span appears in it or if an LLM judge says it is correct. Training is restricted to questions where naive RAG fails, so in practice the reward is just whether s3’s documents let the generator answer. PPO runs on 5 A100s with batch 120; the default configuration retrieves 8 documents per turn, keeps at most 3, and runs 3 turns.

Paper-reported (arXiv v2, averages over three runs, GenAcc). On six general QA sets with Claude-3-Haiku as the generator, s3 averages 58.9 vs 57.8 for documents retrieved by Search-R1-7B and 54.7 for IRCoT-14B (Table 1). The §5 prose states +1.5 and +4.6 for these gaps, which do not match the v2 table. On five MIRAGE medical QA sets with a Wikipedia + PubMed + textbook corpus, s3 reaches 76.6 without any medical training data (Table 2). Reward ablations (Table 5, general / medical): GenAcc 58.9 / 76.6, LLM judge 59.6 / 77.3, span match 57.1 / 74.3, EM 50.5 / 70.3. Removing document selection lowers accuracy on four of six datasets and multiplies input tokens by up to about 4; removing “begin with search” causes a significant drop (Figure 6). Training takes 114 minutes vs 3,780 for Search-R1 on the same hardware (Table 4), excluding the cost of precomputing naive-RAG accuracy to filter the training set. The authors list the dependence on a capable frozen generator and the cost of LLM-based rewards as limitations.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    The s3 reward is GBR(Q) = Acc(G(Q, D_s3), A) − Acc(G(Q, D_RAG), A), where Acc is binary generation accuracy. List the values GBR can take in general, then show what it reduces to on the training set the authors actually use, and explain why "begin with search" (q0 = Q) matters for this reward.

    What a strong answer covers
    • In general Acc is 0 or 1 for both terms, so GBR is in the set of −1, 0 and +1: +1 when s3's documents fix a RAG failure, −1 when they break a RAG success, 0 otherwise.
    • Training keeps only questions where naive RAG already fails (Acc_RAG = 0; 169,615 NQ + HotpotQA questions reduced to 70,286), so GBR = Acc(G(Q, D_s3)) and is 0 or 1: an outcome reward on hard questions, with no −1 case seen in training.
    • Because the baseline term is precomputed and constant per question, it only shifts rewards; with PPO and a critic, such a shift mainly changes the value targets, not the ranking of trajectories.
    • q0 = Q makes the first retrieval identical to naive RAG, so s3 starts from the same documents and can only add or filter; the paper reports a significant drop when this is removed.
  2. Mechanism

    Explain what is trained and what is frozen in s3, what the policy's actions are, and why the authors argue that training only the searcher can beat end-to-end training such as Search-R1. What does this assume about the generator?

    What a strong answer covers
    • Trained: a Qwen2.5-7B-Instruct searcher with PPO. Frozen: the E5 retriever, the 2018 Wikipedia corpus and the generator (Qwen2.5-14B-Instruct in training; Qwen2.5-7B/14B or Claude-3-Haiku at test).
    • Actions: write a query, select a subset of the retrieved documents (important_info tags), and decide to stop (search_complete); the union of selected documents is passed to the generator.
    • Credit flows only through the documents the generator sees, so the reward measures retrieval usefulness rather than answer style; any generator can be plugged in at test time.
    • It assumes the generator can use better context. The authors list this dependence as a limitation; a weak generator would hide retrieval gains, and Search-R1's end-to-end policy (52.7 GenAcc with Qwen2.5-7B as both searcher and generator) is a different system, not a direct ablation.
  3. Critique

    The title says you do not need much data, and Table 4 reports about 33 times less training time than Search-R1. Recompute the training-time ratio, list the costs it leaves out, and check the text's claimed +1.5 and +4.6 average gains against Table 1.

    What a strong answer covers
    • Table 4: s3 20 steps × 5.7 min = 114 min; Search-R1 about 2,100 steps × 1.8 min = 3,780 min; 3,780 / 114 ≈ 33.
    • Left out: running the 14B generator on all 169,615 training questions to precompute the RAG baseline and filter to 70,286, the frozen generator's inference during every reward computation (counted per step but not as data), and the 2.4k figure counts only examples seen in 20 steps of batch 120.
    • Table 1 (Claude-3-Haiku generator): s3 58.9 vs Search-R1-7B (Ret) 57.8 is +1.1, and vs IRCoT-14B 54.7 is +4.2, not +1.5 and +4.6 as stated in §5; other generator blocks also give different gaps. Quote the table, not the prose.
    • Per dataset, Search-R1-7B (Ret) is higher on MuSiQue (29.3 vs 26.2 with Haiku), so the "consistently outperforms" claim holds for averages only. Results are averaged over three runs.

Done with this page?

Status