CO-GRAFT: Decomposing the Gains of Reinforcement Learning for Search Agents

The CO-GRAFT framework decomposes RL gains for search agents onto four functional roles, finding query generation contributes less than 15%.
The CO-GRAFT study proposes a reward-agnostic, interventional attribution framework that lets pre- and post-RL policies jointly generate the same trajectory and splits agent behavior into four roles—intermediate reasoning, search decision, query generation, and answer extraction—using 16 role assignments and Shapley values to decompose total gains. Experiments across Qwen2.5 and Llama-3.2, GRPO and PPO, and NQ and HotpotQA find query generation never contributes more than 15%; the dominant factors are pre-training answer validity, search retention rate, model scale, and task-level search budget. The framework requires no retraining and can be transferred to other multi-stage agent tasks.
Where do the gains from reinforcement learning actually come from?
Reinforcement learning (RL) can boost the exact match (EM) score of LLM-based search agents by up to 32 points compared to before training, but this total masks a key question: which capability is actually improving? Is the model getting better at reasoning, at deciding whether to search or answer, at writing queries, or at extracting answers?
According to the rss source, a study called CO-GRAFT proposes a reward-agnostic, interventional attribution framework that attempts to decompose the overall RL gains onto the four functional roles of a search agent. Rather than simply running ablation experiments, its approach lets the RL-trained agent and its pre-training initialization jointly generate the same trajectory in closed-loop execution, while keeping retrieval live.

Four roles, sixteen combinations
CO-GRAFT splits the search agent's behavior into four mutually exclusive functional roles: intermediate reasoning, the decision to search or answer, search query generation, and final answer extraction. Each role is controlled by either the post-training policy or the pre-training policy, giving 2^4 = 16 role assignment schemes.
The key point is that evaluating these 16 combinations requires neither modifying weights nor retraining. The 16 assignments define a cooperative game whose Shapley values can decompose the total RL gains onto each role, while Möbius interaction terms further distinguish "a single role's own improvement" from "coupling effects among multiple roles." This design turns attribution from a vague intuition about capabilities into a computable allocation problem.
Shapley values originate from cooperative game theory and are used to fairly allocate each participant's marginal contribution when multiple participants jointly produce a total payoff. The core idea is: for every possible subset of participants, compute the gain from adding a given participant, then average over all subset orderings. In CO-GRAFT, the four functional roles are treated as the game's participants, and the 16 role assignment schemes correspond to different "coalition" combinations, allowing precise computation of each role's contribution to the total RL gains. Möbius interaction terms are a generalization of Shapley values that can characterize synergistic or antagonistic effects among multiple roles, not just the independent contribution of a single role. This decomposition approach is more rigorous than simple ablation experiments because it accounts for all interaction combinations among roles.
Query generation takes the blame? At most 15%
One of the most counterintuitive findings concerns query generation. Intuitively, a search agent getting stronger would seem to be mainly thanks to it learning to write better search queries. But CO-GRAFT's experiments on the Search-R1 agent show that query generation's contribution to the total gains never exceeds 15%.
The study covers the Qwen2.5 and Llama-3.2 models, spanning two scales, base and instruction-tuned initialization, both GRPO and PPO optimizers, and two datasets, NQ and HotpotQA. Across these combinations, the true dominant factors behind the gains include: the validity of the pre-training answers, the search retention rate, model scale, and a fixed task-level search budget. In other words, the agent gets stronger mainly because it "uses its existing search behavior more steadily," not because it writes better queries.
Search-R1 is a framework for training LLMs via reinforcement learning to perform search reasoning; it lets the model autonomously decide whether to call a search engine before generating an answer, and optimizes the joint search-and-reasoning policy through algorithms such as GRPO. GRPO (Group Relative Policy Optimization) is a policy gradient method that requires no value network, estimating the advantage function through relative comparisons within a group to reduce training cost; PPO (Proximal Policy Optimization) is the classic proximal policy optimization algorithm that ensures training stability by clipping the importance sampling ratio. NQ (Natural Questions) is a single-hop factual question answering dataset, while HotpotQA is a multi-hop reasoning question answering dataset that requires the model to integrate information from multiple documents. These choices of datasets and optimizers cover different task complexities and training dynamics, making CO-GRAFT's attribution conclusions more generalizable.
Large models and small models draw gains from different sources
CO-GRAFT also reveals that the allocation of gains shifts as model conditions change. On larger-scale checkpoints, or answer checkpoints with well-formed answer formats, credit shifts from reasoning to answer extraction; smaller base models, by contrast, rely more on the coupling between reasoning and decision-making.
This means the same RL algorithm does not produce the same "capability improvements" across different models. For developers, this suggests that the optimization focus should adjust with model conditions: if your agent is large-scale and its output format is stable, further squeezing the reasoning stage may yield limited returns, whereas the answer extraction stage may be more worth attention.
The value of this attribution framework
CO-GRAFT's significance goes beyond explaining Search-R1. It offers a general approach: when reinforcement learning delivers a nice overall score, use interventional role substitution to ask "where do the gains come from?" Because the framework is reward-function-agnostic and requires no retraining, it could potentially be transferred to gain analysis for other multi-stage agent tasks. For engineering teams that need to decide "which stage to keep training," this attribution capability offers more guidance than a mere accuracy curve.
One-line Summary
The CO-GRAFT framework decomposes RL gains for search agents onto four functional roles, finding that query generation contributes less than 15%.
Paragraph Summary
The CO-GRAFT study proposes a reward-agnostic, interventional attribution framework that lets pre- and post-RL policies jointly generate the same trajectory and splits agent behavior into four roles—intermediate reasoning, search decision, query generation, and answer extraction—using 16 role assignments and Shapley values to decompose total gains. Experiments spanning Qwen2.5 and Llama-3.2, GRPO and PPO, and NQ and HotpotQA find that query generation never contributes more than 15% of total gains; the true dominant factors are pre-training answer validity, search retention rate, model scale, and task-level search budget. On large models or checkpoints with well-formed answers, credit shifts to answer extraction, while small base models rely more on reasoning-decision coupling. The framework requires no retraining and can be transferred to gain analysis for other multi-stage agent tasks.
Related articles

Prospero: A Lightweight Native AI Coding Tool Built with ImGui
Prospero is a bloat-free native AI coding tool built with ImGui, emphasizing lightweight design, high performance, and low dependencies. This article analyzes its design philosophy, technical choices, and the divergence between platformization and toolization in AI coding tools.

WebRTC Abused: New Variant of Credit Card Skimming Scripts on Shopping Sites
Security researchers found skimming scripts on popular shopping sites using WebRTC data channels to exfiltrate credit card data. This article analyzes the technical原理, differences from traditional Magecart attacks, and defense strategies for e-commerce platforms in third-party script governance and CSP policies.

Single GB10 Card Hits 101 tok/s: Inkling 2 Mini Performance Tested on vLLM
A developer shared on Hacker News running Inkling 2 Mini with vLLM on a single GB10 at 101 tok/s. This article analyzes the technical context, the significance of vLLM with small models on single cards, and caveats for interpreting tok/s metrics.