Papers
Topics
Authors
Recent
Search
2000 character limit reached

AI-SearchPlanner: Modular RL for Efficient QA

Updated 31 December 2025
  • AI-SearchPlanner is a modular reinforcement learning framework that integrates a trainable search planner with a frozen QA generator to optimize both accuracy and cost.
  • The framework employs a Pareto-optimal, multi-objective reinforcement learning approach with dual-reward alignment to balance outcome performance and process efficiency.
  • Empirical results demonstrate significant accuracy improvements and reduced search turns across diverse datasets, highlighting its robust, plug-and-play deployment.

AI-SearchPlanner Framework

AI-SearchPlanner defines a principled, modular reinforcement learning framework for agentic, cost-sensitive information-seeking that integrates a small, trainable LLM as a search planner with a large, frozen LLM generator for high-quality question answering. By structurally decoupling search planning from answer generation and by formulating search trajectory optimization as a Pareto-optimal, multi-objective RL problem, AI-SearchPlanner achieves high answer accuracy and substantially reduced search/inference cost compared to prior end-to-end RL agents. The framework introduces dual-reward alignment (outcome and process) to govern planner behavior, modular interaction protocols, and generalizes robustly across frozen QA backends and data domains (Mei et al., 28 Aug 2025).

1. Architecture and System Workflow

AI-SearchPlanner operationalizes search-based QA using two distinct modules:

  • Search Planner (LLMₚₗₐₙ): A lightweight, trainable LLM responsible solely for planning search actions. At each timestep tt, it decides between issuing subqueries to a search engine S()S(\cdot) or terminating and invoking the generator.
  • QA Generator (LLMgₑₙ): A large, frozen LLM (e.g., Qwen3-32b, GPT-4) tasked with producing the final answer, conditioned on the entire accumulated trajectory, including previous queries, retrieved snippets, and planner reasoning.

Block-level Dataflow:

  1. Input question qq \rightarrow LLMₚₗₐₙ.
  2. At turn tt, LLMₚₗₐₙ emits either a "search" action with subqueries {sq}t\{sq\}^t \rightarrow search engine S({sq}t)S(\{sq\}^t) \rightarrow retrieved docs appended to trajectory context TT, or a "call_answer_llm" that packs TT into prompt PtP_t \rightarrow LLMgₑₙ(PtP_t) S()S(\cdot)0 answer S()S(\cdot)1.
  3. Termination occurs when planner chooses "call_answer_llm".

By explicitly separating the reasoning-about-search from answer generation, AI-SearchPlanner avoids the performance tradeoffs associated with end-to-end training over both capacities (Mei et al., 28 Aug 2025).

2. Mathematical Formulation

Search planning in AI-SearchPlanner is formalized as a Markov decision process (MDP) with state S()S(\cdot)2 (full trajectory) and action S()S(\cdot)3 (search or terminate). The framework seeks to optimize two orthogonal objectives: end-to-end QA utility and search/inference cost.

Multi-Objective Reward Structure

  • Outcome Reward S()S(\cdot)4: Measures net QA gain from planning over baselines (direct inference S()S(\cdot)5, naive RAG S()S(\cdot)6):

S()S(\cdot)7

  • Process Reward S()S(\cdot)8: Rewards coherent, rational planning trajectories as evaluated by the frozen generator:

S()S(\cdot)9

  • Aggregate Utility Reward:

qq \rightarrow0

  • Cost Reward qq \rightarrow1: Penalizes long trajectories:

qq \rightarrow2

Where

qq \rightarrow3

qq \rightarrow4 and qq \rightarrow5 are hard upper bounds for turns and sub-queries.

Pareto Objective

The overall objective balances accuracy and cost via a scalar coefficient qq \rightarrow6: qq \rightarrow7 qq \rightarrow8 is a syntax correctness check (≥0). Sweeping qq \rightarrow9 generates a Pareto frontier of utility versus cost.

3. Reinforcement Learning Methods

AI-SearchPlanner optimizes the planner policy using Proximal Policy Optimization (PPO), structured as follows:

  • Surrogate objective:

tt0

where tt1, and tt2 is the advantage computed with respect to tt3.

  • Dual-Reward Alignment:

The planner receives feedback on both tt4 and tt5, which ensures that trajectories are effective for QA and maintain rational step-wise planning.

  • Loss Masking:

Environmental tokens (retrieved docs) are masked out, propagating gradient only through planner-generated tokens, stabilizing RL updates.

4. Model Integration and Deployment Protocol

AI-SearchPlanner achieves decoupled, modular integration via the following protocols:

  • Tool-Call API: Planner emits JSON "tool_call" objects: {sq}t\{sq\}^t \rightarrow2
  • Prompt Engineering: Each planner turn appends reasoning, external search results, and tool calls to the context. Termination triggers packing the full trajectory into a final prompt for the generator.
  • Plug-and-Play QA Model: Post-training, LLMₚₗₐₙ can be paired with different frozen generators (e.g., Qwen3-32b, Deepseek-V3, Deepseek-R1) without retraining, yielding robust generalization.

5. Empirical Results and Ablations

Comprehensive experiments demonstrate superior accuracy and efficiency against contemporary agents:

Dataset Baseline Accuracy Search Turns AI-SearchPlanner Accuracy Search Turns
Wikipedia (Qwen3) Naive RAG 0.539 0.597 2.26
Wikipedia (Qwen3) Search-R1 0.519 0.597 2.26
Web QA (WebShaper) RAG 0.188 0.366
Web QA (WebWalker) RAG 0.297 0.375
Generator transfer Deepseek-V3 0.610
Generator transfer Deepseek-R1 0.648

Ablation studies highlight individual contributions:

  • Removing tt6: −15.2% accuracy
  • Removing tt7: −1.5%
  • Freezing the planner (no RL): −8.4%
  • Increasing tt8 (cost weight) traces a Pareto frontier: low tt9 gives high accuracy/low cost; very large {sq}t\{sq\}^t \rightarrow0 drives to 1 search turn but below baseline accuracy.

6. Key Principles and Practical Implications

  • Modularity and Decoupling: Specializing planner and generator roles eliminates catastrophic trade-offs and facilitates independent model upgrades for QA (Mei et al., 28 Aug 2025).
  • Fine-Grained Reward Alignment: Disentangling outcome and process rewards suppresses degenerate search behaviors (indefinite searching, premature termination).
  • Parameterizable Cost-Sensitivity: Exposing {sq}t\{sq\}^t \rightarrow1 for cost-utility tuning allows deployment in latency- or resource-constrained production, granting direct operator control over search behavior.
  • Seamless Integration: The JSON tool-call API, prompt templates for reasoning trajectories, and selective loss masking make the framework deployable in existing LLM+search infrastructures.

AI-SearchPlanner thus defines a generalizable recipe for high-accuracy, cost-aware search agents: train only the planner module under multi-objective RL, freeze the answer generator, and maintain a clean, composable system architecture. This results in enhanced accuracy, reduced latency/cost, and robust generalization across answer models and domains (Mei et al., 28 Aug 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to AI-SearchPlanner Framework.