WEIR: Watershed Exploration and Drift-Aware Prefix Shrinkage for Multi-Turn Agent Reinforcement Learning
Organizations: University of Wisconsin–Madison · University of Washington
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.
Figures & tables
| Multi-hop QA (EM, % ) | ALFWorld | WebShop | ||||||
| Method | HotpotQA | 2Wiki | MuSiQue | Bamboogle | QA Avg. | Succ. (%) | Succ. (%) | Tok. |
| Qwen2.5-3B-Instruct | ||||||||
| Search-R1 ( Jin et al., 2025 ) † | 30.40 | 29.30 | 12.00 | 24.00 | 23.93 | — | — | — |
| StepSearch ( Zheng et al., 2025c ) † | 34.50 | 32.00 | 17.40 | 34.40 | 29.58 | — | — | — |
| GRPO ( Shao et al., 2024 ) | 30.80 | 30.30 | 9.65 | 24.80 | 23.89 | 75.87 | 66.87 | 1.00 |
| GiGPO ( Feng et al., 2025 ) | 33.10 | 32.40 | 11.40 | 28.80 | 26.43 | 78.61 | 72.40 | 1.00 |
| 3B Actor | 7B Actor | |||
| Configuration | QA | ALF. | QA | 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 |
| Critic Configuration | MSE | Pearson | Within-Q | Spearman | ECE-10 |
|---|---|---|---|---|---|
| Online Step-150 Frozen Critics (256 HotpotQA Tasks, MC64 Reference) | |||||
| Turn-PPO (full history, single outcome) | 0.2076 | 0.220 | 0.142 | 0.135 | 0.1232 |
| Prefix + Undiscounted Mean ( ) | 0.1412 | 0.564 | 0.438 | 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 |
| Controlled Offline Critics (1,362 Mixed-Outcome Tasks, Held-Out MC64 Reference) | |||||
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Learned Critic | Prefix Pooling | Drift Shrinkage | Task Budget | Turn Branching |
|---|---|---|---|---|---|
| GRPO ( Shao et al., 2024 ) | uniform | chain | |||
| GiGPO ( Feng et al., 2025 ) | state group | uniform | chain | ||
| Tree-GRPO ( Ji et al., 2025 ) | intra-tree | uniform | uniform | ||
| AT 2 PO ( Zong et al., 2026 ) | intra-tree | uniform | token entropy | ||
| Turn-PPO ( Li et al., 2026 ) | full history | uniform | chain | ||
| CAPO ( Wang et al., 2026a ) | action-aligned | uniform | chain |
| 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 |
| 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 |
| 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 | |||
| Actor learning rate |
| Qwen2.5-3B-Instruct | Qwen2.5-7B-Instruct | |||||
|---|---|---|---|---|---|---|
| Method | QA Avg. | ALFWorld | WebShop | QA Avg. | ALFWorld | WebShop |
| GRPO | ||||||
| Turn-PPO | ||||||
| GiGPO | ||||||
| AT 2 PO | ||||||
| PGPO | ||||||
| ALFWorld Embodied Categories (Success, % ) | WebShop ( ) | ALF. | ||||||||
| Method | Pick | Look | Clean | Heat | Cool | Pick2 | Overall | Score | Succ. | Turns |
| PPO ( Schulman et al., 2017 ) | 68.1 | 52.4 | 58.6 | 54.2 | 51.8 | 43.5 | 56.22 | 78.4 | 69.50 | 24.6 |
| GRPO ( Shao et al., 2024 ) | 86.4 | 77.8 | 81.2 | 79.5 | 76.4 | 68.2 | 79.10 | 84.9 | 78.57 | 17.8 |
| Tree-GRPO ( Ji et al., 2025 ) | 76.2 | 63.9 | 69.4 | 66.8 | 63.5 | 54.7 | 66.67 | 80.1 | 70.73 | 19.4 |
| Turn-PPO ( Li et al., 2026 ) | 87.5 | 78.9 | 82.0 | 80.4 | 77.9 | 69.4 | 80.10 | 85.8 | 79.73 | 16.9 |
| GiGPO ( Feng et al., 2025 ) | 88.9 | 81.1 | 84.5 | 82.6 | 80.2 | 72.4 | 82.34 | 85.5 | 79.20 | 16.4 |
| Multi-hop QA Avg. (% ) | ALFWorld Success (% ) | |||||||
|---|---|---|---|---|---|---|---|---|
| Actor Backbone | 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., 2025a ) | 32.90 | 33.45 | 35.40 | 38.15 | 80.60 | 81.59 | 85.07 | 88.56 |
| Avg. | Turn-PPO | AT 2 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 |
| Drift | ||||
|---|---|---|---|---|
| 37.18 | 37.35 | 37.22 | 37.04 | |
| 37.52 | 37.76 | 37.65 | 37.42 | |
| 37.64 | 37.85 | 37.78 | 37.54 | |
| 37.48 | 37.68 | 37.60 | 37.38 | |
| 37.15 | 37.32 | 37.25 | 37.10 |
| 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 |
RL for Language Models
Reinforcement learning for language models uses feedback-driven policy updates to improve reasoning, alignment, and interactive behavior.
See all 469 papers