Paper Breakdowns  /  Tree of Thoughts
Paper 35~8 min readPrinceton / DeepMind · 2023
Paper Breakdown

Tree of Thoughts,
explained.

Watch yourself solve a hard puzzle. You don't write one stream of reasoning and commit to it — you try an approach, sense it's going nowhere, back up, try another. Language models couldn't do any of that: generation moves left to right, no takebacks. Tree of Thoughts gave them the missing moves — propose several next steps, judge which look promising, explore those, and backtrack when a branch dies.

Video breakdown
The animated walkthrough is in production.
Read the full breakdown below in the meantime ↓
01

The System-1 trap

Autoregressive generation is pure System 1: fast, associative, one token after another, no revision. Chain-of-thought made the stream longer and more structured, and self-consistency hedged it by sampling many streams — but every stream is still a one-way street. Nothing in the machinery lets the model consider two alternatives, compare them, or undo a commitment.

For some problems that's fatal by construction. Take Game of 24 — combine 4, 9, 10, 13 with arithmetic to make 24. Humans solve it by trial and error: try (13−9)=4… dead end, back up, try (10−4)=6, 6×(13−9)=24 ✓. A model that can't back up has to guess the winning line on the first try. GPT-4 with CoT managed 4%.

02

The unit: a "thought," not a token

ToT's first move is choosing the right granularity. Searching over individual tokens would be astronomically branchy; searching over whole solutions is just self-consistency. In between sits the thought: a coherent intermediate step — one equation in a math puzzle, one plan paragraph in an essay, one word placement in a crossword.

The key idea

Frame problem-solving as search over a tree of thoughts: each node is a partial solution, each edge is one more coherent step. Then everything classical AI knows about tree search — frontiers, heuristics, pruning, backtracking — applies to LLM reasoning directly.

It's a deliberate reunion of the two AI traditions: the LLM supplies what search always lacked (rich step generation and judgment), and search supplies what LLMs lacked (exploration and the right to change your mind).

04

The model as its own heuristic

Classical search needs a heuristic function, hand-built per problem. ToT's second insight: the LLM is the heuristic. Prompt it to assess a partial solution — "can these remaining numbers still reach 24: sure, likely, or impossible?" — and you get a usable value function for free, in natural language, on any domain.

Self-evaluation is noisy, and that's fine: a search heuristic doesn't need to be right, only informative enough to rank siblings. Judging "is this partial state promising?" is reliably easier than generating the full correct solution — the same generator-verifier gap that later powers process reward models and LLM-as-judge everywhere.

05

Game of 24: 4% → 74%

GPT-4 strategyGame of 24 solved
Chain-of-thought4%
CoT + self-consistency (100 samples)9%
Tree of Thoughts (b=5)74%

Not an increment — a different regime. The same model, the same weights, an 18× jump purely from changing how inference explores. Creative writing (plan several outlines, pick the best, then write) and 5×5 mini-crosswords (DFS with backtracking) showed the same shape: wherever solving means trying and revising, the tree crushed the chain.

06

The bill

Every proposal and every evaluation is a model call. A Game of 24 solve runs ~100 calls; deep DFS problems more. ToT is test-time compute spent aggressively — orders of magnitude beyond a single chain — plus orchestration code to manage the tree, the prompts, and the frontier.

It also needs problems with decomposable steps and evaluable partial states. Where a task is one intuitive leap, or progress can't be judged midway, the tree collapses back into an expensive chain. ToT is a specialist's scalpel, not a default decoding mode.

07

Why it still matters

ToT completed the trilogy that defined LLM reasoning's external era: CoT (make thinking visible) → self-consistency (sample and vote) → ToT (search deliberately, with evaluation and backtracking). Together they proved the capability ceiling wasn't the model — it was the inference procedure.

The final act absorbed the lesson: reasoning models trained with RL now explore, self-check, hit dead ends and say "wait, let me reconsider" inside a single generation — the tree internalized into the stream. When o1-class models budget more thinking for harder problems, they're running ToT's playbook without the scaffolding. The scaffold retired; the idea won.

Read next

Start of the thread: Chain-of-Thought. The voting middle: Self-Consistency. The internalization: DeepSeek-R1.

Frequently asked

Quick answers

What is Tree of Thoughts?

A framework that turns LLM problem-solving into search: propose candidate thoughts, self-evaluate them, expand the promising ones (BFS/DFS), and backtrack from dead ends.

How does it differ from CoT and self-consistency?

CoT follows one path; self-consistency votes over many independent paths; ToT branches within a path, prunes mid-flight, and can back up.

What was the headline result?

Game of 24 with GPT-4: 4% (CoT) → 74% (ToT). Same model — different inference procedure.

Why isn't everything ToT now?

Cost — dozens to hundreds of calls per problem. Reasoning models internalized the explore-and-backtrack behavior into one generation instead.

Tree of Thoughts: Deliberate Problem Solving with Large Language Models · Yao, Yu, Zhao, et al. · Princeton / Google DeepMind · 2023 · read the original paper on arXiv → · Vibe Engines · 2026
Finished this one? 0 / 42 Paper Breakdowns done

Explore the topic

See this alongside everything else on the same subject — handbooks, system designs, challenges and tools, in one place.

More Paper Breakdowns