WorksComputer Science
WEIR: Watershed Exploration and Drift-Aware Prefix Shrinkage for Multi-Turn Agent Reinforcement Learning
Abstract
Multi-turn language model agents often receive only a single binary reward at the end of a long interaction trajectory, making it difficult to separate decisive decisions from routine steps or estimate accurate intermediate values. Prefix-tree methods improve sample efficiency by merging trajectories that share action histories, yet two structural flaws remain: naive pooling mixes stale off-policy outcomes into critic targets with fixed weights, and uniform or entropy-driven branching wastes continuations on dead-end states whose outcome is already settled. We introduce WEIR (Watershed Exploration and Intrinsic-Drift Shrinkage), an actor-critic reinforcement learning framework grounded in a Doob turn-variance conservation identity. WEIR maintains a cross-iteration canonical action-prefix tree with exponentially discounted visit counts and trains a prefix-conditioned critic toward a minimax drift-aware shrinkage target that adapts from single-trajectory returns at rare nodes to pooled empirical means at dense nodes. Using the same pre-update critic, WEIR allocates rollout budgets across tasks via Neyman stratification and directs within-task branches to watershed forks where high survival-headroom uncertainty coincides with steep value cliffs. Across four multi-hop QA benchmarks, ALFWorld, and WebShop on Qwen2.5-3B/7B-Instruct, WEIR achieves and average QA exact match and and ALFWorld success rates, outperforming CAPO by – points while generating – fewer rollout tokens than chain sampling.
Introduction
Reinforcement learning with verifiable outcomes enables large language models (LLMs) to interleave chain-of-thought reasoning with multi-turn search, navigation, and tool execution ([1, 2, 3]). Unlike single-turn math benchmarks, agentic tasks span dozens of environment interactions where feedback arrives only at episode completion ([4, 5]). Under sparse terminal rewards, trajectory-level group methods such as GRPO ([6]) broadcast one scalar advantage across every turn, reinforcing lucky detours in winning episodes and penalizing sound early steps in failed ones ([7, 8]).
Two families of methods seek finer turn-level credit under a fixed rollout budget. Group and tree-search algorithms organize rollouts into shared-prefix trees or anchor-state clusters to construct intra-tree preference pairs or step potentials without a critic ([9, 10, 11, 12] (Wang et al. 2026)). Yet under realistic budgets of six to eight rollouts per task, individual branches often receive too few continuations to stabilize advantage estimates, and late-stage updates can collapse ([8, 14]). Conversely, actor-critic methods such as Turn-PPO ([7]) and CAPO ([13]) train a value network for turn-level Generalized Advantage Estimation (GAE) ([16]). However, with , standard GAE regression targets collapse algebraically to the trajectory’s single terminal reward, leaving intermediate states supervised by high-variance one-shot outcomes.
Pooling outcomes across shared action prefixes bridges these paradigms, yet existing designs suffer from two coupled flaws (Figure 1). First, target estimation ignores sample precision and policy drift: fixed blending between current returns and historical prefix statistics either wastes evidence at dense nodes or trusts stale counts from earlier policies at sparse nodes. Second, rollout allocation ignores where credit is decided: a Doob martingale conservation law shows that total outcome variance decomposes across turns as the sum of squared value jumps, which concentrates in a few decisive watershed turns. Branching uniformly at random (Ji et al., [11]) or purely by token entropy (Zong et al., [12]) frequently expands already-failed dead ends or routine steps whose values barely move.
Figure 1. Two structural bottlenecks in outcome-based agent RL. (a) By Doob turn-variance conservation (Proposition 1), outcome uncertainty concentrates in a minority of watershed turns: the top 25% of turns capture 73% of on ALFWorld. (b) Under policy drift , fixed target mixing () underuses dense nodes while unshrunk pooling drifts; minimax shrinkage yields uniformly lower target MSE. (c) Uniform branching spends of continuations on settled dead ends () or solved prefixes (), whereas watershed branching focuses on undecided forks.
We present WEIR (Watershed Exploration and Intrinsic-Drift Shrinkage), a closed-loop actor-critic framework coupling drift-aware prefix value learning with bilevel watershed allocation. WEIR records rollouts in a persistent canonical action-prefix tree whose visit counts decay exponentially across iterations (). The critic regresses onto a closed-form minimax shrinkage target interpolating smoothly from the fresh return at unvisited nodes to the pooled prefix mean at well-supported nodes. Simultaneously, the pre-update critic guides exploration at two levels: across tasks via Neyman stratification , and within tasks at watershed forks combining survival-headroom uncertainty with steep value transitions . Our contributions are:
We prove a Doob turn-variance conservation identity for non-Markovian POMDPs, showing why outcome variance concentrates in decisive watershed turns (§ 5, Figure 1a).
We propose WEIR, unifying a discounted canonical prefix tree, minimax drift shrinkage, Neyman task budgeting, and watershed branching in one closed loop (§ 4, Figure 2).
Figure 2. Overview of WEIR. (I) Completed trajectories are canonicalized by ordered actions into a persistent prefix tree with exponentially discounted counts , producing minimax drift-shrinkage targets . (II) The pre-update critic scores trunk prefixes to assign task budgets via Neyman stratification and selects branch points at watershed forks combining survival uncertainty and value cliffs. (III) The prefix critic fits , while the actor optimizes a turn-aligned, task-balanced clipped surrogate using turn-level GAE.
We derive optimality guarantees for minimax shrinkage, watershed sampling efficiency (), and Neyman stratification, verified numerically and empirically (§ 5, § 6.4).
Across Multi-hop QA, ALFWorld, and WebShop at 3B and 7B scales, WEIR outperforms CAPO by 1.50–3.74 points using 28–29% fewer tokens than chain sampling (§ 6).
Related Work
Multi-turn credit assignment under sparse rewards. LLM RL uses hierarchical or token-level critics ([17, 18, 19]), while critic-free methods extend REINFORCE and GRPO to search and embodied tasks ([20, 6, 21, 2, 22] (Wei et al. 2025)). To replace uniform trajectory credit, recent 2025–2026 methods derive step-level signals via anchor-state grouping ([9]), potential differences ([8]), grouped TD proxies ([14]), influence graphs ([25]), transition rubrics ([26]), role typing ([27]), checkpoint TD residuals ([28]), or lightweight shared critics ([29, 30]). In actor-critic RL, Turn-PPO ([7]) and CAPO ((Wang et al., 2026)) align updates with interaction turns, while SPPO ((Wang et al., 2026)) uses a sequence-level scalar critic; each trajectory supplies only one terminal target. WEIR pools outcomes across trees and prior updates via drift-discounted shrinkage.
Tree-structured rollouts and adaptive allocation. Tree methods reuse shared prefixes for rollout expansion and credit assignment ([32, 33 Ji et al.,] (Yang et al. 2025) 2025; Wang et al., 2026). TreeOPSD Zou et al., 2026 backs terminal rewards through shared-prefix trees into bounded posterior distillation targets. At the prompt level, GRESO Zheng et al., [46], PCL Gao et al., [35], ARCUS Okonkwo et al., [36], and CoBA-RL Yao et al., [37] prioritize intermediate difficulty, while ARPO Dong et al., [38], AT²PO Zong et al., [12], and ATPO Cao et al., [39] expand high-entropy or high-Bellman-error states, IGRPO Zhang et al., [40] scores branches by answer information gain, ProGPO Fan and Liu, [41] tracks progress reliability, and TRACE Zou et al., [42] allocates budgets with an auxiliary predictor for group-relative updates. SARA Nomand et al., [43] uses sequential stopping, while PAIR Nomand et al., [44] corrects pair inclusion under adaptive allocation. WEIR instead unifies turn-level value baselines and bilevel allocation inside one prefix critic, replacing 3-bin quotas and entropy heuristics with Neyman stratification and watershed cliff selection.
Preliminaries
Multi-turn agentic POMDP. For task with initial observation , an agent generates a trajectory , where is reasoning, is a parsed action, and is the observation. At turn , policy emits given history . The environment yields only a terminal reward , with () and .
Single-trajectory collapse of undiscounted GAE. With , pre-update critic and , the GAE return target telescopes identically:
Every turn along a single trajectory therefore regresses onto the identical noisy scalar , causing full-history critics to memorize surface reasoning tokens rather than underlying decision utility.
Weir
WEIR couples a canonical prefix value tree with bilevel watershed allocation in a closed loop (Figure 2).
Canonical Prefix Tree and Drift-Aware Shrinkage
Action-prefix canonicalization. Different reasoning traces often emit identical action sequences. We map each history to its canonical action prefix , with . Using normalized exact matching for embodied/web actions and parent-constrained E5-base-v2 semantic merging () for QA queries Wang et al., [45], rollouts populate a persistent Action-Prefix Tree . Conditioning on aligns its predictions with pooled outcomes and removes variance from verbose thoughts .
Discounted cross-iteration statistics. Each node maintains exponentially discounted outcome counts and return sums across iterations :
where is the node path of , , and down-weights older policies. Excluding itself prevents self-leakage:
whenever .
Minimax drift-aware precision shrinkage. Modeling with variance and bounded policy-shift bias relative to , minimizing worst-case MSE gives the unique shrinkage weight (Proposition 2):
where and . The critic minimizes over frozen targets (plus terminal answer samples in QA).
Bilevel Watershed Rollout Allocation
Under frozen policy and pre-update critic , WEIR samples trunk trajectories per task and distributes expansion branches across two stages.
Level 1: Across-task Neyman stratification. Task ’s success rate is estimated by averaging clipped trunk-prefix values , with uncertainty . To minimize batch gradient variance under task balancing (Proposition 4), WEIR allocates budgets proportional to within :
where , adjusting integer rounding to preserve (, , ).
Level 2: Within-task watershed turn selection. By Proposition 1, decision credit concentrates where continuation values shift sharply while outcome uncertainty remains unresolved. Each non-terminal turn receives the watershed score:
where , , and . We sample branch origins proportionally to without replacement, restore their environment states and histories, and roll out continuations in parallel under .
Coupled Turn-Aligned Policy Optimization
Using denoised prefix baselines and on-policy rewards (with format gate in QA), turn-level GAE with and is
For turn ’s generated tokens , the length-normalized geometric importance ratio ([7] (Zheng et al. 2025)) is
To keep task contributions unbiased under Neyman counts , each trajectory uses weight
Algorithm 1: WEIR online training iteration
Input: Batch (), sampling policy , pre-update critic , discounted trees , budget
Sample trunk trajectories per task under frozen
Evaluate trunk prefixes with ; assign Neyman budgets via (5)
Score trunk turns via (6); sample branch origins
Restore environment states at selected origins and sample continuations under
Insert trajectories into ; update via (2)
Compute leave-one-out shrinkage targets via (3)–(4)
Compute turn GAE via (7) and task weights
Update critic on and actor on in (9)
in the clipped objective:
where retains token-level gradients via stop-gradient scaling (Zheng et al., 2025) and masks observation tokens (Algorithm 1).
Theoretical Analysis
Full proofs and exact numerical verification in a non-Markovian POMDP appear in Appendix § 11.
Proposition 1 (Doob Turn-Variance Conservation). For binary rewards , let for and , where is the canonical action prefix in an arbitrary non-Markovian POMDP. Then is a Doob martingale with respect to the canonical action filtration, and
Proposition 1 requires no Markov assumption: latent thoughts and observations are marginalized, yet total outcome uncertainty is strictly conserved across action jumps.
Proposition 2 (Minimax Drift-Aware Shrinkage). Let be unbiased with variance and be an independent pooled estimate with count , variance , and drift bias . Among linear combinations , the unique minimax-MSE weight is , yielding
Proposition 3 (Watershed Branching Efficiency). Let be the expected variance reduction from branching at turn along a trunk, and let . Relative to uniform turn sampling (), watershed sampling achieves
where is the coefficient of variation of across eligible turns.
Proposition 4 (Neyman Rollout Stratification). If task has binary success rate and trajectory gradient variance , minimizing of the task-balanced estimator subject to yields the unique optimum , strictly dominating uniform and 3-bin allocations whenever varies across tasks.
Experiments
Experimental Setup
Benchmarks and backbones. We train Qwen2.5-3B-Instruct and Qwen2.5-7B-Instruct (Yang et al., [47]) actors (with a 3B critic at both scales; scaling to 1.5B, 14B, and Qwen3-4B (Yang et al., [48]) is in Appendix § 14).
(1) Multi-hop QA: Following Jin et al. [2] and Ji et al. [11], we train on HotpotQA (Yang et al., [49]) with an E5-base-v2 Wikipedia retriever (Wang et al., [45]) (3 passages/query, up to 4 searches plus answer) and evaluate exact match (EM) on held-out HotpotQA alongside transfer to 2WikiMultiHopQA (Ho et al., [50]), MuSiQue (Trivedi et al., [51]), and Bamboogle (Press et al., [52]).
(2) ALFWorld: 1,000 train and 134 test tasks up to 40 turns (Shridhar et al., [4]).
(3) WebShop: 1,024 train and 256 test tasks up to 15 turns (Yao et al., [5]). ALFWorld and WebShop average three random seeds.
Baselines and budgets. We compare against critic-free group/tree methods: GRPO [6], GiGPO [9], Tree-GRPO [11], AT2PO [12], and PGPO [8]; and actor-critic methods: PPO [53], SPPO (Wang et al., 2026), Turn-PPO [7], and CAPO (Wang et al., 2026). Published Search-R1 [2] and StepSearch [54] results serve as external references due to differing data or step supervision. Multi-rollout methods use 6 trajectories/task on QA and 8 on ALFWorld/WebShop. WEIR uses trunks and average branches (matching 6/8 trajectories while generating 0.71–0.72× the tokens of independent chains), with , , , and (25/30 critic warm-up steps included inside the 150/120 update budget; Appendix § 12).
Main Results
Multi-hop QA. Table 1 shows WEIR leads every QA benchmark at both scales among matched baselines: 32.18% average EM at 3B (+3.19 over CAPO, +5.05 over Turn-PPO, +8.29 over GRPO) and 37.85% at 7B (+2.22 over CAPO, +5.17 over Turn-PPO, +4.07 over GRPO), while reducing rollout tokens by 28–29% (0.71–0.72×). Gains persist across in-domain HotpotQA (44.30% at 7B) and compositional transfer sets (MuSiQue 19.90%, Bamboogle 46.00%). Against StepSearch, which uses MuSiQue process supervision, WEIR leads by +5.70 points on HotpotQA and +4.60 on 2Wiki at 7B.
| Method | HotpotQA | 2Wiki | MuSiQue | Bamboogle | QA Avg. | Succ. (%) | Succ. (%) | Tok.× |
| Multi-hop QA (EM, % ↑) | ALFWorld | WebShop | ||||||
| Qwen2.5-3B-Instruct | ||||||||
| Search-R1 (Jin et al., [2]){sup}†` | 30.40 | 29.30 | 12.00 | 24.00 | 23.93 | — | — | — |
| StepSearch (Zheng et al., [54]){sup}†` | 34.50 | 32.00 | 17.40 | 34.40 | 29.58 | — | — | — |
| GRPO (Shao et al., [6]) | 30.80 | 30.30 | 9.65 | 24.80 | 23.89 | 75.87 | 66.87 | 1.00× |
| GiGPO (Feng et al., [9]) | 33.10 | 32.40 | 11.40 | 28.80 | 26.43 | 78.61 | 72.40 | 1.00× |
| Tree-GRPO (Ji et al., [11]) | 30.20 | 29.10 | 8.95 | 29.10 | 24.34 | 61.94 | 60.20 | 0.74× |
AT{sup}2PO ({citet}Zong et al., 2026`) | 35.40 | 34.10 | 12.85 | 30.40 | 28.19 | 79.85 | 74.13 | 0.76× |
| PGPO (Zheng et al., [8]) | 35.80 | 34.60 | 13.10 | 31.20 | 28.68 | 80.60 | 74.93 | 1.00× |
| PPO (Schulman et al., [53]) | 31.20 | 31.30 | 9.75 | 26.40 | 24.66 | 30.85 | 64.53 | 0.17× |
| SPPO (Wang et al., 2026) | 33.90 | 32.90 | 11.60 | 27.20 | 26.40 | 71.64 | 73.10 | 1.00× |
| Turn-PPO (Li et al., [7]) | 34.60 | 33.70 | 12.20 | 28.00 | 27.13 | 74.38 | 75.80 | 1.00× |
| CAPO (Wang et al., 2026) | 36.20 | 35.10 | 13.45 | 31.20 | 28.99 | 81.09 | 76.27 | 1.00× |
| WEIR (ours) | 39.80 | 38.40 | 15.30 | 35.20 | 32.18 | 84.83 | 78.47 | 0.71× |
| Qwen2.5-7B-Instruct | ||||||||
| Search-R1 (Jin et al., [2]){sup}†` | 39.40 | 31.20 | 18.10 | 38.40 | 31.78 | — | — | — |
| StepSearch (Zheng et al., [54]){sup}†` | 38.60 | 36.60 | 22.60 | 40.00 | 34.45 | — | — | — |
| GRPO (Shao et al., [6]) | 41.00 | 39.00 | 16.70 | 38.40 | 33.78 | 79.10 | 78.57 | 1.00× |
| GiGPO (Feng et al., [9]) | 41.60 | 39.20 | 17.30 | 40.80 | 34.73 | 82.34 | 79.20 | 1.00× |
| Tree-GRPO (Ji et al., [11]) | 34.25 | 33.90 | 13.45 | 33.60 | 28.80 | 66.67 | 70.73 | 0.75× |
AT{sup}2PO ({citet}Zong et al., 2026`) | 41.90 | 39.40 | 17.85 | 41.60 | 35.19 | 83.08 | 79.67 | 0.77× |
| PGPO (Zheng et al., [8]) | 42.10 | 39.50 | 18.05 | 42.40 | 35.51 | 83.83 | 80.13 | 1.00× |
| PPO (Schulman et al., [53]) | 40.40 | 37.50 | 17.50 | 39.20 | 33.65 | 56.22 | 69.50 | 0.17× |
| SPPO (Wang et al., 2026) | 40.80 | 37.90 | 16.90 | 40.80 | 34.10 | 78.36 | 78.90 | 1.00× |
| Turn-PPO (Li et al., [7]) | 39.00 | 36.20 | 13.50 | 42.00 | 32.68 | 80.10 | 79.73 | 1.00× |
| CAPO (Wang et al., 2026) | 42.30 | 39.60 | 18.20 | 42.40 | 35.63 | 84.33 | 80.40 | 1.00× |
| WEIR (ours) | 44.30 | 41.20 | 19.90 | 46.00 | 37.85 | 87.81 | 81.90 | 0.72× |
Table 1. Main comparison on Multi-hop QA (EM, %), ALFWorld (Success, %), and WebShop (Success, %). QA Avg. averages the four QA benchmarks; Tok.× denotes generated rollout tokens relative to independent-chain GRPO at matched trajectory counts (6 for QA, 8 for ALFWorld/WebShop). †: external references with different training data/supervision. Best comparable result per column in bold.
Embodied and web tasks. On ALFWorld and WebShop, WEIR reaches 84.83% / 78.47% at 3B and 87.81% / 81.90% at 7B, exceeding CAPO by +3.74 / +2.20 points (3B) and +3.48 / +1.50 points (7B). Category-level breakdowns (Appendix § 14, Table 9) show the largest gains on long-horizon Pick2 (+4.3 over CAPO) and Look (+3.7), while reducing average ALFWorld turns to 13.7 (vs. 16.9 for Turn-PPO and 17.8 for GRPO).
| Method | Pick | Look | Clean | Heat | Cool | Pick2 | Overall | Score | Succ. | Turns ↓ |
| \multicolumn{7}{c}{ALFWorld Embodied Categories (Success, % ↑)} | \multicolumn{2}{c}{WebShop (↑)} | ALF. | ||||||||
| PPO ([53]) | 68.1 | 52.4 | 58.6 | 54.2 | 51.8 | 43.5 | 56.22 | 78.4 | 69.50 | 24.6 |
| GRPO ([6]) | 86.4 | 77.8 | 81.2 | 79.5 | 76.4 | 68.2 | 79.10 | 84.9 | 78.57 | 17.8 |
| Tree-GRPO ([11]) | 76.2 | 63.9 | 69.4 | 66.8 | 63.5 | 54.7 | 66.67 | 80.1 | 70.73 | 19.4 |
| Turn-PPO ([7]) | 87.5 | 78.9 | 82.0 | 80.4 | 77.9 | 69.4 | 80.10 | 85.8 | 79.73 | 16.9 |
| GiGPO ([9]) | 88.9 | 81.1 | 84.5 | 82.6 | 80.2 | 72.4 | 82.34 | 85.5 | 79.20 | 16.4 |
| ATPO ([12]) | 89.6 | 81.7 | 85.1 | 83.4 | 80.9 | 73.5 | 83.08 | 86.0 | 79.67 | 16.1 |
| PGPO ([8]) | 90.2 | 82.4 | 85.8 | 84.1 | 81.8 | 74.6 | 83.83 | 86.4 | 80.13 | 15.8 |
| CAPO ([15]) | 90.8 | 83.0 | 86.3 | 84.6 | 82.2 | 75.1 | 84.33 | 86.7 | 80.40 | 15.6 |
| WEIR (ours) | 93.4 | 86.7 | 89.6 | 88.3 | 86.1 | 79.4 | 87.81 | 88.3 | 81.90 | 13.7 |
Table 9. Fine-grained embodied and web breakdown (Qwen2.5-7B-Instruct). ALFWorld success across all six task types, WebShop continuous product-match score and exact success, and average interaction turns to completion (↓).
Ablation Studies
Table 2 isolates each component across both scales. Replacing minimax shrinkage with fixed mixing () drops 7B QA by 1.03 and ALFWorld by 1.49; disabling historical discounting (, ) costs 0.81 and 1.24; removing cross-step retention loses 1.65 and 2.69; and using a full-history single-outcome critic loses 3.75 and 5.97. Replacing watershed branching with uniform branching drops 7B QA by 0.97 and ALFWorld by 1.62, while entropy-guided branching trails by 0.80 and 1.37. Removing the survival–headroom gate drops ALFWorld by 2.19. Finally, 3-bin tertile budgeting loses 0.45 QA and 0.70 ALFWorld, and dropping task weights costs 0.57 and 0.87.
| Configuration | 3B Actor QA | 3B Actor ALF. | 7B Actor QA | 7B Actor ALF. |
| WEIR (full) | 32.18 | 84.83 | 37.85 | 87.81 |
| Fixed mixing (, no count adaptation) | 31.15 | 83.40 | 36.82 | 86.32 |
| No drift discounting (, ) | 31.38 | 83.65 | 37.04 | 86.57 |
| Current-batch tree only (no cross-step retention) | 30.62 | 82.10 | 36.20 | 85.12 |
| Full-history critic (no prefix pooling, Turn-PPO style) | 28.45 | 76.90 | 34.10 | 81.84 |
| Uniform within-task branching (keep Neyman task budget) | 31.20 | 83.33 | 36.88 | 86.19 |
| Entropy-guided branching (replace watershed score) | 31.35 | 83.58 | 37.05 | 86.44 |
| w/o survival–headroom gate (cliff only) | 30.95 | 82.64 | 36.55 | 85.62 |
| 3-bin tertile task budget (replace Neyman ) | 31.72 | 84.10 | 37.40 | 87.11 |
| Uniform task & turn allocation (independent chains) | 30.15 | 81.15 | 35.82 | 84.38 |
| w/o task-balance weight | 31.60 | 83.95 | 37.28 | 86.94 |
Table 2. Ablation study on 3B and 7B actors across Multi-hop QA Avg. (EM, %) and ALFWorld (Success, %).
Mechanism and Critic Calibration Analysis
Where continuations land. Figure 3a audits continuation endpoints on 7B ALFWorld. Uniform branching places 41.2% of branches on near-settled states (27.4% dead ends , 13.8% solved ). Token-entropy branching shifts slightly off solved states (9.4%) yet lands even more often in dead ends (31.5%), where stalled agents emit high-entropy loops. By gating on alongside value cliffs , WEIR cuts settled waste to 8.7% and directs 67.2% of branches onto watershed forks.
Figure 3. Mechanism analysis of watershed branching and prefix shrinkage. (a) Share of 7B ALFWorld continuations landing on settled dead ends, solved states, routine steps, or watershed forks. (b) Online critic fidelity against 64-rollout Monte Carlo (MC64) ground truth on HotpotQA. (c) Cross-step prefix hit rate and realized mean shrinkage weight during training.
Critic calibration against MC64. Evaluating frozen step-150 online critics (256 HotpotQA tasks) and controlled 1-epoch offline critics (1,362 mixed-outcome tasks) against 64-rollout Monte Carlo (MC64) references (Figure 3b, Table 3), WEIR lowers online MSE from 0.2076 (Turn-PPO) and 0.1274 (fixed-mix) to 0.0982, cuts ECE-10 from 0.1232 to 0.0265, and raises within-question Pearson from 0.142 to 0.586. Figure 3c shows cross-step prefix hit rates climbing to 56.4% (vs. 34.8% for chains), lifting smoothly from 0.18 to 0.46.
| Critic Configuration | MSE ↓ | Pearson ↑ | Within-Q r ↑ | Spearman ↑ | ECE-10 ↓ |
| Turn-PPO (full history, single outcome) | 0.2076 | 0.224 | 0.142 | 0.135 | 0.1232 |
| Prefix + Unmasked Mean (, ) | 0.1412 | 0.480 | 0.283 | 0.362 | 0.0584 |
| Prefix + Fixed Mixing () | 0.1274 | 0.613 | 0.492 | 0.405 | 0.0390 |
| WEIR (Drift-Shrinkage Prefix Critic) | 0.0982 | 0.708 | 0.586 | 0.479 | 0.0265 |
| Full-Context Single-Outcome | 0.0765 | 0.698 | 0.684 | 0.461 | 0.0933 |
| Prefix Fixed-Mix () | 0.0518 | 0.794 | 0.612 | 0.352 | 0.0680 |
| Prefix Empirical Mean () | 0.0445 | 0.830 | 0.671 | 0.394 | 0.0613 |
| WEIR Precision Shrinkage | 0.0384 | 0.861 | 0.704 | 0.442 | 0.0428 |
Table 3. Critic value accuracy vs. MC64 on HotpotQA (online step-150 and controlled 1-epoch offline splits).
Doob conservation, Neyman strata, and stability. Figure 4a verifies Proposition 1 across 160 tasks using MC64 branch estimates: summed squared prefix jumps match root variance with $R^2=0.962. Figure 4b sorts tasks into critic-predicted quintiles: realized pass rates rise monotonically from 8.4% (Q1) to 93.6% (Q5), while WEIR’s Neyman budget peaks at the 49.6–51.2% frontier quintile (Q3, 5.8 branches) and tapers to 2.1–3.0 at the tails. Figure 4c confirms stable convergence on 7B QA where GRPO and Tree-GRPO collapse after step 100.
Figure 4. Empirical diagnostics (7B actors). (a) Empirical verification of Doob turn-variance conservation (Proposition 1) across 160 tasks using MC64 estimates (). (b) Realized pass rates and Neyman branch budgets across critic-ranked quintiles at steps 100 and 150. (c) Multi-hop QA training reward curves showing stable late-stage convergence for WEIR against GRPO/Tree-GRPO collapse.
Efficiency, Scaling, and Sensitivity
Figure 5a maps the accuracy–token Pareto frontier on 7B Multi-hop QA: WEIR dominates all baselines at every budget, surpassing full-chain CAPO (35.63%) with roughly half the rollout tokens (36.15% at 0.52× tokens, ). Across rollout budgets (Figure 5b) and actor scales from 1.5B to 14B (Figure 5c), WEIR maintains a 2.2–3.2 point margin over the strongest baseline. Figure 5d confirms robustness across within 0.81 points. Appendix § 14 provides Qwen3-4B transfer, per-seed variance, turn efficiency, and failure analysis.
Figure 5. Efficiency, scaling, and hyperparameter robustness (Multi-hop QA). (a) 7B accuracy vs. relative rollout tokens: WEIR defines the Pareto frontier. (b) Scaling across average rollouts per task . (c) Scaling across Qwen2.5 actor sizes (1.5B–14B). (d) Sensitivity over drift ratio and discount (★: default).
Conclusion
We introduced WEIR, an actor-critic RL framework for multi-turn LLM agents with sparse terminal rewards. Grounded in Doob turn-variance conservation, WEIR unifies cross-iteration canonical prefix pooling with minimax drift shrinkage for critic supervision and deploys the resulting critic for Neyman task stratification and watershed turn branching, improving accuracy and stability across
QA, embodied, and web benchmarks while cutting rollout tokens by nearly 30%.
Limitations
WEIR requires restorable intermediate environment states and interaction histories to fork branch continuations; while natural for retrieval APIs, simulated embodied benchmarks, and sandboxed code or web environments, live external services with irreversible side effects limit arbitrary mid-episode rewinds unless checkpointed or mirrored. Our canonical prefix tree groups actions using normalized text matching and parent-constrained E5 cosine similarity (); domains with highly continuous or parameterized JSON payloads may benefit from domain-specific action canonicalizers. Finally, our minimax shrinkage assumes a uniform scalar drift ratio across tasks and iterations, whereas dynamically estimating per-epoch policy divergence (e.g., from KL drift) could tighten adaptation under abrupt learning-rate schedules.
Ethics Statement
WEIR is a general reinforcement learning optimization method for multi-turn language model agents and does not introduce new datasets, private annotations, or human-subject experiments. All benchmarks used in our evaluation (HotpotQA, 2WikiMultiHopQA, MuSiQue, Bamboogle, ALFWorld, and WebShop) are publicly available academic datasets used under their respective licenses. Improving agent credit assignment and sample efficiency lowers the compute and energy footprint of multi-turn post-training, though stronger autonomous tool-use capabilities inherit standard deployment risks such as unintended tool calls or prompt injection if deployed without sandboxing and human oversight.
Extended Related Work
Table 4 positions WEIR relative to representative group-based, tree-search, and actor-critic RL methods for multi-turn LLM agents across the five structural axes governing our design.
| Method | Learned Critic | Prefix Pooling | Drift Shrinkage | Task Budget | Turn Branching |
| GRPO ([6]) | × | × | × | uniform | chain |
| GiGPO ([9]) | × | state group | × | uniform | chain |
| Tree-GRPO ([11]) | × | intra-tree | × | uniform | uniform |
| AT²PO ([12]) | × | intra-tree | × | uniform | token entropy |
| Turn-PPO ([7]) | full history | × | × | uniform | chain |
| CAPO ([15]) | action-aligned | × | × | uniform | chain |
| TRACE ([42]) | alloc. only | prefix predictor | × | mixed-outcome | mixed-outcome |
| WEIR (ours) | action prefix | cross-step tree | Neyman | watershed cliff |
Table 4. Table 4: Conceptual comparison of multi-turn agent RL frameworks. WEIR is the only framework combining an action-prefix critic, cross-step discounted tree statistics with minimax shrinkage, Neyman task stratification, and watershed turn branching in a single closed loop.
Turn- and token-level credit assignment. Standard outcome-based policy optimization assigns identical scalar advantages across all turns and tokens [20, 6, 21]. Because long-horizon multi-turn tasks compound this credit ambiguity [3] (Wei et al. 2025), recent work has attacked credit assignment from two angles. First, advantage-redistribution methods reshape trajectory outcomes: GiGPO [9] clusters matching anchor states within a batch; PGPO [8] propagates empirical potential differences across trajectories; GAGPO [14] constructs non-parametric grouped TD/GAE proxies; IAPO [25] builds an influence-dependency graph over support-use and failed-use transitions; FACTOR [28] separates action-level TD credit from hindsight token allocation; and TRCA [26] and TRIAGE [27] use transition rubrics or semantic role classification. Second, critic-based methods stabilize value optimization under long horizons [18, 19] or use baselines at sequence, turn, and action levels, including ArCHer [17], SWEET-RL [29], Turn-PPO [7], SPPO (Wang et al., 2026), CAPO (Wang et al., 2026), and VETTA [30]. WEIR preserves turn-level actor-critic GAE while replacing noisy single-trajectory regression targets with minimax drift-shrunk canonical prefix values.
Tree rollouts and adaptive sampling budgets. Tree-structured methods share prefixes for rollout expansion and credit assignment [32, 10, 33, 11, 13]. At the task level, GRESO (Zheng et al., 2025), PCL [35], and CoBA-RL [37] concentrate sampling on intermediate-difficulty prompts. At the turn level, ARPO [38] and AT2PO [12] expand high-entropy token forks, ATPO [39] uses Bellman error plus action-value variance in medical dialogue trees, IGRPO [40] scores branches by ground-truth answer information gain, ProGPO [41] tracks progress reliability, and TRACE [42] trains an auxiliary mixed-outcome predictor to allocate budgets at prompt roots and intermediate prefixes for group-relative updates. WEIR differs in two fundamental respects: (i) it uses the same prefix critic for both turn-level GAE baselines and bilevel rollout allocation, and (ii) it derives both allocation levels from variance-minimization principles (Neyman stratification and Doob turn-variance conservation) rather than discrete 3-bin quotas or raw token entropy.
Complete Theoretical Proofs and Verification
Proof of Proposition 1 (Doob Turn-Variance Conservation)
Proof. Let be the probability space induced by running policy on task in an arbitrary non-Markovian POMDP with maximum horizon (padding shorter trajectories by absorbing terminal states so and for ). Let for , and . Clearly is a valid filtration, and is bounded and integrable. By definition,
and . By the tower property of conditional expectation, for any ,
Hence is a Doob martingale with respect to . Its increments satisfy , so for any ,
Because martingale increments are pairwise orthogonal in and , we obtain
For binary rewards , , yielding (10). Notice that no Markov assumption on is invoked: unobserved reasoning and observations are marginalized into .
Proof of Proposition 2 (Minimax Drift-Aware Shrinkage)
Proof. Let denote the true value of prefix node under the current policy . Suppose satisfies and while the leave-one-out historical pooled estimator has expectation with drift bias and variance (), uncorrelated with by construction of leave-one-out exclusion. For any linear combination with , its bias and variance are
Taking the supremum of the mean squared error over the bounded drift ball gives
is strictly convex quadratic in . Differentiating with respect to and setting to zero yields
Substituting back into gives
Since , , so strictly for every and . Moreover, recovers cleanly when no prior evidence exists, and automatically caps trust in historical statistics whenever policy drift is present.
Proof of Proposition 3 (Watershed Branching Efficiency)
Proof. Let index the eligible non-terminal branch turns along a trunk, with nonnegative variance-reduction utilities and mean . Under uniform sampling, and . Under importance weights ,
More generally, for any selection probabilities , the covariance identity yields , so any positively aligned surrogate () strictly beats uniform turn branching.
Proof of Proposition 4 (Neyman Optimal Rollout Stratification)
Proof. In a batch of tasks, task receives trajectories whose gradient estimates satisfy for . For the task-balanced batch estimator , assuming conditionally independent trajectories given task ,
To minimize where subject to and , form the Lagrangian . Setting gives . Enforcing yields
By the Cauchy–Schwarz inequality, with strict inequality unless all are equal, proving . Any piecewise-constant 3-bin tertile rule likewise incurs strict Jensen suboptimality within heterogeneous bins. □
Corollary 1 (Unbiased Task Gradient Weighting). Under non-uniform task trajectory counts summing to , weighting each trajectory in (9) by yields , preserving uniform expectation over tasks while achieving the reduced Neyman variance of Proposition 4.
Exact numerical verification. We verified all four propositions programmatically in code/theory_checks.py using controlled checks, including an exactly enumerated 4-turn, 3-action non-Markovian POMDP with a hidden binary latent state influencing both transition probabilities and observations:
Proposition 1: Exact enumeration gives root variance and ().
Proposition 2: Across and , empirical worst-case MSE matches to ; at , vs. for fixed .
Proposition 3: On a 6-turn trajectory with a watershed turn, identically.
Proposition 4: Across tasks with and , Neyman allocation lowers batch estimator variance by 17.9% vs. uniform sampling and 14.1% vs. 3-bin tertiles.
Detailed Experimental Setup and Prompt Templates
Datasets, Retrieval, and Evaluation Splits
Table Table 5 summarizes dataset split sizes and evaluation protocols across the four Multi-hop QA datasets and two interactive environments. For Multi-hop QA, reinforcement learning trains exclusively on HotpotQA [49] training questions; 2WikiMultiHopQA [50], MuSiQue [51], and Bamboogle [52] test cross-dataset compositional transfer without in-domain RL updates. Retrieval uses a frozen Wikipedia corpus indexed by E5-base-v2 [45], returning top-3 passages per <search> call. Unfinished trajectories after 4 search turns receive a final answer-generation step with retrieval disabled. ALFWorld [4] and WebShop [5] follow standard text-only ReAct interaction with a sliding window of the latest 2 turns.
| Benchmark | Train | Eval | Role |
| HotpotQA | 90,447 | 2,000 | In-domain QA |
| 2WikiMultiHopQA | — | 2,000 | Cross-dataset transfer |
| MuSiQue | — | 2,000 | Cross-dataset transfer |
| Bamboogle | — | 125 | Cross-dataset transfer |
| ALFWorld | 1,000 | 134 | Embodied household |
| WebShop | 1,024 | 256 | Web shopping |
Table 5. Benchmark split sizes and training relation.
Interaction Settings and Hyperparameters
Tables Table 6 and Table 7 list all environment limits, optimizer settings, and WEIR parameters. Across all three tasks, the critic initializes from QWEN2.5-3B-INSTRUCT with a linear scalar head. Critic warm-up steps (25 for QA, 30 for ALFWorld/WebShop) freeze the actor to populate the initial prefix tree and calibrate , and are counted inside the total 150 / 120 update budget so baseline compute comparisons remain fair. For baselines on Multi-hop QA (GRPO and Tree-GRPO) whose training rewards collapse late in training (Figure 4c), we report their best observed validation checkpoints; all actor-critic methods including WEIR report final checkpoints. All experiments run on 8× NVIDIA A100 80GB GPUs with bfloat16 precision.
| Setting | Multi-hop QA | ALFWorld | WebShop |
| Initial prompt limit | 2,048 tok. | 2,048 tok. | 4,096 tok. |
| Context window | 4,096 tok. | 2 turns | 2 turns |
| Max generation / turn | 500 tok. | 512 tok. | 512 tok. |
| Max turns | 4 + ans. | 40 | 15 |
| Eval temperature | 0.0 | 0.4 | 1.0 |
| Train temp. / top- | 1.0 / 1.0 | 1.0 / 1.0 | 1.0 / 1.0 |
Table 6. Interaction environment limits across tasks.
| Hyperparameter | QA | ALFWorld | WebShop |
| Tasks per batch | 32 | 32 | 32 |
| Total updates (incl. warmup) | 150 | 120 | 120 |
| Warm-up steps | 25 | 30 | 30 |
| Trunks / avg. branches | 2 / 4 | 4 / 4 | 4 / 4 |
| Neyman bounds | [2, 7] | [2, 7] | [2, 7] |
| Actor learning rate | |||
| Critic learning rate | |||
| KL coefficient | |||
| Clip interval | [0.98, 1.03] | [0.98, 1.03] | [0.98, 1.03] |
| GAE | (1, 1) | (1, 1) | (1, 1) |
| Historical discount | 0.95 | 0.95 | 0.95 |
| Drift ratio | 0.40 | 0.40 | 0.40 |
| Watershed | (0.05, 0.15) | (0.05, 0.15) | (0.05, 0.15) |
| Semantic threshold | 0.95 | Exact | Exact |
| Critic target scale | 1 | 10 | 1 |
Table 7. Complete optimization and WEIR hyperparameters.
Prompt Templates
For full reproducibility, we list the exact interaction prompt templates used for Multi-hop QA, ALFWorld, and WebShop below.
Multi-hop QA prompt template.
Answer the given question. You must conduct reasoning inside <think> and </think> first every time you get new information. After reasoning, if you find you lack some knowledge, you can call a search engine by <search> query </search> and it will return the top searched results between <information> and </information>. You can search as many times as you want. If you find no further external knowledge needed, you can directly provide the answer inside <answer> and </answer>, without detailed illustrations. For example, <answer> Beijing </answer>. Question: {question}
ALFWorld prompt template (with interaction history).
You are an expert agent operating in the ALFRED Embodied Environment. Your task is to: {task_description} Prior to this step, you have already taken {step_count} step(s). Below are the most recent {history_length} observations and the corresponding actions you took: {action_history} You are now at step {current_step} and your current observation is: {current_observation} Your admissible actions of the current situation are: [{admissible_actions}].
Now it's your turn to take an action. You should first reason step-by-step about the current situation. This reasoning process MUST be enclosed within <think> </think> tags. Once you've finished your reasoning, you should choose an admissible action for current step and present it within <action> </action> tags.
WebShop prompt template (with interaction history).
You are an expert autonomous agent operating in the WebShop e-commerce environment. Your task is to: {task_description}. Prior to this step, you have already taken {step_count} step(s). Below are the most recent {history_length} observations and the corresponding actions you took: {action_history} You are now at step {current_step} and your current observation is: {current_observation}. Your admissible actions of the current situation are: [{available_actions}].
Now it's your turn to take one action. You should first reason step-by-step about the current situation, then think carefully which admissible action best advances the shopping goal. This reasoning process MUST be enclosed within <think> </think> tags. Once you've finished your reasoning, you should choose an admissible action for current step and present it within <action> </action> tags.
Algorithmic and Implementation Details
Parent-constrained canonical prefix lookup. Algorithm 2 specifies how WEIR maps an action sequence into a canonical path inside task tree . Actions are first normalized via lower-casing, trimming, and whitespace collapsing. If an exact normalized child match misses in parent and the action is a Multi-hop QA search query, WEIR encodes the query using E5-base-v2 (Wang et al., [45] with prefix query: (64-token max window, masked mean pooling, L2 normalized) and checks cosine similarity only against the current parent’s existing children . If the highest similarity meets , the query merges into that child node as an alias while preserving the child’s representative embedding; otherwise a new node is created. Restricting semantic search to preserves prefix order and caps lookup cost at , where .
State restoration and token-level gradients. An eligible branch origin must be non-terminal, possess a recorded environment checkpoint, and have remaining interaction turns. Upon selection, WEIR resets the simulator (ALFWorld/WebShop) or restores the retrieved-passage context (Multi-hop QA), replays to verify exact obAlgorithm 2: Parent-constrained canonical prefix insertion
Input: Action sequence , prefix tree , threshold Output: Canonical node path
for do
if and is a QA search action then
if and
then
end
if then
end
return
servation equivalence, and samples a suffix continuation under frozen . Both inherited trunk tokens and new continuation tokens enter the valid actor-token mask while environment observation tokens are masked out. To propagate per-token gradients while retaining turn-level importance ratios in (8), we implement where is token ’s log-probability and is stop-gradient (Zheng et al., 2025).
Supplementary Experiments and Diagnostics
Multi-Seed Variance and Significance
Table 8 reports mean and standard deviation across three random seeds on Multi-hop QA, ALFWorld, and WebShop for both 3B and 7B actors. Across all six benchmark-scale columns, WEIR exhibits lower cross-seed variance than group-based and full-history actor-critic baselines, and its margin over CAPO exceeds 3× the combined standard deviation on QA Avg. and 2.7× on ALFWorld.
| Method | QA Avg. | ALFWorld | WebShop | QA Avg. | ALFWorld | WebShop |
| \multicolumn{3}{c}{Qwen2.5-3B-Instruct} | \multicolumn{3}{c}{Qwen2.5-7B-Instruct} | |||||
| GRPO | ||||||
| Turn-PPO | ||||||
| GiGPO | ||||||
| ATPO | ||||||
| PGPO | ||||||
| CAPO | ||||||
| WEIR |
Table 8. Multi-seed mean ± standard deviation across three random seeds on Multi-hop QA Avg., ALFWorld, and WebShop.
Embodied Category Analysis, Turn Efficiency, and Warm-Up
Table 9 and Figure 6 provide fine-grained diagnostics from our embodied and web experiments. First (Table 9 and Figure 6a), across all six ALFWorld task families, WEIR’s advantage is largest on multi-step compositional tasks (Pick2: +4.3 points over CAPO; Look: +3.7 points), where misidentifying an intermediate object or receptacle induces steep value cliffs detected by our watershed score. Second (Figure 6b), WEIR solves tasks in substantially fewer environment interactions (13.7 turns on ALFWorld vs. 16.9 for Turn-PPO; 6.1 turns on WebShop vs. 7.4), indicating that watershed credit pruning suppresses redundant navigation loops. Third (Figure 6c), sweeping critic warm-up steps (0–40 out of 150) and GAE confirms that 25 warm-up steps with achieves peak accuracy while avoiding credit attenuation over multi-hop horizons.
Figure 6. Supplementary embodied analysis and warm-up sensitivity (7B). (a) ALFWorld success across all six task categories. (b) Average environment turns to episode completion (↓) on ALFWorld and WebShop. (c) Sensitivity to critic warm-up steps and GAE parameter on Multi-hop QA.
Backbone Scaling and Qwen3-4B Generalization
Table 10 evaluates WEIR across four QWEN2.5-INSTRUCT model sizes (1.5B, 3B, 7B, 14B) as well as QWEN3-4B [48]. On QWEN2.5-1.5B, where sparse outcome signals cause GRPO to stall at 17.85% QA Avg. and 58.21% ALF-World, WEIR reaches 24.90% and 71.64%, exceeding CAPO by +7.05 and +5.22 points. On QWEN2.5-14B and QWEN3-4B, WEIR maintains +2.25–+2.75 QA gains and +3.24–+3.49 ALF-World gains, confirming that drift-aware prefix shrinkage and watershed branching transfer across both model capacity and model family.
| Actor Backbone | Multi-hop QA Avg. (% ↑) | ALFWorld Success (% ↑) | ||||||
| GRPO | Turn-PPO | CAPO | WEIR | GRPO | Turn-PPO | CAPO | WEIR | |
| Qwen2.5-1.5B-Instruct | 17.85 | 20.40 | 22.15 | 24.90 | 58.21 | 61.94 | 66.42 | 71.64 |
| Qwen2.5-3B-Instruct | 23.89 | 27.13 | 28.99 | 32.18 | 75.87 | 74.38 | 81.09 | 84.83 |
| Qwen2.5-7B-Instruct | 33.78 | 32.68 | 35.63 | 37.85 | 79.10 | 80.10 | 84.33 | 87.81 |
| Qwen2.5-14B-Instruct | 38.45 | 38.10 | 40.35 | 42.60 | 83.58 | 84.83 | 87.56 | 90.80 |
| Qwen3-4B (Yang et al., [48]) | 32.90 | 33.45 | 35.40 | 38.15 | 80.60 | 81.59 | 85.07 | 88.56 |
Table 10. Backbone scaling (1.5B–14B) and QWEN3-4B generalization on Multi-hop QA Avg. and ALFWorld.
Rollout Budget Scaling and Wall-Clock Cost
Table 11 varies the average total rollout count per task on 7B Multi-hop QA. Because branches share their trunk prefixes, WEIR with (2 + 2) consumes only 0.52× the rollout tokens of standard 6-chain sampling and 4.1 wall-clock hours on eight A100 GPUs, yet already outperforms 6-rollout Turn-PPO (36.15% vs. 32.68%) and 6-rollout AT²PO (35.19%). Increasing to 8 (2 + 6) pushes QA Avg. to 38.62% while still staying under the token cost of 6 independent chains (0.91×).
| Avg. | Turn-PPO | AT²PO | WEIR | Tok. × | Hours | ||
| 4 | 2 + 2 | 31.10 | 33.65 | 36.15 | 0.52× | 4.1 h | |
| 6 | 2 + 4 | 32.68 | 35.19 | 37.85 | 0.72× | 5.4 h | |
| 8 | 2 + 6 | 33.45 | 35.95 | 38.62 | 0.91× | 6.7 h | |
| 12 | 4 + 8 | 34.10 | 36.60 | 39.25 | 1.34× | 9.5 h |
Table 11. Rollout budget scaling on 7B Multi-hop QA (8×A100 wall-clock hours and token ratio vs. 6-chain GRPO).
Hyperparameter Sensitivity and Semantic Matching
Table 12 and Table 13 report full numerical grids for (visualized in Figure 5d) and the E5 semantic merging threshold (visualized in Figure 7c). In Table 13, moving from exact string matching (34.2% prefix hit rate, 36.75% QA Avg.) to parent-constrained cosine matching at raises the prefix hit rate to 56.4% and lifts QA Avg. to 37.85%. Dropping further to 0.85 merges distinct search queries (79.5% hit rate), corrupting node values and lowering QA Avg. to 36.23%.
| Drift | ||||
| 0.0 | 37.18 | 37.35 | 37.22 | 37.04 |
| 0.2 | 37.52 | 37.76 | 37.65 | 37.42 |
| 0.4 | 37.64 | 37.85 | 37.78 | 37.54 |
| 0.8 | 37.48 | 37.68 | 37.60 | 37.38 |
| 1.5 | 37.15 | 37.32 | 37.25 | 37.10 |
Table 12. Sensitivity to drift ratio and historical discount (7B Multi-hop QA Avg., EM %).
| Prefix Matching Rule | HotpotQA | 2Wiki | MuSiQue | Bamboogle | QA Avg. | Hit (%) |
| Exact string match only | 43.20 | 40.30 | 19.10 | 44.40 | 36.75 | 34.2 |
| Cosine | 43.90 | 40.90 | 19.60 | 45.20 | 37.40 | 44.8 |
| Cosine (default) | 44.30 | 41.20 | 19.90 | 46.00 | 37.85 | 56.4 |
| Cosine | 44.00 | 40.80 | 19.50 | 45.20 | 37.38 | 68.1 |
| Cosine (over-merging) | 42.90 | 39.70 | 18.70 | 43.60 | 36.23 | 79.5 |
Table 13. Effect of semantic query matching threshold on 7B Multi-hop QA (EM, %) and historical prefix hit rate.
Figure 7. Online critic diagnostics, policy entropy, and semantic matching (7B). (a) Online critic explained variance over steps 30–150. (b) Actor token entropy confirming stable exploration in WEIR vs. GRPO late collapse. (c) Trade-off between E5 cosine threshold , prefix hit rate, and QA accuracy.
Controlled Offline MC64 Protocol and Online Training Dynamics
Offline MC64 critic protocol. To isolate critic input representation and target shrinkage from policy feedback, we sample 32 trajectories per question across 2,048 HotpotQA training questions using a fixed 3B actor, retaining 1,362 questions with mixed outcomes. Within each question, 24 trajectories form the critic training split (and populate offline prefix statistics) while 8 trajectories are held out to extract evaluation prefixes. For every held-out test prefix, we draw 64 independent continuations under the same fixed actor to form the MC64 ground truth, pooling counts at the semantic-node level. After one matched epoch, WEIR’s precision shrinkage outperforms full-context single-outcome training by 49.8% in MSE (0.0384 vs. 0.0765), 0.243 in within-question Pearson (0.704 vs. 0.461), and 54.1% in ECE-10 (0.0428 vs. 0.0933; Table 3). Online training dynamics. Figure 7 tracks online critic explained variance (steps 30–150), actor token entropy, and the semantic matching trade-off. WEIR maintains a mean explained variance of 0.432 against 0.358 for fixed-mix prefix targets and 0.258 for Turn-PPO, while preserving actor token entropy (0.38 nats at step 150) where GRPO suffers premature entropy collapse below 0.12 nats.
Qualitative Error Taxonomy
Inspecting 100 failed 7B evaluation episodes across HotpotQA, ALFWorld, and WebShop reveals three primary residual error modes in WEIR: (i) initial query under-specification (38% of QA errors), where the first search query misses a rare entity alias before any branching can recover; (ii) irreversible receptacle misplacement in ALFWorld (41% of embodied errors), where an early placement saturates the turn budget or exhausts admissible state resets; and (iii) multi-constraint attribute omissions in WebShop (34% of web errors), where the agent matches item category and color but overlooks size or price constraints in the final purchase step.
Extended Discussion
Why Doob conservation forces joint critic–allocation design. Proposition 1 links turn-level credit assignment and rollout allocation through the same variance budget. Because root uncertainty equals the expected sum of squared turn increments , uniform or naive branching spreads scarce continuations over flat regions where , starving the critic precisely at the watershed turns where value actually separates. Conversely, without an accurate, calibrated prefix critic, neither Neyman task budgeting nor watershed cliff detection can distinguish undecided frontier states from settled dead ends.
Why prefix decoupling improves calibration. Full-history critics condition on long chain-of-thought traces and noisy environment boilerplate. Even when two trajectories execute identical tool sequences, stylistic fluctuations in induce spurious correlations with single-trajectory terminal outcomes, inflating ECE-10 (0.1232 for Turn-PPO online). Conditioning strictly on canonical action prefixes forces the critic to estimate continuation probability from environment-grounded decisions, while leaving the actor policy conditioned on the full history so internal reasoning capacity is never restricted.
Watershed cliffs versus token entropy. Entropy-based tree expansion methods ([38, 12]) assume that high next-token entropy implies high value uncertainty. In multi-turn embodied and search agents, we observe a sharp decoupling: once an agent enters an unrecoverable state (e.g., querying an irrelevant entity or looping in an empty room), the model often exhibits higher lexical entropy over fallback phrases even though continuation value has collapsed below 0.05. Weighting branch selection by filters out high-entropy dead ends and focuses continuations on consequential forks (Figure 3a).
Practical tuning and deployment notes. The default settings (, , , ) transfer without modification from 1.5B to 14B and across Qwen2.5 and Qwen3 families. When training with very small batch sizes () or rapidly decaying learning rates, lowering to 0.90 prevents stale statistics from lingering across rapid policy shifts, while raising toward 0.8 conservatively favors fresh trajectories. Monitoring the fraction of branches landing in provides a zero-cost online sanity check for critic calibration.
References
- [1]Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. 2023. ReAct: Synergizing reasoning and acting in language models. In International Conference on Learning Representations.arxiv.org/abs/2210.03629
- [2]Bowen Jin, Hansi Zeng, Zhenrui Yue, Jinsung Yoon, Seongjun Arik, Dong Wang, Hamed Zamani, and Jiawei Han. 2025. Search-R1: Training LLMs to reason and leverage search engines with reinforcement learning. arXiv preprint arXiv:2503.09516.arxiv.org/abs/2503.09516
- [3]Zihan Wang, Kangrui Wang, Qinenq Wang, Pingyue Zhang, Lijie Li, Zhengyuan Yang, Xing Jin, Kefan Yu, Minh Nhat Nguyen, Licheng Liu, Eli Gottlieb, Yiping Lu, Kyunghyun Cho, Jiajun Wu, Li Fei-Fei, Lijuan Wang, Yejin Choi, and Manling Li. 2025. RA-GEN: Understanding self-evolution in LLM agents via multi-turn reinforcement learning. arXiv preprint arXiv:2504.20073.arxiv.org/abs/2504.20073
- [4]Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Côté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. 2021. ALFWorld: Aligning text and embodied environments for interactive learning. In International Conference on Learning Representations.
- [5]Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. 2022. WebShop: Towards scalable real-world web interaction with grounded language agents. In Advances in Neural Information Processing Systems, pages 20744–20757.arxiv.org/abs/2207.01206
- [6]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. 2024. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300.arxiv.org/abs/2402.03300
- [7]Junbo Li, Peng Zhou, Rui Meng, Meet P. Vadera, Lihong Li, and Yang Li. 2026. Turn-PPO: Turn-level advantage estimation with PPO for improved multi-turn RL in agentic LLMs. In Findings of the Association for Computational Linguistics: EACL 2026, pages 6227–6243.
- [8]Yuyao Zheng, Haipeng Sun, Junwei Bao, Lemao Liu, Hongfei Jiang, Yang Song, and Dejing Dou. 2026. PGPO: Potential-guided policy optimization for multi-turn agentic tasks. arXiv preprint arXiv:2609.02236.arxiv.org/abs/2609.02236
- [9]Lang Feng, Zhenhai Xue, Tingcong Liu, and Bo An. 2025. Group-in-group policy optimization for LLM agent training. arXiv preprint arXiv:2505.10978.arxiv.org/abs/2505.10978
- [10]Zhicheng Yang, Zhiqiang Guo, Yinya Huang, Xiaodan Liang, Yiwei Wang, and Jing Tang. 2025. TreePRO: Tree relative policy optimization. arXiv preprint arXiv:2506.05183.arxiv.org/abs/2506.05183
- [11]Yuxiang Ji, Ziyu Ma, Yong Wang, Guanhua Chen, Xiangxiang Chu, and Liaoni Wu. 2025. Tree search for LLM agent reinforcement learning. arXiv preprint arXiv:2509.21240.arxiv.org/abs/2509.21240
- [12]Zefang Zong, Dingwei Chen, Yang Li, Qi Yi, Bo Zhou, Chengming Li, Bo Qian, Peng Chen, and Jie Jiang. 2026. AT2PO: Agentic turn-based policy optimization via tree search. arXiv preprint arXiv:2601.04767.arxiv.org/abs/2601.04767
- [13]Tao Wang, Suhang Zheng, and Xiaoxiao Xu. 2026. RTMC: Step-level credit assignment via rollout trees. arXiv preprint arXiv:2604.11037.arxiv.org/abs/2604.11037
- [14]Siyuan Zhu, Chao Yu, Rongxin Yang, Zongkai Liu, Jinjun Hu, Qiwen Chen, and Yibo Zhang. 2026. GAGPO: Generalized advantage grouped policy optimization. In Findings of the Association for Computational Linguistics: EMNLP 2026, pages 18261–18274.
- [15]Daoyu Wang, Qingchuan Li, Mingyue Cheng, Jie Ouyang, Shuo Yu, Chunli Liu, Shijin Wang, Qi Liu, and Enhong Chen. 2026. CAPO: Critic-guided action-aligned policy optimization for advancing LLM agent capabilities. arXiv preprint arXiv:2604.18401.arxiv.org/abs/2604.18401
- [16]John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. 2016. High-dimensional continuous control using generalized advantage estimation. In International Conference on Learning Representations.arxiv.org/abs/1506.02438
- [17]Yifei Zhou, Andrea Zanette, Jiayi Pan, Sergey Levine, and Aviral Kumar. 2024. ArCHer: Training language model agents via hierarchical multi-turn RL. In Proceedings of the 41st International Conference on Machine Learning, pages 62178–62209.arxiv.org/abs/2402.19446
- [18]Yufeng Yuan, Yu Yue, Ruofei Zhu, Tiantian Fan, and Lin Yan. 2025. What’s behind PPO’s collapse in long-CoT? value optimization holds the secret. arXiv preprint arXiv:2503.01491.arxiv.org/abs/2503.01491
- [19]Yu Yue, Yufeng Yuan, Qiying Yu, Xiaochen Zuo, Ruofei Zhu, Wenyuan Xu, Jiaze Chen, Chengyi Wang, TianTian Fan, Zhengyin Du, Xiangpeng Wei, Xiangyu Yu, Gaohong Liu, Juncai Liu, Lingjun Liu, Haibin Lin, Zhiqi Lin, Bole Ma, Chi Zhang, and 8 others. 2025. VAPO: Efficient and reliable reinforcement learning for advanced reasoning tasks. arXiv preprint arXiv:2504.05118.arxiv.org/abs/2504.05118
- [20]Arash Ahmadian, Chris Cremer, Matthias Gallé, Marzieh Fadaee, Julia Kreutzer, Olivier Pietquin, Ahmet Üstün, and Sara Hooker. 2024. Back to basics: Revisiting REINFORCE-style optimization for learning from human feedback in LLMs. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12248–12267.arxiv.org/abs/2402.14740
- [21]Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Weinan Dai, Tiantian Fan, Gaohong Liu, Lingjun Liu, Xin Liu, Haibin Lin, Zhiqi Lin, Bole Ma, Guangming Sheng, Yuxuan Tong, Chi Zhang, Mofan Zhang, Wang Zhang, and 16 others. 2025. DAPO: An open-source LLM reinforcement learning system at scale. arXiv preprint arXiv:2503.14476.arxiv.org/abs/2503.14476
- [22]Hao Sun, Zile Qiao, Jiayan Guo, Xuanbo Fan, Yingyan Hou, Yong Jiang, Pengjun Xie, Yan Zhang, Fei Huang, and Jingren Zhou. 2025. ZeroSearch: Incentivize the search capability of LLMs without searching. arXiv preprint arXiv:2505.04588.arxiv.org/abs/2505.04588
- [25]Bo Ren, Yirong Mao, Yi Yang, and Wenhui Que. 2026. IAPO: Influence-aware policy optimization for credit assignment in multi-turn service agents. arXiv preprint arXiv:2608.24588.arxiv.org/abs/2608.24588
- [26]Huan Zhang, Mingju Chen, Dongxu Zhou, Can Lv, Heng Chang, Sen Cui, Faguo Wu, and Shiji Zhou. 2026. TRCA: Transition-wise rubric credit assignment for long-horizon LLM agents. arXiv preprint arXiv:2608.16156.arxiv.org/abs/2608.16156
- [27]Yuanda Xu, Zhengze Zhou, Hejian Sang, Xiaomin Li, Jiaxin Zhang, Xinchen Du, Sen Na, Zhipeng Wang, and Alborz Geramifard. 2026. TRIAGE: Role-typed credit assignment for agentic reinforcement learning. arXiv preprint arXiv:2606.32017.arxiv.org/abs/2606.32017
- [28]Lichao Ma, Yang Sun, Shuitao Zhao, Yangyi Fang, Cong Qin, Xiaoliang Fu, Yuhang Tian, Yuchen Wei, Junbo Zhu, Yang Wei, Lu Pan, and Jiaye Lin. 2026. How much, then where: Credit-conserving action-token allocation for multi-turn agent reinforcement learning. arXiv preprint arXiv:2608.07118.arxiv.org/abs/2608.07118
- [29]Yifei Zhou, Song Jiang, Yuandong Tian, Jason Weston, Sergey Levine, Sanbaiyar Sukhbaatar, and Xian Li. 2025. SWET-RL: Training multi-turn LLM agents on collaborative reasoning tasks. arXiv preprint arXiv:2503.15478.arxiv.org/abs/2503.15478
- [30]Jiaju Chen, Min Yang, Jinghua Piao, Xiaochong Lan, Xu Xia, Xiangnan He, and Yong Li. 2026. VETTA: Coordinating turn- and token-level credit assignment for multi-turn LLM agents. arXiv preprint arXiv:2610.08402.arxiv.org/abs/2610.08402
- [32]Amirhossein Kazemnejad, Milad Aghajohari, Eva Portelance, Alessandro Sordoni, Siva Reddy, Aaron Courville, and Nicolas Le Roux. 2025. VinePPO: Refining credit assignment in RL training of LLMs. In Proceedings of the 42nd International Conference on Machine Learning, pages 29557–29590.arxiv.org/abs/2410.01679
- [33]Hieu Tran, Zonghai Yao, and Hong Yu. 2025. Exploiting tree structure for credit assignment in RL training of LLMs. arXiv preprint arXiv:2509.18314.arxiv.org/abs/2509.18314
- [35]Zhaolin Gao, Joongwon Kim, Wen Sun, Thorsten Joachims, Sid Wang, Richard Yuanzhe Pang, and Liang Tan. 2025. Prompt curriculum learning for efficient LLM post-training. arXiv preprint arXiv:2510.01135.arxiv.org/abs/2510.01135
- [36]Mei Okonkwo, Pixel Nomand, Julian Berg, Elena Voss, Lena Park, Marcus Hale, Adrian Cho, and Sofia Reyes. 2026. Prompts live on an arc: Gaussian curricula in fisher–rao coordinates for rollout-efficient GRPO. arXiv preprint arXiv:2609.38018.
- [37]Zhiyuan Yao, Yi-Kai Zhang, Yuxin Chen, Yueqing Sun, Zishan Xu, Yu Yang, Tianhao Hu, Qi Gu, Hui Su, and Xunliang Cai. 2026. CoBaRL: Capability-oriented budget allocation for reinforcement learning in LLMs. arXiv preprint arXiv:2602.03048.arxiv.org/abs/2602.03048
- [38]Guanting Dong, Hangyu Mao, Kai Ma, Licheng Bao, Yifei Chen, Zhongyuan Wang, Zhongxia Chen, Jiazhen Du, Huiyang Wang, Fuzheng Zhang, Guorui Zhou, Yutao Zhu, Ji-Rong Wen, and Zhicheng Dou. 2025. Agentic reinforced policy optimization. arXiv preprint arXiv:2507.19849.arxiv.org/abs/2507.19849
- [39]Ruike Cao, Shaojie Bai, Fugen Yao, Liang Dong, Jian Xu, and Li Xiao. 2026. ATPO: Adaptive tree policy optimization for multi-turn medical dialogue. In International Conference on Learning Representations.arxiv.org/abs/2603.02216
- [40]Yijun Zhang, Fan Xu, Jiaxin Ding, Yule Xie, Xin Ding, and Haoxiang Zhang. 2026. Information gain-based rollout policy optimization: An adaptive tree-structured rollout approach for multi-turn search agents. arXiv preprint arXiv:2607.06223.arxiv.org/abs/2607.06223
- [41]Mingxuan Fan and Peiyang Liu. 2026. Progress-and reliability-oriented group policy optimization for agentic reinforcement learning. arXiv preprint arXiv:2607.04242.arxiv.org/abs/2607.04242
- [42]Heming Zou, Qi Wang, Yun Qu, Yuhang Jiang, Lizhou Cai, Yixiu Mao, Ru Peng, Xin Xu, Weijie Liu, Rui Yang, Saiyong Yang, and Xiangyang Ji. 2026. TRACE: A unified rollout budget allocation framework for efficient agentic reinforcement learning. arXiv preprint arXiv:2606.11119.arxiv.org/abs/2606.11119
- [43]Pixel Nomand, Elena Voss, Marcus Hale, and Sofia Reyes. 2026a. Early verdicts, better budgets: Sequential adaptive rollout allocation for compute-efficient RLVR. arXiv preprint arXiv:2607.26253.arxiv.org/abs/2607.26253
- [44]Pixel Nomand, Elena Voss, Marcus Hale, and Sofia Reyes. 2026b. PAIR: Pairwise-aware inclusion reweighting for adaptive rollout allocation in RLVR. arXiv preprint arXiv:2608.11368.arxiv.org/abs/2608.11368
- [45]Liang Wang, Nan Yang, Xiaolong Huang, Binxing Jiao, Linjun Yang, Daxin Jiang, Rangan Majumder, and Furu Wei. 2022. Text embeddings by weakly-supervised contrastive pre-training. arXiv preprint arXiv:2212.03533.arxiv.org/abs/2212.03533
- [46]Chujie Zheng, Shixuan Liu, Mingze Li, Xiong-Hui Chen, Bowen Yu, Chang Gao, Kai Dang, Yuqiong Liu, Rui Men, An Yang, Jingren Zhou, and Junyang Lin. 2025. Group sequence policy optimization. arXiv preprint arXiv:2507.18071.arxiv.org/abs/2507.18071
- [47]An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, Junyang Lin, Kai Dang, and 23 others. 2024. Qwen2.5 technical report. arXiv preprint arXiv:2412.15115.arxiv.org/abs/2412.15115
- [48]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chenggen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, and 41 others. 2025. Qwen3 technical report. arXiv preprint arXiv:2505.09388.arxiv.org/abs/2505.09388
- [49]Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William Cohen, Ruslan Salakhutdinov, and Christopher D. Manning. 2018. HotpotQA: A dataset for diverse, explainable multi-hop question answering. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 2369–2380.arxiv.org/abs/1809.09600
- [50]Xanh Ho, Anh-Khoa Duong Nguyen, Saku Sugawara, and Akiko Aizawa. 2020. Constructing a multi-hop QA dataset for comprehensive evaluation of reasoning steps. In Proceedings of the 28th International Conference on Computational Linguistics, pages 6609–6625.
- [51]Harsh Trivedi, Niranjan Balasubramanian, Tushar Khot, and Ashish Sabharwal. 2022. MuSiQue: Multi-hop questions via single-hop question composition. Transactions of the Association for Computational Linguistics, 10:539–554.DOI
- [52]Ofir Press, Muru Zhang, Sewon Min, Ludwig Schmidt, Noah Smith, and Mike Lewis. 2023. Measuring and narrowing the compositionality gap in language models. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 5687–5711.arxiv.org/abs/2210.03350
- [53]John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. 2017. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347.arxiv.org/abs/1707.06347
- [54]Xuhui Zheng, Kang An, Ziliang Wang, Yuhang Wang, and Yichao Wu. 2025. StepSearch: Igniting LLMs search ability via step-wise proximal policy optimization. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 21805–21830.arxiv.org/abs/2505.15107






