Policy-Guided Search on Tree-of-Thoughts for Efficient Problem Solving with Bounded Language Model Queries

Sumedh Pendurkar, Guni SharonarXiv 2026

TL;DR

This paper introduces a highly efficient way to navigate the "Tree-of-Thoughts" (ToT) framework for Language Models (LMs) under strict computational budgets. By adapting Levin Tree Search (LTS), the authors leverage the LM's own token generation probabilities as a heuristic policy, eliminating the need for expensive, secondary LM evaluation queries. Under tight query constraints, this approach consistently matches or outperforms standard search methods like Depth-First Search (DFS) and Beam Search across multiple reasoning domains.

What Problem Does This Paper Address?

While Large Language Models excel at many tasks, complex multi-step reasoning remains a challenge. Advanced prompting frameworks like Tree-of-Thoughts (ToT) tackle this by generating a tree of intermediate reasoning steps ("thoughts") and using state-space search algorithms (like DFS or Beam Search) to find a valid solution path.

Figure 1: Illustration of the Tree-of-Thoughts (ToT) framework applied to a Rubik’s Cube domain. Cube states with red or green backgrounds represent termi- nal states as determined by the LM, while gray indi- cates intermediate states. The green background de- notes a goal state. States marked with a cross repre- sent invalid states (not known during search) resulting from thoughts that are infeasible for the domain.

However, these traditional search algorithms suffer from a massive hidden cost: to rank and select which thoughts to expand, they typically require additional LM queries to evaluate the quality of each intermediate state. In resource-constrained environments—such as edge devices or latency-critical applications—doubling the number of LM queries for evaluation is prohibitively expensive. The authors set out to improve LM problem-solving performance under a strictly bounded query budget without relying on these costly extra evaluations.

Methods

The authors adapt Levin Tree Search (LTS), a policy-guided heuristic search algorithm, to the ToT framework.

Instead of calling the LM a second time to score a state, LTS directly uses the autoregressive generation probabilities ($\pi(s)$) inherent to the LM as its guiding policy. The priority of any given state $s$ in the search tree is determined by a simple cost function:

$$\text{cost}(s) = \frac{g(s)}{\pi(s)}$$

where $g(s)$ is the depth of the state (number of thoughts generated so far) and $\pi(s)$ is the cumulative probability of the path leading to that state.

LTS expands nodes in a best-first order based on this cost. The paper also provides fresh theoretical groundwork, extending LTS's mathematical guarantees on the maximum number of state expansions to the pruned, sampled trees typical of ToT implementations. Furthermore, they analyze how the LM's softmax temperature ($\tau$) mathematically scales this search bound.

Datasets

The method was evaluated using four open-weight models—LLaMA 3.2 (1B, 3B), LLaMA 3.1 (8B), and Qwen 2 (7B)—across three distinct problem-solving domains:

  • Blocksworld (BW): A classical planning domain requiring the LM to generate a sequence of actions (stack, unstack, etc.) to transition blocks into a target configuration. Tested at depths ranging from 2 to 12 steps.
  • PrOntoQA: A logical reasoning dataset requiring the model to navigate an ontology and synthesize 3 to 5 reasoning hops to reach a conclusion.
  • Array Sorting (Sort): A benchmark introduced by the authors where the LM must sort a 5-element array using only pairwise swaps.

Key Insights and Ideas

  • The "Initial-Commitment" Problem of DFS: Standard DFS is greedy; it commits deeply to a single subtree based on early rewards. If it hits a dead end, it wastes a massive chunk of its budget before backtracking. LTS elegantly avoids this by balancing path probability against depth, naturally switching to alternative branches when the current path's cost spikes.
Figure 2: Comparison of states expanded by DFS and LTS. State s denotes the starting state and the green state indicates a goal state. The values on edges denote the probability of the next state being selected given the previous state. DFS uses these probabilities as rewards to guide the search. The value inside each state for LTS represents cost = g(s)/π(s). The blue and purple states represent the states expanded by DFS and LTS, respectively.
  • Free Heuristics: The core "aha!" moment is realizing that the LM's token generation probabilities are already a highly effective policy. Reusing them as a search heuristic completely bypasses the need for secondary evaluation prompts.
  • Temperature as a Search Knob: The authors demonstrate that the softmax temperature parameter acts as a behavioral interpolator. A very low temperature ($\tau \to 0$) makes LTS highly sensitive to probability differences, causing it to mimic DFS. A high temperature flattens the distribution, causing it to behave like Breadth-First Search (BFS).

Key Results

LTS consistently matched or exceeded the accuracy of guided DFS and Beam Search under tight query and wall-clock time budgets:

  • Substantial Accuracy Gains: On the PrOntoQA dataset using LLaMA 3.1 8B, LTS achieved an accuracy of 70.4%, compared to just 49.0% for DFS—a massive 21.4% absolute improvement.
  • Robustness Across Models: In the Blocksworld domain (step 2) with LLaMA 3.2 3B, LTS reached 15.5% accuracy versus DFS's 11.1%.
  • Budget Efficiency: When the budget was tuned to ensure DFS could reach a terminal state, LTS performed comparably or better in all tested settings, proving its superior sample efficiency.

Limitations and Future Work

  • Dependence on Base Model Quality: Because LTS relies entirely on the LM's internal probabilities as its heuristic, its performance is fundamentally bounded by the quality of the base model. If the model's internal probabilities provide poor guidance, the search cannot magically fix it.
  • Multi-Goal Assumption Gap: The theoretical bounds derived in the paper assume a single unique goal node. However, in practical applications, ToT trees often contain multiple valid solution paths, meaning the theoretical bound serves more as a general guidance tool for temperature tuning rather than a strict mathematical limit.
  • Future Directions: A natural next step would be exploring how online learning or fine-tuning could further align an LM's internal probabilities specifically for LTS navigation.

Summary updated

BibTeX
@misc{pendurkar2026policy,
  author = {Sumedh Pendurkar and Guni Sharon},
  title = {{Policy-Guided Search on Tree-of-Thoughts for Efficient Problem Solving with Bounded Language Model Queries}},
  year = {2026},
  eprint = {2601.03606},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.03606},
}
Figure