Search, Reflection, and Test-Time Compute › Reflection and Self-Correction

Michael BrenndoerferNovember 29, 20263 min read
Language AI HandbookAll chapters
Part 40 of 67Reasoning Post-Training and Verifiable Rewards
Chapter 304Search, Reflection, and Test-Time Compute › Reflection and Self-Correction
Reading section 7 of 14 · Reflection and Self-Correction · 3 minSection 7 of 14 · 3 min

Section 7 of 14 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Some methods draw new answers and choose among them. Others revise an existing answer. When comparing revision studies, inspect what feedback the second attempt receives.

Search and feedback

Exploratory search draws new candidates and picks among them.

Externally informed correction revises an answer with evidence supplied by a separate source, such as a failing test, a compiler diagnostic, a retrieved document, or a person. The feedback may depend on the original answer or the tool call.

Unaided reflection prompts the same model to critique or revise an earlier answer without outside evidence. The original answer and the revision instruction are part of the new context.

What unaided reflection can and cannot do

Unaided reflection changes the prompt even when the model weights stay fixed. If the initial accuracy is pp, the net change in accuracy is (1−p)q01−pq10(1-p)q_{01}-pq_{10}, where q01q_{01} is the fraction of initially wrong answers repaired and q10q_{10} is the fraction of initially correct answers spoiled. Measure both transitions on labeled problems.

Overall accuracy improves when repairs outnumber spoiled correct answers. The balance depends on the initial accuracy as well as the two transition rates. With 90% initial accuracy, repairing half of the errors gains five percentage points. Spoiling one tenth of the correct answers loses nine.

Huang et al. found that intrinsic self-correction did not reliably improve their reasoning benchmarks and sometimes lowered accuracy under the prompts they tested. That result concerns the study’s models and evaluation conditions.

Use labeled answers to measure how well a critic's score ranks correct and incorrect attempts, for example with ROC AUC. A value near 0.5 indicates chance-level aggregate ranking in the chosen score direction. The ranking statistic alone does not give the repair or spoil rate at a revision threshold. Compare the full policy with the original answer and, if you have an extra generation budget, a fresh second draw.

What externally informed correction can do

A failing test or a retrieved reference can give the reviser information it did not use on the first attempt. Madaan et al. used self-generated feedback in Self-Refine and reported a separate correctness-oracle experiment for math in Appendix H.1. Measure whether the feedback is actually informative for the target task.

A revision prompt and another generation can change the output even without external feedback. A tool can also supply evidence that directs the revision. A failing compiler check may locate a line to inspect, while a failing test often only shows one input on which the behavior differs from the expectation. Measure whether acting on that feedback improves the final answers.

Search over thoughts

Tree of Thoughts (Yao et al., 2023) expands partial reasoning states, evaluates them, and uses breadth-first or depth-first search with pruning. Language Agent Tree Search (Zhou et al., 2023) uses Monte Carlo tree search and can use feedback from the environment.

A full unpruned tree of depth dd has 1+b+⋯+bd1+b+\dots+b^d nodes for branching factor bb, which is Θ(bd)\Theta(b^d) for fixed b>1b>1. Actual work depends on which nodes you expand and what each generation and scoring step costs. In Game of 24, you can check an intermediate move by confirming that it uses two available numbers and recalculating its result. When partial states give little guidance, compare tree search with complete-answer sampling under the same compute accounting.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy