TL;DR
CoSearch is a new reinforcement learning (RL) framework that jointly trains a reasoning agent and a document ranker to work in tandem. By moving away from treating the search engine as a "fixed tool" and instead optimizing it alongside the agent, CoSearch achieves significant performance gains across seven QA benchmarks, proving that a self-adapting retrieval system is a critical ingredient for the next generation of AI search agents.
What Problem Does This Paper Address?
In the world of "Agentic Search," Large Language Models (LLMs) act as researchers: they reason about a question, issue search queries, read the results, and repeat the process until they find an answer. While recent breakthroughs like Search-R1 have improved the reasoning part of this loop using RL, they treat the search engine as a black box that never changes.
The authors discovered a massive "retrieval bottleneck." In a preliminary experiment, they replaced the standard search engine with an "Oracle" (which always puts the correct answer at the top). This simple change boosted performance by up to +26.8%. This suggests that even the smartest reasoning agents are being held back by mediocre search results. The challenge, however, is that training a search ranker via RL is notoriously difficult because the agent’s queries change constantly across different reasoning paths, making standard optimization techniques unstable.
Methods
CoSearch introduces a two-stage retrieval system where a fixed dense retriever pulls a large set of candidates, and a trainable generative ranker selects the best few for the agent to read.
To train this system, the authors utilize Group Relative Policy Optimization (GRPO), but they had to solve two major technical hurdles:
- Semantic Grouping: GRPO requires comparing multiple responses to the same prompt. In agentic search, every "rollout" might produce a slightly different sub-query (e.g., "Who is the CEO of Apple?" vs. "Apple Inc CEO name"). The authors developed a strategy to cluster these semantically similar sub-queries using token-level F1 similarity, creating valid groups for RL without needing expensive additional rollouts.
- Composite Reward: The ranker receives a two-part reward. It gets immediate feedback based on whether it ranked a "gold" document highly (Hit@k) and long-term feedback based on whether the main agent actually got the final answer right (Trajectory-level reward). This ensures the ranker prioritizes both precision and downstream utility.
Datasets
The model was trained on a mixture of 51,200 questions from:
- Natural Questions (NQ)
- HotpotQA
- Musique
- 2WikiMultiHopQA
Evaluation was performed across seven benchmarks, split into General QA (NQ, TriviaQA, PopQA) and Multi-Hop QA (HotpotQA, 2Wiki, Musique, Bamboogle).
Key Insights and Ideas
- Tools Should Not Be Static: The most significant insight is that "tool-use" in LLMs shouldn't be a one-way street. If the tool (the ranker) adapts to the specific quirks and needs of the agent, the entire system becomes more robust.
- Closing the Oracle Gap: CoSearch successfully closed about 27% of the performance gap between standard fixed retrieval and a perfect "Oracle" retriever.
- Search Efficiency: Better ranking doesn't just lead to better answers; it leads to faster ones. CoSearch and the Oracle retriever required significantly fewer search turns (averaging ~1.67 turns) compared to a fixed ranker (~2.62 turns), as shown in the paper's analysis.
- The "Ragged" Trajectory Problem: The semantic grouping strategy is a clever way to handle the non-linear nature of agentic reasoning. By treating similar queries as a group, the model avoids the "exponential blowup" of trying to sample every possible reasoning path.
Key Results
CoSearch consistently outperformed strong baselines, including the recent Search-R1.
- 7B Agent: Achieved a +6.6% relative F1 improvement over Search-R1.
- 3B Agent: Saw even larger gains, with a +10.8% relative F1 improvement, suggesting that weaker reasoning agents benefit even more from a high-quality, adaptive search system.
- Ablation Success: Removing the semantic grouping strategy caused the largest drop in performance (3.3%), confirming it is vital for stable RL training.
Limitations and Future Work
- Model Scale Constraints: The authors found that scaling the ranker down to 3B parameters caused the training to diverge. The ranker needs to be at least 7B to reliably handle the complex task of permuting 50 candidate documents.
- Shared vs. Separate Backbones: Using a single model for both reasoning and ranking actually hurt performance due to conflicting gradients. Currently, the system requires two separate model instances.
- Rule-Based Rewards: While effective, the current rewards rely on "gold" answers being present in the text. Future work could explore using LLMs to judge the relevance of documents that help with reasoning but don't explicitly contain the final answer.
Summary updated