Skip to content

Tree search for LLM agents: ToT, LATS and beyond

optionalcorefundamentalpaperrubric 11/122023 · ICML 2024 (LATS); NeurIPS 2023 (ToT) · ~45 min

Andy Zhou, Kai Yan, …, Yu-Xiong Wang (LATS); Shunyu Yao, Dian Yu, …, Karthik Narasimhan (ToT); Shibo Hao, Yi Gu, Haodi Ma, …, Zhiting Hu (RAP); Yao Zhang, Zijian Ma, …, Volker Tresp (WebPilot)

Read first: ReAct: Synergizing Reasoning and Acting in Language Models · Self-Consistency Improves Chain of Thought Reasoning in Language Models · Exploration: bandits, UCB, Thompson sampling and exploration bonuses

Status

TL;DR. A ReAct agent commits to one trajectory: it follows one continuing interaction history. It can correct a bad query later, but it does not keep a tree of alternative earlier histories to revisit. Tree search keeps several partial trajectories alive, asks a value estimate which ones look promising, expands those, and backs off from dead ends. Tree of Thoughts (ToT) does this over the model’s own reasoning steps with breadth- or depth-first search. RAP uses Monte Carlo tree search (MCTS) with the LLM also acting as a world model. LATS runs MCTS over real tool calls, with an LLM-written value, self-reflection and environment feedback. WebPilot adapts MCTS to realistic websites, where you cannot simply rewind. The gains are large on puzzles and benchmark agents, and so are the costs: many extra LLM calls, plus an environment you can reset.

How to read this page. First read: the four design choices, the worked UCT example, the backtracking section and the “why not everywhere” section. Skip on a first read: RAP’s reward details and WebPilot’s reflection taxonomy. The model-based RL page covers MCTS in games (AlphaZero, MuZero); this page is about what changes when the nodes are text.

Primary sources: ToT, RAP, LATS, WebPilot. EM means exact-match answer accuracy; pass@1 here grades one final returned program, which may have been selected after many internal candidates.

Plain words first. Think of an agent run as a path through a tree. The root is the task. Each edge is one step: a thought, a tool call, or a whole draft answer. Each node is everything written and observed so far. Chain of thought and ReAct walk one path; self-consistency walks many independent paths and votes at the end. Tree search shares prefixes: it can try three continuations of a good step 2 instead of restarting from scratch.

ToT writes a node as s=[x,z1…i]s = [x, z_{1 \dots i}]: the input xx plus the thoughts z1,…,ziz_1, \dots, z_i so far. LATS adds the environment: s=[x,a1…i,o1…i]s = [x, a_{1 \dots i}, o_{1 \dots i}], with actions aa (tool calls or thoughts, as in ReAct) and observations oo (what the tool returned). For an IR reader, a LATS node on HotpotQA is a partial search session: the queries issued, the snippets seen, the notes taken.

ToT frames every method as four choices.

  1. Thought size. A Game of 24 thought is one equation; a Creative Writing thought is a paragraph-long plan; a Crosswords thought is one word. The paper’s rule: small enough that the LM can produce diverse candidates, big enough that it can judge them.
  2. Expansion (the generator). Either sample kk independent continuations (good when thoughts are long and diverse) or propose kk in one call (good for short thoughts, avoids duplicates). LATS samples nn actions per expansion, n=5n = 5 by default, and executes each in the environment to get its observation. For a tool task, save the parent environment state, propose nn distinct candidate actions, and execute each candidate from that same parent, not one after another in a single mutable browser session. Store each action, observation, child state, score and visit count. Restore or replay the selected child before continuing it.
  3. Value estimation (the evaluator). How promising is a node? See the next subsection.
  4. Selection (the search algorithm). Which node to expand next: breadth-first, depth-first, or MCTS with UCT.
SourceHow it worksUsed byCost and failure mode
LLM self-evaluationPrompt the LLM to rate a state (sure / maybe / impossible; a 1–10 score) or vote for the best of severalToT; LATS’s LM(s)\text{LM}(s); WebPilot’s 0–10 AppraiserOne or more calls per node; the judge can be confidently wrong
RolloutsContinue a partial trajectory and aggregate rewards along the continuation; LATS backs up the environment’s terminal reward, whereas RAP aggregates task-specific step rewardsRAP (rollouts imagined by the LLM world model); LATS (rollouts in the real environment)Many calls per estimate; requires a reward or scoring rule and a way to simulate transitions, not necessarily an externally verified terminal reward
Learned valueA trained network predicts eventual successAlphaZero, MuZero; the MCTS attempt reported by DeepSeek-R1Needs training data; hard to train for token-level states

ToT samples its value prompt 3 times per Game of 24 thought. For RAP (Reasoning via Planning) on a maths problem, an action can be a subquestion such as “How many pages remain?”; the world-model call predicts the answer and updates the known intermediate quantities. Unlike a tool call, this predicted state can be wrong even when it sounds plausible. RAP offers several rewards that can be combined: the log-probability of the action, the confidence of a predicted state (the share of sampled answers that agree), the probability the LLM answers “Yes” to “Is this reasoning step correct?”, and task-specific heuristics. LATS mixes two terms:

V(s)=λ⋅LM(s)+(1−λ)⋅SC(s)V(s) = \lambda \cdot \text{LM}(s) + (1 - \lambda) \cdot \text{SC}(s)

Here LM(s)\text{LM}(s) is the score the LLM writes at the end of a short critique of the trajectory, and SC(s)\text{SC}(s) is a self-consistency score, motivated by the observation that actions sampled several times from the same state tend to be more accurate. λ\lambda is 0.50.5 for HotpotQA and Game of 24 and 0.80.8 for programming and WebShop. The key difference from ToT: LATS scores a node after the environment has returned its observation. In IR terms, ToT is pre-retrieval query performance prediction (judge the query) and LATS is post-retrieval prediction (judge the query and what it retrieved).

  • BFS (ToT on Game of 24 and Creative Writing). At each of TT steps, expand every kept state, score all children, keep the best bb. This is beam search, or a ranking cascade that keeps the top bb candidates at each stage.
  • DFS (ToT on Crosswords). Go deep on the best child; if a state’s value falls to a threshold vthv_{th} or below, prune its subtree and backtrack to the parent. Capped at 100 steps.
  • MCTS (RAP, LATS, WebPilot). Repeat: select a path from the root using UCT, expand the leaf, evaluate the children, simulate to a terminal state, backpropagate the result. In LATS, UCT selects among nodes already in the tree. During simulation, the model again proposes and evaluates children, then follows the highest-valued child rather than applying the same exploration bonus at every rollout step. Search can stop at a successful terminal or at a depth or budget limit. LATS adds a sixth step, reflection: after a failed terminal, the LLM writes a short diagnosis that is stored and fed to later expansions and evaluations, as in Reflexion.

UCT in plain words. Every node faces a bandit problem: spend the next try on the child that looks best, or on one that has hardly been tried? UCT (upper confidence bounds applied to trees) adds an uncertainty bonus to each child’s value, and the bonus shrinks as the child gets visited. It is UCB1 applied at every node. LATS’s rule (Eq. 1):

UCT(s)=V(s)+wln⁡N(p)N(s)\text{UCT}(s) = V(s) + w \sqrt{\frac{\ln N(p)}{N(s)}}

V(s)V(s) is the child’s current value, N(s)N(s) its visit count, N(p)N(p) the parent’s visit count, and ww the exploration weight (w=1w = 1 in LATS). For the example below, values are already on a 0–1 scale. A raw 1–10 prompt score cannot be mixed with a 0–1 frequency or a binary reward without choosing a common scale. The paper-level description does not fully specify the numerical SC estimator, so an implementation should document its normalisation. UCT also needs a convention for unvisited nodes; LATS’s pseudocode initialises visit counts to one. After a terminal reward rr, every node on the path increments NN and updates a running mean:

V(s)←Vold(s) (N(s)−1)+rN(s)V(s) \leftarrow \frac{V_{\text{old}}(s)\,(N(s) - 1) + r}{N(s)}

A parent has been visited N(p)=10N(p) = 10 times; ln⁡10≈2.303\ln 10 \approx 2.303. Three children:

ChildVVNNBonus 2.303/N\sqrt{2.303 / N}UCT at w=1w = 1UCT at w=0.25w = 0.25
A0.7060.6191.3190.855
B0.5530.8761.4260.769
C0.4011.5171.9170.779

At w=1w = 1 the search tries C, the worst-looking child, because one visit tells us little about it. At w=0.25w = 0.25 it exploits A. Now suppose C’s rollout fails (r=0r = 0). C’s count becomes 2 and its value (0.40⋅1+0)/2=0.20(0.40 \cdot 1 + 0)/2 = 0.20; the parent’s count becomes 11 (ln⁡11≈2.398\ln 11 \approx 2.398). New scores at w=1w = 1: A 0.70+2.398/6=1.3320.70 + \sqrt{2.398/6} = 1.332, B 0.55+2.398/3=1.4440.55 + \sqrt{2.398/3} = 1.444, C 0.20+2.398/2=1.2950.20 + \sqrt{2.398/2} = 1.295. The search moves to B. Two lessons: ww only makes sense relative to the scale of VV, and one failed rollout is enough to redirect the search.

WebPilot changes both halves. Its selection rule is a PUCT-style variant without a prior: pick arg⁡max⁡a[Q(s,a)+wpuct∑bN(s,b) / (1+N(s,a))]\arg\max_a \big[Q(s,a) + w_{\text{puct}} \sqrt{\textstyle\sum_b N(s,b)} \,/\, (1 + N(s,a))\big] with wpuct=5w_{\text{puct}} = 5. The +1+1 in the denominator keeps an unvisited child from getting an infinite bonus, so the search can stay with a first branch the LLM already rates highly. Its QQ is a 0–10 score, Stotal=weffSeff+wfutSfutS_{\text{total}} = w_{\text{eff}} S_{\text{eff}} + w_{\text{fut}} S_{\text{fut}}: how effective the last action was, and how promising the resulting page looks (the paper’s example: 0.5×8+0.5×9=8.50.5 \times 8 + 0.5 \times 9 = 8.5). Backpropagation takes the max over children instead of the mean (Maximal Value Backpropagation), so a page that reveals the target link keeps its high value instead of being averaged down by failed siblings. IR readers know this trade-off from passage aggregation: MaxP rewards one strong passage, mean-pooling rewards consistency.

Backtracking needs a resettable environment

Section titled “Backtracking needs a resettable environment”

Search only works if you can return to a node and try a different child.

  • ToT and RAP search over text only, so returning to a node is free: re-send the prefix.

  • LATS acts in an environment but argues that many LM tasks can be reverted “by simply copy-pasting historical text input”. That holds for its benchmarks: HotpotQA’s Wikipedia API is read-only, HumanEval solutions run against tests, and WebShop is a simulated shop. The paper lists the reversion assumption as one of its two main limitations.

  • Real websites break the assumption. Clicking “submit” or “invite” changes server state, and pages can change between visits. WebPilot models the web as a partially observable Markov decision process (POMDP): the agent sees an observation of the website, not all of its hidden state. It responds in three ways:

    1. A Planner splits the task into subtasks, and each completed subtask becomes a checkpoint. Search happens only inside one subtask, starting from that subtask’s start state.
    2. In its pseudocode, each MCTS iteration starts from the checkpoint and re-executes the selected action path with the environment’s transition function. Replay stands in for an undo. It is only faithful when transitions are deterministic, which its problem statement assumes is typical.
    3. The tree is tiny: at most 10 nodes per subtask, 3 branches, depth 5, and only one new action generated per expansion. The “simulation” step is a single step forward, not a rollout to the end.

    The paper does not, as far as I could find, describe how side effects of explored branches are undone. Treat this as replay-based search on mostly navigational subtasks, not as a general solution to irreversible actions.

ToT, GPT-4, Game of 24 (100 hard games; Table 2 and Table 7):

MethodSuccessCost per game
IO prompt / CoT prompt / CoT-SC (k = 100)7.3% / 4.0% / 9.0%—
CoT, best of 100 (oracle pick)49%$0.47 (6.7k generated tokens)
ToT, b = 145%—
ToT, b = 574%$0.74 (5.5k generated tokens)

Around 60% of CoT samples have already failed after the first equation (Fig. 3b), which is exactly what pruning early fixes. ToT keeps b=5b = 5 states per step and scores each candidate with 3 value samples.

Generation vs evaluation (App. B.2). GPT-3.5 for everything: 19%. GPT-4 generates and GPT-3.5 evaluates: 64%. GPT-3.5 generates and GPT-4 evaluates: 31%. The authors conclude the bottleneck is thought generation. A reranker cannot recover what first-stage retrieval missed.

ToT, Mini Crosswords (20 games, DFS, Table 3). Word-level accuracy: CoT 15.6%, ToT 60%, without pruning 41.5%, without backtracking 20%. ToT solves 4 of 20 games; choosing the oracle best DFS state would solve 7, so the output heuristic also loses solutions.

ToT on easy tasks (App. B.1). On 100 GSM8K and StrategyQA questions with GPT-4 the gains are small: 86 → 90 and 82 → 83 over CoT. App. B.3 puts general ToT cost at 5–100× the generated tokens of CoT.

RAP, Blocksworld (LLaMA-33B, Table 1). Success on 2/4/6-step problems: CoT 0.17 / 0.02 / 0.00; RAP with 20 iterations 1.00 / 0.88 / 0.42; GPT-4 with CoT 0.50 / 0.63 / 0.40.

LATS, GPT-3.5 unless noted (n = 5 children):

TaskReActReflexionToT / RAPLATS
HotpotQA EM, acting (k = 50)0.32 (best of k 0.38)0.510.39 / 0.540.63; 0.71 with CoT then ReAct
HumanEval pass@156.968.154.4 / 63.183.8; GPT-4: 92.7 vs Reflexion 91.0
WebShop score / success (k = 30)53.8 / 28.064.2 / 35.0—75.9 / 38.0
Game of 24 success (k = 30)—0.120.20 / 0.400.44
  • Ablations, HotpotQA (Tables 8, 11). No LM value: 0.37. DFS instead of MCTS: 0.42. No reflection: 0.58. w=0.5w = 0.5: 0.55; w=2w = 2: 0.63, converging faster. Maximum depth 4: 0.58. Without the self-consistency term (λ=1\lambda = 1), Game of 24 drops from 0.44 to 0.40.
  • Cost (Tables 9, 10). ReAct best-of-250 reaches 0.42 against LATS’s 0.63 at n = 5, k = 50; with n = 1, LATS scores 0.48. Best-of-250 is also an oracle-selectable upper bound, not an ordinary deployed ReAct agent. Oracle feedback limits the whole evaluation protocol; the unmatched quantity is not simply that LATS gets an oracle and ReAct does not, but how feedback is used and how total generation, scoring and reflection costs are counted. Among tree methods at k = 50, LATS expands the fewest nodes on successful searches: 66.65, against 70.60 for RAP and 84.05 for ToT. These counts cover successes only, and the paper’s tables are not fully consistent (Table 10 lists LATS at 0.61 beside the 66.65-node count, and ToT at 0.49 in Tables 9–10 versus 0.39 in Table 3), so treat accuracy and cost as coming from related, not identical, runs.
  • Programming setup. Each action is a full solution, simulation is skipped, and the reward is the fraction of LLM-generated tests passed. The highest-value solution is then scored on the real tests.
  • WebShop context. The fine-tuned baseline in the same table has a lower score (67.5) but a higher success rate (45.0) than LATS.

WebPilot, WebArena (812 tasks; success rate %, Table 2):

MethodModelAverage
WebArena baselineGPT-3.5 / GPT-4o8.9 / 13.1
LM tree search (Koh et al.)GPT-4o19.2
SteP (hand-designed policies)GPT-433.5
WebPilotGPT-3.5 / GPT-4o29.1 / 37.2

The abstract reports about a 93% relative improvement over LM tree search (37.2 vs 19.2); the rounded table entries imply about 94%. On MiniWoB++, WebPilot reaches 95.6% against SteP’s 96.0%. Ablations (Table 4) are run on 50 information-seeking and 50 interaction tasks that the full system had already solved: without the Planner, success falls to 48% and 24%; without sibling reflection, to 72% and 60%.

Why frontier agents mostly sample instead (a hedged reading)

Section titled “Why frontier agents mostly sample instead (a hedged reading)”

This is an observation about public reports, not an established fact. RL-trained reasoning models and search agents on this site, such as DeepSeek-R1 and Search-R1, describe a test-time recipe of one long sampled trajectory, sometimes several with voting, from a policy trained with RL. Explicit tree search is rarer. Plausible reasons:

  • The value function is the hard part. DeepSeek-R1 reports difficulty improving the model through iterative MCTS-generated training data and value-model updates: token generation has an “exponentially larger search space” than chess, and a fine-grained value model is hard to train. Its discussion also says inference-time MCTS can help with a pretrained value model; it does not establish that external search never helps an RL-trained policy. Without a good value, search is little better than sampling (the LATS 0.37 ablation).
  • Reset and latency. Real tools and websites are not free to rewind, and every replayed path costs wall-clock time.
  • RL may internalise some search. R1’s authors argue that, unlike majority voting, where samples are independent, a reasoning model can “backtrack or self-correct” within one trajectory. That backtracking stays inside the context, so it needs no resettable environment. Whether this replaces external tree search for agents is a hypothesis; none of the papers here test it.
  • Search does not disappear; it moves. Sampling still adds on top of RL: R1-Zero scores 77.9% average pass@1 on AIME 2024; self-consistency across multiple sampled solutions raises final-answer accuracy to 86.7%, a different inference protocol. Search-and-imitate is also how AlphaZero trains its policy, and tree search can generate training data rather than answers. For when PRM-guided search beats best-of-N, see compute-optimal test-time scaling.
  • Toy and oracle settings. Game of 24 and Crosswords were chosen as tasks where GPT-4 with CoT does poorly. LATS’s HotpotQA setup tells the agent whether its answer is right, as Reflexion’s does.
  • Small test sets. 100 Game of 24 games, 20 crosswords, 100 HotpotQA questions, 50 WebShop instructions: differences of a few points are within noise.
  • Compute is rarely fully matched. Value calls, self-consistency samples and reflections are extra LLM calls that “k trajectories” does not count.
  • The judge can be wrong in both directions. ToT’s Crosswords evaluator prunes correct states containing rare words, and RAP’s or WebPilot’s self-scores share the policy’s blind spots. Stronger search pushes harder on these errors, the same failure as reward over-optimisation.
  • WebPilot’s ablations are run only on tasks the full system already solved, so they measure how fragile a success is, not average contribution.

