When do reflection / self-critique loops actually help, and what do they cost?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
They help when verification is easier than generation and the critique is grounded in an external signal; they mostly waste tokens when a model free-form grades its own work.
Full worked answer with diagram
They help when verification is easier than generation and the critique is grounded in an external signal; they mostly waste tokens when a model free-form grades its own work.
The pattern: generate → critique (same or separate model, or a checker) → revise → repeat. Reflexion (Shinn et al., 2023) showed that verbalising what went wrong and retrying with that reflection in context substantially improves success on retryable tasks. Anthropic's evaluator-optimizer workflow is the same shape.
Where it works:
- Code with tests/compilers. The critique is ground truth: failing test output fed back is the single most effective reflection signal in production coding agents.
- Checkable constraints. "Does the SQL parse? Does the JSON validate against the schema? Are all citations present in the source list?" - mechanical checks make the loop reliable.
- Rubric-checkable outputs. A critic model with a specific rubric ("does the summary mention pricing? any claims not in the source?") outperforms "is this good?".
Where it disappoints: ungrounded self-review. Models are lenient judges of their own output and share their own blind spots - if the generator didn't know a fact was wrong, the same model critiquing usually doesn't either. Self-critique without new information tends to produce cosmetic edits and occasional confident degradation.
Costs: each round is a full extra generation plus critique call - 2-3× tokens and latency per round - and returns diminish sharply: the first grounded revision captures most of the value; beyond two rounds you're usually polishing noise. Cap iterations, and exit early when the checker passes.
Design detail that matters: feed the critique and the original attempt into the revision call, and keep failed attempts out of long-term context afterward (they pollute later reasoning).
Worth sketching. Putting an external checker in the loop, rather than the model grading itself, is exactly the distinction being probed.
flowchart LR
A["Draft"] --> B["External check:<br/>tests, schema, rubric"]
B -->|"pass"| C["Accept"]
B -->|"fail, with the error text"| D["Revise on critique<br/>plus original attempt"]
D --> B
D -->|"round cap reached"| C
What a good answer covers
- They help when verification is easier than generation and the critique is grounded in an external…
- The pattern: generate → critique (same or separate model, or a checker) → revise → repeat
- Reflexion (Shinn et al., 2023) showed that verbalising what went wrong and retrying with that reflection…
- Anthropic's evaluator-optimizer workflow is the same shape
- Where it works: - Code with tests/compilers
Key terms: Where it works · Code with tests/compilers · Checkable constraints · Rubric-checkable outputs · Where it disappoints · Costs
In the glossary: Reflection · Workflow · Judge (LLM-as-judge)
Interviewer follow-ups to expect
Should the critic be a different model than the generator?
Where would you insert reflection in a coding agent's loop - every step, or at commit boundaries?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep