Reinforcement learning (RL) improves large language model search agents by up to 32 exact-match (EM) points over their pre-RL initializations, yet overall accuracy gains do not identify which underlying functional capabilities improve or interact during training. We introduce CO-GRAFT, a reward-agnostic interventional attribution framework in which an RL-trained agent and its pre-RL initialization jointly generate a single trajectory under closed-loop execution with live retrieval. Each policy controls a mutually exclusive subset of four functional roles: intermediate reasoning, search-or-answer decision, search query generation, and final answer extraction. Evaluating all 2^4=16 role assignments without modifying weights or retraining defines a cooperative game whose Shapley values decompose the total RL gain across roles, while M"obius interaction terms distinguish standalone role improvements from multi-role coupling. Applying CO-GRAFT to Search-R1 agents across Qwen2.5 and Llama-3.2 models (spanning two sizes, base and instruction-tuned initializations, GRPO and PPO optimizers, and NQ and HotpotQA datasets), we show that query generation never exceeds 15% of the total gain; instead, gains are governed by pre-RL answer validity, search retention, model scale, and fixed task-level search budgets, shifting credit from reasoning toward answer extraction in larger or well-formatted answer response checkpoints while smaller base models rely on reasoning--decision coupling.
Figures & tables
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).
recipient
type
data
pre-RL
RL
Δ
srch
valid
R
D
Q
A
Qwen2.5-3B
base
NQ
15.8
45.2
+29.4
0.9 → 1.1
53 → 98
70
7
6
17
HotpotQA
9.2
38.9
+29.7
0.9 → 1.6
51 → 97
81
1
5
13
Qwen2.5-7B
base
NQ
25.5
48.2
+22.7
1.4 → 1.1
79 → 100
40
9
13
38
HotpotQA
18.3
44.1
+25.8
1.6 → 1.6
66 → 100
45
18
5
32
Qwen2.5-3B
instruct
NQ
21.8
41.3
+19.5
1.0 → 1.3
97 → 100
36
21
4
39
HotpotQA
22.0
34.9
+12.9
1.2 → 1.9
94 → 99
69
12
4
15
Table 1: Main results showing the RL gain attribution study using our proposed CO-GRAFT framework. pre-RL , RL , and Δ refer to EM (%) of the pre-RL agent, the RL agent, and their difference, where as srch and valid refer to searches per question and valid-answer rate (%) shown as pre-RL agent → RL agent. Shares (%) for roles (R: Reason, D: Decision, Q: Query, and A: Answer) are reported when the gain ( Δ ) exceeds 4 points.
Möbius terms
Shapley values
one role
two roles
three and four roles
agent
gain
R
D
Q
A
R × D
R × Q
R × A
D × Q
D × A
Q × A
RDQ
RDA
RQA
DQA
RDQA
R
D
Q
A
NQ
Qwen2.5-3B base
29.4
+18.8
+0.6
+2.5
+5.7
+2.0
− 1.1
− 2.2
− 1.7
− 2.9
− 1.4
+1.8
+5.2
+1.6
+2.1
− 1.6
+20.6
+1.9
+1.8
+5.0
Qwen2.5-3B instruct
19.5
+11.0
+6.2
+3.6
+13.8
− 2.5
− 4.4
− 8.9
− 1.7
− 7.3
− 4.1
+2.9
+7.7
+4.1
+3.2
− 4.1
+7.0
+4.0
+0.9
+7.6
Qwen2.5-7B base
22.7
+11.7
+4.7
+3.6
+8.6
− 4.6
− 0.6
+0.9
− 1.6
− 0.7
+0.1
+2.1
+0.4
− 1.1
+3.0
− 3.8
+9.1
+2.1
+2.9
+8.6
Table 2: Möbius terms and Shapley values (EM points) of four GRPO agents on NQ and HotpotQA. Roles R, D, Q, and A refer to the same in Table 1 . The 15 Möbius terms of a row sum to the gain. Cell shading highlights positive terms in blue and negative terms in red. Largest Shapley value is in bold.
model
data
opt.
Δ
srch
R
D
Q
A
Qwen2.5-3B
NQ
GRPO
+29.4
1.1
70
7
6
17
base
PPO
+27.7
2.1
83
-1
2
16
Hotpot
GRPO
+29.7
1.6
81
1
5
13
PPO
+26.8
2.2
67
7
8
18
Qwen2.5-3B
NQ
GRPO
+19.5
1.3
36
21
4
39
instruct
PPO
+12.8
1.9
31
17
6
46
Table 3: Role gain attribution between GRPO vs. PPO public checkpoints. Δ , srch , R, D, Q, and A refer to the same in Table 1 . Largest share among roles are in bold.
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
role
alone
21 pairs
31 triples
41 four
Shapley
Qwen2.5-3B base, NQ (gain 29.4)
R
+18.8
− 0.7
+2.9
− 0.4
+20.6
D
+0.6
− 1.3
+3.0
− 0.4
+1.9
Q
+2.5
− 2.1
+1.8
− 0.4
+1.8
A
+5.7
− 3.3
+3.0
− 0.4
+5.0
Llama-3.2-3B base, NQ (gain 31.6)
Appendix
Table 4: Shapley values rebuilt from the Möbius terms of Table 2 (EM points). alone : the single-role term; the next three columns: half of the sum of the two-role terms that contain the role, a third of the three-role terms and a quarter of the four-role term. The four parts add up to the Shapley value, up to rounding.
Figure 2: Interaction matrices for the four GRPO-trained agents in Table 2 on NQ (left) and HotpotQA (right), measured in EM points. Outlined diagonal entries denote standalone role gains when the RL agent controls a single role. Off-diagonal entries show pairwise Möbius terms (joint two-role gain minus the sum of standalone gains). Right-hand bars report each role’s Shapley value in EM points (and percentage share of total gain). H denotes the unweighted sum of all three- and four-role Möbius terms, whereas diagonal entries, upper-triangular pairs, and H sum to the total RL gain. Color shading is shown in the heatmap bar that saturates at ±9 points.