Skip to content
BIASED

Reflection and self-correction

External signals repair; intrinsic self-correction often hurts; best-of-n hits the $b$ ceiling.

When self-correction works

Planning became reliable when something other than the model checked the plan. The same question hits every agent output: can the agent notice its mistake and fix it? The cheapest move — “review your answer and fix problems” — adds calls but no new information. Rereading with the same blind spots rarely helps; running the code does.

Key idea. Self-correction works when feedback carries information from outside the model: a failed test, an interpreter error, a validator report, an environment reward. Without that, a critique is about as error-prone as the answer, and asking the model to change its mind often turns right into wrong. When attempts are checkable, generate several and verify; the gain is capped by how often the verifier accepts a wrong one.

Self-Refine

Self-Refine (Madaan et al., 2023) uses one model as generator, critic and refiner until feedback says stop or a limit (four iterations) is hit — no training, no tools. With GPT-4 (2023), preference tasks jumped (dialogue preferred share 25.4%→74.6%; constrained concept coverage 15%→45%). Math word problems barely moved (92.9%→93.1%): visible omissions are easy to spot; a consistent slip in a chain that looks coherent is not. Preference gains were also partly judged by GPT-4 again — the evaluation caveat returns below.

Reflexion

Reflexion (Shinn et al., 2023) corrects across trials with an external score: act (ReAct trajectory τt\tau_t) → evaluate (rtr_t from environment, exact match, or unit tests) → reflect (a short verbal lesson) → remember (bounded episodic memory of the last Ω\Omega lessons, typically 1–3) → retry with the memory in context. Weights never change; the reward becomes text that conditions the next trial (“verbal RL”). GPT-era models gained +22 points on ALFWorld over 12 trials and 91.0% HumanEval pass@1 versus 80.1% alone — but on MBPP Reflexion lost (77.1% vs 80.1%) because self-written tests accepted wrong programs 16.3% of the time (1.4% on HumanEval). That false-positive rate bb is the ceiling.

Intrinsic self-correction

Huang et al. (2024) separated oracle stopping (stop when the gold answer is reached — impossible at deploy time) from intrinsic self-correction (the model decides whether to change). With at most two “find problems” rounds, intrinsic accuracy never finished above the first answer on GSM8K/CommonSenseQA/HotpotQA; oracle columns rose. Models more often flipped correct→wrong than the reverse when they changed. On Blocksworld, GPT-4 verifying GPT-4 plans lifted 40→55/100, while VAL in the same loop reached 88/100 — the model judge accepted 38/45 invalid plans (FP≈84%). Feedback that works: execution, tools (CRITIC), the environment, sound validators, or training that rewards verified finals (SCoRe; reasoning models).

Generate and verify

If attempts are checkable, sample nn and keep the first accepted (else fall back to attempt 1). With success probability pp, true-positive rate aa and false-positive rate bb,

Pn=papa+(1−p)b (1−rn)+p(1−a) rn−1,r=1−pa−(1−p)b.P_n=\frac{p a}{p a+(1-p)b}\,(1-r^{n})+p(1-a)\,r^{n-1},\qquad r=1-pa-(1-p)b.

As n→∞n\to\infty, P∞=pa/(pa+(1−p)b)P_\infty=pa/(pa+(1-p)b) — verifier precision — and verification helps only if a>ba>b. With p=0.3p=0.3, a=0.9a=0.9, b=0.1b=0.1, the ceiling is ~0.794 and P4≈0.652P_4\approx 0.652. Sound b=0b=0 recovers pass@nn; a=ba=b stays flat at pp. GPT-4’s plan-verifier rates capped near 0.437 versus p=0.40p=0.40. Better verifiers raise the plateau (process vs outcome reward models on MATH; SWE-bench coverage under sound tests keeps climbing with nn).

Model-as-judge and next

When nothing mechanical can check, another LM grades — with unknown a,ba,b until measured, systematic biases (position, verbosity, self-preference), and reward hacking under best-of-nn. Prefer mechanical verifiers; if a judge is unavoidable, measure error rates, use a different model, swap pair order, keep nn modest.

Next: generator–verifier loops, routers and orchestrators can be fixed workflows or left to the model. Workflows, frameworks and protocols catalogues the patterns and the Model Context Protocol underneath the tools.

Check your understanding

The same questions as in Pulse. Answers are shared between modes.

Full notes

Answers are saved on the server and tied to this browser until you sign in.