NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Backtracking with Linear-in-Depth Search-Space Growth: Width-Limited Tree Search for Large Language Models

Jiacheng Xu, Fuxiang Zhang, Chaojie Wang, Bo An

NeurIPS page · Open on the map

Category: LLM Reasoning, Memory & RAG › Efficient Chain-of-Thought Optimization · Type: new method · Keywords: inference-time search, LLM reasoning, tree search, backtracking, search space, computational efficiency

Areas: LLM Reasoning › Reasoning Strategies › Test-Time Scaling

Summary

Width-Limited Tree Search (WLTS) introduces a tree-search approach with per-layer width constraints that keeps search-tree growth linear in depth while enabling backtracking, improving accuracy and efficiency on reasoning benchmarks.

Explained to a 5-year-old

When a big computer program (like a language model) writes a long answer, it can make mistakes. Some ways to fix mistakes only look at one line at a time and can't go back. Other ways can go back and try different choices, but they get too big and slow for long answers. The new idea makes a tree that can go back but only keeps a small number of choices at each step, so it stays fast. This helps the program give better answers without using too much computer power.

Explained to a 5-year-old, longer

A language model is a computer program that writes sentences like a person. When it answers a tricky question, it might start with a guess that is wrong. Some simple search methods only look at one guess at a time and never change their mind. Other search methods keep many possible guesses in a tree, so they can backtrack and try something else. However, those trees grow very quickly and become too big for long answers. The new idea keeps the tree structure so it can backtrack, but limits how many branches it can have at each step. This limit makes the tree stay small even for very long answers. It also adds two extra tricks: deleting old guesses to keep diversity and stopping early when many guesses agree. These tricks help the program find the right answer faster and use less computer time. The result is a smarter search that can correct mistakes without blowing up. It works well on math problems, coding tasks, and logical puzzles. Overall, it makes language models more reliable for hard questions.

For a technical reader

Traditional inference-time search for LLMs either scales linearly but cannot recover from early errors, or allows backtracking but becomes infeasible for deep reasoning due to exponential growth. The paper introduces a tree-search framework that enforces a per-layer width limit, keeping the search space linear in depth while preserving the ability to backtrack. Optional components such as prefix deletion and agreement-based early stopping further reduce computation for tasks with canonical outputs. Experiments on mathematical, coding, and logical reasoning benchmarks show higher accuracy and better inference-budget efficiency compared to baseline sequence and tree search methods. This approach enables more reliable long-chain-of-thought reasoning within practical computational budgets.

Problem

Existing inference-time search methods for LLMs either scale linearly but cannot backtrack from early mistakes, or allow backtracking but become infeasible for deep reasoning due to exponential search-space growth. This limits reliability in long chain-of-thought tasks.

Method

The approach retains a tree-search structure to allow backtracking while imposing a per-layer width limit that dynamically controls expansion, ensuring linear growth of the search tree with depth. It also includes optional components such as prefix deletion for diversity and agreement-based early stopping to cut computation on tasks with canonical outputs.

Results

The approach yields higher accuracy and improved inference-budget efficiency compared to baseline sequence and tree search methods.

Contributions

It introduces a width-limited tree search that balances linear scalability with backtracking capability, and proposes optional prefix deletion and agreement-based early stopping to further reduce computation. This enables reliable long-chain-of-thought reasoning within practical inference budgets.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction