LiteSearch: Efficacious Tree Search for LLM

Ante Wang, Linfeng Song, Ye Tian, Baolin Peng, Dian Yu, Haitao Mi, Jinsong Su, Dong YuarXiv 2024 · DOI

Abstract

Recent advancements in Large Language Models (LLMs) have highlighted the importance of "System 2" thinking—deliberative, multi-step reasoning—to solve complex tasks. However, traditional tree search methods like Monte Carlo Tree Search (MCTS) are computationally expensive. We present LiteSearch, a guided tree search algorithm that optimizes the accuracy-efficiency trade-off. By employing dynamic node selection and an adaptive exploration budget, LiteSearch achieves competitive performance on mathematical reasoning benchmarks while reducing token consumption by up to 5x compared to standard search techniques.

Introduction

While LLMs demonstrate impressive capabilities, they often struggle with multi-step mathematical reasoning due to their token-by-token generation nature, which lacks look-ahead or self-correction mechanisms. Tree search algorithms such as Breadth-First Search (BFS) and MCTS provide a framework for exploring multiple reasoning paths. However, these methods are often computationally wasteful, allocating equal resources to all paths regardless of their potential. LiteSearch addresses these inefficiencies by introducing a search strategy that adapts its computational budget in real-time based on path confidence.

Methodology

LiteSearch operates on a "Select and Expand" loop, guided by a value network trained via distant supervision using final answer correctness.

Dynamic Selection

Instead of selecting nodes solely based on value scores, LiteSearch incorporates a progress term. This term estimates the distance to the final solution, prioritizing paths that reach a conclusion more efficiently.

Adaptive Exploration Budget

The core innovation of LiteSearch is its adaptive budget ($b$), which determines the maximum number of children to generate for a given node. This budget is inversely correlated with the value score: high-confidence steps (high value) trigger fewer expansions to conserve resources, while uncertain steps (low value) trigger more expansions to explore alternatives.

Expansion Strategies

LiteSearch supports two primary modes:

  • Incremental Expansion: Generates children sequentially, re-evaluating after each step.
  • Batch Expansion: Generates multiple children simultaneously for improved parallelization.
The LiteSearch framework (right) dynamically selects promising nodes and expands them within a calculated budget, unlike BFS (left) which visits many unnecessary nodes.

Experimental Setup

The researchers evaluated LiteSearch on two mathematical reasoning benchmarks: GSM8K (grade-school math) and TabMWP (tabular math). The experiments utilized Mixtral-8x7B and Llama3-8B as base policy models, with a separate Llama3-8B model fine-tuned to serve as the value network.

Results and Analysis

LiteSearch demonstrates a superior Pareto frontier between accuracy and computational cost, measured in tokens.

Efficiency and Accuracy

On the GSM8K benchmark, LiteSearch achieved accuracy comparable to MCTS while utilizing significantly fewer tokens. Specifically, LiteSearch (Batch) reached ~82% accuracy with approximately 0.5k tokens, whereas MCTS required nearly 2k tokens to achieve a similar result.

Comparison to Baselines

LiteSearch consistently outperformed "Hard Voting" (self-consistency) and "Soft Voting" (value-weighted) at equivalent cost levels. Overall, the method achieved approximately a 5x reduction in computational cost compared to strong baseline search methods.

Discussion

Analysis of the value network reveals that reliability improves as reasoning steps progress. Furthermore, the adaptive budget mechanism naturally allocates more tokens to harder problems, as lower confidence in difficult steps triggers broader exploration.

Despite its successes, LiteSearch faces challenges in early-step variance, where incorrect value assignments can lead to premature pruning of correct paths. Future research will explore improving value network training and assessing generalization across non-mathematical domains such as code generation.

Conclusion

LiteSearch provides a practical path toward implementing "System 2" reasoning in LLMs without the prohibitive costs of traditional search. By dynamically managing exploration budgets, it bridges the gap between greedy decoding and exhaustive tree search.

Summary updated

BibTeX
@misc{wang2024litesearch,
  author = {Ante Wang and Linfeng Song and Ye Tian and Baolin Peng and Dian Yu and Haitao Mi and Jinsong Su and Dong Yu},
  title = {{LiteSearch: Efficacious Tree Search for LLM}},
  year = {2024},
  eprint = {2407.00320},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.00320},
}
Figure