Flashcard: how is self-correction different from self-refine in agents?
Self-correction is an agent revising course mid-run based on real Observations. Self-refine is the model critiquing and rewriting its own draft answer in one turn with no external evidence.
Imagine writing an essay. Self-refine is writing a draft, reading it over, deciding it could be better, and rewriting it before showing it to anyone. You judged your own work and revised. Self-correction is more like writing one paragraph, showing it to a friend, hearing them say 'wait, you got that fact wrong', and then revising the next paragraph based on their feedback. The first relies on your own opinion; the second relies on real feedback from the outside world. Both make the answer better, but they use different signals to know what needs fixing. Agents use both: self-refine inside one turn, self-correction across turns when a tool returns a result the agent did not expect.
Detailed answer & concept explanation~6 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Define both patterns with the signal-source distinction. Self-correction uses external Observations between turns; self-refine uses self-judgement within one turn. Attribute self-refine to Madaan et al. 2023. Name the known limit: pure self-judgement degrades on tasks where the critic is no better than the generator. Close with how the two compose in production and how frontier reasoning-mode models absorb both.
Real products, models, and research that use this idea.
- Cursor and Cline coding agents run self-refine inside one turn to tighten a code edit, then self-correction across turns when the test runner fails or the language server reports an error.
- Anthropic claude-code uses self-correction when a tool call fails, reading the error in the next Observation and choosing a different tool or argument.
- Frontier reasoning models (OpenAI o3, Claude Opus 4.7 extended-thinking, Gemini 3.1 deep-think) generate hidden self-critiques during their reasoning phase, applying self-refine internally before emitting the visible answer.
- LangGraph's reflexive-loop pattern adds a critic node after each generator node, executing self-refine within a state-graph workflow before the next external action.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy does self-refine fail on certain reasoning tasks that self-correction handles fine?
QHow does a production agent compose self-refine and self-correction together?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating self-correction and self-refine as the same pattern under different names. The signal source is different: external Observations versus the model's own self-judgement.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.