Self-critique loops help when an agent's output can be checked against something external — a test suite, a schema, a retrieved fact — and hurt when the agent is only grading its own opinion. The pattern is called generator-critic or reflection: run once, critique the run, run again. Without a verification signal, the critic just restates the generator's biases at double the cost.

Quick answer: Add a self-critique loop when you can verify the output (code that runs, numbers that check out, retrieved sources that confirm claims). Skip it for subjective judgment calls — the critic just agrees with itself and doubles your token spend.

What a Self-Critique Loop Actually Is

A self-critique loop is a generator-critic pattern: one model (or one call) produces an answer, a second pass (the "critic") evaluates it against some standard, and the generator revises based on that feedback. It can run once or iterate several times until the critic is satisfied or a budget runs out.

The pattern shows up under several names in the agent literature, and it's worth knowing them because they're not identical:

  • Self-Refine (Madaan et al., 2023) — the same model generates, critiques, and refines its own output in a tight loop, with no external tool or ground truth involved.
  • Reflexion (Shinn et al., 2023) — an agent that acts, observes a real environment outcome (like a failed test or a game score), converts that failure into a verbal "lesson," and stores it in memory for the next attempt.
  • Chain-of-Verification (Dhuliawala et al., 2023, Meta AI) — the model generates an answer, then generates independent verification questions, answers those separately, and revises the original response based on discrepancies.
  • Constitutional AI critique-revision steps (Anthropic, 2022) — a model critiques its own draft against a written set of principles and rewrites accordingly, used more for safety alignment than task accuracy.

The common thread across all four: something outside the generator's first guess supplies the signal. Reflexion has a failing test. Chain-of-Verification has independent fact checks. Constitutional AI has an explicit rubric. Self-Refine is the outlier — and it's also the one whose gains are most inconsistent across tasks, which is the whole crux of this article.

If you haven't mapped where agents differ from single-shot workflows, our complete guide to AI agents covers the foundational vocabulary this piece builds on, and the agent vs. workflow non-determinism piece explains why loops like this behave differently run to run.

Where Reflection Pays Off

Reflection pays off reliably on verifiable tasks — anything where a critic can check the output against an objective standard rather than just an opinion. Code that either passes tests or doesn't. Math that either checks out or doesn't. Structured data that either validates against a schema or doesn't. In these domains, the critic isn't guessing; it's running a check.

The clearest evidence comes from code generation and tool-use benchmarks. The original Reflexion paper reported meaningful pass-rate gains on HumanEval-style coding benchmarks when the agent could execute its code, see the test failure, and revise — improvements researchers described in the double-digit percentage-point range on some benchmarks, driven almost entirely by having a real pass/fail signal to reflect against. Self-Refine likewise showed its strongest, most repeatable gains on tasks with a checkable answer: code, math word problems, constraint satisfaction.

The Pattern: Signal, Not Self-Opinion

What makes these cases work is not the "critic" model being smarter than the generator — often it's the exact same model. What makes them work is that the critique step has something to point at:

  1. Executable feedback — a test suite, a linter, a compiler error, a calculator result.
  2. Retrieved facts — a search result or document that confirms or contradicts a claim.
  3. A schema or spec — does the JSON validate, does the API call match the OpenAPI definition, does the SQL parse.
  4. A rubric with objective criteria — not "is this good" but "does this contain fields X, Y, Z" or "does this cite a source for each claim."
Task typeVerification signal available?Reflection typically helps?
Code generationYes — tests, linters, compilersYes, strongly
SQL / schema generationYes — parser, schema validatorYes, strongly
Structured data extractionYes — schema matchYes, moderately
Math / logic problemsYes — recomputationYes, moderately
Fact-based Q&A with retrievalYes — source documentsYes, if retrieval is used in the critique
Creative writing qualityNo — taste, not truthRarely, often hurts
"Is this a good strategy memo"No — no ground truthRarely, often hurts
Open-ended brainstormingNo — no single right answerNo

This is also where agent autonomy and reflection intersect. An agent operating at a higher autonomy level — taking actions, observing real consequences, retrying — has natural verification signals baked into its environment. The agent autonomy levels framework is useful here: reflection loops are most defensible at the autonomy tiers where the agent's actions produce checkable side effects, not at the tier where it's just talking.

Where Reflection Wastes Tokens

Reflection wastes tokens whenever the critique step has no independent standard to check against — the model is asked to judge its own subjective output using the same knowledge and biases that produced it in the first place. The result is an echo chamber: the critic tends to approve, or makes cosmetic edits, while the token bill doubles or triples.

This shows up most on:

  • Subjective quality judgments — "is this positioning statement compelling," "is this onboarding copy good." There's no external check, so the critic's opinion is just the generator's opinion wearing a different hat.
  • Open-ended strategy or brainstorming — there's no ground truth for "best" idea, so a self-critique loop mostly reshuffles wording rather than improving substance.
  • Tasks where the model's error is a knowledge gap, not a reasoning gap — if the generator doesn't know a fact, asking it to "double-check itself" without a retrieval step won't surface the gap; it'll just restate the same wrong fact with more confidence.
  • Self-praise loops — a critic prompt that asks "did I do a good job?" without a rubric almost always says yes, because the same weights that produced the answer are grading it.

Research on LLM-as-judge setups backs this up directionally: studies on self-evaluation (including work summarized by Anthropic and others on model self-assessment) have repeatedly found that models are systematically more lenient grading their own output than grading another model's output on the same task — a bias sometimes called self-preference. That's the mechanical reason self-critique without an external signal tends to converge on "looks fine to me."

The Cost Math Nobody Runs Upfront

