FoundationsChecking saved investigationReading browser-local route memory before showing a continuation.

Foundation Lab

Tree Search over Thoughts

Makes inference like planning, not text completion

Concept 96 of 100Scaling & AlignmentPhase 13
#96MCTS-LLMScaling & Alignment
key equationa^* = \arg\max_a \left( Q(s,a) + c\sqrt{\frac{\ln N(s)}{N(s,a)}} \right)

Selected Foundation Object

Keep the equation fixed; move through the evidence.

Concept 96 of 100MCTS-LLMScaling & Alignment / Phase 13: Cutting-edge 2024-2025 research
Current question

Each node is a partial solution/thought

a^* = \arg\max_a \left( Q(s,a) + c\sqrt{\frac{\ln N(s)}{N(s,a)}} \right)
PredictionCommit before the demo.

Ask what should change when the equation is manipulated, then let the visualization test that expectation.

EvidenceCompare local witness and source.

Use the runnable panel, the key equation, and canonical papers as separate forms of evidence for the same object.

InvariantName what survives notation changes.

The useful learning product is the reusable mechanism you can carry into another model, paper, or engineering tradeoff.

Next moveContinue in the newer notebook.

This atlas page keeps the working demo; the domain notebook carries the fuller Intuition -> Math -> Code -> Demo sequence.

Why It Matters for Modern Models

  • Makes inference like planning, not text completion
  • Enables systematic exploration of reasoning paths
  • Foundation for o1-style "System 2" thinking

What Tutorials Skip

What is still poorly explained in textbooks and papers:

  • Each node is a partial solution/thought
  • Verifier provides value estimates for backpropagation
  • Trade-off: exploration (new paths) vs exploitation (best paths)

Interactive Visualization

Core Math (Optional Deep Dive)

If you want intuition first, start with the key equation and the visualization. Come back here for the full walkthrough.

Key Equation
a=argmaxa(Q(s,a)+clnN(s)N(s,a))a^* = \arg\max_a \left( Q(s,a) + c\sqrt{\frac{\ln N(s)}{N(s,a)}} \right)

MCTS over reasoning states. UCB action selection:

a=argmaxa(Q(s,a)+clnN(s)N(s,a))a^* = \arg\max_a \left( Q(s,a) + c\sqrt{\frac{\ln N(s)}{N(s,a)}} \right)

Expand with LM policy prior πθ(as)\pi_\theta(a|s). Back up values QQ from rollouts/verifier.

Key insight: Inference becomes planning, not just generation.

Canonical Papers

Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Models

Zhou et al.2024ICML
Read paper →

Connections

Next Moves

Choose the next question to carry this object forward.