Preprint
Large Language Models

RL for Search-Efficient LLMs

Zeyang Sha, Shiwen Cui, Weiqiang Wang
May 12, 2025arXiv.org9 citations

9

Citations

0

Influential Citations

arXiv.org

Venue

2025

Year

Abstract

Recent advancements in Large Language Models(LLMs) have demonstrated their capabilities not only in reasoning but also in invoking external tools, particularly search engines. However, teaching models to discern when to invoke search and when to rely on their internal knowledge remains a significant challenge. Existing reinforcement learning approaches often lead to redundant search behaviors, resulting in inefficiencies and over-cost. In this paper, we propose SEM, a novel post-training reinforcement learning framework that explicitly trains LLMs to optimize search usage. By constructing a balanced dataset combining MuSiQue and MMLU, we create scenarios where the model must learn to distinguish between questions it can answer directly and those requiring external retrieval. We design a structured reasoning template and employ Group Relative Policy Optimization(GRPO) to post-train the model's search behaviors. Our reward function encourages accurate answering without unnecessary search while promoting effective retrieval when needed. Experimental results demonstrate that our method significantly reduces redundant search operations while maintaining or improving answer accuracy across multiple challenging benchmarks. This framework advances the model's reasoning efficiency and extends its capability to judiciously leverage external knowledge.

Analysis

Why This Paper Matters

As LLMs increasingly integrate with external tools like search engines, a critical challenge is teaching models when to use these tools versus relying on internal knowledge. Naive reinforcement learning approaches often lead to excessive and redundant search calls, increasing latency and cost. This paper addresses a practical pain point for AI practitioners: how to make tool use efficient without sacrificing accuracy.

The proposed SEM framework is timely because it targets the post-training phase, where models can be fine-tuned to develop more judicious tool-use policies. By explicitly optimizing search behavior, SEM moves beyond generic RL fine-tuning and offers a more controlled approach to balancing internal reasoning and external retrieval.

Technical Contributions

  • Balanced Dataset Construction: Combines MuSiQue (multi-hop QA requiring retrieval) and MMLU (knowledge-based QA answerable from internal knowledge) to create a training set that teaches the model to differentiate between questions needing search and those that do not.
  • Structured Reasoning Template: Provides a consistent format for the model's reasoning process, which likely helps stabilize RL training and makes search decisions more interpretable.
  • GRPO-based Post-Training: Uses Group Relative Policy Optimization, a variant of PPO that is more sample-efficient and stable, to fine-tune the model's search behavior.
  • Reward Function Design: The reward function is crafted to penalize unnecessary searches (encouraging direct answers when possible) and reward effective retrieval (when search is needed), directly aligning with the goal of search efficiency.

Results

The paper reports that SEM significantly reduces redundant search operations while maintaining or improving answer accuracy across multiple challenging benchmarks. However, the abstract does not provide specific numerical metrics or benchmark names, which limits the ability to quantify the improvements. The key result is that the model learns to avoid unnecessary searches without sacrificing correctness, which is a promising outcome for cost reduction in production systems.

Significance

This work has broad implications for the deployment of LLMs in real-world applications where tool use is common. By reducing redundant search calls, SEM can lower operational costs and latency, making LLM-based agents more scalable and efficient. It also contributes to the growing body of research on RL for tool use, offering a framework that can be adapted to other external tools beyond search. The emphasis on balanced training data and reward shaping provides a blueprint for teaching models to make better decisions about when to leverage external resources, which is a key step toward more autonomous and efficient AI systems.