A single reflection pass roughly doubles token spend for that step (generate + critique), and iterative reflection (critique-revise-critique-revise) can triple or quadruple it depending on how many rounds you allow. If that spend buys a measurable accuracy or pass-rate lift, it's a good trade. If it buys a slightly more confident-sounding version of the same answer, it's pure overhead.

The core failure mode: teams add a critic step because "more review = more quality" feels intuitively safe, then never measure whether the critique changed the output's correctness — only whether it changed the output's wording.

Before adding a reflection loop, it's worth revisiting what "good" means for the task at all — the jobs-to-be-done framework is a useful forcing function here, because it asks you to define the outcome the agent is actually hired to produce, which tells you whether that outcome is even checkable.

The Decision Rule: Does the Critic Have Something to Point At

The decision rule is simple: before adding a self-critique loop, ask whether the critique step has access to a signal the generator didn't already have — a test result, a retrieved document, a schema, a rubric with objective fields. If yes, reflection is likely worth the extra tokens. If the critic only has the same context and knowledge as the generator, skip the loop.

Use this as a pre-flight checklist:

  1. Name the verification signal. Write down, in one sentence, what the critic checks against. "It re-reads the draft" is not a signal. "It runs the unit tests" is.
  2. Confirm the signal is independent. If the critic uses the same retrieved documents, the same prompt, and the same model weights as the generator, it's not independent — it's a mirror.
  3. Estimate the token delta versus the expected lift. A doubled cost for a task where errors are rare and low-stakes is a bad trade. A doubled cost for a task where a single bug ships to production is often a good one.
  4. Cap the iterations. Even verifiable-signal loops should have a hard stop (2-3 rounds), because diminishing returns set in fast and runaway loops are a classic non-determinism risk in agent systems.
  5. Log what changed, not just that a critique ran. If ten reflection passes produce zero corrected outputs, that's a signal the loop isn't earning its keep — remove it or fix the signal.

Once a loop clears that bar, it also needs the same boundaries as any other autonomous action — the agent action guardrails piece covers how to bound what a revise step is allowed to change so a "helpful" critique can't quietly rewrite scope or introduce new risk.

A Worked Example: Verification-Backed vs. Self-Praise

Verification-backed critic (works): An agent generates a SQL query against a documented schema. The critic pass doesn't ask "does this look right" — it runs the query against a schema validator and a LIMIT 1 dry-run. If the dry-run errors, the critic feeds the exact error back to the generator for a targeted fix. This is a bounded loop with a hard, external, binary signal.

Self-praise loop (wastes tokens): An agent drafts a product positioning statement. A second call is prompted: "Critique this positioning statement and improve it." There's no rubric, no competitor data, no customer language to check against — the critic is the same model reading its own draft and, predictably, mostly agrees with itself while swapping a few adjectives. Three rounds later, the statement reads smoother but isn't more correct, because "correct" was never defined.

The difference isn't model quality. It's whether round two had information round one didn't.

How Prodinja Frames This Pattern

Prodinja's Second opinion feature is designed to model a critic pass over your reasoning — you draft a plan or a decision, and the intended experience walks a critique step over it before you commit, echoing the reflect-before-commit pattern this article dissects. It's built as a prototype experience for exploring that workflow, not a claim that an AI has independently verified your decision; the value is in structuring the habit of checking your own reasoning against a second pass before it becomes expensive to reverse.

That's the same discipline this article argues for at the agent-engineering level: the useful version of "get a second look" always names what the second look is checking against.

Key Takeaways

  • Self-critique loops (generator-critic, reflection) help most on verifiable tasks — code, schemas, math, retrieval-backed facts — where a critic can check against something objective.
  • They tend to waste tokens on subjective tasks — quality judgments, strategy, brainstorming — because the critic often shares the generator's blind spots and just restates them more confidently.
  • The decision rule is signal, not sentiment: before adding a reflection loop, name the exact external check the critique step uses; if there isn't one, don't build the loop.
  • Cost roughly doubles per reflection pass, so cap iterations and measure whether critiques actually change correctness, not just wording.
  • Reflexion, Self-Refine, Chain-of-Verification, and Constitutional AI are related but distinct patterns — know which one you're actually implementing before you claim its evidence.
  • Bound the loop like any autonomous action — an unchecked revise step can quietly expand scope or introduce risk, not just fix bugs.

Frequently Asked Questions

Does adding a self-critique step always improve agent accuracy?

No — it improves accuracy mainly on verifiable tasks with an objective check (tests, schemas, retrieved facts). On subjective tasks without ground truth, self-critique often just rewords the same answer while doubling token cost, because the critic shares the generator's knowledge and biases.

What's the difference between Reflexion and Self-Refine?

Reflexion has the agent act in a real environment (run code, play a game) and reflects on an observed outcome like a failed test, storing the lesson in memory for the next attempt. Self-Refine has the same model critique and revise its own output in a closed loop with no external environment or ground truth involved.

How many reflection iterations should an agent run before stopping?

Cap it at two to three rounds for most tasks. Diminishing returns set in quickly once the verifiable signal (tests passing, schema validating) is satisfied, and additional rounds mostly add cost without further correctness gains.

Can a self-critique loop make an agent worse, not just wasteful?

Yes. Without an independent signal, a critic can talk the generator out of a correct answer, introduce unrequested scope changes, or amplify a shared misconception — this is why bounding what a revision step can alter matters as much as bounding when it runs.

Is LLM-as-judge the same thing as a self-critique loop?

They're related but not identical: LLM-as-judge typically evaluates outputs from a different system or run for scoring/comparison purposes, while a self-critique loop has a model revise its own in-progress output. Both share the same risk — self-preference bias — when the judge and the generator are the same model with no external signal.