← Latest papers
💬 NLP

COSEARCH: Joint Training of Reasoning and Document Ranking via Reinforcement Learning for Agentic Search

The paper proposes CoSearch, a framework that jointly trains a multi-step reasoning agent and a generative document ranking model via Group Relative Policy Optimization (GRPO) with semantic grouping and composite rewards, demonstrating that optimizing both components together significantly outperforms existing approaches that treat retrieval as a fixed tool.

Original authors: Hansi Zeng, Liam Collins, Bhuvesh Kumar, Neil Shah, Hamed Zamani

Published 2026-04-21
📖 4 min read☕ Coffee break read

Original authors: Hansi Zeng, Liam Collins, Bhuvesh Kumar, Neil Shah, Hamed Zamani

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to solve a very tricky mystery, like "Who was the first person to climb Mount Everest and then swim the English Channel?" You have a brilliant detective (the AI Agent) who is great at thinking, connecting dots, and forming theories. However, the detective doesn't know everything; they need to call a librarian (the Search Engine) to find the right books to read.

The Problem: The Detective is Smart, but the Librarian is Clueless

In most current AI systems, the detective is trained to get smarter at asking questions and solving puzzles. But the librarian is stuck in a rut. The librarian is a "fixed tool"—they always use the same old, rigid way to find books.

The authors of this paper realized something important: The detective is often doing a great job, but the librarian is handing them the wrong books.

  • The Analogy: Imagine the detective asks, "Show me books about 19th-century mountain climbers." The librarian, being a bit slow, hands them a book about modern mountain climbers or a book about swimming. The detective then has to guess the answer based on bad information, or they have to ask again and again, wasting time.
  • The Experiment: The researchers tested what would happen if they magically gave the detective the perfect books (the "Oracle"). The detective's performance jumped by nearly 27%. This proved that the bottleneck wasn't the detective's brain; it was the librarian's ability to find the right stuff.

The Solution: COSEARCH (Co-Training the Team)

The paper introduces COSEARCH, a new way to train AI. Instead of just training the detective and leaving the librarian alone, they train both of them together at the same time.

Think of it like a dance partnership.

  • Old Way: You teach the dancer (the AI) how to dance perfectly, but you keep the music (the search results) static and unchangeable. If the music is off-beat, the dancer looks bad.
  • COSEARCH Way: You teach the dancer and the DJ (the librarian/ranker) to practice together. As the dancer gets better, the DJ learns to play the perfect song for that specific move. As the DJ gets better at picking songs, the dancer can perform even more complex routines.

How They Did It (The Magic Tricks)

Training them together is tricky because the detective asks different questions at every step. How do you teach the DJ which song was "good" if the detective changed the request halfway through?

The authors used two clever tricks:

  1. The "Similarity Clustering" Trick (Semantic Grouping):
    Imagine the detective asks 100 different questions during practice. Some are "Who climbed Everest?" and others are "Who was the first to scale Everest?" They mean the same thing but are phrased differently.
    Instead of treating every question as unique, COSEARCH groups similar questions together. It says, "Okay, these 10 questions are basically the same topic. Let's see how the librarian performed on this group of questions." This allows them to train the librarian efficiently without needing millions of extra practice runs.

  2. The "Double-Feedback" Scorecard (Composite Reward):
    How do you tell the librarian they did a good job?

    • Short-term feedback: "Did you put the most relevant book on the top shelf?" (This is the Relevance Reward).
    • Long-term feedback: "Did the detective solve the mystery using the books you gave them?" (This is the Trajectory Reward).
      COSEARCH combines these two. If the librarian puts the right book on the shelf, they get a point. If that book helps the detective solve the case, they get a bonus point. This teaches the librarian not just to find any relevant book, but to find the book that actually helps solve the problem.

The Results

When they tested this new team-up:

  • The AI solved significantly more questions correctly than before.
  • The "detective" needed fewer trips to the library to find the answer (it was more efficient).
  • Even with a smaller, less powerful detective (a 3-billion parameter model), the new system performed amazingly well because the librarian was so good at helping.

The Big Takeaway

For a long time, AI researchers thought, "If we just make the AI smarter, it will solve everything." This paper says, "No! You also need to make the tools the AI uses smarter."

By teaching the reasoning brain and the search tool to learn from each other simultaneously, we get a system that is much better at finding the truth, solving complex problems, and acting like a true "agent" rather than just a chatbot with a search bar. It's the difference between a detective with a messy, disorganized library and a detective with a super-intelligent, adaptive research assistant.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →