CO-GRAFT: Attributing Reinforcement Learning Gains in Search Agents via Role-Level Policy Grafting

Ramraj Chandradevan, Sayontan Ghosh, Vinoth SelvendranarXiv 2026

It’s late, you’ve been staring at loss curves all day, and you finally see that sweet, sweet jump in Exact Match (EM) score after running Reinforcement Learning (RL) on your search agent. Success! But then the nagging question hits: Why did it get better? Did it actually learn to reason? Is it writing better search queries? Or did it just figure out how to format its answers so the evaluator doesn't penalize it?

The authors of CO-GRAFT wanted to stop guessing and start measuring.

TL;DR

CO-GRAFT is a framework that treats an RL-trained search agent like a cooperative game, "grafting" specific skills from the trained model onto its original, pre-RL version. By mixing and matching roles like reasoning, searching, and answering, the researchers can use game theory (Shapley values) to pinpoint exactly which functional improvements are driving those performance gains.

What Problem Does This Paper Address?

When we train LLM search agents with RL, we usually give them a "thumbs up" or "thumbs down" based on the final answer (outcome-based reward). This is great for boosting accuracy, but it’s a total black box. A search agent does a lot of things: it thinks (Reasoning), decides whether to search or stop (Decision), writes a query (Query), and finally extracts the answer (Answer).

If the score goes up by 20 points, we don't know if the model is actually "smarter" at reasoning or if it just learned a better "stop" condition. Traditional methods like ablations (turning one thing off) don't capture how these roles interact. We need a way to perform a "surgical" attribution of credit across the entire trajectory.

Methods

The researchers introduce CO-GRAFT (Co-Policy Grafting). They break down an agent's trajectory into four distinct functional roles:

  1. Reasoning (R): The internal "thought" tokens.
  2. Decision (D): The choice to either <search> or <answer>.
  3. Query (Q): The actual string sent to the search engine.
  4. Answer (A): The final extraction of the answer string.

They then create "Frankenstein" rollouts. Imagine an RL-trained model (the "Donor") and its pre-RL initialization (the "Recipient"). CO-GRAFT evaluates all $2^4 = 16$ possible combinations of these roles. For example, you might have a trajectory where the pre-RL model does the reasoning and searching, but the RL model makes the final decision and formats the answer.

Figure 1: Overview of the CO-GRAFT framework for attributing RL performance gains. (a) A search-agent trajectory partitioned into four roles: reasoning R, decision D, query Q, and answer A; gray passages are returned by the environment. (b) A grafted trajectory for S = {R, A}: the RL agent (filled) generates R and A, while its pre-RL model (outlined) generates D and Q during live retrieval. (c) The 4 × 4 grid of all 16 role combinations, indexed by the roles owned by the RL agent (row ∪column) while the pre-RL model generates the remaining roles: columns add search roles (D, Q) and rows add reasoning and answer roles (R, A), progressing from ∅(top left, pre-RL model alone) to {R, D, Q, A} (bottom right, RL agent alone). Each cell reports the mean EM (%) of the grafted policy on the same 1,000 evaluation questions (darker shading indicates higher EM), alongside each role’s Shapley percentage share of total gain v(N) −v(∅) for Qwen2.5-3B base (GRPO, NQ) and Qwen2.5-7B base (PPO, HotpotQA).

To make sense of these 16 measurements, they use:

  • Shapley Values: A fair way to distribute the total "gain" among the four roles.
  • Möbius Interaction Terms: A way to see if two roles have "synergy" (they work better together than the sum of their parts) or are "redundant" (they both solve the same problem).

Datasets

The study evaluates agents across:

  • Models: Qwen2.5 (3B, 7B) and Llama-3.2 (1B, 3B), including both base and instruction-tuned versions.
  • Tasks: NQ (Natural Questions, usually single-hop) and HotpotQA (multi-hop questions requiring multiple search steps).
  • Optimizers: Comparing GRPO (the hot new thing from DeepSeek) and standard PPO.

Key Insights and Ideas

  • The Query is Rarely the Hero: Surprisingly, improved query generation (Q) almost never accounts for more than 15% of the total RL gain. The model isn't necessarily getting much better at asking questions; it's getting better at using what it finds.
  • The "Formatting" Tax: In larger models (like Qwen2.5-7B), a huge chunk of the gain comes simply from the Answer (A) role. RL is essentially teaching the model to stop yapping and put the answer in the right tags.
  • Small Models Need Synergy: In smaller models (like Llama-3.2-1B), the Reasoning (R) and Decision (D) roles are tightly coupled. The model only succeeds if it controls both; if you let the old model "think" and the new model "decide," it falls apart.
  • Heuristics over Adaptivity: The Decision (D) role often doesn't learn "when I have enough info, I should stop." Instead, it learns a "task-level budget"—basically, "always search exactly twice for this dataset."

Key Results

The paper provides a detailed breakdown of where the points come from (see Figure 3 below).

  • Total Gains: RL improved agents by up to 32 EM points over prompted baselines.
  • Reasoning Dominance: For the Qwen2.5-3B base model on NQ, 70% of the gain was attributed to the Reasoning (R) role.
  • The Scale Shift: As models get larger or are instruction-tuned, the credit shifts away from Reasoning and toward Answer (A) extraction.
Figure 3: Main results table. Note how the 'R' column dominates for smaller base models, while 'A' becomes more significant for instruction-tuned or larger models.

Limitations and Future Work

The authors are upfront about a few things:

  • Structural Tags: They rely on the model using specific tags (like <think> or <search>) to define boundaries. If a model doesn't use these, the "grafting" becomes much harder.
  • Model Scale: The study capped out at 7B parameters due to compute constraints. It’s possible that at 70B+, the dynamics shift again.
  • Static Boundaries: Currently, "Reasoning" is one big bucket. Future work could break this down further into planning, synthesis, and verification.

In short: the next time your RL agent's performance spikes, don't just celebrate. Use something like CO-GRAFT to make sure you didn't just spend $10,000 in GPU time to teach a model how to use a closing bracket.

Summary updated

BibTeX
@misc{chandradevan2026co,
  author = {Ramraj Chandradevan and Sayontan Ghosh and Vinoth Selvendran},
  title = {{CO-GRAFT: Attributing Reinforcement Learning Gains in Search Agents via Role-Level Policy Grafting}},
  year = {2026},
  eprint = {2611.31185},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31185},
}
Figure