Skip to content
AI.info

Research

AdaSearch: Balancing Parametric Knowledge and Search in Large Language Models via Reinforcement Learning

AdaSearch: Balancing Parametric Knowledge and Search in Large Language Models via Reinforcement Learning Overview Research area: Natural Language Processing — specifically reinforcement learning (RL)

arXiv
2512.16883
Published
2025-12-18
Authors
Tzu-Han Lin, Wei-Lin Chen, Chen-An Li, Hung-yi Lee, Yun-Nung Chen, Yu Meng

AI summary

AdaSearch: Balancing Parametric Knowledge and Search in Large Language Models via Reinforcement Learning

Overview

Research area: Natural Language Processing — specifically reinforcement learning (RL) for tool-integrated large language models, retrieval-augmented generation, and adaptive search agents.

Technical level: Intermediate. The paper assumes familiarity with retrieval-augmented generation, reinforcement learning with policy gradients (GRPO), and standard QA benchmarks, but its central idea — separating "can I answer this myself?" from "how do I answer this?" — is explained with minimal formalism.

Scope in one sentence: This paper proposes AdaSearch, a two-stage, outcome-driven RL framework that trains LLMs to explicitly decide whether a question requires an external search call or can be answered from parametric knowledge alone.

What This Paper Is About

Search agents built by RL tend to over-search: they call a search engine for nearly every query, which inflates cost and exposes the model to noisy or malicious retrieved content. Prior fixes penalize search-call counts through hand-tuned reward shaping, but this conflates necessary and unnecessary searches and leaves the decision to search implicit and hard to interpret.

This paper reframes the evaluation of search agents with an F1-based decision metric (F1_dec) and proposes AdaSearch, which learns to make the search/no-search decision explicitly by reasoning, using only plain binary outcome rewards rather than engineered penalties. The goal is to cut unnecessary search while giving up little question-answering accuracy relative to an always-search agent.

Key Contributions

  1. AdaSearch framework. A simple two-stage RL framework that disentangles problem solving from the decision of whether to invoke search, so both abilities can be optimized with plain outcome rewards.

  2. Elimination of reward engineering. AdaSearch removes the need for complex reward shaping around tool-call counts, and outperforms reward-shaping methods on both QA performance and search-decision F1, while reducing unnecessary search relative to Search-R1 — with consistent gains across model sizes and families.

  3. A fine-grained decision metric. The paper revisits search-agent evaluation with F1_dec, a binary F1 score treating "search not needed" as the positive class, with oracle labels derived from whether the evaluated model can solve each problem with parametric knowledge alone. The authors note this metric should only be compared among methods post-trained from the same base model.

  4. Interpretability and safety. AdaSearch yields explicit decision rationales, which the authors argue improves transparency, and reduces (though does not eliminate) unnecessary external interactions that carry privacy and safety risks.

Main Findings

  • Vanilla search agents ignore their own knowledge. Re-evaluating the official Search-R1 checkpoint on Qwen2.5-7B-Base, the paper reports EM 39.4 but F1_dec of 0.0, because the model invokes search for every query (true positives 0.0, true negatives 72.4, false positives 0.0, false negatives 27.6). RL trained without search access reaches F1_dec 27.6 but only EM 27.6.

  • AdaSearch makes the best search decisions. Under the main 3B Instruct experiments, AdaSearch averages F1_dec 54.0 with EM 36.0 on Qwen2.5-3B-Instruct, and F1_dec 60.6 with EM 39.0 on Llama-3.2-3B-Instruct. Search-R1 reaches only F1_dec 0.1 and 2.1 respectively, despite averaging higher EM (38.1 and 40.7). The paper reports a 54% to 60% relative gain in F1_dec over Search-R1.

  • Reward shaping is beaten on both axes. AdaSearch outperforms Naive Shaping, Decision Shaping, and IKEA on both EM and F1_dec, particularly on multi-hop QA. Naive Shaping shows the lowest false negative rate but substantially higher false positive rates for both models, indicating it causes the model to underuse search.

  • Precision and recall. Averaged over benchmarks, AdaSearch achieves precision 45.1 and recall 68.8 on Qwen2.5-3B-Instruct, and precision 53.0 and recall 71.4 on Llama-3.2-3B-Instruct — precision on par with Decision Shaping and IKEA, with noticeably higher recall.

  • Fewer searches. AdaSearch reduces unnecessary search usage by 34–38% compared to Search-R1. It uses slightly more searches than Naive Shaping and IKEA, which the authors attribute to not directly optimizing for minimizing tool calls.

  • Two-stage beats joint optimization. The end-to-end variant AdaSearch-E2E consistently underperforms the two-stage AdaSearch (for example, 51.3 versus 54.0 F1_dec on Qwen2.5-3B-Instruct).

  • RL beats SFT for the decision stage. The SFT variant AdaSearch-SFT underperforms AdaSearch on Llama across both metrics, and the larger F1_dec gap on MuSiQue and Bamboogle suggests reasoning before assessment matters for out-of-distribution generalization.

  • Scaling. On Qwen2.5-7B-Instruct, AdaSearch boosts F1_dec by roughly 60% over Search-R1; relative to Naive Shaping it improves EM by 2.1% and F1_dec by 4.2%.

  • Labeling hyperparameters. Increasing K (the number of sampled responses used to estimate the solve rate) improves both F1_dec and EM; even K = 1 performs well at 35.1% EM and 52.1% F1_dec. The threshold ρ has limited effect when ρ ≤ 0.5, aside from an EM drop at ρ = 0.3; higher ρ raises EM but lowers F1_dec because it encourages more no assessments and thus more search.

  • Stage 2 does not degrade problem solving. The learning curves show stage 1 matches the single-task baselines Search-R1 and RL w/o Search on both search-based and parametric problem solving, and stage 2 maintains that performance while decision quality rises.

