← All notes

LLM reasoning: sample, search, and refine

Summary

Chain-of-thought prompting writes steps before an answer, but one greedy decode can still pick a weak path. Three inference methods (described here only from their abstracts) change that: sample traces and pick a consistent answer, search a tree of thoughts, or have the same model critique and rewrite its output. None of the abstracts say you must retrain the base model.

Sample paths

Self-consistency replaces greedy decoding in chain-of-thought. Sample many reasoning traces, then take the most consistent answer after those traces are marginalized out. A hard problem often has several valid routes that should meet at one answer. The abstract reports gains on arithmetic and commonsense sets (GSM8K, SVAMP, AQuA, StrategyQA, ARC-challenge). Use it when extra samples are affordable and the final answer can be checked.

Search thoughts

Left-to-right token sampling fails when a task needs exploration, lookahead, or a careful first move. Tree of Thoughts (ToT) treats coherent text spans as intermediate "thoughts" you can branch on. The model considers several paths, scores them, and can look ahead or backtrack. The abstract tests Game of 24, Creative Writing, and Mini Crosswords; on Game of 24 it reports chain-of-thought at 4% and ToT at 74%. Use a tree when a linear trace cannot recover from an early mistake.

Refine with the same model

Models often miss their best output on the first try. Self-Refine generates, has the same model give feedback, revises, and repeats — one model as generator, critic, and editor, with no extra training or reinforcement learning. Across seven tasks (dialogue to math) with GPT-3.5, ChatGPT, and GPT-4, the abstract reports about 20% absolute average gain versus one-step generation, and that GPT-4 still improved at test time.

Choose sample-and-vote for a short checkable answer, a thought tree for planning or search, and self-feedback for a better draft. Prompt details live in the papers, which were not fetched.

Claims

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: arXiv, Self-Consistency Improves Chain of Thought Reasoning in Language Models, CC BY 4.0; arXiv, Tree of Thoughts: Deliberate Problem Solving with Large Language Models, CC BY 4.0; arXiv, Self-Refine: Iterative Refinement with Self-Feedback, CC BY 4.0.

Cite this

Permanent ID: iil:note:9kgbky6d

iinventedlight. 2026. "LLM reasoning: sample, search, and refine." iinventedlight Library, iil:note:9kgbky6d, version of 2026-11-03. https://iinventedlight.com/library/notes/llm-reasoning-sampling-search-refine/. License: CC-BY-4.0.

@misc{iil_note_9kgbky6d,
  author = {{iinventedlight}},
  title = {{LLM reasoning: sample, search, and refine}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-03},
  url = {https://iinventedlight.com/library/notes/llm-reasoning-sampling-search-refine/},
  note = {Permanent ID iil:note:9kgbky6d. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/llm-reasoning-sampling-search-refine.md.