Wider or Deeper? Scaling LLM Inference-Time Compute with Adaptive Branching Tree Search

Yuichi Inoue, Misaki Kou, Yuki Imajuku, So Kuroki, Taishi Nakamura +1 more
3/1/2025
70 citations

Official code: SakanaAI/treequest (577 stars, Python, Apache-2.0, last commit 2026-02-05).

Abstract

Recent advances demonstrate that increasing inference-time computation can significantly boost the reasoning capabilities of large language models (LLMs). Although repeated sampling (i.e., generating multiple candidate outputs) is a highly effective strategy, it does not leverage external feedback signals for refinement, which are often available in tasks like coding.

Show full abstract

In this work, we propose Adaptive Branching Monte Carlo Tree Search (AB-MCTS), a novel inference-time framework that generalizes repeated sampling with principled multi-turn exploration and exploitation. At each node in the search tree, AB-MCTS dynamically decides whether to"go wider"by expanding new candidate responses or"go deeper"by revisiting existing ones based on external feedback signals. We evaluate our method on complex coding and engineering tasks using frontier models. Empirical results show that AB-MCTS consistently outperforms both repeated sampling and standard MCTS, underscoring the importance of combining the response diversity of LLMs with multi-turn solution refinement for effective inference-time scaling. Code is available at https://github.com/SakanaAI/treequest .

View on arXivView PDF

Code Implementations(1)

SakanaAI/treequestOfficial100%
Apache-2.0

A Tree Search Library with Flexible API for LLM Inference-Time Scaling

57774Python, JinjaJun 30, 20259 months agoApache-2.0

Similar Papers

Cite this paper

@article{inoue2025wider,
  title  = {Wider or Deeper? Scaling LLM Inference-Time Compute with Adaptive Branching Tree Search},
  author = {Yuichi Inoue and Misaki Kou and Yuki Imajuku and So Kuroki and Taishi Nakamura and Takuya Akiba},
  year   = {2025},
  eprint = {2503.04412},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2503.04412},
  url    = {https://doi.org/10.48550/arXiv.2503.04412},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.04412.svg)](https://codeofpaper.com/paper/2503.04412)

Discussion