The LATS repository runs HotpotQA, programming and WebShop. A cheap experiment: replace the oracle answer check with an LLM judge, and plot accuracy against total tokens for best-of-N and LATS.

  • Before: ReAct is the base policy LATS expands. Reflexion supplies its reflection step. Self-consistency is the zero-depth limit (sample leaves, vote) and appears inside LATS’s value as SC(s).
  • The RL foundations: UCB1 is the per-node bandit rule behind UCT. Model-based RL covers MCTS with the pUCT rule, AlphaZero and MuZero. In MuZero’s terms, RAP’s LLM-as-world-model plays the dynamics function, while LATS replaces the model with the real environment.
  • Test-time compute: compute-optimal test-time scaling compares best-of-N, beam search and lookahead against a process reward model. A process reward model (PRM) supplies a learned score for an intermediate step. In Let’s Verify Step by Step, that score predicts human judgements of the step’s correctness; it is not the expected terminal reward of continuing from that state. It can guide search as a heuristic, but a locally correct step can still lead to an unproductive branch.
  • Environments: the reset requirement is why fixed, resettable setups such as the retrieval environment and BrowseComp-Plus make search-based agents testable. Simulated environments are the RAP-style alternative, imagining the next state instead of executing it.
  • Talk: Shunyu Yao’s job talk places ToT in his arc from ReAct to language-agent frameworks and includes a ToT call-count exercise.
  • Describe a search node for a reasoning task and for a tool-using agent, and say what expansion does in each.
  • Compare LLM self-evaluation, rollouts and learned values by cost and failure mode.
  • Compute UCT scores by hand, apply a mean or max backup, and explain how ww changes the choice.
  • Explain why backtracking requires reset, and what WebPilot’s checkpoints and replay do and do not solve.
  • Read a tree-search result and ask whether compute, feedback and test-set size were matched.
  • State, with hedges, why explicit tree search is rare in today’s RL-trained agents and where it still pays.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    In an illustrative LATS tree, a parent has 20 visits and its children have V = (0.80, 0.60, 0.30) and N = (12, 6, 2). Compute UCT = V + w·√(ln 20 / N) at w = 1 and w = 0.5. The w = 1 choice then receives terminal reward 0. Update its mean value and visits, set the parent count to 21, and recompute selection. Holding this same UCT rule fixed, repeat with max backup. Why is the latter only a backup ablation, not a simulation of WebPilot?

    What a strong answer covers
    • At w = 1 the scores are 1.2996, 1.3066 and 1.5239, selecting the third child; at w = 0.5 they are 1.0498, 0.9533 and 0.9119, selecting the first.
    • Mean backup makes the third value (0.30×2 + 0)/3 = 0.20 and its visit count 3. New scores are 1.3037, 1.3123 and 1.2074, selecting the middle child.
    • With max backup but unchanged UCT, the third value stays 0.30 and its score becomes 1.3074, still just below the middle child. Its bonus shrinks even though its value cannot fall.
    • This isolates the backup operator. WebPilot also changes the bonus to 5·√(ΣN)/(1+N) and uses 0–10 appraisal scores, so its full selection behaviour cannot be inferred from this controlled swap.
    • Mean backup can dilute a lucky high evaluation; max backup retains it. Neither fixes a systematically miscalibrated evaluator, and the exploration weight must be read relative to the value scale.
  2. Mechanism

    In LATS's HotpotQA ablation (n = 5 children, k = 50 trajectories), removing the LM value function drops exact match from 0.63 to 0.37, and replacing MCTS with ToT-style DFS plus pruning gives 0.42. Explain, in terms of what signal reaches the selection step, why search without an intermediate value is barely better than repeated sampling, and why LATS computes the value after the environment has returned an observation.

    What a strong answer covers
    • Without the LM score the only signal is the terminal reward, which is sparse and often binary. Most nodes carry no informative value, so UCT is driven by visit counts alone and behaves much like resampling (ReAct best-of-k scores 0.38 in the main results table).
    • The LM value gives every partial trajectory a dense heuristic, so after a single visit selection can already concentrate expansions on promising subtrees.
    • Scoring after the observation is like post-retrieval rather than pre-retrieval query performance prediction: the evaluator sees what the search returned, so a bad query shows up as a bad result. ToT values thoughts that the world has not checked.
    • DFS with pruning keeps the LM heuristic but, unlike MCTS, does not back up downstream rewards to revise ancestor values or use UCT to allocate later visits. It still backtracks to the parent and tries remaining siblings when a branch terminates or is pruned; a subtree the heuristic discarded is not reopened after later evidence.
    • Caveat: HotpotQA here gives oracle answer-correctness feedback, which makes the terminal reward unusually informative and shortens search.
  3. What if…

    On Game of 24, ToT with GPT-4 for both thought generation and state evaluation solves 74% of games, and with GPT-3.5 for both, 19%. Mixing gives 64% (GPT-4 generates, GPT-3.5 evaluates) and 31% (GPT-3.5 generates, GPT-4 evaluates). Explain where the bottleneck is, relate it to the Crosswords ablations (word accuracy 60% for ToT, 41.5% without pruning, 20% without backtracking), and say how you would spend a fixed budget of strong-model calls.

    What a strong answer covers
    • A weak evaluator costs 10 points (74 → 64); a weak generator costs 43 (74 → 31). On Game of 24 the bottleneck is proposal: if the right next equation is never generated, no evaluator can select it.
    • IR reading: the evaluator is a reranker and the generator is first-stage retrieval. Reranking quality is capped by candidate recall.
    • Crosswords shows the opposite pressure: the evaluator sometimes prunes correct states (rare words judged impossible), yet removing pruning still drops word accuracy to 41.5% because the 100-step DFS budget is wasted on dead subtrees.
    • Removing backtracking gives 20%. The 60% versus 20% gap supports backtracking in this design but does not isolate it: full ToT gets 100 DFS steps, the no-backtracking variant 20 greedy steps with overwrites. Match budget and action rules before attributing the whole gap to backtracking.
    • The Game of 24 swaps favour spending strong-model calls on generation, but this is task-specific. Measure candidate recall and success per total token on the target workload, then compare strong-generator/cheap-evaluator and the reverse at a matched budget.
  4. Critique

    LATS reports 0.63 exact match on HotpotQA with n = 5 and k = 50, against 0.42 for oracle best-of-250 ReAct. Both can exploit answer-correctness feedback. Separate the deployment limitation caused by that oracle from the unmatched-compute problem, and design an evaluation isolating the benefit of tree allocation from reflection, value calls and additional candidate generation.

    What a strong answer covers
    • The oracle limits deployability for both methods. LATS uses correctness to stop and to guide later attempts; oracle best-of-N selects a successful terminal after independent sampling. Compare methods with explicitly matched access to feedback rather than treating the baseline as oracle-free.
    • Unmatched calls: each expanded child also receives LM value calls (plus self-consistency samples), and each failed trajectory a reflection. The token table counts tokens and nodes on successful searches only, which can compare different subsets of questions; report unconditional totals.
    • Fair test: replace the oracle with a self-evaluated or learned verifier at the terminal, match total tokens including evaluation and reflection, and plot accuracy against token budget for ReAct best-of-N with the same verifier, LATS, and LATS with n = 1.
    • Separate the ingredients: Reflexion alone reaches 0.51 and LATS without reflection 0.58, so part of the gain is reflection, not search.
    • Statistics: 100 questions give confidence intervals of several points; use a larger set and report intervals.
  5. Design

    You must build an agent that files expense reports on a company's live web app. Submitting a form is irreversible, each page load takes about 2 seconds, there is no reset API, and you have about 10 minutes per task. Decide whether and where to use tree search, how to backtrack, and how you would validate the design.

    What a strong answer covers
    • Split navigation from side-effecting actions (submit, invite, delete), which must never be explored speculatively and should be gated behind a verifier or human confirmation. Treat navigation as replayable only after verifying it is read-only and that session and server state can be restored; a saved URL or textual checkpoint is not a snapshot. Without restoration, use single-trajectory recovery on the live app and confine speculative branches to a staging copy or simulator.
    • Borrow WebPilot's structure: decompose into subtasks, treat each completed subtask as a checkpoint, search only inside read-only subtasks with a small budget (WebPilot uses at most 10 nodes, 3 branches, depth 5), and reach a node by replaying its action path from the checkpoint.
    • Budget arithmetic: 600 s at about 2 s per load is an upper bound of 300 page loads, before model latency and evaluation overhead. Every replay costs the path depth again, so deep trees are unaffordable and a strong value prompt with shallow search is preferable.
    • Alternatives: a resettable staging copy for look-ahead, or an LLM simulator of the site in the spirit of RAP's world model, each with its own fidelity risk (the replayed or simulated page may differ from the real one).
    • Validate on staging with logged trajectories: success rate, number of side-effecting actions taken, replay divergence, and cost per task against a single-trajectory ReAct baseline.
  6. Research idea

    A hedged observation is that frontier agents today mostly rely on sampling from an RL-trained policy rather than on explicit tree search at test time. Propose a study testing whether LATS-style search still adds accuracy on top of an RL-trained search agent at matched compute, and state which result would falsify the claim that RL has absorbed the benefit of search.

    What a strong answer covers
    • Hypothesis: RL training internalises some backtracking (retrying a query, revising a plan within one trajectory), so the marginal gain of external search shrinks as the policy improves, but stays on tasks with deep, checkable intermediate states.
    • Setup: a fixed-corpus, resettable search environment, a base and an RL-trained policy of the same size, and three test-time methods (one trajectory, best-of-N with voting or a verifier, LATS) at matched total tokens including value calls.
    • Measure success against total tokens and wall-clock time, and whether value scores rank partial trajectories by held-out continuation success. Estimate those labels with a fixed continuation policy and budget; otherwise differing policies and search allocations confound evaluator quality.
    • Falsification: if LATS beats matched best-of-N by as large a margin on the RL policy as on the base policy, RL has not absorbed the benefit of search.
    • Diagnostics: an n = 1 ablation (search without branching) and a no-value ablation to tell value quality apart from the ability to branch.

Done with this page?

Status