When to reach for it
- Quality criteria can be explicitly formulated.
- Iterative improvement is measurable.
- Creative outputs need rigorous checking.
/pattern/evaluator-optimizer/
A generator produces a result, an evaluator scores it against specific criteria, and the generator optimizes it based on the feedback.
When to reach for it
When it backfires
The tradeoff
Better output quality is gained against additional evaluation complexity and latency.
An optimizer generates drafts; an external evaluator scores and feeds back until the threshold is met.
Both models miss the same factual error. The loop converges to a polished but wrong answer.
Fix · Use a different model family for evaluator, or ground scoring in external checks (tests, regex, database queries).
The evaluator optimizes for BLEU score or length, not the user's actual quality criteria. The output looks good but misses the point.
Fix · Align the evaluator's rubric with user requirements. Calibrate with human ratings before deploying.
Search patterns, frameworks, and pages.