deep · 6 min
Evaluator-optimizer
One call writes, another checks it against clear criteria, and they loop until it passes. Works when the checker has evidence to check against.
updated 29 Sept 2026
Two experiments, same idea, opposite results.
In the first, GPT-4 writes a reply in a conversation, then critiques its own reply, then rewrites it. In a preference comparison, its replies won about 75% of the time after rewriting, up from 25% before.
In the second, GPT-3.5 answers a multiple-choice commonsense question, then is asked to review its answer and fix it if needed. Accuracy dropped from about 76% to 38%. Reviewing its own work made it about half as good.
How can "have the model check its work" be that helpful and that harmful? Working that out is most of what there is to know about this pattern.
The loop
First, the pattern itself, on something concrete. We have a docs assistant that answers from retrieved articles, and we want no claim in the answer that the articles don't back up.
The writer call gets the question and the articles and drafts an answer. The evaluator call gets the draft, the task and the criteria, and sends back a verdict (pass, needs improvement, or fail) plus feedback: which sentences aren't supported, and why. Our code reads the verdict. On a pass, we're done. Otherwise the writer gets another go, with its earlier drafts and the latest feedback, so it has a chance not to repeat itself.
Why two separate calls? The evaluator prompt can be strict and narrow ("only pass if every criterion is met, and don't try to solve the task yourself"), and it doesn't carry the writer's reasoning around, so it reads the draft fresh.
This is one of the LLM workflows, and as of 2026-09 the draft, review, refine chain is the one Anthropic's prompting guide calls the most common.
Where it helped
Back to the first experiment. It's from Self-Refine (2023): one model writes, critiques itself, and rewrites, up to four times, across seven tasks. On average the refined outputs beat the first drafts by about 20 points.
Look at where the wins were, though. The big ones were on tasks where "better" is a judgment call, like dialogue replies. Most of the gain came in the first round or two and then flattened. And the feedback had to be specific. On a code-speed task, "avoid repeated calculations in the for loop" helped more than "improve the efficiency of the code", which helped more than no feedback at all. When refining failed, it was usually because the critique pointed at the wrong problem, not because the rewrite was bad.
And then there was math. Gains there were small, and the reason is telling: when ChatGPT reviewed its own math answers, 94% of the time its feedback amounted to "everything looks good". When something outside the model said "this answer is wrong", the math gains got much bigger.
Where it hurt
The second experiment is from a 2023 study with a blunt title: language models cannot self-correct reasoning yet. The setup was clean. The model answers, reviews its own answer with no outside information, and revises.
That's the worst case, but nothing went up. On GSM8K, a math benchmark, GPT-3.5 slid from 75.9 to 74.7, and GPT-4 from 95.5 to 89.0.
Why? The model can't reliably tell whether its own reasoning is right. On the math set it mostly kept its answer, and when it did change, it was more likely to turn a right answer wrong than the other way round. On the commonsense test the wrong options all sound plausible, so being asked "are you sure?" pushed it off answers that were correct.
So why had earlier papers reported gains from the same thing? The study found a few reasons, and they're worth knowing because they're easy to fall into ourselves:
- Peeking. Some stopped the loop as soon as the answer was correct, using the true answer to decide. With that, GPT-3.5 on math went from 75.9 to 84.3. In a product we don't have the true answer.
- An unfair baseline. A review loop makes more calls. At the same number of calls, plain majority voting (parallel calls) did better: 88.2 against 83.0 for a debate between several copies of the model.
- A weak first prompt. On one Self-Refine writing task, just stating the task properly in the first prompt scored 81.8, more than the 75.1 the loop reached from the weaker start. Part of the "refinement" was the feedback prompt finally saying what was wanted.
So which is it?
Put the two side by side and they stop fighting. Self-Refine's wins were on open-ended work, where there's no single right answer and specific feedback can always find something to polish. The self-correction study tested reasoning with one right answer and nothing outside the model to check against. And neither saw math improve without outside feedback.
The difference is what the evaluator can see. An evaluator that rereads the draft and asks itself "is this right?" is the setup that failed. An evaluator that compares the draft with something real is the setup that works:
- Run the code. A code generator can be checked against tests, and fixed from the error messages. A code runner is about as good a judge as we'll get, when the tests exist.
- Check against the sources. In our docs assistant, the evaluator gets the retrieved articles and checks each claim against them (grounding). That's a lookup, which is a much easier job than judging its own reasoning.
- Let code check what code can. Length limits, required sections, valid schema. No model needed.
So this pattern fits when two things are true: we can write the criteria down clearly, and feedback against them actually makes the output better. "Every claim must be supported by these articles" passes that test. "Make it better" doesn't.
Things that bite
The loop has to stop. Anthropic's cookbook version is a while True
that only exits on a pass. A fail doesn't stop it. With a strict evaluator
that passes only when it has "no further suggestions", that can go on for
a while. Self-Refine stopped at four rounds and got most of its gain in
the first one or two, so a cap of two or three is a sensible start, plus a
decision about what to return when we hit it.
The evaluator is a judge, and judges get it wrong. One that fails good drafts wastes calls. One that passes bad drafts is worse, because now the output looks checked. It needs its own test set, the same as any LLM judge.
It's expensive. Every round is at least two calls, each carrying a longer history than the last. Before crediting the loop, compare it with something that spends the same budget differently, like voting.
Weak models can't play. In Self-Refine, Vicuna-13B couldn't even write its feedback in the required format.
What about the models we use now? As of 2026-09, Anthropic's prompting guide suggests asking the model to check its answer against test criteria before it finishes, inside the same call, and says one of its newest models checks its own work well without being told. That's vendor guidance, with no published numbers behind it that we could find, and it's about checking inside one call, not this loop. Whether a self-check with nothing to check against has stopped failing the way it did on GPT-3.5 is still an open question. Until someone measures it, the safe bet for our docs assistant is the one above: give the evaluator the articles.
Further reading
- Building effective agents, Erik Schluntz and Barry Zhang (Anthropic), 2024. The pattern and its two signs that it fits.
- Evaluator-Optimizer Workflow, Anthropic cookbook, 2025. A short working loop. Notice it has no cap on rounds.
- Self-Refine: Iterative Refinement with Self-Feedback, Aman Madaan et al., 2023. The case for the pattern. The analysis section on feedback quality is the part to read.
- Large Language Models Cannot Self-Correct Reasoning Yet, Jie Huang et al., 2023 (ICLR 2024). The case against checking without outside evidence, and how earlier gains got inflated.
- Code Generation with AlphaCodium, Tal Ridnik, Dedy Kredo and Itamar Friedman, 2024. A loop whose evaluator runs real tests.
- Prompting best practices, Anthropic docs, current as of 2026-09. Draft, review, refine as the most common chain, and the current advice on self-checks.