Methodology in Plain English

The setup follows prior work: a policy LLM interacts with a search engine to generate a trajectory, and is trained with GRPO to maximize a reward while staying close to a reference policy.

Stage 1 — problem solving. The same question is augmented with two different system prompts: a parametric-knowledge prompt (s_param) that forbids search and forces the model to use internal knowledge, and a search prompt (s_search) that allows interaction with the search engine. For each question the model generates two separate groups of rollouts, one per prompt, and each gets a group-relative advantage. The reward is simply binary correctness — whether the extracted final answer matches the gold answer under exact match. No penalty terms, no call-count shaping.

Stage 2 — decision making. Before this stage, the paper labels each training question using the stage-1 policy with the parametric prompt: it samples K responses, computes a solve rate p using substring exact match (SubEM, a more tolerant check than EM because the goal is to estimate solvability rather than answer formatting), and labels the question yes if p ≥ ρ and no otherwise. With those labels, the model is trained under a decision-making prompt (s_decision) that requires explicit reasoning before emitting the decision. The stage-2 reward is the same simple binary outcome reward as stage 1.

Inference. The model first decides, with explicit reasoning, whether the question can be answered from self-knowledge. If yes, it answers under the parametric prompt; if no, it switches to the search prompt and interleaves reasoning with search. The stage-1 history is not prepended to stage 2.

Experimental setup. Experiments use Qwen2.5 and Llama-3.2, with main results on the 3B Instruct variants. Search uses E5 as the retriever over a 2018 Wikipedia dump, returning the top-3 documents per query, with at most three search calls. Training uses a difficulty-balanced set of 8,192 samples, with a validation set built the same way for checkpoint selection.

Why This Matters

Impact on research. The paper argues that call-count-based metrics conflate necessary and unnecessary search, and that penalizing tool use produces under-search as readily as it fixes over-search. By reframing the problem as binary decision classification with oracle labels derived from the model's own parametric solvability, it offers a cleaner target for RL and a metric (F1_dec) that directly measures knowledge-boundary awareness rather than tool frugality.

Real-world applications:

  • High-stakes question answering. The paper names finance and medical QA as domains where users must understand why an agent relied on internal knowledge versus consulting external information; AdaSearch produces explicit decision rationales.

  • Cost-sensitive deployments. Reducing unnecessary search calls by 34–38% versus Search-R1 lowers retrieval costs in production settings, though the paper does not report monetary figures.

  • Security and privacy. Fewer external calls means less exposure to noisy or malicious retrieved content and fewer opportunities for sensitive data to leak through queries.

  • Auditable agents. Explicit reasoning before the decision makes agent behavior easier for users and operators to inspect and debug.

Industry relevance. The method's appeal is operational: it removes the manual tuning loop that reward-shaping approaches require, works across both Qwen and Llama families, and holds up when scaled from 3B to 7B parameters.

Future Directions

  • Scaling beyond 7B. Due to compute constraints, the authors only evaluated models up to 7B parameters and explicitly call for testing on larger architectures such as 14B and 32B.

  • Theoretical treatment of label noise. Stage-2 decision labels derive from the stage-1 model's empirical solve rate and therefore carry sampling noise. Increasing K gives more reliable estimates, but the paper provides no formal analysis of how this noise affects stage-2 training.

  • Combining with safety alignment. AdaSearch reduces safety risks by reducing unnecessary search interactions but does not eliminate them; integrating it with safety alignment techniques is named as future work.

  • Finer-grained uncertainty quantification. Despite its F1_dec advantage, the model still makes search-invocation errors, motivating decision quality improvements beyond binary outputs.

Target Audience

Researchers and graduate students working on LLM agents, reinforcement learning for tool use, retrieval-augmented generation, and adaptive retrieval. It is also useful for practitioners who deploy search-augmented assistants and care about retrieval cost, latency, safety, and auditability, and for anyone studying how models represent and act on the boundaries of their own knowledge.

Authors’ abstract

Equipping large language models (LLMs) with search engines via reinforcement learning (RL) promises effective search agents. However, adaptively balancing internal parametric knowledge with external search remains a challenge, as overreliance on search introduces unnecessary cost and risks exposure to noisy or malicious content, while relying solely on parametric knowledge risks hallucination. Prior efforts mitigate search overuse through tool-call reward shaping, which requires heavy reward engineering and conflates necessary and unnecessary search. To address these limitations, we revisit the evaluation of search agents through an F1-based decision metric, revealing that prior methods often overlook readily available parametric knowledge. Motivated by this, we propose AdaSearch, a simple two-stage, outcome-driven RL framework that disentangles problem-solving from the decision to search, making the decision process explicit and interpretable. Extensive experiments demonstrate that AdaSearch significantly improves search-decision quality and reduces unnecessary search calls, with only a small trade-off in QA accuracy relative to always-search.

Read the original paper