Language-model agents that browse shops, search Wikipedia, or act in text worlds usually get one reward at the very end: the task either succeeded or failed. Recent work turns that single bit into feedback on individual steps. It runs a tree search over the agent's possible actions, finds out which branches tend to succeed, and trains the agent on "this step was better than that one" pairs. This works well, but the search is expensive. The search treats every candidate action as an unrelated slot machine, so each one must be tried separately before anything is known about it. In practice, many candidates are the same idea in different words: two search queries naming the same entity, or two clicks on products from the same listing. A rollout from one of them says a lot about the others, and current searches ignore that information.
We propose to replace the independent per-action statistics inside the search with one shared statistical model over embeddings of (state, action) pairs. Every finished rollout then updates the value estimate of every similar action, including actions at other positions in the tree, not only its siblings. The search spends its rollouts on the comparisons that are still uncertain after this pooling. It stops a comparison once the difference between two actions is confidently signed, and that is exactly the event that produces a usable preference pair. The claim to test is concrete: at a fixed budget of environment steps, this search yields more correct step-level preference pairs, and the agents trained on them are better than those trained on pairs from standard tree search.
Core Claim
Two recent systems generate step-level supervision with Monte Carlo Tree Search (MCTS), a planner that grows a tree of action sequences and uses simulated rollouts to decide which branch to expand. ReasonRAG (Process vs. Outcome Reward) uses MCTS to build 13,000 process-level preference pairs for multi-hop retrieval and trains on them with DPO. The step-level Q-value work (Zhai et al.) uses MCTS rollouts to train a 1.3B critic that reranks candidate actions. STeCa (Wang et al.) finds deviated steps by brute-force Monte Carlo sampling. All three name the rollout cost as their main bottleneck. All three also score candidate actions independently, the textbook "independent arm" assumption from bandits: pulling one arm tells you nothing about any other.
The bandit literature shows how much this assumption costs when it is false. With linear reward coupling, one pull updates a shared parameter and so informs every arm (Kong et al.). Feedback graphs replace the number of arms with a clique-cover size in the regret bound (Caron et al., Tossou et al.). Smoothness over a graph replaces it with an effective dimension; on MovieLens this cut regret from 133.1 for LinUCB to 43.4 (Valko et al.). The closest prior work at the intersection is BAST (Coquelin & Munos). It shows that standard UCT can incur double-exponential regret in tree depth and that assuming smoothness across branches repairs this. BAST, however, assumes a known Lipschitz structure tied to the tree's own ordering, and it was tested only on a one-dimensional synthetic function. Our proposal differs in three ways. We learn similarity from action embeddings rather than assuming it. We share evidence across the whole tree, including "cousin" nodes reached by different histories, and not only within one node's children. And our search objective is the correctness of preference pairs rather than regret.
The Mechanism
Let $\phi(s,a)$ be a fixed embedding of the agent's current context $s$ and a candidate action $a$, taken for example from the policy model's hidden state. Every rollout that passes through $(s,a)$ yields a binary terminal outcome $y \in \{0,1\}$. We model the probability of success as a smooth function $q(s,a)$ with a kernel $k$ over embeddings. We fit it by kernel ridge regression (equivalently, a Gaussian-process posterior) on all rollouts gathered so far anywhere in the tree. This gives a posterior mean $\hat q$ and a width $\sigma$ for every candidate, including candidates that have never been expanded.
Node selection uses the optimistic score $\hat q(s,a) + \beta\,\sigma(s,a)$. This is SpectralUCB/kernel-UCB applied inside the tree, with $\beta$ a confidence multiplier. A Thompson-sampling variant follows Tossou et al.. A pair of sibling actions $(a,b)$ at context $s$ is emitted as a labeled preference once
$$ \hat q(s,a) - \hat q(s,b) - \beta\,\sigma_{a-b}(s) > 0, $$
where $\sigma_{a-b}$ is the posterior width of the difference. Kernel pooling makes this width shrink faster than per-arm counts would allow, and that is where the savings come from. A second rule borrows from UCB-MaxN (Caron et al.). It separates which action we want to learn about from which action we physically roll out: the rollout goes to the neighbor that most reduces the width of the currently undecided pairs. Because the candidate set at each node is small (tens of actions), the computation is cheap. This avoids the intractability of general optimistic planning under bounded eluder dimension noted by Russo and Van Roy. Their eluder and effective-dimension analysis supplies the expected scaling: the rollouts needed per node should grow with the effective dimension of the candidate embeddings, not with the branching factor.
Pooling brings one risk, which is bias. If the kernel wrongly merges a working query with a subtly broken one, the resulting labels are confidently wrong. We therefore build two variants. In the allocation-only variant, the shared model decides where to roll out, but labels use only direct rollout statistics of the two actions. In the full-pooling variant, labels also come from the pooled posterior. Comparing the two tells us whether pooling should be trusted for labels or only for search.
Research Program
We will build the search as a drop-in replacement for the MCTS data-generation stage in two existing pipelines. The first is ReasonRAG-style agentic retrieval on HotpotQA and its companion QA sets, with the RAG-ProGuide recipe. The second is the step-level Q-value pipeline on WebShop. Both environments support resets, so the reversion requirement stated by Zhai et al. is met. We deliberately do not claim to remove that requirement. We will then study three questions. First, how label accuracy per rollout depends on the embedding and kernel bandwidth. Second, whether sharing evidence across cousins, beyond siblings, carries real signal. Third, whether the efficiency gain appears in downstream agents trained by DPO on the harvested pairs. The one theoretical deliverable is modest: a label-correctness guarantee for the allocation-only variant, whose labels remain unbiased, together with a sample bound in terms of effective dimension that adapts Valko et al.. We choose optimistic and Thompson rules rather than elimination rules because Valko et al. found that their tighter-bound eliminator underperformed SpectralUCB in practice.
Baselines
The naive reference point is the pipelines as published: independent UCT with the original rollout allocation, run at the same environment-step budget we give our method. We also run it at five and ten times that budget. The 10x run serves as the reference labeler that defines "correct" preference pairs, and it shows how much budget our method saves.
The strongest existing data-generation method is ReasonRAG's MCTS with Shortest Path Reward Estimation (Zhang et al.). Its reported downstream result is 34.4% exact match and 42.3% F1 averaged over five QA datasets, against Search-R1's 32.8% / 40.7%, using 5,000 training queries. On WebShop, the strongest step-level method is the Q-value critic of Zhai et al.. The file reports it only as relative gains, for example Phi-3-mini "improved by 103% on WebShop" and by 75% on HotpotQA, so we must reproduce its absolute success rate ourselves. The original WebShop paper reports 29.1% success and a score of 62.4 for its best IL+RL agent (Yao et al.). For fairness, every method gets the same queries, the same base policy for proposing candidates, the same number of environment steps and LLM calls for data generation, and the same DPO training recipe and tuning budget; we sweep the exploration constant for all methods alike. Beating a baseline means one of two things. Either we match its downstream EM/F1 or success rate with at most half the rollout budget, or we exceed it at equal budget by more than the seed-to-seed spread across three data-generation seeds.
Two ablations isolate the key ingredient. Sibling-only sharing restricts the kernel to children of the same node, which tests whether cross-tree spillover matters. Hard deduplication merges candidates whose embeddings exceed a similarity threshold and then runs ordinary UCT over the clusters, which tests whether soft graded sharing adds anything beyond collapsing paraphrases. A further control keeps our pair-stopping rule but uses independent per-arm confidence intervals, which separates the value of the stopping criterion from the value of sharing.
Why not just…?
Why not just deduplicate paraphrased actions and keep standard UCT? This is the most serious threat. If most correlation among LLM candidates is near-exact paraphrase, clustering captures nearly all of the gain, and the kernel machinery is not needed. We therefore treat hard deduplication as a headline ablation rather than a footnote. If it reaches within noise of our method on both benchmarks, we will report that the benefit comes from removing duplicates and not from graded spillover. Our reason to expect a gap is that the informative relations in these tasks are partial: two queries retrieving overlapping documents, or products sharing attributes. A threshold either misses these or wrongly merges them. The cousin-sharing ablation checks the part of our design that deduplication cannot imitate.
Why not just guide UCT with a learned value critic, as in AlphaZero-style priors? A critic of the kind Zhai et al. train is itself distilled from MCTS data, so using it to cut the cost of generating that data is circular on the first round. It also gives point estimates without calibrated uncertainty, which our stopping rule needs. We will still run an iterated variant: round one uses plain MCTS, and round two uses critic-prior UCT. We also test our kernel model with the critic's embedding as $\phi$. If critic-prior UCT matches us from round two onward, the honest conclusion is that our method mainly helps the cold start.
Why not just skip tree search and use outcome-reward RL or SFT? The file's evidence argues against both. Outcome-supervised Search-R1 needed 90,000 instances to trail ReasonRAG's 5,000 (Zhang et al.), and outcome-driven RL on WebShop made agents greedy on option selection, scoring 38.9 versus 73.9 for humans (Yao et al.). STeCa beat SFT by 8.9% on ALFWorld trajectories longer than 13 steps (Wang et al.). We include SFT as a floor but do not expect it to compete.
Why not just spend the budget on more independent rollouts? That is the 5x and 10x UCT baselines. Our claim fails if the cost curve of our method is not clearly shifted left of theirs.
Proposed Experiments
The first decisive check is label efficiency. For each method, we plot the agreement of harvested preference pairs with the 10x-budget reference labels, and the number of pairs produced, as functions of environment steps. We do this on HotpotQA retrieval trees and WebShop trees. Success means reaching the reference accuracy of standard UCT at half its budget or less, with the full-pooling variant's error rate reported separately so that pooling bias is visible.
The second check is downstream performance. We train the same base model by DPO on pairs from each method at matched budget. We evaluate on the five-dataset QA average in EM and F1 against the reported 34.4 / 42.3, and on WebShop success rate, task score, and the option-selection sub-score, where greediness has been documented. The embedding-free control replaces $\phi$ with random features at matched dimension; this should erase the gains, which confirms that the savings come from real similarity and not from a changed exploration schedule.
As a transfer check, we apply the method to STeCa's deviation detection on ALFWorld. We replace its Monte Carlo success estimates with pooled estimates and ask whether it keeps STeCa's reported final reward of 70.9 at a fraction of the sampling cost.
The final check compares the effective dimension of candidate embeddings per node with the observed savings, node by node. A positive relationship would support the mechanism we claim. A flat one would suggest the gains come from somewhere else.
References
- Process vs. Outcome Reward: Which is Better for Agentic RAG Reinforcement Learning
- Enhancing Decision-Making for LLM Agents via Step-Level Q-Value Models
- STeCa: Step-level Trajectory Calibration for LLM Agent Learning
- Best-of-three-worlds Analysis for Linear Bandits with Follow-the-regularized-leader Algorithm
- Leveraging Side Observations in Stochastic Bandits
- Thompson Sampling for Stochastic Bandits with Graph Feedback
- Spectral Bandits for Smooth Graph Functions
- Bandit Algorithms for Tree Search
- Eluder Dimension and the Sample Complexity of Optimistic Exploration
- WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agents